/* =========================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a365d;
    /* Azul Marinho */
    --secondary: #27ae60;
    /* Verde Missões */
    --accent: #f39c12;
    /* Laranja Atenção */
    --light: #f8f9fa;
    --dark: #2d3436;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    /* Largura máxima que o conteúdo terá */
    margin: 0 auto;
    /* Centraliza o conteúdo horizontalmente */
    padding: 0 20px;
    /* Margem de segurança para celulares não encostarem o texto na borda */
    width: 100%;
}

/* =========================================
   2. NAVEGAÇÃO (NAVBAR)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

.navbar-container {
    max-width: 1500px;
    /* Aumentado para máximo distanciamento */
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* LOGO <---------------------> LINKS */
    align-items: center;
}

/* Estilo da Logo */
.logo {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    flex-shrink: 0;
}

.logo span {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menu de Links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
    /* Espaço reduzido entre links como solicitado */
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 10px;
    position: relative;
    transition: var(--transition);
}

.navbar .nav-links a.active {
    color: var(--secondary) !important;
}

/* Faz a linha aparecer sem precisar do hover */
.navbar .nav-links a.active::after {
    width: calc(100% - 20px) !important;
    background-color: var(--secondary) !important;
}

/* Efeito Hover nos Links (Linha que corre) */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary) !important;
}

.nav-links a:hover::after {
    width: calc(100% - 20px);
}

/* Botão Ofertar */
.navbar .nav-links a.btn-oferta {
    color: #ffffff !important;
    /* Garante letra branca */
    border: 2px solid #ffffff !important;
    background-color: transparent;
    border-radius: 50px;
    padding: 8px 22px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.navbar .nav-links a.btn-oferta:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #ffffff !important;
    /* Força a letra a continuar branca no fundo verde */
    transform: scale(1.05);
}

/* 2. Estado ao Rolar (Navbar Branca) */
.navbar.rolagem .nav-links a.btn-oferta {
    color: var(--primary) !important;
    /* Letra azul marinho */
    border-color: var(--primary) !important;
}

.navbar.rolagem .nav-links a.btn-oferta:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    /* Letra branca quando o botão preenche de azul */
}

/* Remove a linha embaixo do botão no hover */
.navbar .nav-links a.btn-oferta::after {
    display: none !important;
}

