/* ACNSG - estilo refeito (header funcional, layout limpo) */

:root {
    --navy:     #0d2453;
    --navy-2:   #14306b;
    --gold:     #d4af5a;
    --gold-2:   #e8c264;
    --gold-ink: #8a6410;   /* dourado ESCURO — para TEXTO sobre fundo claro (contraste WCAG AA) */
    --green:    #8bc34a;
    --green-2:  #6ea83a;
    --text:     #1a1a1a;
    --muted:    #666;
    --bg:       #ffffff;
    --bg-soft:  #f7f7f9;
    --border:   #e5e5e5;
    --error:    #b3261e;
    --success:  #1f7d3a;
    --font:     'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --container: 1280px;
    --radius:   999px;
    --radius-card: 12px;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); line-height: 1.6; color: var(--text); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.2; margin: 0 0 1rem; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 9999; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER (refeito - simples e funcional) ===== */
.site-header {
    background: var(--navy);
    color: #fff;
    border-bottom: 3px solid var(--gold);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}
.brand:hover { color: var(--gold); }
.brand-logo {
    width: 95px;
    height: 95px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}
.brand-text strong {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.05em;
}
.brand-text small {
    font-size: 0.7rem;
    color: #b8c0d4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}
@media (max-width: 700px) {
    .brand-text small { display: none; }
    .brand-logo { width: 72px; height: 72px; }
    .brand-text strong { font-size: 1.35rem; }
}

/* ===== MENU ===== */
.main-nav { position: relative; }
.nav-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
}
.nav-item a {
    color: #fff;
    font-weight: 600;
    font-size: 1.02rem;
    padding: 0.5rem 0;
    transition: color .2s;
    white-space: nowrap;
}
.nav-item a:hover, .nav-item.active a { color: var(--gold); }
.nav-item.nav-cta a {
    background: var(--gold);
    color: var(--navy);
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius);
    font-weight: 700;
}
.nav-item.nav-cta a:hover { background: var(--gold-2); color: var(--navy); }

.nav-toggle {
    display: none;
    width: 32px; height: 28px;
    background: none; border: none; cursor: pointer; padding: 0;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; width: 100%; height: 3px; background: var(--gold); border-radius: 2px; }

@media (max-width: 1200px) {
    .nav-list { gap: 1rem; }
    .nav-item a { font-size: 0.92rem; }
}
@media (max-width: 980px) {
    .nav-toggle { display: flex; }
    .nav-list {
        position: absolute; top: calc(100% + 3px); right: 0;
        flex-direction: column; align-items: flex-start;
        background: var(--navy);
        padding: 1rem;
        min-width: 250px;
        border: 1px solid var(--navy-2);
        border-radius: 0 0 var(--radius-card) var(--radius-card);
        box-shadow: 0 12px 30px rgba(0,0,0,.3);
        display: none;
    }
    .main-nav.open .nav-list { display: flex; }
    .nav-item { width: 100%; }
    .nav-item a { font-size: 0.95rem; }
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1.2;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-2px); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-2); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0a1a3d 0%, #1a3268 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 0 5rem;
    position: relative;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lead { font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 60ch; margin: 0 auto 1.5rem; color: #f0f2f7; }
.hero .btn { margin: 0.4rem; }

/* Onda decorativa abaixo do hero (não corta texto) */
.hero + .wave-divider, .wave-divider {
    background: var(--bg);
    height: 50px;
    margin-top: -50px;
    position: relative;
    pointer-events: none;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }

/* ===== SEÇÕES ===== */
section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2 { color: #fff; }

.text-center { text-align: center; }
.lead-text { font-size: 1.05rem; color: var(--muted); max-width: 70ch; margin: 0 auto 1rem; }

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.card a { display: block; color: inherit; height: 100%; }
.card a:hover { color: inherit; }
.card figure img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card h2, .card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--navy); }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.75rem; }
.card .link-arrow {
    display: inline-block;
    color: var(--gold-ink);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.card .link-arrow::after { content: ' →'; }

/* ===== STATS ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.stat-num { display: block; font-size: 2.8rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #d4d8e4; margin-top: 0.5rem; }

/* ===== PEOPLE GRID (Conselho) ===== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.person-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    text-align: center;
    transition: transform .2s;
}
.person-card:hover { transform: translateY(-3px); }
.person-card .person-name { font-weight: 800; color: var(--navy); margin: 0 0 0.25rem; font-size: 1.1rem; }
.person-card .person-role { color: var(--gold-ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ===== DOC LIST (Transparencia) ===== */
.doc-list { list-style: none; padding: 0; margin: 0; max-width: 800px; }
.doc-list li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.doc-list li::before {
    content: '📄';
    font-size: 1.5rem;
}

/* ===== GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.gallery figure {
    overflow: hidden;
    border-radius: var(--radius-card);
}
.gallery figure img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .3s;
}
.gallery figure:hover img { transform: scale(1.05); }

/* ===== FORM ===== */
.form-section { background: var(--bg-soft); }
.form { max-width: 720px; margin: 1.5rem auto 0; }
.form-row { margin-bottom: 1.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.25rem; }
.form input, .form select, .form textarea {
    display: block; width: 100%;
    padding: 0.75rem 1rem;
    font: inherit;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--gold);
}
.req { color: var(--error); }
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.25rem; border-left: 4px solid; }
.alert-success { background: #e7f5ec; color: var(--success); border-color: var(--success); }
.alert-error { background: #fdecea; color: var(--error); border-color: var(--error); }

/* ===== PIX / DOAÇÃO ===== */
.pix-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin: 1rem 0;
}
.pix-card code {
    font-size: 1.1rem; font-weight: 700;
    color: var(--navy);
    background: var(--bg-soft);
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
}
.donate-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: #d4d8e4; padding: 4rem 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 { color: var(--gold); margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col p, .footer-col li { font-size: 0.9rem; }
.footer-col a { color: #d4d8e4; }
.footer-col a:hover { color: var(--gold); }
.footer-logo { width: 80px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links li::before { content: '› '; color: var(--gold); }
.social-icons { display: flex; gap: 0.5rem; margin-top: 1rem; }
.social-icons a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    color: var(--gold);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all .2s;
}
.social-icons a:hover { background: var(--gold); color: var(--navy); }

/* Coluna do logo: CNPJ flui natural, com respiro mínimo */
.footer-grid > .footer-col:first-child p:last-child {
    margin-top: 0.75rem;
}
.footer-logo { margin-top: -1.875rem; margin-bottom: 0.5rem; }
.footer-endereco-inline {
    color: #b8c0d4;
    text-decoration: none;
    transition: color .2s;
}
.footer-endereco-inline:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1rem 0;
    text-align: center;
    color: #98a0b3;
    font-size: 0.85rem;
}
.footer-bottom p { margin: 0.2rem 0; }
.footer-bottom .footer-dev { font-size: 0.78rem; color: #7a8298; }
.footer-bottom .footer-dev a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-bottom .footer-dev a:hover { text-decoration: underline; }

/* ===== Contact grid responsive ===== */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr !important; }
}

