/* =====================================================================
   Paróquia São Francisco de Assis – Jaguaré
   HTML + CSS + JS puros · mobile-first · sem bibliotecas

   Organização
   1. Tokens          5. Cabeçalho e menu     9.  Página: Nossa História
   2. Base            6. Hero                 10. Página: Sacramentos
   3. Layout          7. Página inicial       11. Rodapé
   4. Componentes     8. Seções compartilhadas 12. Estados · Responsivo · Movimento
   Ícones: css/icons.css (gerado por tools/gerar-icones.js)
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Cor: azul-marinho e dourado da identidade; marfim quente como superfície */
  --navy: #0f1630;
  --navy-2: #1b2340;
  --navy-3: #2a3459;
  --ink: #12172b;
  --ink-2: #3a3f55;
  --muted: #5f6478;
  --line: #e7e3d9;
  --line-2: #d6d1c4;
  --paper: #fff;
  --ivory: #f7f4ee;
  --ivory-2: #efeadf;
  --gold: #e9b35f;
  --gold-ink: #8a5a12;
  --gold-soft: #f8ecd6;
  --focus: #2f6fed;
  --ok: #1f7a50;
  --ok-soft: #e3f3ea;
  --err: #b4380a;
  --err-soft: #fbe9e1;
  --on-dark: rgba(255, 255, 255, .74);
  --line-dark: rgba(255, 255, 255, .12);

  /* Tipografia */
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.3rem;
  --fs-xl: clamp(1.55rem, 2.6vw, 2rem);
  --fs-2xl: clamp(2.3rem, 5vw, 4rem);
  --fs-3xl: clamp(2.7rem, 6.8vw, 5.4rem);

  /* Espaço e forma */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --gap: clamp(.9rem, 1.6vw, 1.25rem);
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-full: 999px;

  /* Profundidade */
  --sh-xs: 0 1px 2px rgba(15, 22, 48, .06);
  --sh-sm: 0 1px 2px rgba(15, 22, 48, .05), 0 6px 16px -8px rgba(15, 22, 48, .14);
  --sh-md: 0 2px 4px rgba(15, 22, 48, .04), 0 22px 44px -20px rgba(15, 22, 48, .28);
  --sh-lg: 0 30px 60px -30px rgba(15, 22, 48, .5);

  /* Movimento */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .2s;
  --t: .35s;
  --t-slow: .7s;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
svg { display: block; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
strong, b { font-weight: 600; }
::selection { background: var(--gold); color: var(--navy); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible, .hero :focus-visible, .footer :focus-visible, .prayer :focus-visible { outline-color: var(--gold); }

/* ---------- 3. Layout ---------- */
.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(920px, 100% - var(--gutter) * 2); }
.center { text-align: center; }
.section { padding-block: var(--section); }
.section--tight { padding-top: calc(var(--section) * .45); }
.section--soft { background: var(--ivory); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -80px; z-index: 300; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-xs); font-weight: 600; }
.skip:focus { top: 1rem; }

/* Cabeçalho de seção: rótulo + título (+ apoio). --split põe o texto de apoio à direita */
.head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.head--center { text-align: center; max-width: 820px; margin-inline: auto; }
.head--split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem 3rem; align-items: end; }
.head__sub { color: var(--muted); font-size: var(--fs-md); max-width: 480px; }
.head--center .head__sub { margin: 1.1rem auto 0; }
.head--split .head__sub { justify-self: end; padding-bottom: .4rem; }
.on-dark .head__sub { color: var(--on-dark); }

/* ---------- 4. Componentes ---------- */

/* Rótulo (eyebrow) */
.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .75rem; margin: 0 0 1.25rem;
  border-radius: var(--r-full); background: var(--paper); border: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.2;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.section--soft .pill { background: var(--paper); }
.pill--dark { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--on-dark); }

/* Títulos */
.title { font-size: var(--fs-2xl); }
.title em { font-size: 1.05em; }
.sub { color: var(--muted); max-width: 560px; margin: 1.1rem auto 0; font-size: var(--fs-md); }

