@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@10..48,200;10..48,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

/* =========================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box; /* Essencial para layout responsivo */
}

body {
    /* Imagem de fundo local ou fallback para cor escura */
    background-image: url('/img/floresta.webp'), linear-gradient(to bottom, #1a3626, #000);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 300;
}

/* =========================================
   HEADER (CABEÇALHO)
   ========================================= */
header {
    padding: 20px 0;
}

.container-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.titulo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.titulo h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.titulo img {
    width: 40px;
    height: auto;
}

/* =========================================
   NAVBAR (NAVEGAÇÃO)
   ========================================= */
.navbar {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    position: sticky; /* Menu fixa no topo ao rolar */
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3); /* Fundo sutil */
    backdrop-filter: blur(5px);
}

.menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.menu li a:hover {
    background-color: #88B04B; /* Verde destaque */
    color: #1A3626;
    border-color: #88B04B;
    transform: translateY(-2px);
}

/* Dropdown (Peixes) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(20, 66, 28, 0.9);
    min-width: 150px;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 101;
}

.services:hover .dropdown {
    display: block;
}

.dropdown li a {
    background: none;
    border: none;
    text-align: center;
    margin-bottom: 5px;
}

/* Esconde checkbox e ícone no desktop */
#menu-toggle, .menu-icon {
    display: none;
}

/* =========================================
   HERO SECTION (BANNER INICIAL)
   ========================================= */
.container_img_inicial {
    background-image: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.1)), url("https://cdn.pixabay.com/photo/2019/04/06/05/17/wallpaper-4106667_1280.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 80vh; /* Ocupa 80% da altura da tela */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Texto à direita */
    padding: 0 5%;
    margin-top: 20px;
    border-radius: 20px 20px 0 0; /* Estilo visual */
}

.text_inicial {
    max-width: 600px; /* Limita a largura do texto */
    text-align: right;
    padding: 20px;
}

.text_inicial h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.text_inicial p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.text_inicial button {
    background: #88B04B;
    color: #1A3626;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(136, 176, 75, 0.4);
}

.text_inicial button:hover {
    background: #fff;
    transform: scale(1.05);
}

/* =========================================
   SEÇÕES DE TEXTO E NOTÍCIAS
   ========================================= */
.titulo_exp_mun, .titulo_exp_mun1 {
    text-align: center;
    padding: 60px 20px 20px;
}

.texto_exp_mundo h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.texto_exp_mundo h3 {
    font-size: 1.2rem;
    font-weight: normal;
    color: #ccc;
}

/* Grid de Cards (Tartaruga, Esquilo, etc) */
.noticias_fotos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Espaço entre os cards */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Estilo Base dos Cards */
.noticia_mar, .noticia_natureza, .noticia_repteis {
    flex: 1 1 300px; /* Cresce, encolhe, base 300px */
    height: 500px;
    border-radius: 15px;
    position: relative; /* Para o overlay */
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Texto no fundo */
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.noticia_mar:hover, .noticia_natureza:hover, .noticia_repteis:hover {
    transform: translateY(-10px);
}

/* Overlay Escuro para ler o texto */
.noticia_mar::before, .noticia_natureza::before, .noticia_repteis::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}

/* Conteúdo do Card */
.noticia_mar h3, .noticia_natureza h3, .noticia_repteis h3,
.noticia_mar p, .noticia_natureza p, .noticia_repteis p {
    position: relative;
    z-index: 2; /* Fica acima do overlay */
    text-align: center;
}

.noticia_mar { background-image: url("https://cdn.pixabay.com/photo/2023/08/19/05/31/green-sea-turtle-8199770_1280.jpg"); }
.noticia_natureza { background-image: url("https://cdn.pixabay.com/photo/2018/09/08/15/29/squirrel-3662681_1280.jpg"); }
.noticia_repteis { background-image: url("https://cdn.pixabay.com/photo/2015/10/23/18/11/reptile-1003417_1280.jpg"); }

/* =========================================
   SEÇÕES LARGAS (Elefantes, Cavalos)
   ========================================= */