/* ===== Hero com padrao decorativo (sutil) ===== */
.hero {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(212,175,90,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139,195,74,0.06) 0%, transparent 40%),
        linear-gradient(135deg, #0a1a3d 0%, #1a3268 100%);
}

/* ===== Person cards (Conselho) - melhoria visual ===== */
.person-card {
    position: relative;
    overflow: hidden;
}
.person-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

/* ===== Doc list - hover effect ===== */
.doc-list li {
    transition: all .2s;
}
.doc-list li:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transform: translateX(4px);
}
.doc-list a {
    color: var(--navy);
    font-weight: 600;
    flex: 1;
}
.doc-list a:hover { color: var(--gold); }

/* ===== Pix-card center align ===== */
.pix-card { justify-content: center; }
@media (max-width: 600px) {
    .pix-card { text-align: center; flex-direction: column; }
    .pix-card code { font-size: 1rem; word-break: break-all; }
}

/* ===== Mobile menu - melhorias ===== */
@media (max-width: 980px) {
    .header-inner { padding: 0.875rem 1rem; }
    .hero { padding: 3rem 0 4rem; }
}

/* ===== Botões alinhados em mobile ===== */
@media (max-width: 600px) {
    .hero .btn { display: block; margin: 0.5rem auto; max-width: 280px; }
    .donate-buttons { flex-direction: column; }
    .donate-buttons .btn { width: 100%; }
}

/* ===== Stat-grid - melhor mobile ===== */
@media (max-width: 720px) {
    .stat-num { font-size: 2.2rem; }
}

/* ===== Lista (ul) na pagina Instituicao ===== */
section ul:not(.footer-links):not(.doc-list):not(.nav-list) {
    list-style: none;
    padding-left: 0;
}
section ul:not(.footer-links):not(.doc-list):not(.nav-list) li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}
section ul:not(.footer-links):not(.doc-list):not(.nav-list) li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
    font-size: 1.2rem;
}

/* ===== HERO com vídeo de fundo ===== */
.hero-video {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    padding: 6rem 0 7rem;
}
.hero-video-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    background: var(--navy);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,36,83,0.75) 0%, rgba(26,50,104,0.65) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-video h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,.4);
}
@media (prefers-reduced-motion: reduce) {
    .hero-video-bg { display: none; }
}
@media (max-width: 600px) {
    .hero-video { min-height: 380px; padding: 4rem 0 5rem; }
}

/* ===== Grid dos ODS (Objetivos de Desenvolvimento Sustentável) ===== */
.ods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem auto 0;
    max-width: 1000px;
}
.ods-grid figure {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #fff;
    transition: transform .25s, box-shadow .25s;
}
.ods-grid figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.ods-grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* ODS são quadrados, então cover preserva */
    object-position: center;
    display: block;
}
@media (max-width: 600px) {
    .ods-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ===== HERO com iframe do YouTube (alternativa ao vídeo self-hosted) ===== */
.hero-youtube-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;       /* impede clique no iframe */
    background: var(--navy);
}
.hero-youtube-bg iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw;
    height: 56.25vw;            /* 16:9 — width / 16 * 9 */
    min-width: 177.78vh;        /* 16:9 — quando altura é maior */
    min-height: 100vh;
    transform: translate(-50%, -50%);
    border: 0;
}
/* Quando dentro do hero (altura limitada): garantir cobertura total */
.hero-video .hero-youtube-bg iframe {
    min-height: 100%;
    min-width: 100%;
}

