/*
==============================================
IMPORTAÇÃO DE FONTE E ESTILOS GLOBAIS
==============================================
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Montserrat", sans-serif;
}

/* --- ESTRUTURA E PADRONIZAÇÃO --- */

body {
    background-color: #ffffff;
    transition: background-color 0.4s;
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

.section-title {
    color: #003C63;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 40px;
}

/*
==============================================
CABEÇALHO E NAVEGAÇÃO
==============================================
*/

/* --- CABEÇALHO --- */
.icones-sociais {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
}
.logo {
    width: 150px;
}
.icones-sociais i {
    color: #003C63;
    font-size: 1.2rem;
}
.icones-header {
    display: flex;
    gap: 15px;
}

/* --- MENU DE NAVEGAÇÃO --- */
.nav-header {
    background-color: #003C63;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.ul-header {
    display: flex;
    color: white;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}
.ul-header > li > a {
    color: white;
    padding: 25px 0;
    display: inline-block;
    transition: color 0.2s ease;
}
.ul-header > li.has-submenu:hover > a {
    color: #00A9E2;
}
.has-submenu {
    position: relative;
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}
.has-submenu:hover > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
}
.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #003C63;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}
.submenu li a:hover {
    background-color: #f5f5f5;
    color: #00A9E2;
}

/* --- MENU HAMBÚRGUER (MOBILE) --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/*
==============================================
CSS CORRIGIDO E RESPONSIVO - CARROSSEL PRINCIPAL
==============================================
*/

.carousel-container {
    position: relative;
    width: 100%;
    margin: auto;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 1.5s ease-in-out;
}

.slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.slide-content {
    position: absolute;
    top: 0;
    height: 100%;
    width: 45%;
    background-color: #003C63;
    display: flex;
    align-items: center;
}

.slide-content.right {
    right: 0;
    clip-path: ellipse(80% 100% at 100% 50%);
    justify-content: flex-end;
    
    /* --- MUDANÇA CRÍTICA --- */
    /* Padding assimétrico que respeita a curva: mais espaço à esquerda (lado cortado) */
    padding: 3% 8% 3% 20%;
}

.slide-content.left {
    left: 0;
    clip-path: ellipse(80% 100% at 0% 50%);
    justify-content: flex-start;
    
    /* --- MUDANÇA CRÍTICA --- */
    /* Padding assimétrico que respeita a curva: mais espaço à direita (lado cortado) */
    padding: 3% 20% 3% 8%;
}

.text-wrapper {
    position: relative;
    z-index: 2;
    color: white;
    
    /* --- MUDANÇA CRÍTICA --- */
    /* O texto agora é 100% flexível e se adapta ao espaço seguro criado pelo padding */
    width: 100%;
    max-width: 100%; 
}

.slide-content.right .text-wrapper {
    text-align: right;
}

.slide-content.left .text-wrapper {
    text-align: left;
}

.text-wrapper h2 {
    /* Usando unidades relativas (vw) para o texto também se adaptar um pouco */
    font-size: clamp(1.4em, 2.2vw, 2.2em); /* Garante que o texto não fique gigante ou minúsculo */
    line-height: 1.3;
    margin-bottom: 20px;
}

.text-wrapper .btn {
    display: inline-block;
    background-color: #00A9E2;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.text-wrapper .btn:hover {
    background-color: #008fbf;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* --- SEÇÃO FRENTES DE ATUAÇÃO (HOME) --- */
.frentes-section {
    padding-top: 50px;
    padding-bottom: 50px;
}
.frentes-title {
    color: #003C63;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.frentes-div {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.frentes-box {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    padding: 100px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: white;
    transition: transform 0.3s ease;
}
.frentes-box:hover {
    transform: scale(1.03);
}
.frentes-box-1 {
    background-image: linear-gradient(to top, rgba(251, 189, 81, 0.7), transparent 60%), url(/img/Banner_1_V3.png);
}
.frentes-box-2 {
    background-image: linear-gradient(to top, rgba(239, 122, 145, 0.7), transparent 60%), url(/img/padeira.png);
}
.frentes-box-3 {
    background-image: linear-gradient(to top, rgba(188, 124, 174, 0.7), transparent 60%), url(/img/recebidos.jpg);
}
.frentes-box-title-wrapper {
    position: relative;
    top: 80px;
    text-align: center;
    z-index: 2;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
}
.frentes-box-title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}
.frentes-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}
.frentes-box:hover .frentes-box-title-wrapper {
    opacity: 0;
}
.frentes-box:hover .frentes-box-overlay {
    opacity: 1;
}
.frentes-box-1 .frentes-box-overlay {
    background-color: #FBBD51;
}
.frentes-box-2 .frentes-box-overlay {
    background-color: #EF7A91;
}
.frentes-box-3 .frentes-box-overlay {
    background-color: #BC7CAE;
}
.frentes-box-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: white;
}