.elefantes, .cavalos {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    height: 500px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Texto à esquerda */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.elefantes { background-image: url("https://cdn.pixabay.com/photo/2019/08/06/23/52/elephant-4389434_1280.jpg"); }
.cavalos { background-image: url("https://cdn.pixabay.com/photo/2021/11/14/21/14/animals-6795732_1280.jpg"); }

.texto_elefantes {
    background: rgba(0, 0, 0, 0.6); /* Caixa escura semi-transparente */
    padding: 30px;
    margin-left: 5%;
    max-width: 500px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* =========================================
   GALERIAS DE FOTOS (2 e 4 fotos)
   ========================================= */
.duas_fotos, .quatro_fotos {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.foto img {
    width: 100%;
    max-width: 550px; /* Para a galeria de 2 */
    height: 300px;
    object-fit: cover; /* Corta a imagem para caber sem esticar */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.quatro_fotos .foto img {
    max-width: 280px; /* Para a galeria de 4 */
    height: 200px;
}

.foto img:hover {
    transform: scale(1.03);
}

/* =========================================
   FOOTER (RODAPÉ) - Otimizado e Responsivo
   ========================================= */
footer {
    background-color: #2B543C;
    color: #E0D4B8;
    padding: 60px 0 0;
    font-family: 'Lora', serif;
    border-top: 5px solid #88B04B;
    margin-top: 80px;
    width: 100%;
}

.container-floresta {
    display: flex;
    justify-content: space-between; /* Distribui melhor o espaço */
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    gap: 40px;
}

.coluna-contato, .coluna-navegacao, .coluna-legal-social {
    flex: 1 1 300px; /* Garante base de 300px antes de quebrar */
    min-width: 250px;
}

footer h4 {
    color: #fff;
    border-bottom: 2px solid #88B04B;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

footer ul {
    padding: 0;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: #A4CC68;
    transition: 0.3s;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Ajuste do Formulário (Newsletter/Contato) */
.newsletter-signup form {
    display: flex;
    flex-direction: column; /* Itens um embaixo do outro */
    gap: 15px;
}

.newsletter-signup label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.newsletter-signup input[type="email"],
.newsletter-signup textarea {
    padding: 12px;
    border-radius: 8px;
    background-color: #f5f5dc;
    border: 1px solid #88B04B;
    width: 100%; /* Ocupa toda a largura da coluna */
    font-family: inherit;
}

.newsletter-signup button {
    padding: 12px 25px;
    border-radius: 25px;
    background-color: #88B04B;
    color: #1A3626;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    align-self: flex-start; /* Botão alinhado à esquerda no desktop */
}

.newsletter-signup button:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.copyright-bar {
    background-color: #1A3626;
    color: #88B04B;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    width: 100%;
}

/* =========================================
   AJUSTES ESPECÍFICOS PARA MOBILE
   ========================================= */
@media (max-width: 768px) {
    .container-floresta {
        flex-direction: column; /* Colunas viram linhas */
        text-align: center; /* Centraliza textos */
        align-items: center;
    }

    footer h4 {
        display: block; /* Ocupa largura total para centralizar borda */
        margin: 0 auto 20px;
    }

    .newsletter-signup button {
        align-self: center; /* Botão centraliza no mobile */
        width: 100%; /* Botão largo para toque fácil */
    }
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE MOBILE)
   ========================================= */
@media (max-width: 900px) {
    /* Header e Menu Hambúrguer */
    .navbar {
        justify-content: space-between;
        align-items: center;
        background-color: #1A3626;
    }

    .menu-icon {
        display: block;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        padding-right: 20px;
    }

    .menu {
        display: none; /* Escondido por padrão */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 54, 38, 0.95);
        flex-direction: column;
        padding: 20px 0;
        z-index: 999;
    }

    #menu-toggle:checked ~ .menu {
        display: flex;
    }

    .menu li {
        width: 90%;
        margin: 0 auto;
    }

    .menu li a {
        text-align: center;
        background: transparent;
        border: none;
    }

    /* Ajustes de Texto e Hero */
    .container_img_inicial {
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 50px;
    }
    
    .text_inicial {
        text-align: center;
        background: rgba(0,0,0,0.5); /* Fundo para ler melhor no mobile */
        border-radius: 15px;
        margin: 0 10px;
    }

    .text_inicial h2 { font-size: 2rem; }
    .texto_exp_mundo h2 { font-size: 2rem; }

    /* Ajustes dos Cards */
    .elefantes, .cavalos {
        height: auto;
        padding: 40px 0;
        justify-content: center;
    }

    .texto_elefantes {
        margin: 0 15px;
        width: 100%;
    }

    /* Galeria de Fotos */
    .duas_fotos .foto img, .quatro_fotos .foto img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* Footer Mobile */
    .container-floresta {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-signup button, .newsletter-signup input[type="email"] {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 10px;
    }
}
/* =========================================
   CARROSSEL / SLIDER
   ========================================= */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 20px 0 40px 0; /* Espaço ao redor */
    border-radius: 12px;
    overflow: hidden; /* Garante que nada saia da caixa */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    grid-column: 1 / -1; /* Ocupa largura total se estiver no Grid */
}

/* Esconde todos os slides por padrão */
.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
}

/* Mostra apenas o slide com a classe 'active' */
.carousel-slide.active {
    display: block;
}

/* Imagens do Carrossel */
.carousel-slide img {
    width: 100%;
    height: 500px; /* Altura fixa para consistência */
    object-fit: cover; /* Corta a imagem sem esticar */
    vertical-align: middle;
}

/* Legenda (Texto sobre a imagem) */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
    padding: 60px 40px 30px; /* Mais espaço no topo para o degradê */
    color: #fff;
    text-align: left;
}

.carousel-caption h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: white; /* Garante branco puro */
}

.carousel-caption p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Efeito de Fade (Transição suave) */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Botões Anterior/Próximo */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3); /* Fundo semi-transparente */
    border: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(136, 176, 75, 0.9); /* Verde destaque */
}

