/* ============================================================
   Igreja MPV — Design System "Luz do Alto"
   Base clara e luminosa · cobalto da marca · dourado champagne
   Tipografia: Cormorant (display) + Cinzel (inscricional) + DM Sans (corpo)
   ============================================================ */

:root {
  --ink: #10203F;
  --ink-2: #24345A;
  --ink-soft: #56617E;
  --ink-faint: #8A93AB;

  --cobalt: #1E52B8;
  --cobalt-d: #163F8F;
  --cobalt-l: #3E74DC;
  --sky: #6BA0EF;

  --gold: #A9832F;
  --gold-l: #C7A459;
  --gold-soft: #E7D4A6;

  --white: #ffffff;
  --pearl: #EEF2FA;
  --pearl-2: #E5ECF7;
  --ivory: #FBF7EE;
  --line: #E1E7F2;
  --line-strong: #CDD7E8;

  --danger: #C7433F;
  --success: #2E8A57;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(16, 32, 63, .06);
  --shadow: 0 18px 45px -22px rgba(16, 32, 63, .28);
  --shadow-lg: 0 40px 80px -32px rgba(16, 32, 63, .42);
  --shadow-cobalt: 0 22px 45px -18px rgba(30, 82, 184, .55);

  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-i: 'Cinzel', Georgia, serif;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* trava o scroll da página inteira enquanto o menu mobile está aberto —
   sem isso, dava pra rolar o fundo "por trás" do menu e ver as fotos do
   Hero vazando por cima dele */
body.nav-open { position: fixed; left: 0; right: 0; overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-d); color: var(--ink); margin: 0; line-height: 1.08; font-weight: 500; letter-spacing: -.01em; }
h4 { font-family: var(--font); color: var(--ink); margin: 0; font-weight: 600; }
p { margin: 0; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }
::selection { background: rgba(30, 82, 184, .16); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 26px; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-i);
  font-size: 12px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-l));
}
.section-head .eyebrow::before { background: var(--gold-l); }

.section { padding: 104px 0; position: relative; }
.section-soft { background: var(--pearl); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(31px, 4.4vw, 48px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; position: relative; overflow: hidden; isolation: isolate;
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .2s;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--cobalt-l), var(--cobalt-d)); color: #fff; box-shadow: var(--shadow-cobalt); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 28px 55px -18px rgba(30, 82, 184, .68); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); transform: translateY(-3px); background: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-danger { color: var(--danger); border-color: rgba(199,67,63,.35); background: #fff; }
.btn-danger:hover { background: rgba(199,67,63,.06); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 1000;
  background: linear-gradient(90deg, var(--gold), var(--cobalt-l));
  transition: width .12s linear; pointer-events: none;
}

/* ---------- Header ---------- */
/* Nota: o "vidro fosco" fica num pseudo-elemento (::after), não no .site-header
   diretamente — um backdrop-filter no próprio elemento vira o "container de
   referência" dos descendentes position:fixed (o menu mobile), quebrando o
   posicionamento dele em vez de cobrir a tela inteira. */
.site-header {
  position: sticky; top: 0; z-index: 100; isolation: isolate;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--gold), var(--cobalt-l) 50%, var(--gold));
}
.site-header::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(16,32,63,.35); }