/* --- SEÇÃO NOTÍCIAS ROTATIVAS (HOME) --- */
.noticias-section {
    padding: 50px 0;
}
.noticias-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.noticias-viewport {
    overflow: hidden;
    width: 100%;
}
.noticias-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}
.noticia-card {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.noticia-img-placeholder {
    width: 100%;
    padding-top: 56.25%;
    background-color: #e9e9e9;
}
.noticia-content {
    padding: 15px;
    background-color: #f8f8f8;
    flex-grow: 1;
}
.noticia-data {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}
.noticia-texto {
    font-weight: bold;
    color: #333;
}
.noticias-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 60, 99, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}
.noticias-btn:hover {
    background-color: rgba(0, 60, 99, 1);
}
.noticias-btn.prev {
    left: -20px;
}
.noticias-btn.next {
    right: -20px;
}
.noticias-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- SEÇÃO NEWSLETTER --- */
.newstaller-section {
    background-color: #F1F1F1;
    padding-top: 50px;
    padding-bottom: 50px;
}
.newstaller-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.text-title-newslatter {
    color: #003C63;
    flex-basis: 50%;
}
.text-title-newslatter h2{
    margin-bottom: 10px;
}
.forms-newslatter {
    flex-basis: 45%;
    min-width: 300px;
}
.form-group {
    display: flex;
    gap: 10px;
}
.email-input {
    flex-grow: 1;
    padding: 15px;
    font-size: 16px;
    border: 1.5px solid #003C63;
    border-radius: 12px;
    background-color: #fff;
}
.submit-button {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #003C63;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-button:hover {
    background-color: #002c4a;
}
.privacy-policy {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: #333;
}
.privacy-policy input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #003C63;
}
.privacy-policy a {
    color: #003C63;
    text-decoration: none;
}
.privacy-policy a:hover {
    text-decoration: underline;
}

/*
==============================================
ESTILOS PÁGINA "SOBRE O INSTITUTO GPA"
==============================================
*/

.hero-sobre {
    position: relative;
    background-size: cover;
    background-position: center 30%;
    padding: 60px 0;
    background-image:
    linear-gradient(rgba(0, 60, 99, 0.1), rgba(0, 60, 99, 0.15)),
    url('img/equipe-mercado-sacolao.png');
}
.hero-sobre::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 60, 99, 0.85);
}
.hero-sobre-content {
    position: relative;
    color: white;
    padding: 40px;
    width: 45%;
    clip-path: ellipse(120% 100% at 0% 50%);
}
.hero-sobre-content h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}
.hero-sobre-content p {
    font-size: 1em;
    line-height: 1.7;
}

.governance-section {
    padding: 70px 0;
    background-color: #fff;
}
.governance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.governance-column h4 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}
.governance-column p,
.governance-column ul li {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* ==============================================
   ESTILOS PÁGINA "SOBRE O INSTITUTO GPA" - TIMELINE VERTICAL
   ============================================== */

.timeline-section {
    padding: 70px 0;
    background-color: #f8f8f8;
}

/* O container principal da timeline */
.timeline {
    position: relative;
    max-width: 1000px; /* Define uma largura máxima para melhor leitura */
    margin: 0 auto;   /* Centraliza a timeline na página */
}

/* A linha vertical central */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #003C63;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px; /* Metade da largura para centralizar perfeitamente */
}