/* Bolinhas indicadoras */
.dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #88B04B; /* Verde ativo */
    transform: scale(1.2);
}

/* Responsividade Mobile */
@media only screen and (max-width: 768px) {
    .carousel-slide img {
        height: 350px; /* Menor no celular */
    }
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    .carousel-caption {
        padding: 30px 20px 20px;
    }
    .prev, .next {
        font-size: 18px;
        padding: 10px;
    }
}

/* =========================================
   ANIMAÇÃO DA AVE E POPUP (ADICIONADO)
   ========================================= */

/* Ave voando */
.ave-animacao {
    position: fixed;
    top: 40%;
    left: -150px; /* Começa fora da tela */
    width: 450px;
    z-index: 9999;
    pointer-events: none; /* Não interfere nos cliques do site */
    animation: voarAoLongo 4s linear forwards;
}

@keyframes voarAoLongo {
    0% { transform: translate(0, 0) scaleX(1); left: -150px; }
    50% { transform: translate(50vw, -50px) scaleX(1); }
    100% { transform: translate(110vw, -100px) scaleX(1); left: 110%; }
}

/* Estrutura do Popup */
.popup-overlay {
    display: none; /* Escondido inicialmente */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-conteudo {
    background: #1A3626; /* Verde escuro do seu tema */
    color: #E0D4B8;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #88B04B;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(136, 176, 75, 0.3);
    animation: popupEntrada 0.5s ease-out;
}

@keyframes popupEntrada {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-conteudo h2 {
    color: #88B04B;
    margin-bottom: 15px;
    font-size: 2rem;
}

.popup-conteudo p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-preservar {
    background: #88B04B;
    color: #1A3626;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-preservar:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Ajuste Mobile para o Popup */
@media (max-width: 600px) {
    .popup-conteudo { padding: 20px; }
    .popup-conteudo h2 { font-size: 1.5rem; }
    .ave-animacao { width: 300px; }
}

/* =========================================
   BOT DE CURIOSIDADES
   ========================================= */

   .bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bot-bubble {
    background: var(--card-bg, rgba(26, 54, 38, 0.95));
    color: var(--text-color, white);
    padding: 15px;
    border-radius: 15px 15px 0 15px;
    margin-bottom: 10px;
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #88B04B;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    display: none; /* Inicia escondido */
    animation: fadeIn 0.5s ease;
}

.bot-bubble button {
    background: #88B04B;
    color: #1A3626;
    border: none;
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.bot-icon {
    width: 60px;
    height: 60px;
    background: #88B04B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}

.bot-icon:hover { transform: scale(1.1); }