.header-topbar { background: var(--ink); color: rgba(255,255,255,.8); }
.header-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 0; font-size: 12px; }
.header-topbar-item { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.header-topbar-item svg { width: 13px; height: 13px; color: var(--gold-l); flex-shrink: 0; }
.header-topbar-links { display: flex; align-items: center; gap: 22px; }
.header-topbar-links a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); transition: color .2s; }
.header-topbar-links a:hover { color: var(--gold-l); }
.header-topbar-links a svg { width: 13px; height: 13px; flex-shrink: 0; }
@media (max-width: 760px) { .header-topbar { display: none; } }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 20px; transition: padding .3s var(--ease); }
.site-header.is-scrolled .nav { padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 58px; height: 58px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: width .3s var(--ease), height .3s var(--ease); }
.site-header.is-scrolled .brand-mark { width: 46px; height: 46px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(16,32,63,.16)); }
.brand-name { color: var(--ink); font-family: var(--font-d); font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.brand-tag { display: block; color: var(--gold); font-family: var(--font-i); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; max-width: 360px; white-space: normal; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 26px; }

@media (max-width: 1180px) and (min-width: 941px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13.5px; }
  .brand-name { font-size: 18px; }
  .brand-tag { max-width: 190px; font-size: 8.5px; }
}
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--gold); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 9px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 68px 0 0 0; background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px); flex-direction: column; justify-content: center;
    padding: 40px 26px; gap: 8px; transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 22px; font-family: var(--font-d); padding: 12px 0; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 108px;
  background: var(--ink);
}
.hero-grid { position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow { color: var(--gold-l); }
.hero h1 { font-size: clamp(40px, 6vw, 74px); font-weight: 500; letter-spacing: -.01em; line-height: 1.14; color: #fff; text-shadow: 0 6px 32px rgba(0,0,0,.45); }
.hero h1 em {
  display: inline-block; margin-top: 6px; font-style: italic; font-weight: 600;
  font-size: 1.12em; letter-spacing: .005em; color: var(--gold-l); position: relative;
}
.hero-sub { margin-top: 22px; font-size: 18px; line-height: 1.75; color: rgba(255,255,255,.82); max-width: 500px; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 14px; margin-top: 46px; flex-wrap: wrap; }
.hero-meta div {
  font-size: 12.5px; color: rgba(255,255,255,.75); padding: 14px 18px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px;
  backdrop-filter: blur(8px); min-width: 120px;
}
.hero-meta strong { display: block; color: #fff; font-family: var(--font-d); font-size: 22px; font-weight: 600; margin-bottom: 2px; }
.hero .btn-outline { background: rgba(255,255,255,.94); border-color: transparent; }

/* Hero — 4 seções em corte diagonal: foto 1 grande (fundo do texto) + 3 tiras */
.hero-photo-panels {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
/* fotos alimentadas pelo admin: ficam invisíveis até o loadConfig() decidir
   qual imagem exibir, pra nunca "piscar" uma foto predefinida antes da escolhida */
.cfg-photo { opacity: 0; transition: opacity .4s var(--ease); }
.cfg-photo.is-ready { opacity: 1; }
.cfg-photo.is-ready.verse-photo,
.cfg-photo.is-ready.footer-photo { opacity: .32; }

.hero-panel { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.hero-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  transition: transform .7s var(--ease);
}
/* caixa (left/right) de cada tira + recorte diagonal RELATIVO à própria caixa —
   assim cada foto é dimensionada pela sua área, aparecendo muito mais dela (menos zoom) */
.hero-panel-1      { left: 0;   right: 40%; clip-path: polygon(0 0, 100% 0, 83.33% 100%, 0 100%); }
.hero-panel-2      { left: 50%; right: 26%; clip-path: polygon(41.67% 0, 100% 0, 58.33% 100%, 0 100%); cursor: pointer; }
.hero-panel-3      { left: 64%; right: 12%; clip-path: polygon(41.67% 0, 100% 0, 58.33% 100%, 0 100%); cursor: pointer; }
.hero-panel-cartaz { left: 78%; right: 0;   clip-path: polygon(45.45% 0, 100% 0, 100% 100%, 0 100%); cursor: pointer; }
/* Escurece a foto 1 pro texto ficar legível */
.hero-panel-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(11,22,45,.92) 58%, rgba(11,22,45,.55) 82%, rgba(11,22,45,.12) 100%);
}
/* Profundidade em pé nas tiras */
.hero-panel-2::after, .hero-panel-3::after, .hero-panel-cartaz::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(11,22,45,.5) 0%, transparent 38%, transparent 72%, rgba(11,22,45,.26) 100%);
}
/* Zoom ao passar o mouse nas tiras 2, 3 e 4 */
.hero-panel-2:hover img,
.hero-panel-3:hover img,
.hero-panel-cartaz:hover img { transform: scale(1.08); }
/* Deixa o mouse alcançar as tiras (a área vazia do container não bloqueia o hover) */
.hero-grid { pointer-events: none; }
.hero-copy { pointer-events: auto; }

@media (max-width: 1180px) {
  .hero-copy { max-width: 460px; }
}
@media (max-width: 900px) {
  /* grade 2x2 em vez de 4 fotos espremidas numa fileira — cada foto fica
     com o dobro da largura e dá pra ver o que tem nela de verdade */
  .hero-photo-panels {
    position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    width: auto; height: auto; margin: 36px 20px 0; background: transparent;
  }
  .hero-panel {
    position: relative; inset: auto; clip-path: none; aspect-ratio: 4/5;
    border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(11,22,45,.5);
  }
  .hero-panel-scrim { display: none; }
  /* mesma profundidade das tiras 2/3/4 do desktop, agora também na 1ª foto */
  .hero-panel-1::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(0deg, rgba(11,22,45,.5) 0%, transparent 38%, transparent 72%, rgba(11,22,45,.26) 100%);
  }
  .hero-grid, .hero-copy { pointer-events: auto; }
}

