:root {
  --ouro: #F5B921;
  --ouro-escuro: #B87E04;
  --ouro-claro: #FFE9A8;
  --ouro-soft: rgba(245, 185, 33, 0.16);
  --preto: #12151C;
  --grafite: #232834;
  --creme: #FAF7F0;
  --branco: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --azul: #1B2B4B;
  --cinza: #5E6472;
  --linha: rgba(18, 21, 28, 0.09);
  --erro: #C62828;
  --ok: #1B7A4B;
  --raio: 20px;
  --raio-sm: 13px;
  --sombra: 0 8px 28px -6px rgba(18, 21, 28, 0.08);
  --sombra-hover: 0 18px 38px -10px rgba(18, 21, 28, 0.15);
  --fonte-titulo: "Cinzel", "Times New Roman", Georgia, serif;
  --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tab-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --creme: #0C0F16;
  --branco: #151A26;
  --surface-glass: rgba(21, 26, 38, 0.86);
  --preto: #F4F5F7;
  --grafite: #D1D5DB;
  --cinza: #9CA3AF;
  --linha: rgba(255, 255, 255, 0.09);
  --ouro-soft: rgba(245, 185, 33, 0.18);
  --sombra: 0 10px 30px -6px rgba(0, 0, 0, 0.45);
  --sombra-hover: 0 18px 40px -8px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--fonte);
  background: var(--creme);
  background-image:
    radial-gradient(circle at 92% 4%, rgba(245, 185, 33, 0.11), transparent 40%),
    radial-gradient(circle at 6% 45%, rgba(27, 43, 75, 0.06), transparent 45%);
  background-attachment: fixed;
  color: var(--preto);
  line-height: 1.6;
  font-size: 16.5px;
  min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; left: -9999px; }

