/* ============================================
   DESIGN SYSTEM — IAC CEARÁ (PREMIUM)
============================================ */
:root {
    --iac-primary: #071D41;
    --iac-secondary: #0D3272;
    --iac-accent: #071D41;
    --iac-accent-dark: #05142d;
    --iac-bg: #fcfdfe;
    --iac-white: #ffffff;
    --iac-text: #1e293b;
    --iac-muted: #64748b;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--iac-bg);
    color: var(--iac-text);
    margin: 0;
    /* overflow-x é controlado pelo base_site.html globalmente */
}

section[id] {
    scroll-margin-top: 140px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
}

/* ======= ANIMATIONS ======= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ======= HERO CAROUSEL INTERATIVO & UNIFICADO ======= */
#heroCarousel {
    border-radius: 0 0 60px 60px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* ======= PAINÉIS DECORATIVOS LATERAIS DO CARROSSEL ======= */
.hero-decor-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    width: clamp(64px, 5vw, 96px);
    z-index: 5;
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-decor-left {
    left: 0;
}

.hero-decor-right {
    right: 0;
}

.hero-decor-img {
    position: absolute;
    top: -1px;
    height: calc(100% + 2px);
    max-height: none;
    width: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero-decor-left .hero-decor-img {
    left: 0;
    transform: translateX(-18%);
}

.hero-decor-right .hero-decor-img {
    right: 0;
    transform: translateX(18%);
}

@media (max-width: 1199px) {
    /* Em viewports onde o container ocupa quase toda a largura, ocultar para evitar sobreposição */
    .hero-decor-panel {
        display: none !important;
    }
}

/* Barra de Progresso do Slide (Timer Animado) */
.hero-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 30;
    overflow: hidden;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #38bdf8 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    transition: width 0.1s linear;
}

.hero-slide {
    min-height: 720px;
    height: 750px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Slide com Imagem (Notícias / Banners) */
.hero-slide img.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.carousel-item.active .hero-slide img.hero-bg-img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 29, 65, 0.12) 0%, rgba(7, 29, 65, 0.42) 48%, rgba(7, 29, 65, 0.94) 100%),
        rgba(3, 15, 38, 0.20);
    z-index: 2;
}

/* Slide de Vagas 100% Automático (Sem Imagem) */
.hero-slide.hero-slide-vaga-emerald {
    background: linear-gradient(135deg, #071D41 0%, #064e3b 50%, #0D3272 100%);
}

.hero-slide.hero-slide-vaga-ocean {
    background: linear-gradient(135deg, #091A44 0%, #0D3272 50%, #047857 100%);
}

.hero-slide.hero-slide-talentos {
    background: linear-gradient(135deg, #071D41 0%, #047857 60%, #10b981 100%);
}

.hero-pattern-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 85% 75%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    background-size: 32px 32px, cover, cover;
    pointer-events: none;
    z-index: 2;
}

/* Conteúdo e Legendas */
.hero-caption {
    position: relative;
    color: white;
    width: min(100%, 960px);
    max-width: min(58vw, 960px);
    min-width: 0;
    z-index: 10;
    padding: 0;
}

#heroCarousel .hero-slide > .container {
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 6.5rem;
}

/* Badges de Categoria do Hero */
.badge-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-caption > .badge-hero-tag {
    margin-bottom: 1rem;
}

.badge-hero-tag.badge-hero-noticia {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.badge-hero-tag.badge-hero-vaga {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.45);
}

.badge-hero-tag.badge-hero-talentos {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.45);
}