/* --- ESTADO AO ROLAR (JS adiciona classe .rolagem) --- */
.navbar.rolagem {
    background-color: #ffffff;
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar.rolagem .logo,
.navbar.rolagem .nav-links a {
    color: var(--primary);
}

.navbar.rolagem .btn-oferta {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.navbar.rolagem .btn-oferta:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.navbar.rolagem .nav-links a.active {
    color: var(--secondary) !important;
}

/* Ajuste para o botão de oferta não herdar a linha se estiver ativo */
.navbar .nav-links a.btn-oferta.active::after {
    display: none !important;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    background-image: linear-gradient(rgba(26, 53, 101, 0.466), rgba(26, 53, 101, 0.527)),
        url('../images/capa1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- CONTAINER DOS BOTÕES --- */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* BOTÃO SAIBA MAIS (Sólido) */
.btn-saiba-mais {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-saiba-mais:hover {
    background-color: #219150;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* BOTÃO VÍDEO (Pulsante e Vazado) */
.btn-video-popup {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    border: 2px solid white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-border 2s infinite;
    /* A animação de pulso */
}

.btn-video-popup i {
    font-size: 1.2rem;
}

.btn-video-popup:hover {
    background-color: white;
    color: var(--primary);
}

/* =========================================
   4. ANIMAÇÕES (KEYFRAMES)
   ========================================= */

/* Animação de Pulso */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Entrada Suave do Conteúdo */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MODAL DE VÍDEO */
.video-modal {
    display: none;
    /* Escondido por padrão */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Fundo bem escuro */
}

.video-modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    max-width: 900px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.close-video {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-video:hover {
    color: var(--secondary);
}

/* =========================================
   4. OFERTÔMETRO (CAMPANHA)
   ========================================= */
/* Cards de Impacto */
.status-impacto {
    padding: 60px 10%;
}

.status-impacto h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.status-impacto .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--secondary);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Ofertômetro */
.campanha-destaque {
    background: white;
    padding: 80px 10%;
    text-align: center;
}

.ofertometro-box {
    max-width: 800px;
    margin: 40px auto;
}

.barra-externa {
    background: #eee;
    height: 35px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.barra-interna {
    background: linear-gradient(90deg, var(--secondary), #2ecc71);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    animation: slideIn 2s ease-out;
}

.info-valores {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    color: var(--primary);
}

.btn-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 30px;
}

.btn-cta:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.campanha-destaque {
    padding: 80px 10%;
    background: white;
    text-align: center;
}

.ofertometro-box {
    max-width: 800px;
    margin: 40px auto;
}

.barra-externa {
    background: #e2e8f0;
    height: 35px;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.barra-interna {
    background: linear-gradient(90deg, var(--secondary), #2ecc71);
    height: 100%;
    width: 0%;
    /* Animado pelo JS */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* =========================================
   5. SEÇÕES DE NOTÍCIAS
   ========================================= */
/* Seção Notícias */
.campo-noticias {
    padding: 80px 10%;
    background-color: #f4f7f6;
}

.header-secao {
    text-align: center;
    margin-bottom: 50px;
}

.header-secao h2 {
    color: var(--primary);
    font-size: 2.2rem;
}

.grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.noticia-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-10px);
}

.noticia-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.noticia-corpo {
    padding: 20px;
}

.data-noticia {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: bold;
    text-transform: uppercase;
}

.noticia-corpo h3 {
    margin: 10px 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.noticia-corpo p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

/* --- Estilização do Botão Ler Relato (Nos Cards) --- */
.ler-mais {
    background: transparent;
    color: var(--secondary); /* Amarelo/Dourado da CBA */
    border: 2px solid var(--secondary);
    padding: 8px 18px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    display: inline-block;
}

.ler-mais:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Botões de Ação dentro do Modal --- */
.noticia-modal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.btn-pdf {
    background-color: var(--primary); /* Azul Marinho CBA */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-pdf:hover {
    background-color: var(--secondary); /* Muda para Amarelo no hover */
}

/* Garante que o X de fechar seja visível e estiloso */
.noticia-close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.3s;
}

.noticia-close:hover {
    color: var(--secondary);
}

/*Modal noticias*/
/* Fundo do Modal de Notícias */
.noticia-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    /* Valor alto para ficar acima da navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    padding-top: 50px;
}

/* Conteúdo do Modal */
.noticia-modal-content {
    background-color: #fff;
    margin: 0 auto 50px;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    max-width: 850px;
    width: 90%;
    /* Respiro para telas pequenas */
}

@media print {
    /* 1. Esconde tudo que não deve estar no papel */
    body > *:not(.noticia-modal), 
    .noticia-close, 
    .noticia-modal-footer, 
    .btn-pdf,
    header, 
    footer {
        display: none !important;
    }

    /* 2. Reseta o posicionamento para ocupar a folha A4 */
    @page {
        margin: 1.5cm; /* Define margens de documento oficial */
        size: auto;
    }

    .noticia-modal {
        position: static !important;
        display: block !important;
        background: white !important;
        padding: 0 !important;
    }

    .noticia-modal-content {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    /* 3. Estilização do Texto para parecer uma carta impressa */
    .modal-titulo-azul {
        color: #003366 !important; /* Azul escuro CBA */
        font-size: 26pt !important;
        margin: 20px 0 !important;
    }

    .modal-texto-completo {
        font-size: 13pt !important;
        line-height: 1.6 !important;
        color: #000 !important;
        text-align: justify !important;
    }

    /* Ajuste da imagem para não ser cortada */
    #modal-body img {
        width: 100% !important;
        max-height: 450px !important;
        object-fit: cover !important;
        border-radius: 5px !important;
        margin-bottom: 30px !important;
    }
}

/* Efeito Parallax */
.pam-parallax {
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=2000');
    /* Imagem de fundo */
    height: 400px;
    background-attachment: fixed;
    /* O segredo do parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.pam-overlay {
    background: rgba(26, 54, 93, 0.7);
    /* Filtro escuro para leitura */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.pam-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.btn-video {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-video:hover {
    transform: scale(1.05);
    background: #e67e22;
}

/* Estilos do Modal (Pop-up) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*Seção de engajamenonto */
/* Seção Engajamento */
.formas-contribuicao {
    padding: 60px 5%;
    background-color: white;
}

.grid-engajamento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.card-engajamento {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card-engajamento:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background-color: #f9fbf9;
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: 0.3s;
}

.card-engajamento:hover .icon-box {
    background-color: var(--secondary);
    color: white;
}

.card-engajamento h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card-engajamento p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    min-height: 70px;
    /* Alinha os botões */
}

.link-acao {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.link-acao:hover {
    border-bottom: 2px solid var(--secondary);
}

/* Seção Amazonas */
.conexao-amazonas {
    padding: 60px 10%;
    background-color: #f0f4f8;
    /* Um azul bem clarinho para diferenciar */
}

.canais-contato {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contato-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 50px;
    /* Estilo pílula */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    min-width: 280px;
}

.contato-card i {
    font-size: 1.8rem;
    margin-right: 15px;
}

.contato-info h3 {
    font-size: 1rem;
    color: var(--primary);
    margin: 0;
}

.contato-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Cores específicas no Hover */
.contato-card.zap:hover {
    background-color: #25d366;
    color: white;
}

.contato-card.zap:hover .contato-info p,
.contato-card.zap:hover h3 {
    color: white;
}

.contato-card.mail:hover {
    background-color: var(--primary);
    color: white;
}

.contato-card.mail:hover .contato-info p,
.contato-card.mail:hover h3 {
    color: white;
}

.contato-card.phone:hover {
    background-color: var(--secondary);
    color: white;
}

.contato-card.phone:hover .contato-info p,
.contato-card.phone:hover h3 {
    color: white;
}

.contato-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   6. FOOTER
   ========================================= */

.footer-main {
    background-color: var(--primary);
    color: white;
    padding: 60px 10% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e0;
}

.logo-footer {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.logo-footer span {
    color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Linha Final */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #a0aec0;
}