/* Botões: um sistema, cinco variantes. Sobe 2px no hover, afunda no clique */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.6rem; border-radius: var(--r-full); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .08s; }
.btn--dark:hover { --btn-bg: var(--navy-2); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--white:hover { --btn-bg: var(--ivory); }
.btn--glass { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { --btn-bg: rgba(255,255,255,.18); box-shadow: none; }
.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--line:hover { --btn-bd: var(--ink); --btn-bg: var(--paper); box-shadow: var(--sh-sm); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }
/* Ícone automático: WhatsApp e download */
.btn[href*="wa.me"]::before, .tcard__btn[href*="wa.me"]::before { content: ''; width: 1.1em; height: 1.1em; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.btn[href*="wa.me"]::before, .tcard__btn[href*="wa.me"]::before { --i: var(--ico-wa); }
.btn[download]::before { content: ''; width: 1.1em; height: 1.1em; flex: none; background: currentColor; -webkit-mask: var(--ico-dl) center / contain no-repeat; mask: var(--ico-dl) center / contain no-repeat; }
.btn__arrow { transition: transform var(--t) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
/* Carregando / concluído (download, cópia) */
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-done { --btn-bg: var(--ok); --btn-fg: #fff; --btn-bd: transparent; }
.btn.is-done::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Chips de status */
.chip { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; letter-spacing: .01em; padding: .3rem .7rem; border-radius: var(--r-full); white-space: nowrap; line-height: 1.3; }
.chip--dark { background: var(--navy); color: #fff; }
.chip--gold { background: var(--gold); color: var(--navy); }
.chip--soft { background: var(--ivory-2); color: var(--ink-2); }

/* Botão redondo (setas do carrossel) */
.circle {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t) var(--ease);
}
.circle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.circle:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.circle:active { transform: scale(.94); }

/* Card base */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }

/* Link com sublinhado que se desenha */
.link { position: relative; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); font-weight: 500; color: var(--on-dark); cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { width: 40px; height: 24px; border-radius: var(--r-full); background: rgba(255,255,255,.2); position: relative; transition: background var(--t); }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t) var(--ease); }
.switch input:checked + .switch__ui { background: var(--gold); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Imagens: esqueleto enquanto carrega, fade ao chegar, aviso se falhar (classes postas pelo JS) */
.media { position: relative; overflow: hidden; background: var(--ivory-2); }
.js .media img { opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.js .media img.is-loaded { opacity: 1; }
.js .media:not(.is-ready)::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%) var(--ivory-2);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
.media.is-error::after {
  content: 'Imagem indisponível'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: var(--fs-xs); font-weight: 600; color: var(--muted); background: var(--ivory-2);
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Esqueleto de texto */
.skeleton { display: inline-block; min-width: 9em; border-radius: 6px; color: transparent; background: linear-gradient(100deg, rgba(255,255,255,.08) 30%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.08) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }

/* Botão copiar (contato) */
.copy {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--ease);
}
.copy:hover { color: var(--ink); border-color: var(--line-2); }
.copy:active { transform: scale(.94); }
.copy .ico--check, .copy .ico--alert { display: none; }
.copy.is-done { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.copy.is-done .ico--copy, .copy.is-error .ico--copy { display: none; }
.copy.is-done .ico--check { display: block; }
.copy.is-error { color: var(--err); background: var(--err-soft); border-color: transparent; }
.copy.is-error .ico--alert { display: block; }
.copy__msg {
  position: absolute; right: 0; bottom: calc(100% + 8px); padding: .35rem .6rem; border-radius: 8px; white-space: nowrap;
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t) var(--ease);
}
.copy.is-done .copy__msg, .copy.is-error .copy__msg { opacity: 1; transform: none; }
.copy.is-error .copy__msg { background: var(--err); }

/* Revelar ao rolar (discreto) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Barra de progresso e voltar ao topo */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.totop {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; box-shadow: var(--sh-md);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity var(--t), transform var(--t) var(--ease), background var(--t-fast);
}
.totop:hover { background: var(--navy-3); }
.totop svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 5. Cabeçalho e menu ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; padding: 1rem 0;
  transition: background var(--t), color var(--t), transform .5s var(--ease), box-shadow var(--t), padding var(--t) var(--ease);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header.is-solid {
  padding: .55rem 0; color: var(--ink);
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-110%); }

.logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1rem; letter-spacing: -.02em; min-height: 44px; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: var(--gold); transition: background var(--t), border-color var(--t); }
.logo__mark svg { width: 18px; height: 18px; }
.is-solid .logo__mark, .footer .logo__mark { background: var(--navy); border-color: var(--navy); }
.logo small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: 0; opacity: .7; line-height: 1.1; }
.logo__txt { line-height: 1.15; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .85rem; font-size: .9rem; font-weight: 500; border-radius: var(--r-full); transition: background var(--t-fast), color var(--t-fast); }
.nav a:hover { background: rgba(255,255,255,.14); }
.is-solid .nav a:hover { background: var(--ivory); }
.nav a.is-active { background: rgba(255,255,255,.16); }
.is-solid .nav a.is-active { background: var(--ivory-2); }
.nav__badge { font-size: .62rem; font-weight: 700; letter-spacing: .02em; background: var(--gold); color: var(--navy); padding: .15rem .45rem; border-radius: var(--r-full); }
.nav .nav__cta { display: none; }