.badge-hero-tag.badge-hero-institucional {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-caption h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.35rem, 3.15vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-caption p.hero-desc {
    font-size: clamp(0.98rem, 1.25vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
    line-height: 1.45;
    max-width: 780px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Pills de Detalhes da Vaga */
.vaga-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.2rem;
}

.vaga-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.45rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.vaga-pill-item i {
    color: #34d399;
}

/* Botões do Hero */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
}

.btn-hero-accent {
    background: #ffffff !important;
    color: var(--iac-primary) !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-hero-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
    background-color: #f8fafc !important;
    color: #071D41 !important;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Indicadores Interativos em Pílulas */
.hero-indicators-pills {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 25;
    background: rgba(7, 29, 65, 0.6);
    backdrop-filter: blur(14px);
    padding: 0.45rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-pill-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.hero-pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-pill-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45);
}

/* Setas de Navegação Personalizadas */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(7, 29, 65, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 20;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-nav-btn:hover {
    background: rgba(16, 185, 129, 0.85);
    border-color: #10b981;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.hero-nav-prev { left: 2rem; }
.hero-nav-next { right: 2rem; }

@media (max-width: 991px) {
    .hero-slide {
        min-height: 720px;
        height: 720px;
    }

    #heroCarousel .hero-slide > .container {
        padding-top: 2rem;
        padding-bottom: 6.25rem;
    }

    .hero-caption {
        width: 100%;
        max-width: 100%;
    }

    .hero-caption h2 {
        font-size: clamp(2.15rem, 4.8vw, 2.65rem);
    }

    .hero-caption p.hero-desc {
        font-size: 1rem;
    }

    .hero-nav-btn {
        display: none;
    }

    .hero-indicators-pills {
        max-width: calc(100% - 2rem);
        overflow-x: auto;
    }
}

@media (max-width: 767px) {
    #heroCarousel {
        border-radius: 0 0 36px 36px;
    }

    .hero-slide {
        min-height: 680px;
        height: auto;
        align-items: stretch;
    }

    #heroCarousel .hero-slide > .container {
        min-height: 680px;
        height: auto;
        padding: 4.5rem 1.5rem 2.5rem;
    }

    .hero-caption {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: auto 0;
    }

    .hero-caption > .d-flex {
        justify-content: center;
    }

    .hero-caption h2 {
        font-size: clamp(1.85rem, 8.5vw, 2.2rem);
        line-height: 1.08;
        margin-bottom: 0.9rem;
    }

    .hero-caption p.hero-desc {
        max-width: 100%;
        font-size: clamp(0.95rem, 4.5vw, 1.05rem);
        line-height: 1.4;
        -webkit-line-clamp: 4;
        margin-bottom: 1.1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }

    .hero-cta-group .btn-hero-primary,
    .hero-cta-group .btn-hero-accent,
    .hero-cta-group .btn-hero-outline {
        width: min(100%, 320px);
        justify-content: center;
    }
}

/* ======= SLIDE "ARTE PRONTA" (Plano 56) =======
   O banner que a Mídias desenha inteiro, com texto na própria arte. Nada vai
   por cima dele — nem overlay, nem selo, nem botão — e ele aparece INTEIRO:
   `object-fit: contain`, e não o `cover` das fotos, porque o slide não tem
   proporção fixa (750px de altura para qualquer largura de 992 a 1920+) e
   `cover` cortaria as bordas, onde a arte costuma ter texto.

   O slide continua com a altura dos outros (750px, 720px até 991px, 680px no
   celular): uma arte mais baixa faria a página pular a cada troca de slide.
   A sobra vira faixa no mesmo azul-marinho do resto do carrossel.

   A caixa da arte desconta os controles que ficam por cima do slide, para
   nenhum deles cobrir a arte:
   - em cima, 4px — a barra de progresso (`.hero-progress-container`), que
     existe em todas as larguras;
   - embaixo, 4.5rem (72px) a partir de 768px — a faixa das pílulas
     (`.hero-indicators-pills`: bottom 1.25rem + 46px de altura, medidos) —,
     e 5.25rem (84px) de 768 a 991px, onde a faixa pode ganhar rolagem;
   - dos lados, a partir de 992px, o maior entre as setas (2rem + 52px + 4px
     de folga = 88px) e os painéis decorativos (clamp(64px, 5vw, 96px),
     visíveis a partir de 1200px);
   - no celular, 16px embaixo por causa do raio dos cantos (ver o `@media`).

   Medido a 1400px (carrossel com 1385px de largura, 15px de barra de rolagem):
   caixa de 1209 × 674px, proporção 1,79:1 — praticamente 16:9, e por isso o
   tamanho recomendado no Painel é 1920×1080. A 390px: caixa de 390 × 660px,
   0,59:1 — praticamente 9:16, e por isso a imagem de celular recomendada é
   1080×1920. Handoff: `docs/agent-handoffs/plano-56-carrossel-manual.md`. */
.hero-slide.hero-slide--arte {
    background: linear-gradient(135deg, #071D41 0%, #0D3272 100%);
}

.hero-arte {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    padding: 4px 0 4.5rem;
    color: inherit;
    text-decoration: none;
}

a.hero-arte:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: -6px;
}