/* Cada item/evento da timeline */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%; /* Cada item ocupa metade da largura */
    
    /* Animação: começa invisível e um pouco deslocado */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Quando o item se torna visível (via JavaScript) */
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Posicionamento dos itens ÍMPARES (à esquerda) */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px; /* Espaço extra para o círculo não sobrepor o texto */
    text-align: right;
}

/* Posicionamento dos itens PARES (à direita) */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* O círculo na linha do tempo */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    top: 25px; /* Alinha o círculo verticalmente com o conteúdo */
    background-color: #f8f8f8;
    border: 3px solid #003C63;
    border-radius: 50%;
    z-index: 1;
}

/* Posição do círculo para itens da ESQUERDA */
.timeline-item:nth-child(odd)::after {
    right: -12.5px; /* Metade da largura do círculo para fora */
}

/* Posição do círculo para itens da DIREITA */
.timeline-item:nth-child(even)::after {
    left: -12.5px; /* Metade da largura do círculo para fora */
}

/* A caixa de conteúdo */
.timeline-content {
    padding: 20px;
    background-color: #003C63;
    color: white;
    position: relative;
    border-radius: 8px;
}

/* A seta/triângulo apontando para a linha */
.timeline-content::before {
    content: "";
    position: absolute;
    top: 22px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

/* Seta para itens da ESQUERDA (aponta para a direita) */
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-left-color: #003C63;
}

/* Seta para itens da DIREITA (aponta para a esquerda) */
.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-right-color: #003C63;
}

/* Estilos do ano e conteúdo */
.timeline-year {
    font-size: 1.5em;
    font-weight: 700;
    color: #00A9E2; /* Cor de destaque para o ano */
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9em;
    line-height: 1.5;
}

/* --- RESPONSIVIDADE PARA CELULARES --- */
@media screen and (max-width: 768px) {
    /* A linha central vai para a esquerda */
    .timeline::after {
        left: 31px;
    }

    /* Todos os itens agora ocupam a largura total */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left; /* Alinha todo o texto à esquerda */
    }

    /* O círculo se alinha com a nova linha */
    .timeline-item::after {
        left: 18px;
    }
    
    /* As setas agora sempre apontam para a esquerda */
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -20px;
        border-right-color: #003C63;
        border-left-color: transparent;
    }
}
.partnerships-section {
    padding: 70px 0;
    background-color: #f8f8f8;
}
.partnerships-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.partnership-logo-link {
    display: block;
    padding: 20px;
    background-color: #003C63;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partnership-logo-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.partnership-logo-link img {
    max-height: 70px;
    width: auto;
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.statute-section {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}
.statute-link {
    display: inline-block;
    background-color: #003C63;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.statute-link:hover {
    background-color: #005085;
}

/*
==============================================
ESTILOS PÁGINA "MÃOS NA MASSA"
==============================================
*/

.numbers-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.stat-box {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
}
.stat-box-light {
    background-color: #00A9E2;
}
.stat-box-dark {
    background-color: #003C63;
}
.stat-main {
    display: block;
    font-size: 4em;
    font-weight: 800;
    line-height: 1;
}
.stat-description {
    display: block;
    font-size: 1.2em;
    margin-top: 15px;
}
.stat-box-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stat-box-text p {
    font-size: 1.7em;
    font-weight: 700;
    line-height: 1.4;
}

.cta-section {
    background-color: #003C63;
    padding: 40px 0;
}
.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.cta-text .section-title {
    color: white;
    margin-bottom: 10px;
}
.cta-text p {
    color: #f0f0f0;
}
.cta-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}
.cta-button:hover {
    background-color: white;
    color: #003C63;
}


/*
==============================================
ESTILOS SEÇÃO DEPOIMENTOS
==============================================
*/