/* ---------- Verse band (signature) ---------- */
.verse-band {
  position: relative; overflow: hidden; padding: 100px 0; text-align: center; isolation: isolate;
  background: var(--ivory);
}
.verse-band .verse-photo {
  display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.verse-band .verse-photo[src] { display: block; }
.verse-band blockquote { max-width: 820px; margin: 0 auto; font-family: var(--font-d); font-style: italic; font-weight: 500; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.34; color: var(--ink); }

/* ---------- Programação ---------- */
.section-programacao {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.programacao-bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.section-programacao::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(165deg, rgba(30,82,184,.72) 0%, rgba(11,22,45,.88) 100%),
    radial-gradient(1000px 560px at 88% -12%, rgba(107,160,239,.28), transparent 60%),
    radial-gradient(720px 480px at 4% 108%, rgba(201,164,89,.14), transparent 62%);
}
.section-programacao .eyebrow { color: var(--gold-l); justify-content: center; }
.section-programacao .eyebrow::before { background: var(--gold-l); }
.section-programacao .section-head h2 { color: #fff; }
.section-programacao .section-head p { color: rgba(255,255,255,.78); }
.section-programacao .subsection-title { color: #fff; }
.programacao-label {
  text-align: center; font-family: var(--font-i); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55);
  margin: 56px 0 20px;
}
.programacao-label:first-of-type { margin-top: 0; }

/* ---------- Agenda da semana (timeline, ligada ao cronograma + calendário mensal) ---------- */
.agenda-semanal { position: relative; max-width: 480px; margin: 0 auto; padding-left: 30px; }
.agenda-semanal::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.22); }
.agenda-dia { position: relative; padding-bottom: 30px; }
.agenda-dia:last-child { padding-bottom: 0; }
.agenda-dia::before {
  content: ''; position: absolute; left: -30px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold-l); box-shadow: 0 0 0 4px rgba(201,164,89,.18);
}
.agenda-dia-nome { font-family: var(--font-d); font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.agenda-dia-data { font-family: var(--font-i); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.agenda-itens { display: flex; flex-direction: column; gap: 8px; }
.agenda-item { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: rgba(255,255,255,.85); }
.agenda-item-nome { flex: 1; }
.agenda-item-horario { font-family: var(--font-i); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--gold-l); flex-shrink: 0; }

.events-panel {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 38px;
  margin: 56px auto 0; max-width: 820px; box-shadow: var(--shadow-lg);
}
.events-panel-head { text-align: center; margin-bottom: 22px; }
.events-panel-head .eyebrow { justify-content: center; }
.events-panel-head h3 { font-family: var(--font-d); font-size: 25px; font-weight: 600; color: var(--ink); }
.event-strip { display: flex; flex-direction: column; gap: 14px; }
.event-row { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.event-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.event-date { flex-shrink: 0; width: 62px; height: 62px; border-radius: 14px; background: linear-gradient(150deg, var(--cobalt-l), var(--cobalt-d)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-d); box-shadow: var(--shadow-cobalt); }
.event-date .n { font-size: 24px; font-weight: 700; line-height: 1; }
.event-date .m { font-family: var(--font-i); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .92; margin-top: 2px; }
.event-row-body { flex: 1 1 auto; min-width: 0; }
.event-row h4 { font-size: 16.5px; }
.event-row p { color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
.event-row-thumb { flex-shrink: 0; width: 64px; height: 84px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); background: var(--pearl); }
.event-row-thumb-empty { background: repeating-linear-gradient(135deg, var(--pearl) 0 10px, #fff 10px 20px); }
.event-row-arrow { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--ink-faint); transition: color .2s, transform .2s var(--ease); }
.event-row-arrow svg { width: 18px; height: 18px; }
.event-row:hover .event-row-arrow { color: var(--cobalt); transform: translateX(3px); }

/* ---------- Calendário mensal ---------- */
.calendar-wrap {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 960px; margin: 64px auto 0; border-radius: var(--radius-lg);
  padding: 44px 34px 34px; box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
}
.calendar-head { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 28px; }
.calendar-title { text-align: center; min-width: 220px; }
.calendar-title-label { display: block; font-family: var(--font-i); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 4px; }
.calendar-head h3 { font-family: var(--font-d); font-size: clamp(34px, 5vw, 48px); font-weight: 600; color: #fff; text-transform: capitalize; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.calendar-head h3 small { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.6); margin-left: 6px; }
.calendar-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.08); transition: background .2s, color .2s, border-color .2s; flex-shrink: 0; }
.calendar-nav svg { width: 16px; height: 16px; }
.calendar-nav:hover { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.calendar-cell { aspect-ratio: 4/5; border-radius: 12px; position: relative; border: 1px solid transparent; }
.calendar-cell.is-empty { background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; }
.calendar-cell.is-empty .cell-num { color: rgba(255,255,255,.45); font-weight: 600; }
.calendar-cell.has-event {
  cursor: pointer; background: #fff; border-color: var(--line);
  box-shadow: 0 10px 22px -10px rgba(16,32,63,.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 6px; text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.calendar-cell.has-event:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 28px -10px rgba(16,32,63,.55); border-color: transparent; z-index: 2; }
.calendar-cell.is-today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 10px 22px -10px rgba(16,32,63,.45); }
.calendar-cell.is-today.is-empty .cell-num { color: var(--gold); }
.calendar-cell .cell-num {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 21px;
  color: var(--cobalt); line-height: 1; font-variant-numeric: lining-nums tabular-nums;
}
.calendar-cell .cell-label { font-size: 10.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.3; padding: 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.calendar-cell .cell-cartaz-badge { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 2px 6px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.calendar-cell .cell-cartaz-badge svg { width: 9px; height: 9px; color: #fff; }

.modal-box.cal-modal-box { position: relative; text-align: center; max-width: 380px; padding: 0; overflow: hidden; }
.cal-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(16,32,63,.55); backdrop-filter: blur(3px); transition: background .2s; z-index: 2; }
.cal-modal-close svg { width: 16px; height: 16px; }
.cal-modal-close:hover { background: rgba(16,32,63,.82); }
.cal-modal-download {
  position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(16,32,63,.55); backdrop-filter: blur(3px); transition: background .25s, transform .25s; z-index: 2;
}
.cal-modal-download svg { width: 16px; height: 16px; }
.cal-modal-download:hover { background: var(--cobalt); transform: translateY(-1px); }
.cal-modal-cartaz { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--pearl); }
.cal-modal-body { padding: 22px 28px 28px; }
.cal-modal-box h3 { font-size: 22px; margin: 8px 0 10px; }
.cal-modal-box p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-bottom: 0; }

@media (max-width: 640px) {
  .calendar-wrap { padding: 30px 14px 20px; }
  .calendar-grid { gap: 6px; }
  .calendar-cell { border-radius: 8px; }
  .calendar-cell .cell-num { font-size: 15px; }
  /* a célula é pequena demais pro nome do culto caber legível — em vez de
     truncar pra 3 letras ilegíveis, mostra só um pontinho (toque pra ver o dia) */
  .calendar-cell .cell-label { display: none; }
  .calendar-cell .cell-cartaz-badge { display: none; }
  .calendar-cell.has-event { gap: 0; padding: 4px; }
  .calendar-cell.has-event::after {
    content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 5px;
  }
  .calendar-head { gap: 10px; margin-bottom: 20px; }
  .calendar-title { min-width: 140px; }
  .calendar-nav { width: 36px; height: 36px; }
  .events-panel { padding: 26px 18px; margin-top: 40px; }
  .event-row { padding: 14px 16px; gap: 14px; }
  .event-row-thumb { width: 52px; height: 68px; }
}

/* ---------- Sobre (igreja + liderança) ---------- */
.about-intro { max-width: 780px; margin: 0 auto; text-align: center; }
.about-intro .section-head p { max-width: 100%; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; max-width: 900px; margin-left: auto; margin-right: auto; }
.pillar { background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 22px; transition: transform .25s var(--ease), background .25s; text-align: left; }
.pillar:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-sm); }
.pillar h4 { font-family: var(--font-d); font-size: 21px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.pillar p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

.leader-strip {
  margin-top: 72px; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center;
  background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 40px;
}
.leader-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); border: 4px solid #fff; }
.leader-copy .eyebrow { margin-bottom: 6px; }
.leader-copy h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.leader-copy p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 8px; max-width: 640px; }
.leader-copy .signature { font-family: var(--font-d); font-style: italic; font-size: 18px; color: var(--cobalt); }