/* Faixa de notícias Vatican News */
.ticker {
  max-width: 1180px;
  margin: 0.7rem auto 0;
  width: calc(100% - 1.5rem);
  background: #12151C;
  color: var(--ouro-claro);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 33, 0.35);
  box-shadow: var(--sombra);
}
.ticker-label {
  background: linear-gradient(135deg, var(--ouro), #ffd257);
  color: #12151C;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12151C;
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(18, 21, 28, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(18, 21, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 21, 28, 0); }
}
.ticker-track { overflow: hidden; flex: 1; position: relative; }
.ticker-move { display: inline-flex; white-space: nowrap; padding: 0.45rem 0; animation: marquee 85s linear infinite; }
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
.ticker-move a { text-decoration: none; padding: 0 2rem; position: relative; transition: color 0.2s; }
.ticker-move a::after { content: "✝"; position: absolute; right: -0.3rem; color: var(--ouro); }
.ticker-move a:hover { color: #fff; text-decoration: underline; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; overflow-x: auto; } }

.aviso-topo {
  background: linear-gradient(90deg, var(--ouro), #ffcf4d);
  color: #12151C;
  text-align: center;
  font-weight: 800;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Cabeçalho Glassmorphism */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--linha);
  transition: background 0.3s ease;
}
.topbar-in {
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; min-width: 0; }
.brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand img { width: 100%; height: 100%; object-fit: contain; }
.brand b { display: block; font-family: var(--fonte-titulo); font-size: 1.02rem; letter-spacing: 0.03em; line-height: 1.15; white-space: nowrap; }
.brand small { display: block; color: var(--ouro-escuro); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
[data-theme="dark"] .brand small { color: var(--ouro); }

.nav-desk { display: none; margin-left: auto; gap: 0.2rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-desk a {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--cinza);
  transition: all 0.2s var(--ease);
}
.nav-desk a:hover { background: var(--ouro-soft); color: var(--preto); }
.nav-desk a.on { background: #12151C; color: var(--ouro); box-shadow: 0 4px 12px rgba(18, 21, 28, 0.2); }
[data-theme="dark"] .nav-desk a.on { background: var(--ouro); color: #12151C; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 1020px) {
  .nav-desk { display: flex; }
  .top-actions { margin-left: 0.4rem; }
  .menu-btn { display: none; }
  .tabbar { display: none !important; }
  body { padding-bottom: 0; }
}
@media (min-width: 1020px) and (max-width: 1260px) { .brand small { display: none; } }

.theme-btn, .menu-btn {
  background: var(--branco);
  color: var(--preto);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.theme-btn { padding: 0.48rem 0.68rem; }
.menu-btn { background: #12151C; color: var(--ouro); border-color: #12151C; }
.theme-btn:hover, .menu-btn:hover { transform: translateY(-2px); border-color: var(--ouro); }

/* Gaveta Mobile */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(9, 12, 18, 0.65); backdrop-filter: blur(5px); animation: fadeIn 0.25s ease; }
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--branco);
  padding: 1.1rem;
  overflow: auto;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.35);
  animation: slideLeft 0.3s var(--ease);
}
@keyframes slideLeft { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.7rem; border-bottom: 1px solid var(--linha); }
.drawer-title { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1rem; }
.drawer-panel a, .drawer-panel button.lnk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.78rem 0.85rem;
  border-radius: 12px;
  margin-bottom: 0.2rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.drawer-panel a:hover, .drawer-panel button.lnk:hover { background: var(--ouro-soft); }
.drawer-panel a.on { background: #12151C; color: var(--ouro); }
[data-theme="dark"] .drawer-panel a.on { background: var(--ouro); color: #12151C; }
.drawer-close { background: #12151C; color: var(--ouro); border: 0; border-radius: 999px; padding: 0.4rem 0.85rem; font-weight: 800; cursor: pointer; }

/* Barra inferior PWA */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(18, 21, 28, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 60;
  border-top: 2px solid var(--ouro);
}
.tabbar a, .tabbar button {
  background: none;
  border: 0;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}
.tabbar span { font-size: 1.32rem; line-height: 1; }
.tabbar .on { color: var(--ouro); transform: translateY(-2px); }

/* Layout Principal & Animações */
main { max-width: 1180px; margin: auto; padding: 1.2rem 1rem 2.5rem; }
main:focus { outline: none; }

.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.55s var(--ease) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.page-title { font-family: var(--fonte-titulo); font-size: clamp(1.55rem, 4.5vw, 2.25rem); letter-spacing: 0.02em; margin: 0.4rem 0 0.3rem; }
.page-sub { color: var(--cinza); margin-bottom: 1.3rem; font-size: 0.98rem; }
.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--sombra);
  border: 1px solid var(--linha);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-hover); border-color: rgba(245, 185, 33, 0.4); }
.card h3 { font-family: var(--fonte-titulo); font-size: 1.08rem; letter-spacing: 0.02em; margin-bottom: 0.45rem; }
.card.dark { background: linear-gradient(145deg, #12151C, #1D2536); color: #fff; border-color: #263044; }
.card.gold { background: linear-gradient(135deg, #F5B921 0%, #FFE07D 100%); color: #12151C; border-color: #E0A310; }
.card.gold .muted { color: #4A3600 !important; }

.muted { color: var(--cinza); font-size: 0.91rem; }
.pill { display: inline-block; background: var(--ouro-soft); color: var(--ouro-escuro); border-radius: 999px; padding: 0.16rem 0.7rem; font-size: 0.76rem; font-weight: 800; }
[data-theme="dark"] .pill { color: var(--ouro); }
.pill.exp { background: rgba(128, 128, 128, 0.15); color: var(--cinza); }
.pill.dest { background: #12151C; color: var(--ouro); }

section { margin-top: 2rem; }
h2.sec {
  font-family: var(--fonte-titulo);
  font-size: 1.32rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
}
h2.sec a {
  font-family: var(--fonte);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ouro-escuro);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--ouro-soft);
  transition: transform 0.2s;
}
[data-theme="dark"] h2.sec a { color: var(--ouro); }
h2.sec a:hover { transform: translateX(3px); }

/* Hero Section Dinâmica */
.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 185, 33, 0.32), transparent 52%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 235, 0.22), transparent 50%),
    linear-gradient(135deg, #0E131F 0%, #182338 100%);
  color: #fff;
  border-radius: 28px;
  padding: 1.8rem 1.4rem;
  display: grid;
  gap: 1.4rem;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 45px -15px rgba(14, 19, 31, 0.45);
  border: 1px solid rgba(245, 185, 33, 0.25);
}
.hero img.logo {
  width: 145px;
  background: #fff;
  border-radius: 24px;
  padding: 0.75rem;
  justify-self: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease);
}
.hero:hover img.logo { transform: scale(1.03) rotate(-1deg); }
.hero h1 { font-family: var(--fonte-titulo); font-size: clamp(1.7rem, 5.5vw, 2.75rem); line-height: 1.12; letter-spacing: 0.02em; }
.hero h1 em { color: var(--ouro); font-style: normal; }
.hero p { color: #E2E8F0; margin: 0.55rem 0 1.1rem; font-size: 1rem; }
.hero .next {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 185, 33, 0.45);
  border-radius: 16px;
  padding: 0.8rem 1.1rem;
  display: inline-block;
}
.hero .next b { color: var(--ouro); }
.countdown-pill {
  display: inline-block;
  margin-left: 0.45rem;
  background: var(--ouro);
  color: #12151C;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
}
@media (min-width: 780px) {
  .hero { grid-template-columns: 210px 1fr; padding: 2.3rem; }
  .hero img.logo { width: 185px; }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--ouro), #ffca3a);
  color: #12151C;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px -4px rgba(245, 185, 33, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 10px 24px -4px rgba(245, 185, 33, 0.6); }
.btn:active { transform: scale(0.98); }
.btn.dark { background: #12151C; color: var(--ouro); box-shadow: 0 6px 18px -4px rgba(18, 21, 28, 0.35); }
[data-theme="dark"] .btn.dark { background: #232B3E; color: var(--ouro); }
.btn.ghost { background: transparent; border: 2px solid var(--preto); color: var(--preto); box-shadow: none; }
.btn.small { padding: 0.45rem 0.95rem; font-size: 0.84rem; }
.btn.danger { background: var(--erro); color: #fff; box-shadow: none; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.row { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }

/* Atalhos Rápidos */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0.85rem; }
.quick a {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 1.05rem 0.65rem;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--sombra);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.quick a:hover { transform: translateY(-4px); border-color: var(--ouro); box-shadow: var(--sombra-hover); }
.quick a span { display: block; font-size: 1.95rem; margin-bottom: 0.25rem; transition: transform 0.25s var(--ease); }
.quick a:hover span { transform: scale(1.12); }

/* Listas de Avisos e Agenda */
.item { display: flex; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--linha); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item:first-child { padding-top: 0; }
.date-badge {
  flex: 0 0 62px;
  text-align: center;
  background: #12151C;
  color: var(--ouro);
  border-radius: 15px;
  padding: 0.48rem 0.2rem;
  line-height: 1.1;
  align-self: flex-start;
  box-shadow: 0 6px 14px rgba(18, 21, 28, 0.16);
}
.date-badge b { display: block; font-size: 1.45rem; }
.date-badge small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.item h4 { font-size: 1.04rem; margin-bottom: 0.15rem; }
.item p { font-size: 0.94rem; color: var(--grafite); white-space: pre-line; margin-top: 0.3rem; }

/* Horários */
.hor-group { margin-bottom: 0; }
.hor-row { display: grid; gap: 0.2rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--linha); }
.hor-row:last-child { border: 0; padding-bottom: 0; }
.hor-row .dias { font-weight: 800; }
.hor-row .hs { color: var(--ouro-escuro); font-weight: 800; font-size: 1.08rem; }
[data-theme="dark"] .hor-row .hs { color: var(--ouro); }
.chip {
  display: inline-block;
  background: var(--creme);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  margin: 0.18rem 0.22rem 0 0;
  font-weight: 700;
  transition: border-color 0.2s, transform 0.15s;
}
.chip:hover { border-color: var(--ouro); transform: translateY(-1px); }

/* Formulários e Busca */
form .field { margin-bottom: 0.95rem; }
label { display: block; font-weight: 800; margin-bottom: 0.3rem; font-size: 0.9rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=datetime-local], input[type=date], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 2px solid var(--linha);
  border-radius: var(--raio-sm);
  background: var(--creme);
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ouro);
  background: var(--branco);
  box-shadow: 0 0 0 4px var(--ouro-soft);
  outline: none;
}
textarea { min-height: 112px; resize: vertical; }
.search-bar { margin-bottom: 1.1rem; }

.check { display: flex; gap: 0.55rem; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ouro-escuro); }
.help { font-size: 0.82rem; color: var(--cinza); margin-top: 0.25rem; }
.alert { padding: 0.85rem 1.05rem; border-radius: var(--raio-sm); margin: 0.85rem 0; font-weight: 600; }
.alert.ok { background: #e6f5ec; color: #155e39; border: 1px solid #b8e0c8; }
.alert.err { background: #fde8e6; color: #991b1b; border: 1px solid #f4c1bd; }
.alert.info { background: var(--ouro-soft); color: var(--preto); border: 1px solid rgba(245, 185, 33, 0.45); }

.tabs { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.tabs button {
  border: 1.5px solid var(--linha);
  background: var(--branco);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tabs button:hover { border-color: var(--ouro); }
.tabs button.on { background: #12151C; color: var(--ouro); border-color: #12151C; }
[data-theme="dark"] .tabs button.on { background: var(--ouro); color: #12151C; border-color: var(--ouro); }

/* Liturgia e Acordeões */
.texto-lit h4 { font-family: var(--fonte-titulo); margin: 1.2rem 0 0.25rem; font-size: 1.12rem; }
.texto-lit .ref { color: var(--ouro-escuro); font-weight: 800; font-size: 0.9rem; }
[data-theme="dark"] .texto-lit .ref { color: var(--ouro); }
.texto-lit p { white-space: pre-line; margin: 0.35rem 0 0.9rem; font-size: 1.04rem; line-height: 1.75; }
.cor-lit { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 0.35rem; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, 0.2); }

.acc {
  border: 1px solid var(--linha);
  border-radius: 16px;
  background: var(--branco);
  margin-bottom: 0.65rem;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: border-color 0.2s;
}
.acc:hover { border-color: rgba(245, 185, 33, 0.45); }
.acc summary { padding: 0.95rem 1.15rem; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 0.6rem; }
.acc summary::after { content: "＋"; color: var(--ouro-escuro); font-weight: 800; }
[data-theme="dark"] .acc summary::after { color: var(--ouro); }
.acc[open] summary::after { content: "－"; }
.acc .corpo { padding: 0 1.15rem 1.1rem; white-space: pre-line; font-size: 1.03rem; line-height: 1.75; border-top: 1px solid var(--linha); padding-top: 0.85rem; }

/* Galeria & Lightbox */
.galeria { columns: 2 180px; column-gap: 0.9rem; }
.galeria figure {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--branco);
  border: 1px solid var(--linha);
  cursor: zoom-in;
  box-shadow: var(--sombra);
  transition: transform 0.25s var(--ease);
}
.galeria figure:hover { transform: translateY(-3px); }
.galeria figcaption { padding: 0.5rem 0.75rem; font-size: 0.85rem; color: var(--cinza); font-weight: 600; }
.lightbox { position: fixed; inset: 0; background: rgba(9, 12, 18, 0.92); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; flex-direction: column; gap: 0.7rem; }
.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }
.lightbox img { max-height: 82vh; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.lightbox p { color: #fff; font-weight: 600; }

/* Vídeo Ao Vivo */
.video { position: relative; padding-top: 56.25%; border-radius: var(--raio); overflow: hidden; background: #000; box-shadow: var(--sombra-hover); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* PIX */
.pix-box { text-align: center; }
#qr { display: inline-block; background: #fff; padding: 14px; border-radius: 18px; margin: 0.7rem 0; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.pix-code { word-break: break-all; background: var(--creme); border: 1.5px dashed var(--ouro-escuro); border-radius: 12px; padding: 0.75rem; font-size: 0.82rem; margin: 0.6rem 0; text-align: left; font-family: monospace; }
.valores { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin: 0.7rem 0; }
.valores button { border: 1.5px solid var(--linha); background: var(--creme); border-radius: 999px; padding: 0.45rem 1.05rem; font-weight: 800; cursor: pointer; transition: all 0.2s; }
.valores button:hover { border-color: var(--ouro); }
.valores button.on { background: #12151C; color: var(--ouro); border-color: #12151C; }
[data-theme="dark"] .valores button.on { background: var(--ouro); color: #12151C; }

/* Pároco */
.paroco { display: grid; gap: 1.3rem; align-items: center; }
.paroco img {
  border-radius: 22px;
  width: 100%;
  max-width: 290px;
  justify-self: center;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--ouro);
}
@media (min-width: 680px) { .paroco { grid-template-columns: 260px 1fr; } }

/* Rodapé */
footer { background: #12151C; color: #d9d3c0; padding: 2.4rem 1rem 2.8rem; margin-top: 2.5rem; border-top: 4px solid var(--ouro); }
.foot-in { max-width: 1180px; margin: auto; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
footer h4 { font-family: var(--fonte-titulo); color: var(--ouro); margin-bottom: 0.55rem; }
footer a { color: var(--ouro-claro); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .copy { grid-column: 1/-1; font-size: 0.82rem; color: #9a947f; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.1rem; }
.social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social a { background: #1E2433; border: 1px solid rgba(245, 185, 33, 0.3); border-radius: 999px; padding: 0.38rem 0.95rem; text-decoration: none; font-weight: 700; font-size: 0.86rem; transition: transform 0.2s, border-color 0.2s; }
.social a:hover { border-color: var(--ouro); transform: translateY(-2px); }

/* Admin */
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.adm-table th, .adm-table td { padding: 0.65rem 0.55rem; border-bottom: 1px solid var(--linha); text-align: left; vertical-align: top; }
.adm-wrap { overflow-x: auto; }
.checks { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 0.35rem; border: 1.5px solid var(--linha); border-radius: 999px; padding: 0.28rem 0.75rem; font-weight: 700; cursor: pointer; margin: 0; }
.checks input { accent-color: var(--ouro-escuro); }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 20px);
  transform: translateX(-50%) translateY(30px);
  background: #12151C;
  color: var(--ouro);
  border: 1px solid var(--ouro);
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.28s var(--ease);
  z-index: 300;
  max-width: 90vw;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loading { text-align: center; color: var(--cinza); padding: 2.5rem; }
.spin { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--ouro-soft); border-top-color: var(--ouro); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media print { .ticker, .topbar, .tabbar, footer, .btn { display: none !important; } body { background: #fff; } }

/* Card Santo do Dia com Imagem */
.santo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.santo-thumb {
  width: 84px;
  height: 104px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
  background: #ffffff;
  border: 2.5px solid #12151C;
  box-shadow: 0 8px 20px rgba(18, 21, 28, 0.18);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.santo-thumb-lg {
  width: 100px;
  height: 124px;
}

.santo-card:hover .santo-thumb {
  transform: scale(1.04);
}

/* Seção Comunidades */
.com-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.com-head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--linha);
}

.com-head h3 {
  margin-top: 0.45rem;
  margin-bottom: 0.25rem;
  font-size: 1.12rem;
}

.com-block h4 {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ouro-escuro);
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .com-block h4 {
  color: var(--ouro);
}

.com-line {
  font-size: 0.93rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--linha);
}

.com-line:last-child {
  border-bottom: 0;
}

.com-line .hs {
  color: var(--ouro-escuro);
  font-weight: 800;
}

[data-theme="dark"] .com-line .hs {
  color: var(--ouro);
}

.com-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
/* Carrossel de Divulgações (Banners do Admin) */
.promo-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #12151C;
  box-shadow: var(--sombra-hover);
  border: 1px solid var(--linha);
  margin-bottom: 1rem;
}

.promo-track {
  display: flex;
  transition: transform 0.55s var(--ease);
}

.promo-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
  max-height: 440px;
  background: #12151C;
}

.promo-slide img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.promo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.2rem 0.9rem;
  background: linear-gradient(to top, rgba(12, 15, 22, 0.88), transparent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(18, 21, 28, 0.72);
  backdrop-filter: blur(6px);
  color: var(--ouro);
  font-weight: 800;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, transform 0.2s;
}

.promo-nav:hover {
  background: #12151C;
  transform: translateY(-50%) scale(1.08);
}

.promo-nav.prev { left: 12px; }
.promo-nav.next { right: 12px; }

.promo-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.promo-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.promo-dots button.on {
  width: 24px;
  background: var(--ouro);
}

/* Barra Compacta Próxima Missa (Substitui o Hero) */
.next-bar {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-left: 5px solid var(--ouro);
  border-radius: var(--raio);
  padding: 0.95rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  box-shadow: var(--sombra);
}

.next-bar-info {
  font-size: 0.98rem;
}

.next-bar-info b {
  color: var(--ouro-escuro);
}

[data-theme="dark"] .next-bar-info b {
  color: var(--ouro);
}

/* Pop-up de Instalação do WebApp (Dom Bosco) */
.pwa-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 15, 22, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}

.pwa-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--branco);
  color: var(--texto);
  border: 1px solid var(--linha);
  border-radius: 24px;
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.pwa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--fundo);
  color: var(--texto);
  font-weight: 800;
  cursor: pointer;
}

.pwa-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: contain;
  background: #12151C;
  padding: 6px;
  margin: 0 auto 0.85rem;
  box-shadow: 0 10px 24px rgba(18, 21, 28, 0.22);
}

.pwa-box h3 {
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
}

.pwa-box p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.pwa-ios-steps {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: var(--fundo);
  border-radius: 14px;
  font-size: 0.88rem;
  text-align: left;
  line-height: 1.5;
}

.pwa-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.pwa-actions .btn {
  flex: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}