/* ===== Dropdown "Quem Somos" no menu ===== */
.nav-item.has-dropdown { position: relative; }
.nav-dropdown-toggle {
    background: none; border: none; cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 1.02rem;
    padding: 0.5rem 0;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color .2s;
    white-space: nowrap;
}
.nav-dropdown-toggle:hover,
.nav-item.has-dropdown.active > .nav-dropdown-toggle,
.nav-item.has-dropdown:hover > .nav-dropdown-toggle { color: var(--gold); }
.nav-dropdown-toggle .caret {
    transition: transform .2s;
    flex-shrink: 0;
}
.nav-item.has-dropdown:hover .nav-dropdown-toggle .caret,
.nav-item.has-dropdown[aria-expanded="true"] .nav-dropdown-toggle .caret { transform: rotate(180deg); }

.dropdown {
    list-style: none;
    margin: 0; padding: 0.5rem 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 200;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown,
.nav-item.has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Pequena seta apontando pra cima na dropdown */
.dropdown::before {
    content: '';
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 14px;
    background: #fff;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    rotate: 45deg;
}
.dropdown li { display: block; }
.dropdown a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all .15s;
    border-left: 3px solid transparent;
}
.dropdown a:hover {
    background: var(--bg-soft);
    color: var(--gold);
    border-left-color: var(--gold);
}
.dropdown li.active a {
    color: var(--gold);
    border-left-color: var(--gold);
    background: var(--bg-soft);
}

/* No mobile: dropdown expande como sub-itens recuados */
@media (max-width: 980px) {
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.5rem 0;
    }
    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        min-width: 0;
        display: none;
    }
    .dropdown::before { display: none; }
    .nav-item.has-dropdown.open .dropdown { display: block; }
    .dropdown a {
        color: #d4d8e4;
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    .dropdown a:hover { color: var(--gold); background: transparent; border-left: none; }
    .dropdown li.active a { background: transparent; border-left: none; }
}

/* ===== Partner grid (logos de apoiadores) ===== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: center;
    margin: 1.5rem auto 0;
    max-width: 1100px;
}
.partner-grid figure {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1rem;
    transition: transform .2s, box-shadow .2s;
}
.partner-grid figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.partner-grid figure img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}
@media (max-width: 600px) {
    .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ===== Cards de Tipologias de Projetos ===== */
.tipologias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    max-width: 1280px;
    margin: 0 auto;
}
.tipologia-card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}
.tipologia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(13,36,83,.15);
    border-color: var(--gold);
}

/* Imagem + Badge de sigla */
.tipologia-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--navy);
}
.tipologia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.tipologia-card:hover .tipologia-image img {
    transform: scale(1.06);
}
.tipologia-sigla {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gold);
    color: var(--navy);
    font-weight: 900;
    font-size: 0.95rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius);
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(212,175,90,.4);
    z-index: 2;
}
/* Quando a sigla for longa (ex: "República Jovem"), fonte menor */
.tipologia-sigla:has(:nth-child(8)),
.tipologia-card[data-tipo="republica-jovem"] .tipologia-sigla { font-size: 0.8rem; }

/* Body do card */
.tipologia-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tipologia-nome {
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--navy);
    font-weight: 800;
    margin: 0 0 0.85rem;
    min-height: 2.4em;       /* alinha cards mesmo com nomes de tamanhos diferentes */
}
.tipologia-publico,
.tipologia-secretaria {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}
.tipologia-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.2;
}
.tipologia-desc {
    color: #444;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0.75rem 0 1.25rem;
    flex: 1;
}
.tipologia-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.tipologia-unidades {
    font-size: 0.85rem;
    color: var(--muted);
}
.tipologia-unidades strong {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 900;
}
.tipologia-link {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap .2s;
}
.tipologia-card:hover .tipologia-link {
    color: var(--gold-2);
}

/* Animação de entrada (stagger) */
@keyframes tipologia-enter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tipologia-card {
    animation: tipologia-enter .5s ease-out backwards;
}
.tipologia-card:nth-child(1)  { animation-delay: 0.00s; }
.tipologia-card:nth-child(2)  { animation-delay: 0.06s; }
.tipologia-card:nth-child(3)  { animation-delay: 0.12s; }
.tipologia-card:nth-child(4)  { animation-delay: 0.18s; }
.tipologia-card:nth-child(5)  { animation-delay: 0.24s; }
.tipologia-card:nth-child(6)  { animation-delay: 0.30s; }
.tipologia-card:nth-child(7)  { animation-delay: 0.36s; }
.tipologia-card:nth-child(8)  { animation-delay: 0.42s; }
.tipologia-card:nth-child(9)  { animation-delay: 0.48s; }
.tipologia-card:nth-child(10) { animation-delay: 0.54s; }
.tipologia-card:nth-child(11) { animation-delay: 0.60s; }
.tipologia-card:nth-child(12) { animation-delay: 0.66s; }