.testimonials-section {
    padding: 80px 0;
    background-color: #fff; /* Fundo branco ou a cor de fundo da sua seção */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.testimonial-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.testimonial-image-wrapper {
    /* Define o tamanho fixo e quadrado do contêiner */
    width: 120px;
    height: 120px;
    
    /* Impede que o layout flex achate ou estique este contêiner */
    flex-shrink: 0;
    
    /* Transforma o contêiner em um círculo */
    border-radius: 50%;
    
    /* Esconde qualquer parte da imagem que "vaze" para fora do círculo */
    overflow: hidden; 
    
    /* Efeitos visuais opcionais para destacar a imagem */
    border: 3px solid #00A9E2; /* Cor de destaque do site */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* A imagem agora apenas preenche 100% do seu contêiner circular */
.testimonial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante o preenchimento sem distorcer a imagem */
}

/* Estilos para o conteúdo de texto do depoimento */
.testimonial-content .testimonial-text {
    color: #555;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
    border-left: 3px solid #f0f0f0; /* Detalhe visual para o bloco de citação */
    padding-left: 20px;
}

.testimonial-content .testimonial-author {
    color: #003C63;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-content .testimonial-role {
    color: #555;
    font-size: 1em;
    font-style: normal;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* Um depoimento por linha em telas menores */
        gap: 50px;
    }

    .testimonial-card {
        flex-direction: column; /* Imagem fica em cima e texto embaixo */
        align-items: center; /* Centraliza os itens */
        text-align: center;
    }

    .testimonial-content .testimonial-text {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }
}


/*
==============================================
ESTILOS PÁGINA "PARCERIA CONTRA O DESPERDÍCIO"
==============================================
*/

.campaign-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}
.stats-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.stat-card {
    padding: 30px;
    border-radius: 20px;
}
.stat-card.yellow-card {
    background-color: #d2d22d;
    color: #003C63;
}
.stat-card.dark-blue-card {
    background-color: #003C63;
    color: white;
}
.stat-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.stat-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.stat-card h4 {
    font-size: 2.2em;
    font-weight: 800;
}
.stat-card p {
    line-height: 1.6;
}
.stat-chart-icon {
    height: 60px;
    width: auto;
}
.large-chart-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}
.stat-chart-icon-large {
    height: 120px;
    width: auto;
    margin-bottom: 20px;
}

/*
==============================================
ESTILOS PÁGINA "CAMPANHA DE ARRECADAÇÃO"
==============================================
*/

.campaign-numbers-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    grid-template-areas:
        "large-blue small-yellow-1"
        "large-blue small-yellow-2";
}
.campaign-stat-large {
    grid-area: large-blue;
    padding: 40px;
    border-radius: 20px;
}
.campaign-stat-small {
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.campaign-stat-large.dark-blue-card {
    background-color: #003C63;
    color: white;
}
.campaign-stat-small.yellow-card {
    background-color: #d2d22d;
    color: #003C63;
}
.campaign-stat-large h3 {
    font-size: 3.5em;
    font-weight: 800;
    color: #d2d22d;
}
.campaign-stat-large h4 {
    font-size: 1.5em;
    margin: 10px 0 20px 0;
}
.campaign-stat-small h4 {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1.4;
}

/*
==============================================
ESTILOS PÁGINA "PRODUTOS SOCIAIS"
==============================================
*/

.product-partnership-section {
    padding: 80px 0;
}
.partnership-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.partnership-text {
    flex: 2;
}
.partnership-text h3 {
    color: #003C63;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
}
.partnership-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1em;
}
.partnership-logo {
    flex: 1;
    text-align: center;
}
.partnership-logo img {
    max-width: 250px;
    height: auto;
}

/*
==============================================
ESTILOS PÁGINA "CAMPANHA DE ARRECADAÇÃO"
==============================================
*/

.campaign-section { /* Adicionando uma classe à section para espaçamento */
    padding: 80px 0;
    background-color: #f8f8f8; /* Mantendo o padrão de fundo das seções */
}

.campaign-numbers-grid {
    display: flex; /* Simplificado para Flexbox, ideal para 2 itens */
    gap: 30px;
    align-items: stretch; /* Garante que os cards tenham a mesma altura */
}

