:root {
  --home-navy: #123e85;
  --home-navy-dark: #082d66;
  --home-gold: #d7a24a;
  --home-ink: #172033;
  --home-muted: #647084;
  --home-line: #dfe5ee;
  --home-soft: #f4f7fb;
  --home-white: #fff;
  --home-container: 1320px;
}

body { background: var(--home-white); color: var(--home-ink); }
main.flex-grow-1 { padding-top: 0 !important; }
.home-shell { overflow: hidden; }
.home-wrap { width: min(var(--home-container), calc(100% - 40px)); margin-inline: auto; }
.home-title { margin: 0; color: var(--home-navy); font: 700 clamp(2.25rem, 4.5vw, 4.75rem)/1.02 'Playfair Display', serif; letter-spacing: -.035em; }
.home-section-title { margin: 0; color: var(--home-navy); font: 700 clamp(2rem, 3.4vw, 3.5rem)/1.08 'Playfair Display', serif; letter-spacing: -.025em; }
.home-copy { color: var(--home-muted); font-size: 1.05rem; line-height: 1.75; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 52px; padding: .8rem 1.35rem; border: 1px solid var(--home-navy); border-radius: 4px; color: var(--home-navy); font-weight: 700; transition: .2s ease; }
.home-button:hover { background: var(--home-navy); color: #fff; transform: translateY(-2px); }
.home-button--gold { background: var(--home-gold); border-color: var(--home-gold); color: #fff; }
.home-button--gold:hover { background: #be8530; border-color: #be8530; }

.home-hero { position: relative; min-height: 690px; background: #fff; }
.home-hero__slides { position: absolute; inset: 0 0 0 42%; }
.home-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .65s ease; }
.home-hero__slide.is-active { opacity: 1; }
.home-hero__slide img, .home-hero__slide video { width: 100%; height: 100%; object-fit: cover; }
.home-hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.86) 8%, rgba(255,255,255,0) 38%); pointer-events: none; }
.home-hero__content { position: relative; z-index: 2; min-height: 690px; display: none; flex-direction: column; justify-content: center; width: min(680px, 48%); padding: 70px 0 110px; }
.home-hero__content.is-active { display: flex; animation: homeHeroCopyIn .45s ease both; }
.home-hero__copy { position: relative; z-index: 1; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.home-hero__eyebrow { display: block; margin-bottom: 1rem; color: var(--home-gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.home-hero__description { max-width: 560px; margin: 1.75rem 0 2rem; color: #4f5969; font-size: 1.12rem; line-height: 1.65; }
.home-hero__description p { margin: 0 0 .75rem; color: inherit; font-size: inherit; line-height: inherit; }
.home-hero__description p:last-child { margin-bottom: 0; }
@keyframes homeHeroCopyIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.home-hero__copy > p { max-width: 560px; margin: 1.75rem 0 2rem; color: #4f5969; font-size: 1.22rem; line-height: 1.65; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.home-hero__indicators { position: absolute; z-index: 4; right: 50%; bottom: 7rem; transform: translateX(50%); display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .65rem .8rem; border-radius: 999px; background: rgba(255,255,255,.78); box-shadow: 0 8px 24px rgba(8,45,102,.14); backdrop-filter: blur(8px); }
.home-hero__indicator { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #9cabc1; transition: width .2s ease, background .2s ease, transform .2s ease; }
.home-hero__indicator:hover { background: var(--home-gold); transform: scale(1.15); }
.home-hero__indicator.is-active { width: 27px; background: var(--home-navy); }
.home-hero__indicator:focus-visible { outline: 3px solid rgba(215,162,74,.45); outline-offset: 3px; }
.home-values { position: relative; z-index: 3; margin-top: -84px; background: var(--home-soft); border-top: 2px solid var(--home-gold); box-shadow: 0 -8px 30px rgba(18,62,133,.05); }
.home-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.home-value { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; padding: 2.25rem 2rem; }
.home-value + .home-value { border-left: 1px solid var(--home-line); }
.home-value i { color: var(--home-gold); font-size: 2.25rem; }
.home-value h3 { margin: 0 0 .3rem; color: var(--home-navy); font: 700 1.35rem 'Playfair Display', serif; }
.home-value p { margin: 0; color: var(--home-muted); font-size: .94rem; }

.home-motto { position: relative; overflow: hidden; background: var(--home-navy-dark); color: #fff; }
.home-motto::before { content: ''; position: absolute; width: 320px; height: 320px; top: -230px; right: 8%; border: 1px solid rgba(215,162,74,.3); border-radius: 50%; }
.home-motto__inner { position:relative; padding-block:3rem; text-align:center; }
.home-motto__label { display: block; margin-bottom: .75rem; color: var(--home-gold); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.home-motto h2 { margin: 0; color: #fff; font: 400 clamp(1.15rem,2vw,1.45rem)/1.3 'Playfair Display',serif; }
.home-motto p { display:flex; justify-content:center; align-items:center; flex-wrap:nowrap; gap:.6rem 1rem; margin:.7rem 0 0; font:700 clamp(1.45rem,2.75vw,2.75rem)/1.2 'Playfair Display',serif; white-space:nowrap; }
.home-motto p span { color: var(--home-gold); font-size: .75em; }

.home-live { padding: 100px 0; background: #fff; }
.home-live__grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 5rem; align-items: center; }
.home-live__content .home-copy { margin: 1.4rem 0 1.8rem; }
.home-live__badge { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: #dc2626; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.home-live__badge i { font-size: .55rem; animation: homeLivePulse 1.6s ease-in-out infinite; }
.home-live__player { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 0 48px 0 0; background: #07162e; box-shadow: 0 22px 55px rgba(8,45,102,.18); }
.home-live__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes homeLivePulse { 50% { opacity: .35; transform: scale(.78); } }

.home-next { padding: 110px 0 105px; }
.home-next__intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; margin-bottom: 4rem; }
.home-next__photo { min-height: 390px; background: var(--home-next-image, url('/images/mbna-oracao-instagram.jpg')) center/cover; border-radius: 0 64px 0 0; position: relative; }
.home-next__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0, transparent 48%); }
.home-next__lead { max-width: 580px; }
.home-next__lead .home-copy { margin: 1.4rem 0 0; }
.home-paths { display:grid; grid-template-columns:repeat(4,1fr); overflow:hidden; background:var(--home-navy-dark); border-top:3px solid var(--home-gold); border-bottom:0; border-radius:0 36px 0 0; box-shadow:0 20px 45px rgba(8,45,102,.14); }
.home-path { padding:2.5rem 1.7rem; color:#fff; transition:background .2s ease,transform .2s ease; }
.home-path + .home-path { border-left:1px solid rgba(255,255,255,.16); }
.home-path:hover { color:#fff; background:rgba(255,255,255,.08); transform:translateY(-3px); }
.home-path i { font-size:2.2rem; color:var(--home-gold); }
.home-path h3 { margin:1.4rem 0 .65rem; color:#fff; font:700 1.3rem 'Playfair Display',serif; }
.home-path p { min-height:72px; color:#d7e1ef; line-height:1.55; }
.home-path span { color:#f1be67; font-weight:700; }

.home-events { padding: 100px 0; background: var(--home-soft); }
.home-section-label { display:block; margin-bottom:.65rem; color:var(--home-gold); font-size:.75rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.home-agenda-callout { min-width:285px; box-sizing:border-box; display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:.9rem; padding:1rem 1.1rem; color:var(--home-navy); background:#fff; border:1px solid var(--home-line); border-left:3px solid var(--home-gold); box-shadow:0 10px 28px rgba(18,62,133,.07); text-decoration:none; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.home-agenda-callout:hover { color:var(--home-navy); border-color:var(--home-gold); transform:translateY(-2px); box-shadow:0 16px 34px rgba(18,62,133,.12); }
.home-agenda-callout__icon { width:48px; height:48px; display:grid; place-items:center; color:#fff; background:var(--home-navy); font-size:1.2rem; }
.home-agenda-callout__copy { min-width:0; display:flex; flex-direction:column; gap:.18rem; }
.home-agenda-callout__copy strong { font:700 1.05rem 'Playfair Display',serif; }
.home-agenda-callout__copy small { color:var(--home-muted); font-size:.7rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.home-agenda-callout__copy small b { color:#a66e18; font-size:.82rem; }
.home-agenda-callout__arrow { color:var(--home-gold); transition:transform .2s ease; }
.home-agenda-callout:hover .home-agenda-callout__arrow { transform:translateX(3px); }
.home-event-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.home-event-card { min-width:0; overflow:hidden; display:flex; flex-direction:column; background:#fff; border-top:3px solid transparent; box-shadow:0 16px 42px rgba(18,62,133,.09); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.home-event-card:hover { transform:translateY(-4px); border-color:var(--home-gold); box-shadow:0 22px 50px rgba(18,62,133,.14); }
.home-event-card__media { position:relative; aspect-ratio:16/10; overflow:hidden; background:#dfe7f1; }
.home-event-card__media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.home-event-card:hover .home-event-card__media img { transform:scale(1.025); }
.home-event-card__image-trigger { width:100%; height:100%; }
.home-event-card__placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; background:linear-gradient(145deg,var(--home-navy-dark),var(--home-navy)); }
.home-event-card__placeholder::after { content:''; position:absolute; width:150px; height:150px; right:-55px; top:-70px; border:1px solid rgba(215,162,74,.35); border-radius:50%; }
.home-event-card__placeholder i { margin-bottom:.55rem; color:var(--home-gold); font-size:2rem; }
.home-event-card__placeholder span { font:700 1.15rem 'Playfair Display',serif; letter-spacing:.08em; }
.home-event-card__placeholder small { margin-top:.18rem; color:#dbe5f3; font-size:.65rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.home-event-card__type { position:absolute; left:1rem; bottom:1rem; padding:.42rem .68rem; color:#fff; background:rgba(8,45,102,.9); font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.home-event-card__body { flex:1; display:flex; flex-direction:column; padding:1.5rem; }
.home-event-card__date { color:#a66e18; font-size:.75rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.home-event-card__date i { margin-right:.35rem; }
.home-event-card h3 { margin:.7rem 0 .65rem; color:var(--home-navy); font:700 1.45rem/1.2 'Playfair Display',serif; }
.home-event-card p { flex:1; margin:0 0 1.25rem; color:var(--home-muted); font-size:.92rem; line-height:1.65; }
.home-event-card__action { align-self:flex-start; display:inline-flex; align-items:center; gap:.55rem; padding:0; color:#a66e18; background:transparent; border:0; font-size:.86rem; font-weight:800; text-decoration:none; cursor:pointer; }
.home-event-card__action:hover { color:var(--home-navy); }
.home-event-card__action-icon { width:28px; height:28px; display:grid; place-items:center; flex:0 0 auto; color:#fff; background:var(--home-navy); border-radius:50%; font-size:.7rem; transition:background .2s ease,transform .2s ease; }
.home-event-card__action:hover .home-event-card__action-icon { background:#a66e18; transform:translateY(-1px); }
.home-event-card__action-arrow { margin-left:.1rem; font-size:.72rem; transition:transform .2s ease; }
.home-event-card__action:hover .home-event-card__action-arrow { transform:translateX(3px); }

.home-devotional { padding: 110px 0; }
.home-devotional__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: center; }
.home-devotional__feature .home-copy { margin: 1.5rem 0 1.75rem; }
.home-devotional__list { margin-top: 2rem; border: 1px solid var(--home-line); }
.home-devotional__item { display: flex; align-items: center; gap: 1rem; padding: 1rem; color: var(--home-navy); }
.home-devotional__item + .home-devotional__item { border-top: 1px solid var(--home-line); }
.home-devotional__item i { color: var(--home-gold); }
.home-devotional__item strong { flex: 1; }
.home-devotional__image { min-height: 520px; background: var(--home-devotional-image, url('/images/mbna-oracao-instagram.jpg')) center/cover; border-radius: 0 0 0 80px; }

.home-testimony { background: var(--home-navy-dark); color: #fff; }
.home-testimony__grid { display: grid; grid-template-columns: 1fr .85fr; min-height: 520px; }
.home-testimony__content { padding: 5rem 4rem 5rem 0; display: flex; flex-direction: column; justify-content: center; }
.home-testimony .home-section-title { color: #fff; }
.home-testimony blockquote { margin: 2rem 0; max-width: 720px; font: 400 clamp(1.2rem, 2.1vw, 1.65rem)/1.65 'Playfair Display', serif; }
.home-testimony__person { color: var(--home-gold); font-weight: 700; }
.home-testimony__role { color: #cbd6e8; }
.home-testimony__photo { min-height: 520px; background: linear-gradient(90deg, var(--home-navy-dark), transparent 38%), var(--testimony-image, url('/images/mbna-comunidade-instagram.jpg')) center/cover; }

.home-visit { display:grid; grid-template-columns:1fr 1.05fr; min-height:520px; background:var(--home-soft); border-top:1px solid var(--home-line); }
.home-visit__content { padding: 5rem max(2rem, calc((100vw - var(--home-container))/2)); padding-right: 4rem; display: flex; flex-direction: column; justify-content: center; }
.home-visit__address { display: flex; gap: 1rem; align-items: start; margin: 2rem 0 1rem; color: var(--home-navy); font-size: 1.2rem; font-weight: 700; }
.home-visit__address i { color: var(--home-gold); font-size: 1.8rem; }
.home-visit__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.home-visit iframe { width: 100%; height: 100%; min-height: 520px; border: 0; }

.home-floating-prayer { position: fixed; right: 20px; bottom: 92px; z-index: 1050; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--home-navy); color: #fff; box-shadow: 0 12px 30px rgba(8,45,102,.28); }
#modalPedido .modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 70px rgba(8,45,102,.2); }
#modalPedido .modal-header { border-bottom: 0; padding: 1.5rem 1.5rem .5rem; }
#modalPedido .modal-body { padding: 1.5rem; }

@media (max-width: 980px) {
  .home-hero { min-height: 760px; }
  .home-hero__slides { inset: 0; }
  .home-hero__slide::after { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 48%, rgba(255,255,255,.15) 100%); }
  .home-hero__content { width: min(650px, 86%); min-height: 760px; }
  .home-hero__indicators { bottom: 2rem; }
  .home-hero__copy { padding: 1.5rem; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.72); border-radius: 14px; box-shadow: 0 18px 45px rgba(8,45,102,.12); backdrop-filter: blur(8px); }
  .home-values { margin-top: 0; }
  .home-values__grid, .home-paths { grid-template-columns: 1fr 1fr; }
  .home-value:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--home-line); }
  .home-path:nth-child(3) { border-left:0; border-top:1px solid rgba(255,255,255,.16); }
  .home-path:nth-child(4) { border-top:1px solid rgba(255,255,255,.16); }
  .home-next__intro, .home-live__grid, .home-devotional__grid, .home-testimony__grid, .home-visit { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-event-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-next__photo { min-height: 300px; }
  .home-devotional__image { min-height: 400px; order: -1; }
  .home-testimony__content { padding: 4rem 0; }
  .home-testimony__photo { min-height: 420px; }
  .home-visit__content { padding: 4rem 2rem; }
}

@media (max-width: 680px) {
  .home-wrap { width: min(100% - 28px, var(--home-container)); }
  .home-hero { min-height: 690px; }
  .home-hero__content { min-height: 690px; width: 100%; max-width: calc(100vw - 28px); padding: 4rem 0 6rem; justify-content: flex-end; }
  .home-hero__content .home-title, .home-hero__description { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .home-hero__description * { max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; }
  .home-hero__copy { padding: 1.15rem; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); }
  .home-hero__slide::after { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.78) 8%, rgba(255,255,255,.18) 20%, rgba(255,255,255,0) 34%); }
  .home-hero__slides { bottom: 250px; }
  .home-hero__indicators { bottom: 1.5rem; }
  .home-hero__actions, .home-visit__actions { flex-direction: column; align-items: stretch; }
  .home-motto__inner { padding-block:2.75rem; }
  .home-motto p { flex-direction: column; gap: .35rem; }
  .home-motto p { white-space:normal; }
  .home-motto p span { display: none; }
  .home-values__grid, .home-paths { grid-template-columns: 1fr; }
  .home-value, .home-value:nth-child(3) { border-left:0; border-top:1px solid var(--home-line); }
  .home-path + .home-path, .home-path:nth-child(3) { border-left:0; border-top:1px solid rgba(255,255,255,.16); }
  .home-value:first-child { border-top: 0; }
  .home-next { padding: 75px 0; }
  .home-next__intro { gap: 2rem; margin-bottom: 2.5rem; }
  .home-next__photo { min-height: 230px; }
  .home-live, .home-events, .home-devotional { padding: 75px 0; }
  .home-section-head { align-items: start; flex-direction: column; }
  .home-section-head > div { width:100%; min-width:0; }
  .home-section-head .home-copy { max-width:100%; overflow-wrap:anywhere; }
  .home-agenda-callout { width:100%; min-width:0; }
  .home-event-grid { grid-template-columns:1fr; }
  .home-devotional__image { min-height: 300px; }
  .home-testimony__content { padding: 3.5rem 0; }
  .home-testimony__photo { min-height: 320px; }
  .home-visit iframe { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