@media (prefers-reduced-motion: reduce) {
    .tipologia-card { animation: none; }
    .tipologia-card:hover { transform: none; }
}

@media (max-width: 600px) {
    .tipologias-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .tipologia-body { padding: 1.25rem; }
    .tipologia-nome { min-height: auto; }
}

/* Container estreito reutilizável (substitui os style="max-width:900px" inline) */
.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ODS GRID — flexbox para que a última linha incompleta CENTRALIZE */
.ods-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 1.5rem auto 0;
    padding: 0;
}
.ods-grid figure {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    flex: 0 0 180px;
    margin: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #fff;
    transition: transform .25s, box-shadow .25s;
}
.ods-grid figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.ods-grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 600px) {
    .ods-grid figure { width: calc(50% - 0.5rem); flex: 0 0 calc(50% - 0.5rem); height: auto; }
}

/* Página INSTITUIÇÃO — centralizar headings, manter parágrafos legíveis */
.page-instituicao section:not(.hero) {
    text-align: center;
}
.page-instituicao section:not(.hero) h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.page-instituicao section:not(.hero) p {
    text-align: left;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}
/* Lista de Valores — usar inline-block para centralizar o bloco mas manter itens à esquerda */
.page-instituicao section ul:not(.footer-links):not(.doc-list):not(.nav-list) {
    display: inline-block;
    text-align: left;
    margin: 0.5rem auto 1rem;
    max-width: 100%;
}

/* Página DOAÇÕES — centralizar TUDO consistentemente */
.page-doacoes section:not(.hero) {
    text-align: center;
}
.page-doacoes section:not(.hero) h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.page-doacoes section:not(.hero) p {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
}
.page-doacoes .pix-card {
    max-width: 640px;
    margin: 1.5rem auto;
    justify-content: center;
    text-align: center;
}
.page-doacoes .donate-buttons {
    justify-content: center;
    margin-top: 1.5rem;
}

/* Página PROJETOS — mais respiro nos cards */
.page-projetos .tipologias-grid {
    max-width: 1240px;
    padding: 0 0.5rem;
}
@media (min-width: 1100px) {
    .page-projetos section.section-soft { padding: 5rem 0; }
}

/* Página PARCEIROS — partner-grid centralizado já (mantém) */
.page-apoiadores-parceiros section:not(.hero) { text-align: center; }
.page-apoiadores-parceiros section:not(.hero) h2 { text-align: center; }

/* Página CONSELHO — people-grid centralizado */
.page-conselho-administrativo section:not(.hero) { text-align: center; }
.page-conselho-administrativo section:not(.hero) h2 { text-align: center; }

/* Página PORTAL TRANSPARÊNCIA — doc-list centralizada */
.page-portal-transparencia section:not(.hero) { text-align: center; }
.page-portal-transparencia section:not(.hero) h2 { text-align: center; }
.page-portal-transparencia .doc-list {
    text-align: left;
    margin: 1.5rem auto 0;
    display: inline-block;
    width: 100%;
    max-width: 800px;
}

/* Hero — mais consistência: padding inferior maior antes da divisão */
.hero {
    padding: 5rem 0 5.5rem;
}
@media (max-width: 980px) {
    .hero { padding: 3.5rem 0 4rem; }
}

/* Separador visual entre seções (linha sutil) */
section + section:not(.section-soft):not(.section-dark):not(.hero) {
    border-top: 1px solid var(--border);
}

/* Body de seções genéricas — limitar largura de leitura */
section:not(.hero):not(.section-dark) > .container > h2:first-child,
section:not(.hero):not(.section-dark) > .container > p:first-child {
    margin-top: 0;
}

/* Tag superior em cada card — etiqueta colorida */
.card-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    align-self: flex-start;
    margin: 0;
}
.card-tag-gold  { background: var(--gold);  color: var(--navy); }
.card-tag-green { background: var(--green); color: #fff; }
.card-tag-navy  { background: var(--navy);  color: var(--gold); }

/* =========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease-out, transform .7s ease-out;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cascata em stat-grid */
.stat-grid .reveal:nth-child(1).visible { transition-delay: 0.00s; }
.stat-grid .reveal:nth-child(2).visible { transition-delay: 0.15s; }
.stat-grid .reveal:nth-child(3).visible { transition-delay: 0.30s; }

/* Respeitar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .cards-action .card { transition: none !important; }
    .cards-action .card figure img { transition: none !important; }
}

/* Em mobile: menos translação vertical para evitar muito movimento */
@media (max-width: 600px) {
    .reveal { transform: translateY(16px); }
    .cards-action { gap: 1.25rem; }
}

/* =========================================================== */
#page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0d2453 0%, #14306b 50%, #d4af5a 100%);
    transform: translateX(-100%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
#page-transition.entering {
    transition: transform 280ms cubic-bezier(.65, .05, .35, 1);
    transform: translateX(0);
    pointer-events: auto;
}
#page-transition.leaving {
    transition: transform 380ms cubic-bezier(.45, 0, .55, 1);
    transform: translateX(100%);
    pointer-events: auto;
}
html.curtain-incoming #page-transition {
    transform: translateX(0);
    transition: none;
}