.hero-arte__imagem {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-arte__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 992px) {
    .hero-arte {
        padding-left: max(88px, clamp(64px, 5vw, 96px));
        padding-right: max(88px, clamp(64px, 5vw, 96px));
    }
}

/* De 768 a 991px a faixa de pílulas ganha rolagem horizontal própria quando
   não cabe (`overflow-x: auto` da seção do hero acima) — com 6 slides, a
   800px, ela mediu 61px em vez de 46 e cobria 9px da arte. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-arte {
        padding-bottom: 5.25rem;
    }
}

/* No celular não há pílulas, setas nem painéis: a arte usa o slide inteiro,
   menos a barra de progresso em cima e 16px embaixo — os cantos de baixo do
   carrossel têm 36px de raio aqui, e sem essa folga a curva comia a quina da
   arte (medido a 390px: com 16px, a quina fica 33px do centro da curva, por
   dentro dela). */
@media (max-width: 767.98px) {
    .hero-arte {
        padding: 4px 0 16px;
    }
}

/* ======= IMPACT SECTION ======= */
.impact-card {
    background: linear-gradient(135deg, var(--iac-primary) 0%, var(--iac-secondary) 100%);
    padding: 3rem 2rem;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(7, 29, 65, 0.25);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    color: white;
    position: relative;
    overflow: hidden;
}

.impact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(7, 29, 65, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.impact-number {
    position: relative;
    z-index: 2;
    font-size: 3.3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: block;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
}

.impact-label {
    position: relative;
    z-index: 2;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 0.82rem;
    font-family: 'Poppins', sans-serif;
}

/* Estrela decorativa por card — marca d'água atrás do número, contida pelo
   overflow:hidden do .impact-card. Faz fade-in de 0 a 1 junto com a contagem
   do número (ver IntersectionObserver em extra_js). Configuração aprovada
   pelo time de design: tamanho 230px, sem rotação, opacidade final 1.0. */
.impact-star {
    position: absolute;
    z-index: 1;
    width: 230px;
    height: auto; /* imagens são 1080x1350 (4:5) — height:230px esticava 20% */
    opacity: 0;
    pointer-events: none;
}

.impact-star--tl {
    top: -115px;
    left: -92px;
}

.impact-star--br {
    bottom: -115px;
    right: -92px;
}

/* "Verde" não é um arquivo novo — é estrela-amarela.png com um filtro de matiz. */
.impact-star--green {
    filter: hue-rotate(90deg) saturate(1.1) brightness(0.45);
}

/* ======= MISSION SECTION ======= */
.mission-section {
    padding: 120px 0;
    background-color: var(--iac-white);
}

.mission-img-wrap {
    position: relative;
    padding: 20px;
}

.mission-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18);
}

.mission-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--iac-primary) 0%, var(--iac-secondary) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.8rem;
    box-shadow: 0 20px 40px rgba(7, 29, 65, 0.45);
    animation: float 5s ease-in-out infinite;
    z-index: 5;
    text-align: center;
}

/* ======= PROJECTS SHOWCASE ======= */
.projects-section {
    padding: 110px 0 90px;
    position: relative;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-media {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(7, 29, 65, 0.12);
    background: var(--iac-primary);
}

.project-media img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 29, 65, 0.08) 20%, rgba(7, 29, 65, 0.5) 100%);
}

.project-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: var(--iac-primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    box-shadow: 0 8px 20px rgba(7, 29, 65, 0.08);
}

.project-meta {
    padding: 1.35rem 0.7rem 0;
    text-align: center;
}

.project-meta h3 {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.65rem;
    color: #081226;
}

.project-meta p {
    color: var(--iac-muted);
    max-width: 290px;
    margin: 0 auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--iac-accent);
    font-weight: 700;
}

.text-accent {
    color: #3B82F6;
}

.fw-800 {
    font-weight: 800;
}

