/* 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); }
.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 { 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 main > section:nth-of-type(7) { padding-top: 0; }
.home-page .video-placeholder { border-radius: 16px; border: 1px solid var(--apae-line); }
.home-page main > section:nth-of-type(8) { background: #f4f7f3; border-top: 1px solid var(--apae-line); }
.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(500px, 100%); height: auto; margin: auto; }
    .home-page .hero-row { min-height: 0; }
    .home-page .hero-imagem-wrapper img { height: auto; }
    .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; }
 .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: 100%; object-fit: cover; }
 @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; } }