.page-transition-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 220ms ease;
}
#page-transition.entering .page-transition-inner,
html.curtain-incoming #page-transition .page-transition-inner {
    opacity: 1;
}
#page-transition.leaving .page-transition-inner {
    opacity: 0;
    transition: opacity 180ms ease;
}

.page-transition-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    /* Sem animação de pulse — mais leve */
}
.page-transition-tagline {
    color: #d4af5a;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

/* Mobile: cortina DESABILITADA via JS (mais leve, navegação direta) */
@media (max-width: 980px) {
    #page-transition { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    #page-transition { display: none !important; }
}

/* =========================================================== */
@media (max-width: 600px) {
    /* Hero buttons: empilha vertical, espaçamento generoso */
    .hero .btn,
    .hero-content .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0.5rem auto;
    }
    /* Doação: botões empilhados */
    .donate-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    .donate-buttons .btn { width: 100%; }

    /* CTA final / contato — botões empilhados */
    section .btn + .btn { margin-top: 0.6rem; }
    section [class*="reveal"] > .btn { display: block; width: 100%; max-width: 320px; margin: 0.5rem auto; }
}

/* Tablet/Mobile largura média — botões inline mas com gap */
@media (max-width: 768px) and (min-width: 601px) {
    .hero .btn { margin: 0.4rem; }
}