@media (max-width: 992px) {
    .donation-section {
        padding: 4rem 1.5rem;
    }

    .contact-card {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .mission-badge {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 30px;
        text-align: center;
    }

    .mission-img {
        height: 350px;
    }

    .donation-section {
        padding: 3rem 1rem;
        margin: 30px 10px;
        border-radius: 30px;
    }

    .pix-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .certificates-grid {
        gap: 1.5rem;
    }

    .cert-item {
        width: 110px;
    }

    .cert-icon-wrapper {
        width: 85px;
        height: 85px;
        border-radius: 18px;
        padding: 8px;
    }

    .cert-name {
        font-size: 0.7rem;
        margin-top: 0.75rem;
    }

    .partner-logo-container {
        height: 75px;
        min-width: 135px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .partner-logo {
        max-height: 48px;
        max-width: 105px;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
        border-radius: 28px;
    }

    .contact-card h2 {
        font-size: 2rem;
        text-align: center;
    }

    .contact-card p {
        text-align: center;
    }
}
/* ======= DONATION SECTION ======= */
.donation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--iac-primary) 0%, var(--iac-secondary) 100%);
    border-radius: 60px;
    margin: 40px 20px;
    color: white;
    box-shadow: 0 20px 50px rgba(7, 29, 65, 0.15);
    position: relative;
    overflow: hidden;
}

/* Fileira vertical dos 5 elementos institucionais na borda esquerda,
   mesclada com a borda (mesma lógica da .home-institucional, só vertical).
   Populada via JS porque a sequência é sorteada sem repetir cor seguida.
   Aprovado: opacidade 0.90, 56px cada, espaçamento -20px (sobrepostos),
   borda a 50%. */
.donation-section .vstrip {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;
    transform: translateX(-50%);
}
.donation-section .vstrip img {
    flex: 0 0 auto;
    width: 56px;
    height: auto;
    opacity: 0.9;
}
.donation-section .vstrip img + img {
    margin-top: -20px;
}
.donation-section .text-accent {
    color: #93c5fd; /* Azul mais claro e vibrante para excelente contraste no fundo escuro */
}
.donation-section h2 {
    color: white;
}
.donation-section img {
    border: 6px solid var(--iac-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}
.donation-section img:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--iac-secondary);
}

/* A arte da seção é um recorte com fundo transparente (Plano 50). A borda e a
   sombra da regra acima valem para foto retangular: sobre um recorte elas
   desenham a moldura e a sombra do retângulo invisível em volta dele. */
.donation-section img.donation-art {
    border: 0;
    box-shadow: none;
    /* A arte acompanha a coluna em vez de parar numa largura fixa. O teto de
       660px e a propria largura da `col-lg-6` quando o `.container` do Bootstrap
       chega ao maximo (1320px), entao a arte enche a coluna e nunca passa dela. */
    width: 100%;
    max-width: 660px;
}
/* O recorte e arte de fundo, nao uma foto clicavel: o efeito de levantar no
   hover herdado de `.donation-section img` deslocaria a arte sangrada. */
.donation-section img.donation-art:hover {
    transform: none;
}

/* Sangria (so no desktop, onde as colunas ficam lado a lado).

   Ajuste 2 (Plano 51): o container da sangria passa a ser a `.donation-section`
   (o cartao) em vez da coluna — ela ja e `position: relative` com
   `overflow: hidden` e e a borda do cartao que a arte deve encostar, nao o meio
   da coluna. Por isso a coluna deixa de ser `position: relative` (a arte nao se
   ancora mais nela) e a arte ancora em `top: 0; right: 0` da secao. A largura
   vira percentual (`48%`) da secao, e nao mais 100% da coluna, para manter a
   mesma proporcao entre a arte e a coluna de texto nas larguras medidas. */
@media (min-width: 992px) {
    .donation-section .donation-art-col {
        align-self: stretch;
    }
    .donation-section .donation-art-col img.donation-art {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        width: 48%;
        max-width: 660px;
        height: auto;
        transform: none;
    }
    .donation-section .donation-art-col img.donation-art:hover {
        transform: none;
    }
}
.pix-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(7, 29, 65, 0.05);
    color: var(--iac-text); /* Garante que o texto dentro do card branco continue escuro */
}
.pix-code {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 12px;
    font-family: monospace;
    font-weight: 700;
    word-break: break-all;
    margin: 1.5rem 0;
    color: var(--iac-text);
}