.subsection-title { font-family: var(--font-d); font-size: 26px; font-weight: 600; color: var(--ink); margin: 0 0 24px; text-align: center; }

/* ---------- Nossa história (página Sobre) ---------- */
.historia-section { background: var(--pearl); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 84px 0; margin-top: 80px; }
.historia-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.historia-head .eyebrow { justify-content: center; margin-bottom: 10px; }
.historia-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.historia-body { max-width: 720px; margin: 0 auto; }
.historia-body p { font-size: 16px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 24px; }
.historia-body p:last-child { margin-bottom: 0; }

/* Foto antiga do pastor / fotos da galeria "história" — flutuam junto do texto, sem legenda */
.historia-body::after { content: ''; display: block; clear: both; }
.historia-old-photo { float: right; width: 260px; margin: 0 0 24px 32px; position: relative; }
.historia-old-photo.float-left { float: left; margin: 0 32px 24px 0; }
.historia-old-photo figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; box-shadow: var(--shadow-sm); }
.historia-old-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; background: var(--ivory); }
.historia-old-photo:not(.historia-item) img { filter: grayscale(.15) sepia(.12); }
.historia-old-photo.is-empty img { display: none; }
.historia-old-photo.is-empty figure::before { content: 'Foto antiga do pastor e da pastora'; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4/5; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--pearl) 0 14px, #fff 14px 28px); text-align: center; padding: 20px; font-size: 12.5px; color: var(--ink-faint); }