/* =========================================================== */
@media (max-width: 980px) {
    .main-nav .nav-list {
        z-index: 1000;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    /* Dropdown não esconde o conteúdo principal quando fechado */
    .nav-item.has-dropdown:not(.open) .dropdown {
        display: none !important;
    }
    /* Garante que o submenu fique abaixo, não sobreposto */
    .nav-item.has-dropdown .dropdown {
        position: static !important;
        margin-top: 0.25rem;
    }
    /* Itens com mais respiro pra clicar fácil no celular */
    .nav-item a, .nav-dropdown-toggle {
        display: block;
        padding: 0.75rem 0 !important;
        font-size: 1rem !important;
    }
}

/* (removido: content-visibility causava saltos de layout ao rolar para cima) */

/* Hero ANTIGO (.hero-video): esconde o vídeo em telas pequenas (poupa banda).
   IMPORTANTE: escopado a .hero-video — o hero ATUAL (.hero-heroico) MOSTRA o vídeo no
   celular. Antes o seletor estava largo (.hero-youtube-bg) e escondia o vídeo da home
   no mobile — era a causa do vídeo nunca aparecer no celular. */
@media (max-width: 600px) {
    .hero-video { min-height: 320px; padding: 3rem 0 3.5rem; }
    .hero-video .hero-youtube-bg { display: none; }
    .hero-video {
        background: linear-gradient(135deg, #0a1a3d 0%, #1a3268 100%);
    }
    .hero-video .hero-overlay { display: none; }
}

/* Cards-action no mobile: 1 coluna, sem stagger excessivo */
@media (max-width: 600px) {
    .cards-action {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cards-action .card:hover { transform: none; }
    .cards-action .card figure img { transition: none; }
    .cards-action .card:hover figure img { transform: none; }
}

/* Reveal mais leve no mobile (sem efeitos pesados de hover) */
@media (max-width: 768px) {
    .reveal { transition-duration: 0.45s; }
    .tipologia-card:hover { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
    .tipologia-card:hover .tipologia-image img { transform: none; }
}

/* 1) HOME — botões do hero mais afastados do texto */
.hero h1 + .lead { margin-bottom: 2.25rem; }
.hero-content .btn,
.hero .btn {
    margin-top: 0.5rem;
}
.hero-content > .btn:first-of-type,
.hero > .container > .btn:first-of-type {
    margin-top: 1rem;
}
@media (max-width: 600px) {
    .cards-action > .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* 4) INSTITUIÇÃO — TUDO centralizado (parágrafos também) */
.page-instituicao section:not(.hero) p {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 70ch;
}
.page-instituicao section ul:not(.footer-links):not(.doc-list):not(.nav-list) {
    display: inline-block;
    text-align: left;       /* mantém itens da lista alinhados à esquerda dentro do bloco */
    margin: 0.5rem auto 1rem;
}
.page-instituicao section:not(.hero) {
    text-align: center;
}

/* Em mobile os cards podem ficar 1 col mas com padding generoso */
@media (max-width: 600px) {
    .cards-action {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .cards-action .card-body { padding: 1.5rem 1.25rem 1.75rem; }
    .cards-action .card-body h2 { font-size: 1.2rem; }

    .hero h1 + .lead { margin-bottom: 1.75rem; }
}

@media (max-width: 900px) {
    .page-contato .cards-action {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
    }
}
@media (max-width: 600px) {
    .page-contato .cards-action {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .page-contato .cards-action .card-body h2 {
        min-height: 0;
    }
}

/* =========================================================== */
.unidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.unidade-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.unidade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 36, 83, 0.15);
    border-color: var(--gold);
}
.unidade-card a {
    display: block;
    color: inherit;
}
.unidade-card-body {
    padding: 1.4rem 1.25rem 1.5rem;
}
.unidade-card-sigla {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.unidade-card-nome {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0 0 0.6rem;
    line-height: 1.3;
    font-weight: 800;
}
.unidade-card-local {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0 0 0.9rem;
    line-height: 1.45;
}
.unidade-card-link {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================== */
.unidade-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.unidade-galeria figure {
    margin: 0;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-card);
}
.unidade-galeria figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unidade-galeria-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    position: relative;
}
.placeholder-foto {
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    border: 2px dashed var(--border);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.5;
}
.placeholder-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    font-style: italic;
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .unidade-galeria,
    .unidade-galeria-placeholder {
        grid-template-columns: 1fr 1fr;
    }
}

.unidade-info {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 2rem;
    border: 1px solid var(--border);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem 2rem;
    margin: 0;
}
.info-item dt {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.info-item dd {
    margin: 0;
    color: #333;
    line-height: 1.5;
    font-size: 1rem;
}
.info-item dd a {
    color: var(--navy);
    font-weight: 600;
}
.info-item dd a:hover {
    color: var(--gold);
}

@media (max-width: 600px) {
    .unidade-info { padding: 1.5rem 1.25rem; }
    .info-grid { gap: 1rem; }
}

/* =========================================================== */
.tipologia-sigla-gold  { background: var(--gold);  color: var(--navy); }
.tipologia-sigla-navy  { background: var(--navy);  color: var(--gold); }
.tipologia-sigla-green { background: var(--green); color: #fff; }

/* Wrapper link para tipologia card inteiro */
.tipologia-link-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.tipologia-link-wrapper:hover { color: inherit; }

/* =========================================================== */
.tipologia-nome {
    font-size: 1.08rem !important;
    line-height: 1.35 !important;
    min-height: 2.8em !important;
    margin: 0 0 0.9rem !important;
}
.tipologia-body {
    padding: 1.5rem !important;
}
.tipologia-publico {
    margin: 0 0 1rem !important;
}
@media (max-width: 600px) {
    .tipologia-nome { min-height: 0 !important; }
}

/* Mobile: alturas mínimas relaxam pra não ficar com espaço sobrando */
@media (max-width: 600px) {
    .cards-action .card-body h2 {
        min-height: 0 !important;
    }
}

@media (max-width: 600px) {
    .cards-action .card .card-body > h2 {
        min-height: 0 !important;
    }
}

@media (max-width: 600px) {
    .cards-action .card-body > h2 { min-height: 0; }
}

/* =========================================================== */
.social-row {
    background: rgba(255,255,255,.03);
    padding: 1.5rem 1rem 1.75rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 1rem;
}
.social-row-titulo {
    color: #d4af5a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}
.social-icons-centered {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.08);
    color: #d4af5a;
    border-radius: 50%;
    transition: all 0.25s ease;
    text-decoration: none;
}
.social-icon:hover {
    background: #d4af5a;
    color: #0d2453;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(212,175,90,.35);
}
.social-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 600px) {
    .social-row { padding: 1.25rem 1rem 1.5rem; }
    .social-icon { width: 40px; height: 40px; }
    .social-icon svg { width: 20px; height: 20px; }
}

/* Mobile relaxa min-height */
@media (max-width: 600px) {
    .cards-action > .card { min-height: 0; }
    .cards-action .card-body > h2 { min-height: 0 !important; }
}

@media (max-width: 768px) {
    .hero-fundador { min-height: 420px; padding: 4rem 0 3rem; }
    .hero-fundador-bg { background-position: center 30%; }
}
@media (max-width: 900px) {
    body .page-contato .cards-action {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 720px !important;
    }
}
@media (max-width: 600px) {
    body .page-contato .cards-action {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
}

@media (max-width: 600px) {
    body .cards-action > .card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
    }
    body .cards-action .card .card-body > h2 {
        min-height: 0 !important;
    }
}

/* =========================================================== */
.galeria-filtros {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 auto 2.5rem;
    max-width: 1100px;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
}
.galeria-filtros-grupo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.galeria-filtros-titulo {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 0.6rem;
    min-width: 70px;
}
.galeria-filtros .chip {
    display: inline-block;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    border: 1.5px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.galeria-filtros .chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.galeria-filtros .chip.chip-ativo {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212,175,90,.35);
}

.galeria-albuns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin: 0 auto;
    max-width: 1200px;
}
.album-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.album-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(13,36,83,.16);
    border-color: var(--gold);
    color: inherit;
}
.album-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-soft);
}
.album-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.album-card:hover .album-cover img { transform: scale(1.06); }
.album-cover-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #c7cad6;
}
.album-badge {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(13,36,83,.88);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}
.album-info {
    padding: 1.1rem 1.2rem 1.35rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.album-info h2 {
    font-size: 1.1rem;
    margin: 0 0 0.15rem;
    color: var(--navy);
    line-height: 1.3;
}
.album-info .album-data {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
}
.album-info .album-unidade {
    margin: 0;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.galeria-vazio {
    text-align: center;
    color: var(--muted);
    padding: 3rem 1rem;
}

/* ============================================================ */
/* ===== CARDS DE AÇÃO — bloco único, fonte da verdade   ===== */
/* ============================================================ */

.cards-action {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    max-width: 1240px;
    margin: 0 auto;
    align-items: stretch;
}

.page-contato .cards-action {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1080px;
}

@media (max-width: 900px) {
    .page-contato .cards-action {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
    }
}

@media (max-width: 600px) {
    .cards-action,
    .page-contato .cards-action {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.cards-action .card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.cards-action .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(13, 36, 83, .15);
    border-color: var(--gold);
}

.cards-action .card a {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.cards-action .card figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-soft);
}
.cards-action .card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.cards-action .card:hover figure img {
    transform: scale(1.05);
}

.cards-action .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.75rem 1.5rem 2rem;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
}

.cards-action .card-body .card-tag {
    display: inline-block;
    margin: 0 auto 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(13, 36, 83, .15);
}
.cards-action .card-body .card-tag-gold  { background: var(--gold);  color: var(--navy); }
.cards-action .card-body .card-tag-navy  { background: var(--navy);  color: var(--gold); }
.cards-action .card-body .card-tag-green { background: var(--green); color: #fff; }

.cards-action .card-body h2 {
    text-align: center;
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.3;
    margin: 0.25rem 0 0.5rem;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-action .card-body p {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    flex: 1 1 auto;
}

.cards-action .card-body .link-arrow {
    margin-top: auto;
    padding-top: 1.25rem;
    text-align: center;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cards-action .card:hover .card-body .link-arrow {
    color: var(--gold-2);
}

@media (max-width: 600px) {
    .cards-action .card-body h2 {
        min-height: 0;
    }
}

/* Animação reveal nos cards (cascata) */
.cards-action .reveal:nth-child(1).visible { transition-delay: 0.00s; }
.cards-action .reveal:nth-child(2).visible { transition-delay: 0.08s; }
.cards-action .reveal:nth-child(3).visible { transition-delay: 0.16s; }
.cards-action .reveal:nth-child(4).visible { transition-delay: 0.24s; }
.cards-action .reveal:nth-child(5).visible { transition-delay: 0.32s; }
.cards-action .reveal:nth-child(6).visible { transition-delay: 0.40s; }

/* =========================================================== */
/* ===== Palavra do Fundador — layout split foto+texto    ===== */
/* =========================================================== */

.hero-eyebrow {
    color: #d4af5a;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.palavra-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 1rem 0;
}

.palavra-foto {
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 4px solid var(--gold);
    box-shadow: 0 12px 32px rgba(13, 36, 83, .15);
    background: var(--bg-soft);
    transition: transform .3s ease;
}
.palavra-foto:hover {
    transform: translateY(-3px);
}
.palavra-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.palavra-texto p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin: 0 0 1.25rem;
}

.palavra-texto .palavra-citacao {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--navy);
    border-left: 4px solid var(--gold);
    padding-left: 1.25rem;
    margin: 0 0 1.5rem;
    font-weight: 500;
}

.palavra-assinatura {
    margin-top: 2rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.palavra-assinatura strong {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 800;
}
.palavra-assinatura span {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.92rem;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .palavra-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .palavra-foto {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* Hyperlinks dos parceiros — abre site oficial em nova aba */
.partner-grid .partner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-card);
    transition: transform .2s ease;
}
.partner-grid .partner-link:hover {
    transform: translateY(-2px);
}
.partner-grid .partner-link figure {
    margin: 0;
}


/* ============================================================ */
/* Efeito de entrada palavra por palavra (.wfx) — global        */
/* ============================================================ */
.wfx .w{display:inline-block;opacity:0;will-change:transform,opacity}
.wfx.in .w{animation:wfxIn .55s cubic-bezier(.2,.7,.2,1) both}
@keyframes wfxIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.wfx .w{opacity:1 !important;animation:none !important;transform:none !important}}

/* ============================================================ */
/* PÁGINAS INTERNAS — novo padrão (Imersivo Soft). Componentes    */
/* compartilhados: herói, faixa de impacto, citação, chips, CTA.  */
/* Usados via includes/componentes.php em todas as páginas.       */
/* ============================================================ */
.page-hero{position:relative;background:radial-gradient(120% 130% at 80% 0,#143167,#0d2453 62%);color:#fff;text-align:center;padding:4.6rem 1.5rem 4.2rem}
.page-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,#d4af5a,#f4e4bc,#d4af5a)}
.page-hero .page-eyebrow{display:inline-block;background:rgba(212,175,90,.18);color:#f0d79a;border:1px solid rgba(212,175,90,.42);font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;padding:.3rem 1rem;border-radius:999px;margin-bottom:1rem}
.page-hero h1{color:#fff;font-size:clamp(2.1rem,5vw,3.3rem);font-weight:900;line-height:1.06;margin:0 0 .7rem}
.page-hero .page-hero-lead{color:#dfe7f5;max-width:620px;margin:0 auto;font-size:1.1rem;line-height:1.6}

.page-section{padding:4rem 1.5rem}
.page-section-soft{background:#f7f5ef}
.page-h2{color:#0d2453;font-size:clamp(1.5rem,3.2vw,2.1rem);font-weight:900;text-align:center;margin:0}
.page-draw{display:block;height:4px;width:62px;background:linear-gradient(90deg,#d4af5a,#f4e4bc);border-radius:3px;margin:.7rem auto 0;transform:scaleX(1);transform-origin:center;transition:transform .85s .15s cubic-bezier(.2,.7,.2,1)}
.reveal:not(.visible) .page-draw{transform:scaleX(0)}
.page-lead{color:#3a4356;line-height:1.8;font-size:1.05rem;text-align:center;max-width:680px;margin:1.1rem auto 0}

.stat-band{background:#0d2453;color:#fff;padding:2.6rem 1.5rem}
.stat-band-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;max-width:880px;margin:0 auto;text-align:center}
.stat-band .stat-num{display:block;color:#d4af5a;font-size:clamp(1.9rem,4.5vw,2.6rem);font-weight:900;line-height:1}
.stat-band .stat-label{display:block;color:#cdd6ea;font-size:.86rem;margin-top:.4rem}
@media(max-width:620px){.stat-band-grid{grid-template-columns:1fr}}

.quote-block{position:relative;max-width:780px;margin:0 auto;background:#fff;border-radius:16px;box-shadow:0 14px 36px rgba(13,36,83,.1);padding:2.4rem 2rem;text-align:center}
.quote-block::before{content:"\201C";position:absolute;top:-.2rem;left:1.2rem;font-size:5rem;color:#d4af5a;opacity:.5;line-height:1;font-family:Georgia,serif}
.quote-block p{color:#0d2453;font-size:clamp(1.2rem,2.6vw,1.45rem);font-weight:700;line-height:1.5;margin:0}

.value-chips{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;max-width:820px;margin:1.4rem auto 0;padding:0;list-style:none}
.value-chips li{border:1.5px solid #d4af5a;color:#9c7a2e;border-radius:999px;padding:.6rem 1.2rem;font-weight:700;font-size:.94rem;background:#fff;transition:background .25s,color .25s,transform .2s}
.value-chips li:hover{background:#d4af5a;color:#0d2453;transform:translateY(-3px)}

.page-cta{background:#0d2453;color:#fff;text-align:center;padding:3.4rem 1.5rem}
.page-cta h2{color:#fff;font-size:clamp(1.5rem,3.4vw,2.1rem);font-weight:900;margin:0 0 .6rem}
.page-cta p{color:#dfe7f5;max-width:620px;margin:0 auto 1.6rem;font-size:1.05rem}
.page-cta-btns{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}
.btn-cta{display:inline-block;text-decoration:none;font-weight:800;padding:.85rem 1.8rem;border-radius:999px;background:#d4af5a;color:#0d2453;transition:transform .15s,box-shadow .25s,background .2s,border-color .2s}
.btn-cta:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(212,175,90,.4)}
.btn-cta-gold{background:#d4af5a;color:#0d2453}
.btn-cta-gold:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(212,175,90,.4)}
.btn-cta-ghost{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.5)}
.btn-cta-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}

/* Valores em cards — "Faixa lateral dourada", grade 3 colunas. Animação de
   entrada FLIP 3D (cada card gira como porta), em cascata. Disparada pela classe
   .in que o main.js adiciona quando a grade entra na tela. */
.value-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem;max-width:1000px;margin:2rem auto 0;perspective:1200px}
.value-cards .vcard{display:flex;gap:1.1rem;align-items:center;background:#fff;border-left:5px solid #d4af5a;border-radius:0 16px 16px 0;padding:1.7rem 1.6rem;box-shadow:0 8px 24px rgba(13,36,83,.08);text-align:left;opacity:0;transform-origin:left center;transition:transform .25s,box-shadow .25s}
.value-cards.in .vcard{opacity:1;animation:vcardFlip .8s cubic-bezier(.2,.8,.2,1) backwards}
.value-cards.in .vcard:nth-child(2){animation-delay:.14s}
.value-cards.in .vcard:nth-child(3){animation-delay:.28s}
.value-cards.in .vcard:nth-child(4){animation-delay:.42s}
.value-cards.in .vcard:nth-child(5){animation-delay:.56s}
.value-cards.in .vcard:hover{transform:translateY(-6px);box-shadow:0 20px 42px rgba(13,36,83,.16)}
@keyframes vcardFlip{from{opacity:0;transform:rotateY(-90deg)}60%{opacity:1}to{opacity:1;transform:rotateY(0)}}
.value-cards .vico{flex:0 0 auto;width:54px;height:54px;border-radius:14px;background:linear-gradient(135deg,#0d2453,#163a78);color:#d4af5a;display:flex;align-items:center;justify-content:center}
.value-cards .vico svg{width:26px;height:26px}
.value-cards .vtxt{color:#0d2453;font-weight:700;font-size:1.12rem;line-height:1.35}
@media(max-width:900px){.value-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.value-cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.value-cards .vcard{opacity:1 !important;animation:none !important;transform:none !important}}