/* ======= NEWS & VAGAS CARDS ======= */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}
.card-iac {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f1f5f9;
}
.card-iac:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(7, 29, 65, 0.1);
}
.card-iac-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}
.card-iac-body {
    padding: 1.5rem;
}
.card-iac-project {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-iac-project:hover {
    text-decoration: none;
    color: inherit;
}
.card-iac-project .card-iac-body {
    text-align: left;
}
.card-iac-project .project-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.empty-state-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px dashed rgba(7, 29, 65, 0.18);
    border-radius: 24px;
    padding: 3rem 2rem;
}

/* ======= PARTNERS SCROLL ======= */
.partners-wrapper {
    overflow: hidden;
    padding: 35px 0;
    background: transparent;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: partners-scroll 40s linear infinite;
}

.partners-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 16px;
    padding-right: 16px;
}

.partners-wrapper:hover .partners-track,
.partners-wrapper:focus-within .partners-track {
    animation-play-state: paused;
}

@keyframes partners-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item-link {
    display: inline-block;
    vertical-align: middle;
    outline: none;
    text-decoration: none;
}

.partner-item-static {
    cursor: default;
}

.partner-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    min-width: 170px;
    max-width: 220px;
    padding: 14px 22px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 3px 10px rgba(7, 29, 65, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.partner-item-link:focus-visible .partner-logo-container,
.partner-item-static:focus-visible .partner-logo-container {
    outline: 2px solid var(--iac-accent, #0ea5e9);
    outline-offset: 3px;
}

/* Logos: Full color in normal state, crisp and contained */
.partner-logo {
    max-height: 60px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: none;
    opacity: 1;
    transition: transform 0.25s ease;
}

/* Hover, focus-visible and focus-within for Parceiros */
.partner-item-link:hover .partner-logo-container,
.partner-item-link:focus-visible .partner-logo-container,
.partner-item-link:focus-within .partner-logo-container,
.partner-item-static:hover .partner-logo-container,
.partner-item-static:focus-visible .partner-logo-container,
.partner-item-static:focus-within .partner-logo-container {
    background: linear-gradient(135deg, #071d41 0%, #0d3b66 100%);
    border-color: #0ea5e9;
    box-shadow: 0 12px 26px rgba(7, 29, 65, 0.22);
    transform: translateY(-4px);
}

.partner-item-link:hover .partner-logo-container.has-image .partner-logo,
.partner-item-link:focus-visible .partner-logo-container.has-image .partner-logo,
.partner-item-link:focus-within .partner-logo-container.has-image .partner-logo,
.partner-item-static:hover .partner-logo-container.has-image .partner-logo,
.partner-item-static:focus-visible .partner-logo-container.has-image .partner-logo,
.partner-item-static:focus-within .partner-logo-container.has-image .partner-logo {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: scale(1.02);
    filter: none !important;
    opacity: 1 !important;
}

.partner-item-link:hover .partner-logo,
.partner-item-link:focus-visible .partner-logo,
.partner-item-link:focus-within .partner-logo,
.partner-item-static:hover .partner-logo,
.partner-item-static:focus-visible .partner-logo,
.partner-item-static:focus-within .partner-logo {
    transform: scale(1.02);
    filter: none !important; /* Preserves full original logo colors */
}

/* Fallback card when no logo image */
.partner-logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.partner-logo-fallback i {
    font-size: 1.3rem;
    color: var(--iac-primary, #071d41);
    transition: color 0.25s ease;
}

.partner-item-link:hover .partner-logo-fallback,
.partner-item-link:focus-visible .partner-logo-fallback,
.partner-item-link:focus-within .partner-logo-fallback,
.partner-item-static:hover .partner-logo-fallback,
.partner-item-static:focus-visible .partner-logo-fallback,
.partner-item-static:focus-within .partner-logo-fallback {
    color: #ffffff;
}

.partner-item-link:hover .partner-logo-fallback i,
.partner-item-link:focus-visible .partner-logo-fallback i,
.partner-item-link:focus-within .partner-logo-fallback i,
.partner-item-static:hover .partner-logo-fallback i,
.partner-item-static:focus-visible .partner-logo-fallback i,
.partner-item-static:focus-within .partner-logo-fallback i {
    color: #38bdf8;
}

/* ======= CONTACT SECTION ======= */
.contact-card {
    background: var(--iac-primary);
    color: white;
    padding: 4rem;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}
.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
}
.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--iac-accent);
    color: white;
    box-shadow: none;
}
.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1;
}