.campaign-stat-large,
.campaign-stat-small {
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign-stat-large:hover,
.campaign-stat-small:hover {
    transform: translateY(-5px); /* Efeito de elevação sutil no hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.campaign-stat-large {
    flex: 2; /* Ocupa 2/3 do espaço */
    background-color: #003C63;
    color: white;
    display: flex;
    flex-direction: column;
}

.campaign-stat-small {
    flex: 1; /* Ocupa 1/3 do espaço */
    background-color: #D2D22D; /* Um amarelo mais vibrante e quente */
    color: #003C63;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.campaign-stat-large h4 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Estilizando a lista de datas para melhor legibilidade */
.campaign-stat-large ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Faz a lista ocupar o espaço restante */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.campaign-stat-large ul li {
    font-size: 1.1em;
    padding: 12px 0;
    position: relative;
    padding-left: 25px; /* Espaço para o ícone */
}

/* Adicionando um ícone de calendário para cada data */
.campaign-stat-large ul li::before {
    content: '\f073'; /* Código de ícone de calendário do Font Awesome */
    font-family: "Font Awesome 5 Free"; /* Certifique-se que Font Awesome está carregado */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #00A9E2; /* Cor de destaque do site */
}

/* Dando destaque ao número no card pequeno */
.campaign-stat-small h4 {
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.campaign-stat-small h4 span {
    display: block;
    font-size: 2.8em; /* Aumenta o número */
    font-weight: 800;
    margin-bottom: 5px;
}

/* Ajustes responsivos para a nova estrutura */
@media (max-width: 992px) {
    .campaign-numbers-grid {
        flex-direction: column; /* Empilha os cards verticalmente */
    }
}

/*
==============================================
ESTILOS PÁGINA "RELATÓRIOS"
==============================================
*/

.reports-section {
    padding: 80px 0;
}
.reports-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 50px auto;
    color: #555;
    line-height: 1.6;
}
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.report-card {
    background-color: #f9f9f9;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.report-icon {
    font-size: 3.5em;
    color: #003C63;
    margin-bottom: 20px;
}
.report-card h4 {
    color: #333;
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 25px;
    flex-grow: 1;
}
.download-btn {
    display: inline-block;
    background-color: #003C63;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.download-btn:hover {
    background-color: #005085;
}

/*
==============================================
ESTILOS PÁGINA "NOTÍCIAS" (LISTAGEM)
==============================================
*/

.news-page-section {
    padding: 60px 0;
}
.news-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
.news-page-header h1 {
    color: #003C63;
    font-size: 2.8em;
}
.search-bar {
    display: flex;
    width: 100%;
    max-width: 350px;
}
.search-bar input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px;
}
.search-bar button {
    padding: 0 18px;
    border: 1px solid #003C63;
    background-color: #003C63;
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.1em;
}
.tags-section {
    margin-bottom: 50px;
}
.tags-section h3 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 15px;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.tags-list a {
    background-color: #f0f0f0;
    color: #555;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}
.tags-list a:hover {
    background-color: #003C63;
    color: white;
}
.news-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    color: white;
}
.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 60, 99, 0.9) 10%, rgba(0, 60, 99, 0.1) 70%, transparent 100%);
    z-index: 1;
}
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover img {
    transform: scale(1.05);
}
.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
}
.card-content-overlay time {
    display: block;
    font-size: 0.9em;
    margin-bottom: 10px;
    opacity: 0.9;
}
.card-content-overlay h2 {
    font-size: 1.4em;
    line-height: 1.4;
}
.load-more-container {
    text-align: center;
    margin-top: 50px;
}
.load-more-btn {
    background-color: #003C63;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.load-more-btn:hover {
    background-color: #005085;
}

/*
==============================================
ESTILOS PÁGINA "NOTÍCIA" (INTERNA)
==============================================
*/