.header__cta { --btn-bg: #fff; --btn-fg: var(--ink); }
.is-solid .header__cta { --btn-bg: var(--navy); --btn-fg: #fff; }
.is-solid .header__cta:hover { --btn-bg: var(--navy-2); }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: inherit; position: relative; z-index: 2; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t) var(--ease), top var(--t) var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: #fff; isolation: isolate; overflow: hidden;
  display: grid; align-items: end; padding: 8rem 0 clamp(2.5rem, 6vh, 4.5rem);
}
.hero__scene { position: absolute; inset: 0; z-index: -1; background: var(--navy); }
.hero__scene > * { position: absolute; will-change: transform; }
.hero__photo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: heroZoom 2.4s var(--ease) both; }
@keyframes heroZoom { from { scale: 1.1; } }
.hero__fade {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,22,48,.78) 0%, rgba(15,22,48,.45) 45%, rgba(15,22,48,.1) 75%),
    linear-gradient(180deg, rgba(15,22,48,.55) 0%, transparent 28%, transparent 55%, rgba(15,22,48,.85) 100%);
}

.hero__content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: end; }
.hero__main { max-width: 880px; }
.hero__eyebrow.pill { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__title { font-size: var(--fs-3xl); letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.hero__title .line { display: block; }
.hero__title em { font-size: 1.04em; color: var(--gold); }
.hero__lead { max-width: 540px; margin-top: 1.4rem; font-size: var(--fs-md); color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Cartão "Próxima missa" */
.next {
  display: flex; align-items: center; gap: .9rem; min-width: 260px; padding: 1rem 1.2rem 1rem 1rem; border-radius: var(--r-md);
  background: rgba(15,22,48,.45); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.next__ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: var(--navy); }
.next__ico .ico { --ico: 22px; }
.next__ico::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px var(--navy); animation: pulse 2s ease-in-out infinite; }
.next small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.next__text { font-size: .95rem; color: rgba(255,255,255,.85); }
.next__text b { color: #fff; font-size: 1.05rem; }
@keyframes pulse { 50% { opacity: .35; } }

/* Hero das páginas internas */
.hero--page { min-height: 72svh; }

/* Entrada do hero */
.js .hero__title .line, .js .hero__lead, .js .hero__actions, .js .hero__eyebrow, .js .next { animation: rise 1.1s var(--ease) both; }
.js .hero__title .line:nth-child(2) { animation-delay: .1s; }
.js .hero__lead { animation-delay: .22s; }
.js .hero__actions { animation-delay: .32s; }
.js .next { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- 7. Página inicial ---------- */

/* Carrossel coverflow */
.carousel { margin-top: .5rem; }
.carousel__track { position: relative; height: 480px; touch-action: pan-y; user-select: none; cursor: grab; }
.carousel__track.is-drag { cursor: grabbing; }
.tcard {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 440px; margin: -220px 0 0 -150px;
  border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--navy); box-shadow: var(--sh-lg);
  transition: transform .8s var(--ease), filter .8s var(--ease), opacity .8s var(--ease);
}
.tcard__media { position: absolute; inset: 0; background: var(--navy-2); }
.tcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform: scale(1.02); }
.tcard.is-active .tcard__media img { transform: scale(1.08); }
.tcard__body {
  position: absolute; inset: auto 0 0; display: grid; gap: .7rem; padding: 3.5rem 1.15rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(10,14,32,.6) 25%, rgba(10,14,32,.92));
}
.tcard__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tcard h3 { font-size: 1.5rem; }
.tcard p { font-size: .84rem; line-height: 1.45; color: rgba(255,255,255,.82); }
.tcard__tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.tcard__tags span { font-size: .72rem; padding: .25rem .65rem; border-radius: var(--r-full); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.tcard__btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem; border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; transition: background var(--t-fast), transform var(--t) var(--ease);
}
.tcard__btn:hover { background: var(--ivory); transform: translateY(-2px); }
.tcard__btn:active { transform: scale(.98); }
.tcard:not(.is-active) .tcard__btn { pointer-events: none; }

.carousel__ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin-top: 1.75rem; }
.carousel__btns { display: flex; align-items: center; gap: .4rem; padding: .3rem; border-radius: var(--r-full); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.carousel__btns .circle { border-color: transparent; }
.circle--sm { width: 40px; height: 40px; background: var(--ivory); }
.circle--sm svg { width: 16px; height: 16px; }
.circle--sm .ico-play { fill: currentColor; stroke-width: 1.2; }
.circle--sm .ico-play, .circle--sm.is-paused .ico-pause { display: none; }
.circle--sm.is-paused .ico-play { display: block; }
.carousel__link { font-size: .95rem; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem 3rem; align-items: start; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.about .pill { justify-self: start; }
.about__text { font-size: clamp(1.2rem, 2.1vw, 1.6rem); font-weight: 500; line-height: 1.32; letter-spacing: -.02em; }
.about__text strong { font-weight: 600; }

/* Bento */
.bento { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: var(--gap); }
.bento__card { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 1.6rem; border-radius: var(--r-lg); overflow: hidden; }
.bento__card--dark { background: var(--navy); color: #fff; }
.bento__card--light { background: var(--ivory); border: 1px solid var(--line); }
.bento__card--photo { padding: 0; }
.bento__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.bento__tau { width: 28px; color: var(--gold); }
.bento__big { font-size: 1.15rem; line-height: 1.45; margin: 1.6rem 0; color: rgba(255,255,255,.86); }
.bento__big strong { color: #fff; }
.bento__card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--p, 0) * .1)); }
.bento__card--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,14,32,.65)); pointer-events: none; }
.photo-link {
  position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 50px; padding: .7rem 1.2rem; border-radius: var(--r-full); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem;
  transition: transform var(--t) var(--ease), background var(--t-fast);
}
.photo-link:hover { transform: translateY(-2px); background: var(--ivory); }
.photo-link:active { transform: scale(.98); }
.photo-link:hover .ico { transform: translateX(3px); }
.photo-link .ico { transition: transform var(--t) var(--ease); }