/* ==========================================================================
   10. CERTIFICADOS & SELOS SECTION
   ========================================================================== */
.home-certificados-section {
    padding: 5rem 0;
}

.certificates-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 12px;
    border-radius: 24px;
    border: 1.5px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    max-width: 160px;
}

.cert-item:focus-visible {
    outline: 2px solid var(--iac-accent, #0ea5e9);
    outline-offset: 4px;
}

.cert-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(7, 29, 65, 0.05);
    padding: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Logos: Full color in normal state, crisp and contained */
.cert-logo-img,
.cert-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.25s ease;
}

/* Icon fallback in normal state */
.cert-icon-wrapper i {
    font-size: 2.8rem;
    color: var(--iac-primary, #071d41);
    transition: color 0.25s ease, transform 0.25s ease;
}

.cert-name {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.35;
    transition: color 0.25s ease;
    text-align: center;
    word-break: break-word;
}

/* Hover, focus-visible and focus-within states for Certificados */
.cert-item:hover,
.cert-item:focus-visible,
.cert-item:focus-within {
    background: linear-gradient(135deg, #071d41 0%, #0d3b66 100%);
    border-color: #0ea5e9;
    box-shadow: 0 12px 28px rgba(7, 29, 65, 0.22);
    transform: translateY(-4px);
}

.cert-item:hover .cert-icon-wrapper,
.cert-item:focus-visible .cert-icon-wrapper,
.cert-item:focus-within .cert-icon-wrapper {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-item:hover .cert-icon-wrapper:not(.has-image),
.cert-item:focus-visible .cert-icon-wrapper:not(.has-image),
.cert-item:focus-within .cert-icon-wrapper:not(.has-image) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.cert-item:hover .cert-logo-img,
.cert-item:focus-visible .cert-logo-img,
.cert-item:focus-within .cert-logo-img,
.cert-item:hover .cert-icon-wrapper img,
.cert-item:focus-visible .cert-icon-wrapper img,
.cert-item:focus-within .cert-icon-wrapper img {
    transform: scale(1.05);
    filter: none !important; /* Preserves full original colors, no blue tint filter */
}

.cert-item:hover .cert-icon-wrapper i,
.cert-item:focus-visible .cert-icon-wrapper i,
.cert-item:focus-within .cert-icon-wrapper i {
    color: #38bdf8;
    transform: scale(1.08);
}

.cert-item:hover .cert-name,
.cert-item:focus-visible .cert-name,
.cert-item:focus-within .cert-name {
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation-duration: 70s;
    }
    .cert-item,
    .cert-icon-wrapper,
    .cert-logo-img,
    .partner-logo-container,
    .partner-logo {
        transition: none !important;
        transform: none !important;
    }
}


/* ======= SOCIAL REDES SECTION ======= */
.social-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--iac-primary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: 0 8px 20px rgba(7, 29, 65, 0.06);
    background-color: white;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(7, 29, 65, 0.15);
}

.social-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.social-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.social-card:hover .social-img-wrapper img {
    transform: scale(1.05);
}

.social-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 65, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover .social-overlay {
    opacity: 1;
}

.social-overlay i {
    font-size: 2.5rem;
    color: white;
}

/* Play button circle style for YouTube video overlay */
.play-btn-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: transform 0.3s ease;
}

.social-card:hover .play-btn-circle {
    transform: scale(1.1);
    background-color: rgba(220, 38, 38, 0.9); /* Red YouTube color on hover */
    border-color: rgba(220, 38, 38, 0.9);
}

/* Custom styled tabs navigation */
#socialTab .nav-link {
    background-color: #e6eef8;
    color: var(--iac-primary);
    border: 1px solid #d0e1f4;
}

#socialTab .nav-link.active {
    background-color: var(--iac-primary) !important;
    color: white !important;
    border-color: var(--iac-primary);
    box-shadow: 0 8px 20px rgba(7, 29, 65, 0.2);
}

/* Buttons style */
.btn-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220, 39, 67, 0.3);
    opacity: 0.95;
}

.btn-youtube {
    background-color: #ff0000;
    color: white !important;
}

.btn-youtube:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(204, 0, 0, 0.3);
}