.news-article-section {
    padding: 60px 0;
}
.article-header {
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}
.article-header h1 {
    font-size: 2.8em;
    color: #003C63;
    line-height: 1.3;
}
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    color: #666;
    font-size: 0.9em;
}
.article-category {
    color: #003C63;
    font-weight: 600;
    text-decoration: none;
}
.article-category:hover {
    text-decoration: underline;
}
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}
.social-share a {
    color: #666;
    font-size: 1.1em;
    transition: color 0.3s;
}
.social-share a:hover {
    color: #003C63;
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
}
.article-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5em;
}
.related-articles {
    padding: 70px 0;
    background-color: #f8f8f8;
}
.related-articles .related-title {
    text-align: center;
    color: #003C63;
    font-size: 2.2em;
    margin-bottom: 40px;
}

/*
==============================================
ESTILOS PÁGINA "FALE CONOSCO"
==============================================
*/

.contact-intro {
    padding: 60px 0;
}
.contact-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-box h2 {
    font-size: 1.8em;
    color: #003C63;
    margin-bottom: 15px;
}
.contact-info-box h3 {
    font-size: 1.2em;
    color: #003C63;
    margin-top: 20px;
    margin-bottom: 10px;
}
.contact-info-box p {
    line-height: 1.7;
    color: #555;
}
.contact-info-box p a {
    color: #003C63;
    font-weight: 600;
}
.contact-form-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}
.contact-form-section h3 {
    font-size: 1.5em;
    color: #003C63;
    margin-bottom: 20px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.contact-form-section input,
.contact-form-section textarea {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
}
.contact-form-section ::placeholder {
    color: #555;
    opacity: 1;
}
.submit-btn {
    background-color: #003C63;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #005085;
}

.faq-section {
    padding: 80px 0;
}
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 25px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #003C63;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.accordion-header i {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #333;
}
.accordion-content p {
    line-height: 1.7;
}
.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 25px;
}

/*
==============================================
RODAPÉ
==============================================
*/

.site-footer {
    background-color: #003C63;
    color: #ffffff;
    padding: 40px 0;
}
.footer-top, .footer-main, .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-top {
    margin-bottom: 30px;
}
.back-to-top-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.3s, border-color 0.3s;
}
.back-to-top-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    text-decoration: none;
}
.footer-social-icons {
    display: flex;
    gap: 15px;
}
.footer-social-icons a i {
    color: #ffffff;
    font-size: 22px;
    transition: color 0.3s;
}
.footer-social-icons a:hover i {
    color: #dddddd;
}
.footer-logo img {
    height: 45px;
}
.footer-privacy a {
    font-size: 14px;
    color: #ffffff;
}
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 25px 0;
}
.footer-bottom {
    font-size: 13px;
    color: #cccccc;
}
.footer-bottom a {
    color: #cccccc;
}
.footer-bottom a:hover {
    color: #ffffff;
}

/*
==============================================
REGRAS DE RESPONSIVIDADE
==============================================
*/