/* fotos da galeria "história" — em vez de tentar flutuar soltas ao lado de
   pouco texto (o que deixava a última foto "perdida" sem nada por perto),
   aparecem juntas como um par, lado a lado, entre os parágrafos */
.historia-photos-row {
  clear: both; display: flex; align-items: flex-end; justify-content: center;
  gap: 24px; margin: 14px 0 32px;
}
.historia-photos-row .historia-old-photo.historia-item { float: none; clear: none; margin: 0; }
.historia-old-photo.historia-item.size-lg { width: 280px; }
.historia-old-photo.historia-item.size-sm { width: 210px; }

@media (max-width: 640px) {
  .historia-section { padding: 56px 0; margin-top: 56px; }
  /* foto do pastor/pastora: centralizada, sozinha */
  .historia-old-photo:not(.historia-item), .historia-old-photo.float-left:not(.historia-item) {
    float: none; width: 210px; margin: 0 auto 24px;
  }
  .historia-photos-row { gap: 12px; margin: 10px 0 26px; }
  .historia-old-photo.historia-item.size-lg { width: 170px; }
  .historia-old-photo.historia-item.size-sm { width: 130px; }
}

/* ---------- Ministérios ---------- */
.ministry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 340px)); justify-content: center; gap: 24px; }
.ministry-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ministry-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(107,160,239,.14), transparent 70%); transition: transform .5s var(--ease); }
.ministry-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.ministry-card:hover::after { transform: scale(1.5); }
.ministry-icon { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(150deg, var(--cobalt-l), var(--cobalt-d)); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: var(--shadow-cobalt); }
.ministry-icon svg { width: 25px; height: 25px; }
.ministry-card h4 { position: relative; z-index: 1; font-family: var(--font-d); font-size: 24px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.ministry-card p { position: relative; z-index: 1; font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.ministry-card-link { text-decoration: none; display: flex; flex-direction: column; }
.ministry-link-arrow { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--cobalt); }
.ministry-link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.ministry-card-link:hover .ministry-link-arrow svg { transform: translateX(4px); }

/* ---------- Páginas internas (Sobre, Blog, Ministérios) ---------- */
.page-hero-section { padding-top: 64px; }

/* Banner de foto no topo das páginas internas */
.page-banner { position: relative; overflow: hidden; isolation: isolate; padding: 84px 0 68px; text-align: center; }
.page-banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,32,63,.62), rgba(16,32,63,.74) 55%, rgba(16,32,63,.82)),
              radial-gradient(650px 380px at 50% 0%, rgba(107,160,239,.3), transparent 65%);
}
.page-banner .eyebrow { justify-content: center; color: var(--gold-l); }
.page-banner .eyebrow::before { background: var(--gold-l); }
.page-banner h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.page-banner p { color: rgba(255,255,255,.88); max-width: 620px; margin: 16px auto 0; font-size: 16.5px; line-height: 1.7; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.nav-links a.active { color: var(--cobalt); }
.nav-links a.active::after { width: 100%; }

.ministerio-detalhe { max-width: 780px; margin: 0 auto; }
.ministerio-capa { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow-lg); }
.ministerio-capa img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.ministerio-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.ministerio-head h1 { font-size: clamp(30px, 4.4vw, 44px); }
.ministerio-icone { flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; background: var(--pearl); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ministerio-icone img { width: 100%; height: 100%; object-fit: cover; }
.ministerio-corpo p { font-size: 17px; line-height: 1.85; color: var(--ink-soft); white-space: pre-line; }

@media (max-width: 640px) {
  .ministerio-head { flex-direction: column; text-align: center; }
}

/* ---------- Vídeos ---------- */
.live-banner { display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, var(--cobalt-d), var(--ink)); color: #fff; border-radius: var(--radius); padding: 26px 32px; box-shadow: var(--shadow-cobalt); margin-bottom: 40px; }
.live-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-i); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #FFD1D1; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 0 rgba(255,90,90,.6); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,90,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,90,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,90,0); } }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 460px)); justify-content: center; gap: 26px; }
.video-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 18px 20px; }
.video-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.live-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.live-inline .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #ff5a5a; flex-shrink: 0; }
.live-inline .dot-recorded { width: 12px; height: 12px; color: var(--cobalt); flex-shrink: 0; }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.gallery-grid .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--pearl); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,32,63,.65)); opacity: 0; transition: opacity .25s var(--ease); }
.gallery-item .gallery-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after, .gallery-item:hover .gallery-caption { opacity: 1; transform: none; }