/* ============================================
   SEPARADOR VISUAL CARROSSEL - INSTITUCIONAL
============================================ */
.carousel-separator {
    width: 100%;
    min-height: clamp(2rem, 4vw, 4rem);
    background-color: var(--iac-bg);
}

/* ============================================
   SEÇÃO INSTITUCIONAL — FASE 2
============================================ */
.home-institucional {
    background: linear-gradient(135deg, #05142e 0%, #071D41 45%, #0D3272 100%);
    position: relative;
    padding: 5rem 0 4.5rem;
    color: #ffffff;
    overflow: hidden;
    border-radius: 0;
}

.home-institucional::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.home-institucional__container {
    position: relative;
    z-index: 2;
}

.home-institucional__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-institucional__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #38bdf8;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.home-institucional__badge i {
    font-size: 1rem;
    color: #38bdf8;
}

.home-institucional__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.home-institucional__text {
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 2.25rem;
}

.home-institucional__cta {
    display: flex;
    align-items: center;
}

.home-institucional__btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    min-height: 48px;
}

.home-institucional__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    text-decoration: none !important;
}

.home-institucional__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.5);
}

.home-institucional__btn i {
    transition: transform 0.3s ease;
}

.home-institucional__btn:hover i {
    transform: translateX(4px);
}

.home-institucional__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-institucional__logo-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 2.75rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    max-width: 380px;
    width: 100%;
}

.home-institucional__logo-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.home-institucional__logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

/* Fileira horizontal dos 5 elementos institucionais, repetida e mesclada com
   a borda superior/inferior da seção (mesma lógica do carrossel principal,
   só que na horizontal). Populada via JS (ver extra_js) porque a sequência
   de cores é sorteada sem repetir a mesma duas vezes seguidas. Configuração
   aprovada: opacidade 0.90, 70px cada, espaçamento 22px, borda a 50%. */
.home-institucional .inst-strip {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow: hidden;
}
.home-institucional .inst-strip.top { top: 0; transform: translateY(-50%); }
.home-institucional .inst-strip.bottom { bottom: 0; transform: translateY(50%); }
.home-institucional .inst-strip img {
    flex: 0 0 auto;
    width: 70px;
    height: auto;
    opacity: 0.9;
}

/* Responsividade */
@media (max-width: 991px) {
    .home-institucional {
        padding: 4rem 0 3.5rem;
    }
    .home-institucional__title {
        font-size: 2.1rem;
    }
    .home-institucional__logo-box {
        max-width: 320px;
        padding: 2rem;
    }
    .home-institucional__logo {
        max-width: 200px;
    }
}

