/* Correções de navegação e banner do Ministério Cristão Aviva (26/10/2026).
   Aplicadas SOMENTE à página principal: não alterar estilos das outras páginas. */
.topbar{position:relative;z-index:100}
.topbar .wrap.nav{width:min(1540px,calc(100% - 48px));max-width:1540px;gap:clamp(10px,1.3vw,24px)}
.topbar .brand{flex:none;min-width:0}
.topbar .brand img{width:clamp(110px,8.5vw,140px);max-height:78px;flex:none}
.topbar .brand-copy{white-space:nowrap;letter-spacing:.11em;font-size:10px}
.topbar .menu{display:flex;flex:1 1 auto;justify-content:flex-end;align-items:center;gap:clamp(2px,.55vw,12px);min-width:0}
.topbar .menu a{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:44px;padding:10px clamp(7px,.66vw,13px);border:1px solid transparent;border-radius:11px;font-weight:650;font-size:clamp(12px,.71vw,14px);line-height:1.2;text-align:center;transition:background .18s,border-color .18s,color .18s}
.topbar .menu a:not(.nav-cta):hover,.topbar .menu a:not(.nav-cta):focus-visible{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.19);color:#fff}
.topbar .menu .nav-cta{background:#bd1928;color:#fff!important;border-color:#bd1928;padding:12px clamp(12px,1vw,18px);font-weight:800;box-shadow:0 4px 15px rgba(140,8,27,.2)}
.topbar .menu .nav-cta:hover{background:#9e1422;color:#fff;border-color:#e14a56}
/* Nunca apagar o banner ao alternar o tema: #aviva-dark usa background: ... !important. */
body .hero,html.aviva-dark body .hero{background-color:#24201e!important;background-image:var(--aviva-banner-image,none)!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;color:#fff!important}
body .hero::before,html.aviva-dark body .hero::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(12,10,10,.82),rgba(14,11,12,.50) 58%,rgba(15,11,12,.14))!important}
body .hero .hero-content{position:relative;z-index:1}
body .hero .home-slider-nav{z-index:3}
body .hero .eyebrow,body .hero h1,body .hero p{color:#fff!important}
body .hero .eyebrow{color:#ff9faa!important}
body .hero .actions .btn{border-radius:10px;min-height:44px;white-space:normal}
body .hero .actions .btn-light{background:rgba(16,16,20,.38);color:white!important;border:1px solid rgba(255,255,255,.55);backdrop-filter:blur(4px)}
body .hero .actions .btn-light:hover{background:rgba(255,255,255,.16)}
body .hero .actions .btn-red{color:#fff!important;background:#bd1928}
body .hero .actions .btn-red:hover{background:#9e1422}
@media(max-width:1520px){.topbar .brand-copy{display:none}}
@media(max-width:1240px){
 .topbar .wrap.nav{min-height:86px}
 .topbar .menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:44px;cursor:pointer}
 .topbar .menu{display:none;position:absolute;top:100%;left:0;right:0;z-index:101;padding:18px max(24px,calc((100vw - 1120px)/2));background:#242323;box-shadow:0 18px 32px rgba(0,0,0,.25);border-top:1px solid #484246;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px;max-height:calc(100vh - 90px);overflow-y:auto}
 .topbar .menu.open{display:grid}
 .topbar .menu a{justify-content:flex-start;text-align:left;padding:13px 16px;white-space:normal;font-size:14px}
 .topbar .menu .nav-cta{text-align:center;justify-content:center}
}
@media(max-width:680px){
 .topbar .wrap.nav{width:calc(100% - 28px);min-height:78px}
 .topbar .menu{top:100%;grid-template-columns:minmax(0,1fr);padding:15px 18px 22px}
 .topbar .menu.open{display:grid}
 .topbar .menu a{padding:11px 14px}
 body .hero::before,html.aviva-dark body .hero::before{background:linear-gradient(0deg,rgba(12,10,10,.84),rgba(12,10,10,.33))!important}
}

/* Vídeo do banner principal, atrás do texto e do degradê */
body .hero video.aviva-church-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:0;display:block}
body .hero video.aviva-church-hero-video[hidden]{display:none!important}
body .hero:has(video.aviva-church-hero-video:not([hidden])){background-image:none!important}
body .hero:has(video.aviva-church-hero-video:not([hidden]))::before{z-index:0}

body .hero:has(video.aviva-church-hero-video:not([hidden])) .hero-content{z-index:2}
body .hero:has(video.aviva-church-hero-video:not([hidden])) .home-slider-nav{z-index:3}

body .hero:has(video.aviva-church-hero-video:not([hidden]))::before{z-index:1!important}