.bento__num { font-size: 3rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.bento__num::after { content: '+'; font-size: .6em; vertical-align: top; margin-left: 2px; color: var(--gold-ink); }
.bento__label { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin: .5rem 0 .4rem; }
.bento__desc { font-size: var(--fs-sm); color: var(--muted); margin-bottom: auto; }
.dots { list-style: none; margin: 1.4rem 0 0; padding: 1.1rem 0 0; display: grid; gap: .7rem; border-top: 1px solid var(--line); }
.dots li { display: grid; grid-template-columns: 74px 1fr 18px; align-items: center; gap: .6rem; font-size: .82rem; }
.dots b { text-align: right; font-variant-numeric: tabular-nums; }
.dots i { display: flex; gap: 5px; }
.dots i span { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .5s var(--ease); }
.dots.is-in i span { transform: scale(1); }

/* Números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 1.8rem 1.4rem; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-size: clamp(2.2rem, 4.2vw, 3.1rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { margin: .55rem 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* Horários de missa */
.mass { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); align-items: start; }
.mass__side { display: grid; gap: var(--gap); }
.mass__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem; box-shadow: var(--sh-xs); }
.mass__card header { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.mass__card header .ico-box { flex: none; }
.mass__card header small { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mass__card h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
.mass__list { list-style: none; margin: 0; padding: 0; }
.mass__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: .6rem .8rem; margin: 0 -.8rem; border-radius: var(--r-sm); transition: background var(--t-fast); }
.mass__list li + li { border-top: 1px solid var(--line); }
.mass__list li + li.is-today, .mass__list li.is-today + li { border-top-color: transparent; }
.mass__list li > span:first-child { font-weight: 600; display: inline-flex; align-items: center; gap: .55rem; }
.times { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.times time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .88rem; padding: .3rem .7rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-full); }
.mass__list li.is-today { background: var(--gold-soft); }
.mass__list li.is-today time { background: var(--navy); border-color: var(--navy); color: #fff; }
.mass__list li.is-today > span:first-child::after { content: 'Hoje'; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--gold); color: var(--navy); padding: .15rem .5rem; border-radius: var(--r-full); }
.mass__card--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.mass__card--dark p { color: var(--on-dark); margin-top: .5rem; }
.mass__eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.mass__note { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.mass__note .ico { margin-top: .2rem; color: var(--gold-ink); }

/* Caixa de ícone */
.ico-box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink); }
.ico-box .ico { --ico: 20px; }