@media (max-width: 767px) {
    .home-institucional {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }
    .home-institucional__content {
        align-items: center;
    }
    .home-institucional__title {
        font-size: 1.75rem;
    }
    .home-institucional__text {
        font-size: 0.98rem;
        margin-bottom: 1.75rem;
    }
    .home-institucional__cta {
        justify-content: center;
        width: 100%;
    }
    .home-institucional__btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .home-institucional__visual {
        margin-top: 1.5rem;
    }
    .home-institucional__logo-box {
        max-width: 240px;
        padding: 1.5rem;
    }
    .home-institucional__logo {
        max-width: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-institucional__btn,
    .home-institucional__btn i,
    .home-institucional__logo {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   FASE 3: SEÇÃO DE PARTICIPAÇÃO (TRABALHE CONOSCO & VOLUNTARIADO)
   ========================================================================== */

.home-participacao {
    position: relative;
    padding: 5.5rem 0;
    background: linear-gradient(135deg, #000f51 0%, #071d41 55%, #0d3272 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    overflow: hidden;
}

.home-participacao__header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.home-participacao__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
}

.home-participacao__badge i {
    color: #38bdf8;
    font-size: 0.95rem;
}

.home-participacao__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-participacao__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin: 0;
}

.home-participacao__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.home-participacao__card {
    background: linear-gradient(145deg, rgba(13, 50, 114, 0.96) 0%, rgba(0, 15, 81, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 40px rgba(0, 6, 36, 0.3);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-participacao__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.home-participacao__card--trabalho:hover::before {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.home-participacao__card--voluntariado:hover::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

.home-participacao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(0, 6, 36, 0.42);
    border-color: #38bdf8;
}

.home-participacao__card-body {
    margin-bottom: 2rem;
}

.home-participacao__icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.home-participacao__card:hover .home-participacao__icon-box {
    transform: scale(1.08);
}

.home-participacao__icon-box--trabalho {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.home-participacao__icon-box--voluntariado {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

/* 2026-09-14: a caixa do card Voluntariado carrega a marca do IAC em vez de um
   ícone.
   2026-09-15 (hotfix portal 4): é só o SÍMBOLO (estrela), em branco puro e sem
   o nome do Instituto — `simbolo_iac_branco.png`, 400x362, gerado por
   `scripts/gerar_simbolo_branco.py`. A caixa continua 60x60 (52x52 na faixa
   estreita); o símbolo é limitado pelos dois lados (`max-width`/`max-height`)
   para caber inteiro na área útil e fica centralizado pelo flex da caixa. */
.home-participacao__icon-box--simbolo {
    padding: 5px;
}
.home-participacao__simbolo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-participacao__card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.home-participacao__card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
    margin: 0;
}

.home-participacao__card-footer {
    margin-top: auto;
}

.home-participacao__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none !important;
    min-height: 48px;
    transition: all 0.25s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.home-participacao__btn:focus-visible {
    outline: 3px solid #0284c7;
    outline-offset: 3px;
}

.home-participacao__btn--trabalho {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(7, 29, 65, 0.18);
}

.home-participacao__btn--trabalho:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(7, 29, 65, 0.28);
}

.home-participacao__btn--trabalho i {
    transition: transform 0.25s ease;
}

.home-participacao__btn--trabalho:hover i {
    transform: translateX(4px);
}

.home-participacao__btn--voluntariado {
    background: #059669;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
}

.home-participacao__btn--voluntariado:hover {
    background: #047857;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.3);
}

.home-participacao__btn--voluntariado i {
    transition: transform 0.25s ease;
}

.home-participacao__btn--voluntariado:hover i {
    transform: translateY(-2px) translateX(2px);
}

.home-participacao__btn--disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62) !important;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

/* Estrelas grandes de fundo — aprovado: amarela no canto superior-esquerdo
   (atrás do card "Trabalhe Conosco"), rosa no canto inferior-direito (atrás
   do "Voluntariado"). Opacidade 0.90.
   Hotfix H3 (2026-09-23): tamanho fluido e centro de cada estrela posicionado
   por porcentagem da própria imagem, medido pelo SM na varredura do canal
   alfa (estrela-amarela.png: centro em 49,7%/47,5%; estrela-rosa.png: centro
   em 47,7%/51,3%). Assim o canto da seção cai sempre dentro do miolo sólido
   da estrela, em qualquer largura, sem "frestinha" de fundo azul.
   Ajuste de revisão do SM (mesmo dia): como só um quarto de cada estrela
   fica visível (o resto sai da seção pelo overflow:hidden), o raio visível
   com 300–440px ficava perto do tamanho visível de antes — não "maior" como
   o responsável pediu. `clamp(360px, 40vw, 600px)` dá ~30% mais raio visível
   a 1400px e ~20% mais no celular (conta no handoff).
   z-index 0 (abaixo do conteúdo, que fica em z-index 2) garante que cartões
   e cabeçalho fiquem sempre à frente, inclusive no celular. */
.home-participacao__star {
    position: absolute;
    z-index: 0;
    width: clamp(360px, 40vw, 600px);
    height: auto;
    opacity: 0.9;
    pointer-events: none;
}
.home-participacao__star--tl { top: 0; left: 0; transform: translate(-49.7%, -47.5%); }
.home-participacao__star--br { right: 0; bottom: 0; transform: translate(52.3%, 48.7%); }

/* Responsividade */
@media (max-width: 991px) {
    .home-participacao {
        padding: 4.5rem 0;
    }
    .home-participacao__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .home-participacao__card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .home-participacao {
        padding: 3.5rem 0;
    }
    .home-participacao__header {
        margin-bottom: 2.5rem;
    }
    .home-participacao__title {
        font-size: 1.75rem;
    }
    .home-participacao__subtitle {
        font-size: 0.95rem;
    }
    .home-participacao__card {
        padding: 1.75rem 1.5rem;
    }
    .home-participacao__icon-box {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    .home-participacao__card-title {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-participacao__card,
    .home-participacao__icon-box,
    .home-participacao__btn,
    .home-participacao__btn i {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}