@media (max-width: 992px) {
    /* Notícias Home */
    .noticia-card {
        flex-basis: calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    .noticias-btn.prev { left: -15px; }
    .noticias-btn.next { right: -15px; }

    /* Página Sobre */
    .hero-sobre-content {
        width: 70%;
    }
    .governance-grid {
        grid-template-columns: 1fr;
    }
    .timeline {
        flex-direction: column;
        padding-top: 0;
        gap: 30px;
    }
    .timeline::before, .timeline-item::after {
        display: none;
    }
    .timeline-item {
        width: 100%;
    }
    .timeline-year {
        position: static;
        transform: none;
        text-align: left;
        margin-bottom: 10px;
    }
    .timeline-content {
        margin-top: 0;
        text-align: left;
    }
    
    /* Página Campanha de Arrecadação */
    .campaign-numbers-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "large-blue"
            "small-yellow-1"
            "small-yellow-2";
    }

    /* Página de Notícias */
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------------------------------------------------------------- */

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Cabeçalho Mobile */
    .icones-sociais {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .logo {
        width: 130px;
    }
    .nav-header .container {
        justify-content: flex-end;
        padding: 15px; /* Ajuste no padding para alinhar melhor o botão */
    }
    .hamburger-menu {
        display: flex;
    }
    .ul-header {
        display: none;
    }
    body.menu-open .ul-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px; /* Reduz o gap para caber mais itens */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #003C63;
        z-index: 5;
    }
    .ul-header a {
        font-size: 1.3rem; /* Ajuste no tamanho da fonte */
    }
    body.menu-open .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    body.menu-open .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    body.menu-open .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- AJUSTES PARA SUBMENU MOBILE (SANFONA) --- */
    .ul-header > li {
        width: 100%;
        text-align: center;
        flex-wrap: wrap; /* Permite que o submenu quebre a linha */
    }

    /* Remove o comportamento de menu suspenso do desktop em telas mobile */
    .has-submenu:hover > .submenu {
        display: none;
    }

    /* Estilo do submenu no mobile */
    .submenu {
        display: none; /* Começa escondido */
        position: static; /* Posição normal no fluxo, não mais flutuante */
        width: 100%;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transition: none;
        background-color: #004c7d; /* Um pouco mais escuro para diferenciar */
        padding: 5px 0;
        border-radius: 0;
    }

    /* Mostra o submenu quando o item pai tiver a classe 'submenu-open' */
    .has-submenu.submenu-open > .submenu {
        display: block;
    }

    .submenu li a {
        padding: 15px 20px;
        font-size: 1rem; /* Fonte um pouco menor que os itens principais */
        color: #e0e0e0;
    }

    .submenu li a:hover {
        background-color: #005a96;
        color: #ffffff;
    }

    /* Adiciona uma seta para indicar que o item tem um submenu */
    .has-submenu > a {
        position: relative;
    }

    .has-submenu > a::after {
        content: '▼';
        font-size: 0.7em;
        position: absolute;
        right: -25px; /* Posição da seta */
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    
    /* Gira a seta quando o submenu está aberto */
    .has-submenu.submenu-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Carrossel Principal Mobile */
    .carousel-container {
        aspect-ratio: 4 / 3;
    }
    .slide-content {
        width: 100%;
        clip-path: none;
        background-color: transparent;
    }
    .slide::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70%;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 20%, transparent);
        z-index: 1;
    }
    .text-wrapper {
        position: absolute;
        bottom: 30px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 0;
        text-align: center;
    }
    .text-wrapper h2 {
        font-size: 1.5em;
    }
    .text-wrapper .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .carousel-dots {
        bottom: 10px;
    }

    /* Seções Home Mobile */
    .frentes-div {
        flex-direction: column;
        gap: 20px;
    }
    .frentes-box {
        padding: 60px 20px;
        min-width: 100%;
    }
    .frentes-box-title-wrapper {
        top: 20px;
    }
    .frentes-box-title {
        font-size: 1.8rem;
    }
    .frentes-box-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    .noticia-card {
        flex-basis: 100%;
        min-width: 100%;
    }
    .newstaller-div {
        flex-direction: column;
        text-align: center;
    }
    .forms-newslatter {
        width: 100%;
    }

    /* Página Sobre Mobile */
    .hero-sobre-content {
        width: 100%;
        clip-path: none;
        padding: 30px;
    }
    .hero-sobre-content h2 {
        font-size: 1.8em;
    }
    
    /* Página Produtos Sociais Mobile */
    .partnership-content {
        flex-direction: column;
        text-align: center;
    }

    /* Página de Notícias Mobile */
    .news-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-bar {
        max-width: none;
    }
    
    /* Página Interna de Notícia Mobile */
    .article-header h1 {
        font-size: 2em;
    }
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Página Fale Conosco Mobile */
    .contact-intro-grid, .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Rodapé Mobile */
    .footer-top, .footer-main, .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .footer-social-icons a {
        margin: 0 10px;
    }
    .footer-main {
        padding-bottom: 20px;
    }
    .testimonials-grid{
        display: block;
    }

    .testimonial-card{
        
        padding: 30px;
    }

    .numbers-grid{
        display: block;
    }

    .stat-box-text, .stat-box-dark{
        margin-bottom: 20px;
    }
}

/* ------------------------------------------------------------------- */

@media (max-width: 576px) {
    /* Página de Notícias */
    .news-grid-container {
        grid-template-columns: 1fr;
    }
}