.lightbox-box { position: relative; max-width: 88vw; max-height: 88vh; }
.lightbox-box img { max-width: 88vw; max-height: 78vh; border-radius: var(--radius-sm); display: block; box-shadow: var(--shadow-lg); }
.lightbox-box p { color: #fff; text-align: center; margin-top: 14px; font-size: 14.5px; }
.lightbox-close { position: absolute; top: -16px; right: -16px; background: #fff; box-shadow: var(--shadow); }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 400px)); justify-content: center; gap: 30px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--pearl); }
.blog-body { padding: 26px; }
.blog-date { font-family: var(--font-i); font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.blog-body h3 { font-size: 24px; margin: 12px 0 10px; font-weight: 600; }
.blog-body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }

/* ---------- Dízimos ---------- */
.section-dizimos { position: relative; overflow: hidden; isolation: isolate; }
.dizimos-photo {
  position: absolute; top: 0; right: 0; width: 46%; height: 100%; object-fit: cover; z-index: -1;
  opacity: .18; mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 35%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.dizimos-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.dizimos-grid h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.dizimos-copy .eyebrow { color: var(--gold); }
.dizimos-copy > p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.8; max-width: 480px; }
.pix-key-row { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; max-width: 440px; box-shadow: var(--shadow-sm); }
.pix-key-row strong { display: block; font-size: 16px; color: var(--ink); margin-top: 3px; word-break: break-all; font-weight: 600; }
.pix-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); position: relative; }
.pix-card::before { content: ''; position: absolute; inset: -1px; border-radius: var(--radius-lg); padding: 1px; background: linear-gradient(150deg, var(--gold-soft), transparent 55%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.qr-wrap { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.qr-wrap img { width: 240px; height: 240px; border-radius: 12px; }
.qr-empty { text-align: center; color: var(--ink-faint); font-size: 14px; padding: 24px; }

/* ---------- Oração ---------- */
.prayer-form { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }

/* ---------- Forms (shared) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: 11px;
  font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(30,82,184,.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12.5px; color: var(--ink-faint); }
.checkbox-row { display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--cobalt); }

.pos-control { margin-top: 10px; }
.pos-control .pos-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.pos-control .pos-row span { font-size: 11px; color: var(--ink-faint); width: 16px; flex-shrink: 0; }
.pos-control input[type="range"] { flex: 1; accent-color: var(--cobalt); height: 4px; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info h2 { font-size: clamp(28px, 3.6vw, 40px); }
.info-item { display: flex; gap: 18px; align-items: flex-start; }
.info-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; background: var(--pearl); border: 1px solid var(--line); color: var(--cobalt); display: flex; align-items: center; justify-content: center; }
.info-icon svg { width: 21px; height: 21px; }
.info-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.info-item p, .info-item a { font-size: 14.5px; color: var(--ink-soft); }
.info-item a:hover { color: var(--cobalt); }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-2); background: #fff; transition: background .25s var(--ease), color .25s, transform .25s var(--ease); }
.social-btn svg { width: 20px; height: 20px; stroke-width: 1.7; transition: stroke-width .2s, transform .2s var(--ease); }
.social-btn:hover { background: var(--cobalt-d); color: #fff; transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-cobalt); }
.social-btn:hover svg { stroke-width: 2.2; transform: scale(1.08); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 340px; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- States ---------- */
.empty-state {
  text-align: center; padding: 52px 24px; color: var(--ink-soft); font-size: 15px; grid-column: 1 / -1;
  background: linear-gradient(165deg, var(--pearl) 0%, #fff 130%);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
}
.empty-state::before {
  content: ''; display: block; width: 44px; height: 44px; margin: 0 auto 14px;
  background: var(--gold-l);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c-1.6 2.4-5 4.7-5 8.6A5 5 0 0012 16a5 5 0 005-4.4c0-3.9-3.4-6.2-5-8.6z'/%3E%3Cpath d='M9 20h6' opacity='.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c-1.6 2.4-5 4.7-5 8.6A5 5 0 0012 16a5 5 0 005-4.4c0-3.9-3.4-6.2-5-8.6z'/%3E%3Cpath d='M9 20h6' opacity='.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.loader { display: flex; align-items: center; justify-content: center; min-height: 160px; color: var(--ink-faint); font-size: 14px; grid-column: 1 / -1; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--cobalt); animation: spin .7s linear infinite; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 30px; position: relative; overflow: hidden; isolation: isolate; }
.footer-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .32; mix-blend-mode: luminosity; }
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(150deg, rgba(22,63,143,.92) 0%, rgba(16,32,63,.95) 60%), radial-gradient(700px 700px at 50% -30%, rgba(107,160,239,.24), transparent 62%); pointer-events: none; }
.footer-logo-horizontal { height: 40px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid .brand-name { color: #fff; }
.footer-grid h4 { color: #fff; font-family: var(--font-i); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a, .footer-grid li { font-size: 14px; color: rgba(255,255,255,.68); }
.footer-grid a:hover { color: var(--gold-l); }
.footer-tagline { font-size: 14px; line-height: 1.7; max-width: 300px; color: rgba(255,255,255,.6); margin-top: 14px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-bottom a:hover { color: var(--gold-l); }
.footer-admin-link { opacity: .5; }
.footer-admin-link:hover { opacity: 1; }
.footer-install-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.footer-install-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.footer-install-btn[hidden] { display: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(24px); background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 16px; font-size: 14px; max-width: min(420px, 90vw); text-align: center; line-height: 1.4; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 999; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* Entrada escalonada para grids preenchidos via JS (cards, fotos, vídeos...) */
.stagger-item { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.stagger-item.is-visible { opacity: 1; transform: none; }

/* Brilho que segue o cursor em cards selecionados */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(30,82,184,.13), transparent 68%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ---------- Hero load animation ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes riseInScale { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }

.hero-copy > * { opacity: 0; animation: riseIn .9s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .1s; }
.hero-copy > *:nth-child(2) { animation-delay: .22s; }
.hero-copy > *:nth-child(3) { animation-delay: .34s; }
.hero-copy > *:nth-child(4) { animation-delay: .46s; }
.hero-copy > *:nth-child(5) { animation-delay: .58s; }
.hero-photo-panels { opacity: 0; animation: riseInScale 1s var(--ease) .5s forwards; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid, .dizimos-grid { grid-template-columns: 1fr; gap: 44px; }
  /* com o grid empilhado, a foto de fundo (pensada pra ficar só ao lado da coluna
     de texto no desktop) passaria a aparecer atrás do próprio texto — desliga */
  .dizimos-photo { display: none; }
  .leader-strip { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .leader-copy p { max-width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav { padding: 14px 0; gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark, .site-header.is-scrolled .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 16px; }
  .brand-tag { font-size: 7.5px; max-width: 150px; letter-spacing: .03em; }
  .hero { padding: 60px 0 76px; }
  .hero-meta div { flex: 1; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .prayer-form { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-copy > *, .hero-photo-panels { opacity: 1 !important; }
  .reveal, .stagger-item { opacity: 1 !important; transform: none !important; }
  .spotlight::before { display: none; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: var(--pearl); min-height: 100vh; color: var(--ink-soft); }
.admin-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, var(--cobalt-d), var(--ink)); color: #fff; padding: 28px 18px; display: flex; flex-direction: column; gap: 5px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; }
.admin-brand .brand-mark img { filter: drop-shadow(0 3px 8px rgba(0,0,0,.3)); }
.admin-brand .brand-name { color: #fff; font-size: 18px; }
.admin-nav-group-label { display: block; padding: 16px 14px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.admin-nav-group-label:first-of-type { padding-top: 2px; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; color: rgba(255,255,255,.72); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; cursor: pointer; }
.admin-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-item.active { background: #fff; color: var(--cobalt-d); font-weight: 600; box-shadow: var(--shadow-sm); }
.nav-item-icon { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; }
.nav-item-icon svg { width: 100%; height: 100%; }
.admin-sidebar-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.admin-user { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 12px; word-break: break-all; }

.admin-main { padding: 38px 44px; overflow-x: hidden; }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-family: var(--font-d); font-size: 32px; font-weight: 600; }
.admin-topbar p { color: var(--ink-soft); font-size: 14.5px; margin-top: 5px; }

.panel { display: none; animation: riseIn .4s var(--ease); }
.panel.active { display: block; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-head h3 { font-family: var(--font-d); font-size: 21px; font-weight: 600; }

.upload-drop { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 24px; display: flex; align-items: center; gap: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.upload-drop:hover { border-color: var(--cobalt); background: var(--pearl); }
.upload-drop img { width: 88px; height: 88px; object-fit: cover; border-radius: 11px; }
.upload-drop .ph { width: 88px; height: 88px; border-radius: 11px; background: var(--pearl); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); flex-shrink: 0; }
.upload-drop .ph svg { width: 34px; height: 34px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table.data-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.data-table th { text-align: left; font-family: var(--font-i); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); padding: 11px 12px; border-bottom: 1.5px solid var(--line); }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; color: var(--ink-2); }
.data-table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.badge-on { background: rgba(46,138,87,.12); color: var(--success); }
.badge-off { background: rgba(86,97,126,.12); color: var(--ink-soft); }
.thumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: var(--pearl); }

/* Admin login */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% -10%, #24345A, var(--ink)); padding: 24px; position: relative; overflow: hidden; }
.auth-screen::before { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(107,160,239,.24), transparent 62%); animation: breathe 9s var(--ease) infinite; }
.auth-screen-texture {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .5; mix-blend-mode: screen; pointer-events: none;
}
.auth-screen-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,63,.35), var(--ink) 88%); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 24px; padding: 42px 36px; box-shadow: var(--shadow-lg); animation: riseInScale .6s var(--ease); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: 28px; }
.auth-brand-logo { width: 92px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 8px 18px rgba(16,32,63,.2)); }
.auth-brand .brand-name { color: var(--ink); font-family: var(--font-d); font-size: 22px; font-weight: 600; }
.auth-brand .brand-tag { color: var(--gold); font-family: var(--font-i); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.auth-card h2 { font-family: var(--font-d); font-size: 24px; text-align: center; margin-bottom: 26px; font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-error { color: var(--danger); font-size: 13.5px; text-align: center; min-height: 18px; line-height: 1.4; }
.auth-card .btn-primary { width: 100%; margin-top: 6px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,32,63,.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 30px; max-width: 400px; width: 100%; box-shadow: var(--shadow-lg); animation: riseInScale .3s var(--ease); }
.modal-box h3 { font-family: var(--font-d); font-size: 22px; margin-bottom: 10px; }
.modal-box p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.admin-nav-toggle { display: none; }
.admin-sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }

  /* barra fixa no topo com botão "Menu" — abre a barra lateral como gaveta,
     em vez daquela fileira de abas rolando na horizontal */
  .admin-nav-toggle {
    display: flex; align-items: center; gap: 9px;
    position: sticky; top: 0; z-index: 60; width: 100%;
    padding: 15px 20px; background: var(--ink); color: #fff;
    border: none; border-bottom: 1px solid rgba(255,255,255,.12);
    font-family: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer;
  }

  .admin-sidebar {
    /* sem "height: 100vh" de propósito — em navegador de celular real essa unidade
       varia conforme a barra de endereço aparece/some, e a gaveta encolhia e sobrava
       espaço em branco embaixo. com "inset: 0 ... 0 0" (topo e base grudados na tela)
       ela sempre preenche a altura visível de verdade, sem depender de vh. */
    position: fixed; inset: 0 auto 0 0; z-index: 100;
    width: 280px; max-width: 84vw; overflow-y: auto;
    transform: translateX(-100%); transition: transform .3s var(--ease);
    box-shadow: 0 0 50px rgba(0,0,0,.35);
  }
  .admin-sidebar.open { transform: translateX(0); }

  .admin-sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 90;
    background: rgba(11,22,45,.5); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .admin-sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

  .admin-nav-item { white-space: normal; }
  .admin-main { padding: 24px 20px; }
  .admin-topbar h1 { font-size: 26px; }

  /* tabelas viram cards empilhados — sem rolagem horizontal nenhuma,
     tudo (inclusive os botões Editar/Excluir) sempre visível de cara */
  .table-scroll { overflow-x: visible; margin: 0; }
  table.data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  }
  .data-table tr:last-child { margin-bottom: 0; }
  .data-table td { padding: 3px 0; border: none; }
  .data-table td:empty { display: none; }
  .data-table td.row-actions { display: flex; gap: 8px; justify-content: flex-start; margin-top: 10px; }
  .data-table .thumb { width: 100%; height: 140px; margin-bottom: 8px; }
}

/* ---------- Página legal (privacidade.html) ---------- */
.legal-page { max-width: 780px; margin: 0 auto; padding: 64px 24px 100px; }
.legal-page h1 { font-size: clamp(28px, 5vw, 34px); font-weight: 600; margin-bottom: 8px; }
.legal-page .updated { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 40px; }
.legal-page h2 { font-size: 19px; font-weight: 600; margin: 36px 0 12px; color: var(--ink); font-family: var(--font-d); }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.legal-page ul { padding-left: 20px; margin: 10px 0; }
.legal-page li { margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cobalt); margin-bottom: 30px; }