/* Oração */
.prayer { background: var(--navy); color: #fff; padding: clamp(6rem, 14vw, 10rem) 0; text-align: center; }
.prayer .pill { margin-bottom: 2rem; }
.prayer__text { margin: 0; font-size: clamp(1.45rem, 3.4vw, 2.55rem); line-height: 1.28; letter-spacing: -.03em; font-weight: 500; }
.prayer__text .w { color: rgba(255,255,255,.16); transition: color .4s; }
.prayer__text .w.on { color: #fff; }
.prayer__text .w.on.s { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--gap); }
.contact__card { padding: clamp(1.4rem, 3vw, 2rem); }
.contact address { font-style: normal; display: grid; }
.contact__row { display: flex; align-items: center; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.contact__row:first-child { padding-top: 0; }
.contact__txt { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact__txt small { display: block; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: .15rem; }
.contact__txt a { transition: color var(--t-fast); }
.contact__txt a:hover { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.contact__card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; letter-spacing: -.02em; margin: 1.6rem 0 .5rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; font-size: .95rem; }
.hours div + div { border-top: 1px dashed var(--line); }
.hours dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact__map { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; background: var(--ivory-2); border: 1px solid var(--line); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s var(--ease); }
.contact__map.is-ready iframe { opacity: 1; }
.contact__map:not(.is-ready)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%) var(--ivory-2); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.map-open { position: absolute; z-index: 1; left: 1rem; bottom: 1rem; box-shadow: var(--sh-md); }

/* ---------- 8. Seções compartilhadas ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--r-lg); background: var(--navy); color: #fff;
}
.cta-band::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(233,179,95,.22), transparent); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band h2 em { color: var(--gold); }
.cta-band p { color: var(--on-dark); margin-top: .7rem; max-width: 540px; }
.cta-band__actions { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- 9. Página: Nossa História ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story__text p { font-size: var(--fs-md); color: var(--ink-2); }
.story__text p + p { margin-top: 1.1rem; }
.story__text .title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-bottom: 1.6rem; }
.story__photo { border-radius: var(--r-lg); aspect-ratio: 4 / 5; box-shadow: var(--sh-md); margin: 0; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); position: relative; }
.timeline li { position: relative; padding: 1.7rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.timeline li::before { content: ''; position: absolute; top: 2.2rem; right: 1.5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(233,179,95,.22); }
.timeline__year { display: block; font-size: clamp(2.2rem, 3.8vw, 2.9rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-bottom: 1.1rem; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.12rem; letter-spacing: -.02em; margin-bottom: .45rem; line-height: 1.25; }
.timeline p { font-size: var(--fs-sm); color: var(--muted); }

.priests { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.priests li { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: 1.1rem .9rem; margin-inline: -.9rem; border-bottom: 1px solid var(--line); border-radius: 0; transition: background var(--t-fast); }
.priests li:hover { background: var(--ivory); }
.priests__n { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.priests h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -.02em; line-height: 1.25; }
.priests small { display: block; margin-top: .25rem; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.priests time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .85rem; padding: .35rem .8rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-full); white-space: nowrap; }
.priests li.is-now { background: var(--gold-soft); border-radius: var(--r-sm); border-bottom-color: transparent; }
.priests li.is-now time { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 10. Página: Sacramentos ---------- */
.jump { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); border-bottom: 1px solid var(--line); }
.jump__in { position: relative; display: flex; gap: .35rem; overflow-x: auto; padding: .6rem 0; scrollbar-width: none; }
.jump__in::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: var(--r-full); font-size: .88rem; font-weight: 600; color: var(--ink-2); border: 1px solid transparent; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.jump a:hover { background: var(--ivory); color: var(--ink); }
.jump a.is-active { background: var(--navy); color: #fff; }
.jump a:last-child { margin-left: auto; border-color: var(--line-2); }
.jump a:last-child.is-active { border-color: var(--navy); }

.sac-group__num { font-family: var(--serif); font-style: italic; color: var(--gold-ink); }
.sac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.sac-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sac { display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.sac:hover { box-shadow: var(--sh-md); }
.sac__media { aspect-ratio: 16 / 10; background: var(--navy); }
.sac__media img { width: 100%; height: 100%; object-fit: cover; }
.sac:hover .sac__media img { transform: scale(1.03); }
.sac__media--art { display: grid; place-items: center; background: radial-gradient(90% 70% at 70% 20%, rgba(233,179,95,.3), transparent 60%), linear-gradient(160deg, var(--navy-3), var(--navy)); }
.sac__media--art svg { width: 80px; height: 80px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
#ordem .sac__media--art svg { fill: var(--gold); stroke: none; width: 64px; height: 64px; }
.sac__body { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.sac__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.sac h3 { font-size: 1.6rem; }
.sac__body > p { color: var(--ink-2); font-size: .95rem; }
.sac__box { margin-bottom: auto; padding: 1rem 1.1rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-sm); }
.sac__box b { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .5rem; }
.sac__box ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; display: grid; gap: .4rem; color: var(--ink-2); }
.sac__box li::marker { color: var(--gold-ink); }
.sac .btn { width: 100%; min-height: 48px; padding-inline: 1rem; font-size: .9rem; white-space: normal; }
.sac__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; }

/* Roteiro da Confissão */
.confess { background: var(--navy); color: #fff; padding: var(--section) 0; scroll-margin-top: 60px; }
.confess__head { text-align: center; max-width: 780px; margin: 0 auto; }
.confess .title em { color: var(--gold); }
.confess__lead { margin-top: 1.4rem; color: var(--on-dark); font-size: var(--fs-md); text-wrap: balance; }
.confess__lead span { display: block; margin-top: .5rem; font-size: var(--fs-xs); color: var(--gold); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.csteps { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: s; }
.csteps li { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 1.5rem; transition: background var(--t), border-color var(--t); }
.csteps li:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.csteps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: var(--navy); font-weight: 700; margin-bottom: 1.2rem; font-variant-numeric: tabular-nums; }
.csteps h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.csteps p { font-size: var(--fs-sm); color: var(--on-dark); }

.confess__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gap); margin-top: var(--gap); align-items: start; }
.confess__card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 1.9rem); }
.confess__card h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.confess__prayer { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.42; border-left: 3px solid var(--gold); padding-left: 1rem; }
.confess__note { margin-top: 1.2rem; font-size: var(--fs-sm); color: var(--muted); }
.confess__card details { border-top: 1px solid var(--line); }
.confess__card details:last-child { border-bottom: 1px solid var(--line); }
.confess__card summary { cursor: pointer; list-style: none; min-height: 52px; padding: .75rem 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-radius: 6px; transition: color var(--t-fast); }
.confess__card summary:hover { color: var(--gold-ink); }
.confess__card summary::-webkit-details-marker { display: none; }
.confess__card summary::after { content: '+'; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 500; line-height: 1; transition: transform var(--t) var(--ease), background var(--t-fast); }
.confess__card details[open] summary::after { transform: rotate(45deg); background: var(--gold-soft); }
.confess__card details ul { margin: 0 0 1.1rem; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .92rem; color: var(--ink-2); }

