/* Refined grid and rhythm, following the approved section order. */
:root {
    --apae-azul: #244e99;
    --apae-verde: #367342;
    --apae-verde-hover: #285c32;
    --apae-laranja: #a97416;
    --apae-navy: #193c36;
    --apae-cinza-texto: #53615c;
    --apae-yellow: #f3cc4a;
    --apae-line: #dfe7e1;
}
body { color: #20392e; line-height: 1.65; }
.navbar-content {
    height: 104px;
    padding: 16px max(28px, calc((100vw - 1280px) / 2));
    gap: 24px;
    border-bottom: 1px solid #e7ede8;
    background: #fff;
}
.navbar-logo img { width: 148px; margin-top: 0; }
.navbar-links { gap: 4px; }
.navlink { padding: 10px; font-size: 14px; font-weight: 500; color: #304738; white-space: nowrap; }
.navlink::after { background: var(--apae-verde); }
.navlink:hover { color: var(--apae-verde); }
.btn-doacao button, .drawer-doacao { background: var(--apae-verde); border-radius: 8px; padding: 12px 20px; font-weight: 600; white-space: nowrap; }
.btn-doacao button:hover { background: var(--apae-verde-hover); }
.home-page main > section { padding: 80px 0; }
.home-page .container { max-width: 1240px; padding-right: 32px; padding-left: 32px; }
.home-page .hero {
    padding: 52px 0 0;
    background: linear-gradient(115deg, #f6f9f5, #fff 75%);
}
.home-page .hero-row { min-height: 500px; width: auto; max-width: none; margin: 0; }
.home-page .hero-conteudo { padding: 28px 0 48px; width: 56%; }
.home-page .hero-eyebrow { letter-spacing: .13em; font-size: 12px; margin-bottom: 20px; }
.home-page .hero-titulo { font-size: clamp(2.6rem, 4.05vw, 3.9rem); line-height: 1.09; letter-spacing: -.055em; max-width: 650px; margin-bottom: 24px; color: #203d2d; }
.home-page .hero-texto { font-size: 16px; line-height: 1.75; max-width: 490px; margin-bottom: 16px; }
.home-page .hero-imagem-col { width: 46%; }
.home-page .hero-imagem-wrapper { top: auto; bottom: 0; right: -30px; width: min(590px, 47vw); height: min(590px, 47vw); border-radius: 50%; overflow: hidden; }
.home-page .hero-imagem-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.home-page .hero-anel { top: auto; bottom: -32px; right: -42px; width: min(610px, 49vw); height: min(610px, 49vw); border: 2px solid var(--apae-yellow); background: radial-gradient(circle, #f7eeb64f, transparent 72%); }
.home-page .hero-botoes { gap: 14px; margin-top: 12px; }
.btn-apae-verde, .btn-apae-outline { padding: 13px 20px; font-size: 14px; border-radius: 8px; min-height: 46px; line-height: 1.4; }
.btn-apae-outline { border-color: #a0b7a6; color: #326b3e; }
.home-page .hero-stats { border-top: 1px solid var(--apae-line); padding: 22px 0 0; margin-top: 30px; max-width: 510px; }
.home-page .hero-stat { gap: 10px; }
.home-page .hero-stat-numero { font-size: 17px; line-height: 1.25; color: #234f34; }
.home-page .hero-stat-label { font-size: 12px; line-height: 1.45; margin-top: 4px; }
.home-page .secao-mvv { padding-bottom: 76px; }
.home-page .faixa-mvv { background: #193c36; border-radius: 16px; padding: 36px 34px; box-shadow: 0 12px 30px #193c360d; }
.home-page .mvv-item { padding-right: 28px; padding-left: 28px; }
.home-page .mvv-item + .mvv-item { border-left: 1px solid #ffffff26; }
.home-page .mvv-item h5 { font-size: 20px; margin-bottom: 16px; color: #fff; }
.home-page .mvv-item p { font-size: 14px; line-height: 1.8; color: #dce8df; margin: 0; }
.home-page .eyebrow { letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.home-page .titulo-secao { color: #203d2d; font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.035em; margin-bottom: 16px; }
.home-page .texto-secao { font-size: 16px; line-height: 1.75; }
.home-page main > section:nth-of-type(3) { background: #f3f6f3; border-top: 1px solid #e8eee8; border-bottom: 1px solid #e8eee8; }
.home-page .card-noticia { background: white; border: 1px solid #e4ebe5; border-radius: 12px; box-shadow: 0 8px 20px #193c3605; }
.home-page .card-noticia img { height: 205px; }
.home-page .card-noticia .card-body { padding: 24px; }
.home-page .card-noticia .card-title { font-size: 18px; line-height: 1.45; }
.home-page .card-noticia .card-text { font-size: 14px; line-height: 1.7; }
.home-page .banner-evento { background: #285847; padding: 48px 56px; border-radius: 16px; border-left: 7px solid var(--apae-yellow); }
.home-page .banner-evento h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.2; margin: 0; letter-spacing: -.03em; }
.home-page .banner-evento .grifo { color: #ffe481; }
.home-page .tag-evento { letter-spacing: .1em; font-size: 11px; }
.home-page #servicos { background: #fafbf9; border-top: 1px solid #e8eee8; border-bottom: 1px solid #e8eee8; }
.home-page .card-servico { position: relative; background: #fff; border-color: #e0e8e1; padding: 28px 18px; text-align: left; }
.home-page .card-servico .icone-servico { margin: 0 0 22px; border-radius: 12px; }
.home-page .card-servico h6 { font-size: 16px; line-height: 1.4; }
.home-page .card-servico p { font-size: 14px; line-height: 1.7; }
.home-page .faixa-cta { background: #f4d979; padding: 40px; color: #294532; border-radius: 16px; }
.home-page .faixa-cta h4 { font-size: 27px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 20px; }
.home-page .faixa-cta h4 img { filter: brightness(.35) sepia(.3); }
.home-page .card-cta-mini { padding: 24px; border: 1px solid #e8ce71; box-shadow: none; }
.home-page .card-cta-mini p { line-height: 1.7; }
.home-page #secao-video { padding-top: 0; }
.home-page .video-placeholder { border-radius: 16px; border: 1px solid var(--apae-line); }
.home-page #secao-parceiros { background: #f4f7f3; border-top: 1px solid var(--apae-line); }
.home-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-gallery-thumb { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; }
.home-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; display: block; }
.home-gallery-thumb:hover img { transform: scale(1.05); }
.home-page .link-ver-todas { font-weight: 600; font-size: 15px; color: var(--apae-verde); }
.home-page .link-ler-mais { font-weight: 600; font-size: 14px; color: var(--apae-verde); }
@media (max-width: 767px) { .home-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.home-page .logo-parceiro, .home-page .logo-parceiro.roxo { background: #fff; color: #607063; border: 1px solid #dce5dd; height: 76px; font-size: 14px; }
.partners-carousel { display: flex; align-items: center; gap: 14px; }
.partners-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; flex: 1; padding: 6px 2px 12px; }
.partners-track .logo-parceiro { flex: 0 0 calc(20% - 12px); min-width: 150px; scroll-snap-align: start; text-decoration: none; }
.partners-track .logo-parceiro img { max-width: 85%; max-height: 48px; object-fit: contain; }
.partners-control { border: 1px solid #cbd9cd; background: #fff; color: #367342; border-radius: 50%; width: 42px; height: 42px; font-size: 28px; line-height: 1; }
.footer-apae { padding: 48px 24px 32px; border-top-color: var(--apae-line)!important; }
.footer-apae > img { width: 110px; margin-bottom: 22px; }
.footer-apae .copyright { color: #627366; }
.services-page .card-servico { text-align: left; padding: 32px; }
.services-page .icone-servico { margin-left: 0; }
.services-page h2 { font-size: 1.4rem; margin: 20px 0 12px; }
.services-page .card-servico p { font-size: 16px; line-height: 1.75; margin-bottom: 24px; }
.inline-video { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: #193c36; padding: 24px; }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inline-video-content { position: relative; text-align: center; padding: 24px; border-radius: 12px; background: #193c36e8; color: #fff; }
.inline-video-play { border: 0; background: none; color: #fff; display: inline-flex; align-items: center; flex-direction: column; gap: 16px; font-weight: 600; }
.inline-video-play img { width: 64px; height: 64px; object-fit: contain; }
.inline-video-content p { color: #dce8df; font-size: 13px; margin: 14px 0 0; }
.video-frame { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 16px; }
.transform-word { display: inline-block; position: relative; vertical-align: baseline; }
.transform-word::after { content: 'transformar'; visibility: hidden; }
.transform-animation { position: absolute; inset: 0; white-space: nowrap; animation: transform-fonts 2.8s steps(1, end) 1; }
@keyframes transform-fonts {
    0% { font-family: Georgia, serif; font-weight: 700; letter-spacing: -.065em; }
    22% { font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: -.11em; font-size: .87em; }
    45% { font-family: 'Trebuchet MS', sans-serif; font-weight: 700; letter-spacing: -.045em; font-size: 1em; }
    68% { font-family: Georgia, serif; font-weight: 700; letter-spacing: -.065em; }
    84%,100% { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: inherit; font-size: 1em; }
}
@media(min-width:1200px) and (max-width:1350px) { .navbar-content { gap: 14px; } .navbar-logo img { width: 130px; } .navlink { padding: 10px 7px; font-size: 13px; } }
@media(max-width:991px) {
    .home-page .hero-conteudo { width: 100%; padding-top: 0; padding-bottom: 30px; }
    .home-page .hero-imagem-col { width: 100%; }
    .home-page .hero-imagem-wrapper { position: relative; inset: auto; width: min(380px, 85vw); height: min(380px, 85vw); margin: auto; }
    .home-page .hero-row { min-height: 0; }
    .home-page .hero-imagem-wrapper img { width: 100%; height: 100%; object-fit: cover; }
    .home-page .hero-titulo { max-width: 680px; font-size: clamp(2.3rem, 5vw, 3.6rem); }
    .home-page .hero-texto { max-width: 620px; }
    .home-page .faixa-cta { padding: 30px; }
}
@media(max-width:767px) {
    .navbar-content { height: 86px; padding: 12px 20px; }
    .navbar-logo img { width: 126px; }
    .home-page .container { padding-right: 22px; padding-left: 22px; }
    .home-page main > section { padding-top: 52px; padding-bottom: 52px; }
    .home-page .hero { padding-top: 34px; padding-bottom: 0; }
    .home-page .hero-titulo { font-size: clamp(2rem, 8.2vw, 3rem); line-height: 1.13; letter-spacing: -.05em; }
    .home-page .hero-texto { font-size: 15px; line-height: 1.75; }
    .home-page .hero-stats { --bs-gutter-x: 8px; }
    .home-page .hero-stat { gap: 6px; }
    .home-page .hero-stat-numero { font-size: 14px; }
    .home-page .hero-stat-label { font-size: 11px; }
    .home-page .faixa-mvv { padding: 28px 22px; }
    .home-page .mvv-item { padding: 0 12px; }
    .home-page .mvv-item + .mvv-item { border-left: none; border-top: 1px solid #ffffff26; padding-top: 22px; }
    .home-page .banner-evento { padding: 32px 28px; text-align: left; }
    .home-page .faixa-cta { padding: 26px 22px; }
    .home-page .card-servico { padding: 22px 16px; }
    .home-page .card-servico h6 { font-size: 15px; }
    .home-page .card-servico p { font-size: 13px; }
}
@media(prefers-reduced-motion:reduce) { .transform-animation { animation: none; } }
 .event-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
 .event-card { overflow: hidden; border: 1px solid #dfe7e1; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px #193c3610; }
 .event-card>a { display: block; text-decoration: none; }
 .event-card-image { position: relative; height: 220px; background: #edf4ee; overflow: hidden; }
 .event-card-image>img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
 .event-card:hover .event-card-image>img { transform: scale(1.04); }
 .event-card-date { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 10px; background: #fff; color: #244e99; box-shadow: 0 5px 15px #193c3620; }
 .event-card-date strong { font-size: 25px; line-height: 1; }
 .event-card-date small { text-transform: uppercase; font-weight: 700; font-size: 12px; }
 .event-card-placeholder { display: grid; place-items: center; height: 100%; color: #367342; font-size: 56px; }
 .event-card-body { padding: 22px 23px 25px; }
 .event-card-body h2 { margin: 9px 0 13px; font-size: 21px; line-height: 1.35; color: #203d2d; }
 .event-card-body>p { font-size: 14px; line-height: 1.65; }
 .event-meta { display: flex; flex-direction: column; gap: 3px; color: #367342; font-weight: 600; }
 .home-event-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
 .home-event-cards .event-card { height: 100%; }
 .hero-banner-rotator { position: relative; overflow: hidden; border-radius: 16px; }
 .hero-banner-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
 .hero-banner-slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
 .hero-banner-slide img { width: 100%; height: auto; display: block; border-radius: 16px; }
 .hero-banner-slide a { display: block; }
 .banner-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.82); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: background .2s; }
 .banner-nav:hover { background: #fff; }
 .banner-nav.prev { left: 12px; }
 .banner-nav.next { right: 12px; }
 .banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
 .banner-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); border: none; cursor: pointer; padding: 0; transition: background .2s; }
 .banner-dot.active { background: #fff; }
 .hero-banner-rotator:not(:has(.hero-banner-slide+.hero-banner-slide)) .banner-nav,
 .hero-banner-rotator:not(:has(.hero-banner-slide+.hero-banner-slide)) .banner-dots { display: none; }
 @media (max-width: 767px) { .event-cards { grid-template-columns: 1fr; } .event-card-image { height: 210px; } }
 @media (max-width: 767px) { .home-event-cards { grid-template-columns: 1fr; } }

.news-album { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:24px 0; }
.news-album img { width:100%; height:220px; object-fit:cover; border-radius:12px; }
.pix-donation { padding:24px; margin:24px 0; border:1px solid #dfe7e1; border-radius:16px; }
.pix-donation>img { display:block; max-width:100%; height:auto; }
.pix-donation strong { overflow-wrap:anywhere; }
.pix-donation button { margin:4px; }
@media(max-width:600px) { .news-album { grid-template-columns:repeat(2,minmax(0,1fr)); } .news-album img { height:150px; } }

.photo-album { margin:32px 0; }
.album-stage { background:#edf4ee; border-radius:16px; overflow:hidden; }
.album-stage .album-slide { display:block; width:100%; height:clamp(240px,55vw,560px); object-fit:contain; }
.album-stage .album-slide[hidden] { display:none; }
.album-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:12px 0; }
.album-controls button { background:#285847; color:white; border:0; border-radius:50%; width:44px; height:44px; cursor:pointer; }
.album-controls button:disabled { opacity:.4; cursor:default; }
.album-thumbnails { display:flex; gap:10px; overflow-x:auto; padding:5px; position:relative; }
.album-thumbnails button { flex:0 0 88px; padding:3px; border:3px solid transparent; border-radius:10px; background:transparent; cursor:pointer; }
.album-thumbnails button[aria-pressed="true"] { border-color:#367342; }
.album-thumbnails img { display:block; width:100%; height:64px; object-fit:cover; border-radius:5px; }
.photo-album button:focus-visible { outline:3px solid #244e99; outline-offset:2px; }

/* campanha do mês (Apoie) */
section.campaign-card, .campaign-card { padding: 0; }
.campaign-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; background: #fff; border: 1px solid #e0e8e1; border-radius: 20px; overflow: hidden; margin: 8px 0 40px; box-shadow: 0 8px 30px rgba(22, 45, 76, .08); scroll-margin-top: 96px; }
.campaign-media { position: relative; background: #eef3ee; min-height: 260px; }
.campaign-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.campaign-body { padding: 32px 32px 32px 0; }
.campaign-card:not(:has(img)) { grid-template-columns: 1fr; }
.campaign-card:not(:has(img)) .campaign-media { display: none; }
.campaign-card:not(:has(img)) .campaign-body { padding: 32px; }
.campaign-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #8a5a00; background: #ffe481; padding: 4px 12px; border-radius: 999px; }
.campaign-body h2 { margin: 14px 0 8px; font-size: 1.7rem; line-height: 1.2; }
.campaign-summary { font-size: 1.08rem; font-weight: 600; }
.campaign-goal, .campaign-until { color: #546477; margin: 6px 0; }
.campaign-body .button { margin-top: 14px; display: inline-block; }
@media (max-width: 760px) { .campaign-card { grid-template-columns: 1fr; gap: 0; } .campaign-body, .campaign-card:not(:has(img)) .campaign-body { padding: 24px; } .campaign-media { min-height: 200px; } }

/* equipe */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px; margin-top: 32px; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1 / 1; width: 100%; border-radius: 50%; overflow: hidden; background: #e8eee8; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; max-width: 200px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo span { font-size: 3rem; font-weight: 700; color: #6b7d6e; }
.team-card h2 { font-size: 1.1rem; margin: 0 0 4px; }
.team-role { color: #2f6b3a; font-weight: 600; margin: 0 0 8px; }
.team-bio { color: #546477; font-size: .92rem; line-height: 1.6; }
