html {
    scroll-behavior: smooth;
}

#faq {
    scroll-margin-top: 180px;
}

body, h1, h2, ul, li, p, dd, dt, dl {
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

body {
    background-color: #F6F6F6;
    color: #222;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: grid;
    grid-template-columns: 1fr 120px minmax(300px, 800px) 1fr;
    line-height: 1.6;
}

.menu {
    grid-column: 1 / 5;
    background: url("../img/fundonav.png") repeat;
    background-position:  center -10px;
    background-size: cover;
    box-shadow: 0px 2px 6px #222222cc;
}

.menu ul {
    display: flex;
    flex-wrap: wrap;
    padding: 10px ;
    justify-content: center;
}

.menu li a {
    display: block;
    padding: 10px 12px;
    margin: 0 6px;
    text-decoration: none;
    color: #d7cfc7; 
    text-shadow:
    -1px -1px 0 #4e342e,
    1px -1px 0 #4e342e,
    -1px 1px 0 #4e342e,
    0 0 5px #4e342e;
    background: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s ease;
}

.menu li a:hover {
    background-color: #fffaf244;
}

.grid-section {
    display: grid;
    grid-column: 3 / 5;
    padding: 20px;
    margin-bottom: 4rem;
    gap: 20px;
    grid-template-columns: 90px 300px 1fr;
}

.titulo {
    grid-column: 2 / 5;
    font-family: 'Playfair Display SC', serif;
    font-size: 5.5rem;
    color: #5d4037;
    margin-bottom: 1rem;
}

.aves h2 {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: #4e342e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.aves h2::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 8px;
    background: #a8b07e;
    margin-right: 10px;
    vertical-align: middle;
}

.aves p {
    font-family: Georgia, serif;
    font-size: 1rem;
    color: #333333;
    margin-bottom: 1rem;
    margin-right: 260px;
}

.animais-lista {
    grid-column: 1;
    height: 460px;
    width: 360px;
    overflow-y: auto;
    padding-right: 8px;
    border-left: 4px solid #a8b07e;
    cursor: pointer;
}

.animais-lista li {
    transition: transform 0.3s ease, filter 0.3s ease;
    overflow: hidden;
    border-radius: 4px;
}

.animais-lista li img {
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
    width: 100%;
}

.animais-lista li:hover {
    transform: translateX(4px);
}

.animais-lista li:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.animais-lista::-webkit-scrollbar {
    width: 12px;
    }
.animais-lista::-webkit-scrollbar-thumb {
    background: #a8b07e;
    border-radius: 8px;
    }
.animais-lista::-webkit-scrollbar-track {
    background: #a8b07e69;
    }

.animais-descricao {
    grid-column: 3;
    }
.animais-descricao section {
    margin-bottom: 2.5rem;
}

.faq-lista {
    grid-column: 1 / 5;
}

.faq-lista dt {
    font-weight: bold;
    color: #5d4037;
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 30px;
}

.faq-lista dt::before {
    content:'';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 10px;
    background: #a8b07e;
}

.faq-lista dd {
    margin-left: 30px;
    font-size: 0.95rem;
    color: #333333;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}

.mapa {
    grid-column: 1 / 3;
    border: solid 1px #5d4037;
    border-radius: 2px;
}

.dados {
    grid-column: 3;
}

.dados li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 28px;
}

.dados li::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 8px;
    background: #a8b07e;
    left: 0;
    top: 10px;
}

.copy {
    grid-column: 1 / 5;
    margin-bottom: 2rem;
    background: #a8b07e;
}

.copy p {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    color: #4e342e;
}

/* Medias para responsividade */

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }

    .menu {
        grid-column: 1 / 2;
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        height: 50px;
    }

    .menu li a {
        margin: 5px 0;
        display: none;
    }

    .titulo {
        grid-column: 1 / 2;
        font-size: 3.5rem;
        text-align: center;
        margin-top: 20px;
    }

    .grid-section {
        grid-column: 1 / 2;
        grid-template-columns: 1fr;
        padding: 15px;
        margin-bottom: 2rem;
    }

    .aves p {
        margin-right: 0;
    }

    .animais-lista {
        width: 80%;
        height: 400px;
        overflow-y: scroll;
        border-left: none;
        padding-right: 0;
    }

    .animais-lista li {
        margin-bottom: 10px;
    }

    .animais-lista li:hover {
        transform: translateX(0);
    }

    .animais-descricao {
        grid-column: 1 / 2;
    }

    .faq-lista {
        grid-column: 1 / 2;
    }

    .mapa {
        grid-column: 1 / 2; 
        margin-bottom: 20px;
    }

    .dados {
        grid-column: 1 / 2; 
        text-align: center;
    }

    .dados li {
        padding-left: 0;
    }

    .dados li::before {
        display: none;
    }

    .copy {
        grid-column: 1 / 2;
    }
}

@media (max-width: 480px) {
    .titulo {
        font-size: 2.5rem; 
    }

    .menu li a {
        font-size: 1.2rem; 
        padding: 8px 10px;
    }

    .aves h2 {
        font-size: 0.9rem; 
    }

    .aves h2::before {
        width: 20px; 
        height: 6px;
    }

    .faq-lista dt {
        padding-left: 20px; 
    }

    .faq-lista dt::before {
        width: 15px; 
        height: 8px;
    }

    .faq-lista dd {
        margin-left: 20px;
    }
}

/* JavaScript */

.js .js-tabinfo section {
    display: none;
}

.js-tabinfo section.ativo {
    display: block;
    animation: show 0.6s ease-out forwards;
}

@keyframes show {
    0% {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }

    60% {
        opacity: 1;
        transform: translate3d(-4px, 0, 0); 
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.js .js-accordion {
    cursor: pointer;
    user-select: none;
}

.js .js-accordion dd {
    display: none;
}

.js-accordion dt::after {
    content: '⬎';
    margin-left: 4px;
}

.js-accordion dt.ativo::after {
    content: '⬏';
}

.js .js-accordion dd.ativo {
    display: block;
    animation: slideDown 0.6s ease forwards;
    overflow: hidden;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scaleY(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.js .js-scroll {
    opacity: 0;
    transform: translate3d(-30px, 0px, 0px);
    transition: 0.6s;
}

.js .js-scroll.ativo {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
}