.fourc-web { margin-top: clamp(3rem, 6vw, 4rem); text-align: center; }
.fourc-web h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.8rem; }
.fourc-web h3 em { color: var(--gold); }
.fourc-web ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: left; }
.fourc-web li { border-top: 2px solid var(--gold); padding-top: 1rem; }
.fourc-web b { display: block; font-size: 1.45rem; font-weight: 500; letter-spacing: -.03em; margin-bottom: .4rem; }
.fourc-web span { font-size: var(--fs-sm); color: var(--on-dark); }

.pdf-cta { margin-top: clamp(3rem, 6vw, 4rem); display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.6rem; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); }
.pdf-cta__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.pdf-cta__icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pdf-cta h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.pdf-cta p { font-size: var(--fs-sm); color: var(--on-dark); }

.confess__quote { margin: clamp(3rem, 6vw, 4rem) auto 0; max-width: 820px; text-align: center; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; }
.confess__quote cite { display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal; font-size: var(--fs-xs); color: var(--gold); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 10b. Página: Vela virtual ---------- */
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); }
.btn--gold:hover { --btn-bg: #f0c27a; }

/* Hero dividido: texto à esquerda, foto emoldurada à direita */
.hero--split { min-height: 92svh; align-items: center; background: radial-gradient(70% 60% at 85% 40%, rgba(233,179,95,.16), transparent 70%), var(--navy); padding-bottom: clamp(3rem, 7vh, 5rem); }
.vhero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.vhero .hero__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.vhero__photo { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: var(--navy-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.vhero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 35%; }
.vcount {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  border-radius: var(--r-md); background: rgba(15,22,48,.55); border: 1px solid rgba(255,255,255,.18); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.vcount b { display: block; font-size: 2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.vcount small { font-size: var(--fs-sm); color: rgba(255,255,255,.75); }
.vcount__flame { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(233,179,95,.18); }
.vcount__flame i { width: 14px; height: 22px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(60% 55% at 50% 72%, #fff6d8 0%, #ffd27a 40%, #f29a2e 75%, transparent 100%); transform-origin: 50% 90%; animation: flicker 3s ease-in-out infinite; }

/* Vela (CSS): corpo de cera, pavio e chama que tremula */
.candle { position: relative; display: block; width: 26px; height: 54px; margin: 22px auto 0; border-radius: 5px 5px 3px 3px; background: linear-gradient(90deg, #efe4cc, #fffaf0 45%, #e6d7b8); box-shadow: inset 0 -6px 8px -6px rgba(120,90,40,.35); }
.candle::before { content: ''; position: absolute; left: 50%; top: -6px; width: 2px; height: 7px; margin-left: -1px; border-radius: 1px; background: #3a2c1c; }
.candle__flame { position: absolute; left: 50%; bottom: calc(100% + 3px); width: 14px; height: 24px; margin-left: -7px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(60% 55% at 50% 72%, #fffbe9 0%, #ffd27a 38%, #f29a2e 72%, rgba(242,154,46,0) 100%); transform-origin: 50% 90%; animation: flicker 3s ease-in-out infinite; }
.candle__flame::after { content: ''; position: absolute; inset: -18px -22px -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,200,110,.35), transparent); z-index: -1; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  25% { transform: scale(1.04, .97) rotate(1.5deg); }
  50% { transform: scale(.97, 1.04) rotate(-1.5deg); }
  75% { transform: scale(1.03, .98) rotate(1deg); }
}

/* Mural */
.mural { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.vcard {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; min-height: 250px; padding: 1.2rem 1.1rem 1.3rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.vcard:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.vcard .candle { margin-bottom: .9rem; }
.vcard:nth-child(3n+2) .candle__flame { animation-delay: -1s; }
.vcard:nth-child(3n) .candle__flame { animation-delay: -2s; }
.vcard h3 { font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.vcard p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.vcard.is-open p { -webkit-line-clamp: unset; line-clamp: unset; }
.vcard__more { margin-top: .2rem; padding: .35rem .6rem; border: 0; border-radius: var(--r-full); background: none; font-size: .8rem; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: background var(--t-fast); }
.vcard__more:hover { background: var(--ivory); }
.vcard time { margin-top: auto; padding-top: .7rem; font-size: .75rem; font-weight: 600; color: var(--gold-ink); }
.vcard.is-new { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233,179,95,.2), var(--sh-sm); }
.vcard--skeleton { pointer-events: none; }
.vcard--skeleton span { display: block; border-radius: 6px; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%) var(--ivory-2); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.vcard--skeleton span:first-child { width: 26px; height: 54px; margin: 22px auto 1rem; }
.vcard--skeleton span:nth-child(2) { width: 60%; height: 14px; }
.vcard--skeleton span:nth-child(3) { width: 85%; height: 12px; margin-top: .5rem; }
.vcard--skeleton span:nth-child(4) { width: 70%; height: 12px; margin-top: .3rem; }

.mural__state { display: grid; justify-items: center; gap: 1rem; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; text-align: center; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.mural__state h3 { font-size: 1.4rem; }
.mural__state p { color: var(--muted); max-width: 420px; }
.mural__state.is-error { border-color: rgba(180,56,10,.35); background: var(--err-soft); }
.mural__state.is-error h3 { color: var(--err); }

.mural__state[hidden], .pager[hidden] { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.pager__info { min-width: 9rem; text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.circle:disabled { opacity: .35; pointer-events: none; }

/* Janela "Nova intenção" */
.vdialog { width: min(480px, 100% - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); overflow: auto; }
.vdialog::backdrop { background: rgba(10,14,32,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vdialog[open] { animation: dialogIn .45s var(--ease); }
.vdialog[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.vform { position: relative; padding: clamp(1.4rem, 4vw, 2rem); }
.vdialog__close { position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ivory); color: var(--ink-2); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.vdialog__close:hover { background: var(--ivory-2); color: var(--ink); }
.vform__step { display: grid; gap: 1rem; }
.vform__step[hidden] { display: none; }
.vform h2 { font-size: 1.7rem; text-align: center; }
.vform__lead { text-align: center; color: var(--muted); margin-top: -.5rem; }
.vform__candle { display: grid; place-items: center; height: 80px; }
.vform__candle .candle { margin-top: 18px; }
.vform__candle--big { height: 120px; }
.vform__candle--big .candle { width: 34px; height: 74px; }
.vform__candle--big .candle__flame { width: 20px; height: 34px; margin-left: -10px; }

.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper);
  font: inherit; color: var(--ink); resize: vertical; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:hover, .field textarea:hover { border-color: #bdb7a8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15,22,48,.1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(180,56,10,.1); }
.field__error { font-size: .82rem; font-weight: 500; color: var(--err); min-height: 0; }
.field__error:empty { display: none; }
.field__foot { display: flex; justify-content: space-between; gap: 1rem; }
.field__count { margin-left: auto; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__count.is-near { color: var(--gold-ink); font-weight: 600; }
.vform__note { display: flex; gap: .55rem; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.vform__note .ico { margin-top: .15rem; color: var(--gold-ink); }
.vform__error { padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--err-soft); color: var(--err); font-size: .88rem; font-weight: 500; }
.vform__actions { display: grid; gap: .5rem; margin-top: .25rem; }
.vform__done { text-align: center; padding-top: .5rem; }

@media (max-width: 1080px) { .mural { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .vhero { grid-template-columns: 1fr; }
  .vhero__photo { aspect-ratio: 16 / 11; }
  .hero--split { min-height: 0; padding-top: 7.5rem; }
  .mural { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .vhero__photo { aspect-ratio: 4 / 3; }
  .mural { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcard { min-height: 220px; padding-inline: .8rem; }
}

/* ---------- 11. Rodapé ---------- */
.footer { background: var(--navy); color: var(--on-dark); padding: clamp(3.5rem, 7vw, 5rem) 0 1.5rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem 2rem; }
.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer__brand p { max-width: 300px; }
.footer__h { margin: 0 0 1rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer__list a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; transition: color var(--t-fast); }
.footer__list a:hover { color: #fff; }
.footer__list .ico { --ico: 15px; opacity: .6; }
.footer__muted { display: block; padding-top: .3rem; font-size: .84rem; color: rgba(255,255,255,.5); }
.social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.social a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.social .ico { --ico: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: .84rem; }
.footer__bottom a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; transition: color var(--t-fast); }
.footer__bottom a:hover { color: #fff; }
.footer__credit a { min-height: 0; font-weight: 600; color: var(--gold); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color var(--t-fast), text-decoration-color var(--t-fast); }
.footer__credit a:hover { color: var(--gold); text-decoration-color: currentColor; }

/* Ícones usados por botões automáticos (WhatsApp / download) */
:root {
  --ico-wa: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M17.472%2014.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94%201.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198%200-.52.074-.792.372-.272.297-1.04%201.016-1.04%202.479%200%201.462%201.065%202.875%201.213%203.074.149.198%202.096%203.2%205.077%204.487.709.306%201.262.489%201.694.625.712.227%201.36.195%201.871.118.571-.085%201.758-.719%202.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421%207.403h-.004a9.87%209.87%200%2001-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86%209.86%200%2001-1.51-5.26c.001-5.45%204.436-9.884%209.888-9.884%202.64%200%205.122%201.03%206.988%202.898a9.825%209.825%200%20012.893%206.994c-.003%205.45-4.437%209.884-9.885%209.884m8.413-18.297A11.815%2011.815%200%200012.05%200C5.495%200%20.16%205.335.157%2011.892c0%202.096.547%204.142%201.588%205.945L.057%2024l6.305-1.654a11.882%2011.882%200%20005.683%201.448h.005c6.554%200%2011.89-5.335%2011.893-11.893a11.821%2011.821%200%2000-3.48-8.413Z%22%2F%3E%3C%2Fsvg%3E");
  --ico-dl: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v11M7%2010l5%205%205-5M5%2020h14%22%2F%3E%3C%2Fsvg%3E");
}

/* ---------- 12. Responsivo ---------- */
.nav a, .logo__txt { white-space: nowrap; }
@media (max-width: 1240px) {
  .nav a { padding-inline: .6rem; font-size: .86rem; }
  .header__cta { padding-inline: 1rem; }
}

/* Menu vira painel de tela cheia antes de os 7 itens apertarem */
@media (max-width: 1120px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 6rem var(--gutter) 2rem; background: var(--navy); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
  }
  .nav a { justify-content: space-between; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; min-height: 60px; padding: .6rem 0; border-radius: 0; border-bottom: 1px solid var(--line-dark); }
  .nav a:hover, .nav a.is-active, .is-solid .nav a:hover, .is-solid .nav a.is-active { background: none; color: var(--gold); }
  .nav .nav__cta { display: inline-flex; justify-content: center; margin-top: 2rem; font-size: 1rem; min-height: 54px; border: 0; border-radius: var(--r-full); --btn-bg: var(--gold); --btn-fg: var(--navy); }
  .nav .nav__cta:hover { color: var(--navy); background: #f0c27a; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .header:has(.nav.is-open) { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header:has(.nav.is-open) .logo__mark { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
}

@media (max-width: 960px) {

  .hero__content { grid-template-columns: 1fr; }
  .next { justify-self: start; }
  .head--split { grid-template-columns: 1fr; }
  .head--split .head__sub { justify-self: start; padding-bottom: 0; }
  .about, .mass, .contact { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card--dark { grid-column: 1 / -1; min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .story { grid-template-columns: 1fr; }
  .story__photo { aspect-ratio: 4 / 3; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .sac-grid, .sac-grid--2, .csteps, .fourc-web ul { grid-template-columns: 1fr 1fr; }
  .confess__grid { grid-template-columns: 1fr; }
  .pdf-cta { grid-template-columns: auto 1fr; }
  .pdf-cta .btn { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact__map { min-height: 380px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 7rem; }
  .hero__fade { background: linear-gradient(180deg, rgba(15,22,48,.6) 0%, rgba(15,22,48,.35) 25%, rgba(15,22,48,.82) 55%, rgba(15,22,48,.94) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .next { width: 100%; }
  .carousel__track { height: 450px; }
  .tcard { width: 272px; height: 412px; margin: -206px 0 0 -136px; }
  .bento { grid-template-columns: 1fr; }
  .bento__card { min-height: 320px; }
  .stats > div { padding: 1.4rem .9rem; }
  .stats > div:nth-child(even) { padding-right: 0; }
  .mass__card { padding: 1.3rem; }
  .mass__list li { padding-inline: .6rem; margin-inline: -.6rem; }
  .times time { padding: .25rem .55rem; font-size: .84rem; }
  .timeline { grid-template-columns: 1fr; }
  .sac-grid, .sac-grid--2, .csteps { grid-template-columns: 1fr; }
  .pdf-cta { grid-template-columns: 1fr; }
  .priests li { grid-template-columns: 2rem 1fr; }
  .priests time { grid-column: 2; justify-self: start; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .jump a:last-child { margin-left: 0; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__scene > * { transform: none !important; }
}
