/* ==========================================================================
   PARÓQUIA SANT'ANA — LARANJEIRAS DO SUL, PR
   Direção de Arte: Elevation Church Inspired × Identidade Mariana (Branco & Azul Pastel)
   Skill: frontend-design | Mídia 100% Local Adaptada às Proporções Nativas
   ========================================================================== */

:root {
  /* Paleta Base (5 Cores Nomeadas) */
  --alabaster-white: #ffffff;
  --marian-ice: #edf4fa;
  --celestial-pastel: #7ba7cc;
  --celestial-deep: #2b5b84;
  --sanctuary-navy: #0d1b2a;
  --slate-ink: #33475b;
  --slate-muted: #5e7387;

  /* Superfícies e Bordas */
  --surface-subtle: #f6f9fc;
  --border-light: #d8e6f2;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Estados Semânticos */
  --status-open: #1e7e48;
  --status-open-bg: #e6f4ec;
  --status-warn: #946200;
  --status-warn-bg: #fef5e6;
  --status-danger: #a62626;

  /* Tipografia */
  --font-sans:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;

  /* Escala Tipográfica Intencional */
  --text-xs: 0.875rem;
  --text-sm: 0.95rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 2vw + 0.5rem, 2.125rem);
  --text-2xl: clamp(2.125rem, 3.2vw + 0.75rem, 3.25rem);
  --text-display: clamp(2.65rem, 4.5vw + 1rem, 4.5rem);

  /* Layout e Espaçamento entre Seções */
  --container-width: 1320px;
  --section-space: clamp(2.5rem, 4vw, 3.75rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

/* Reset Limpo */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--alabaster-white);
  color: var(--sanctuary-navy);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-size: var(--text-base);
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Utilitários de Estrutura */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* Tipografia Base */
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--sanctuary-navy);
}

p {
  color: var(--slate-ink);
  max-width: 68ch;
  line-height: 1.68;
}

/* Foco Acessível */
:focus-visible {
  outline: 2px solid var(--celestial-deep);
  outline-offset: 3px;
}

/* ==========================================================================
   BARRA DE STATUS AO VIVO (HOJE NA PARÓQUIA)
   ========================================================================== */
.live-status-strip {
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
  padding: 0.65rem 0;
  font-size: var(--text-xs);
}

.live-status-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.live-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.live-status-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--marian-ice);
}

.live-status-links a {
  font-weight: 600;
  color: var(--celestial-pastel);
}

.live-status-links a:hover {
  color: var(--alabaster-white);
  text-decoration: underline;
}

/* ==========================================================================
   NAVEGAÇÃO ARQUITETÔNICA (ELEVATION STYLE)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: clamp(0.75rem, 1.8vw, 2rem);
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
}

/* Logo Local 1:1 (748x744) */
.brand-logo-frame {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sanctuary-navy);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-diocese {
  font-size: 0.72rem;
  color: var(--slate-muted);
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.25vw, 1.45rem);
  flex-shrink: 1;
}

.nav-item {
  font-size: clamp(0.76rem, 0.85vw, 0.86rem);
  font-weight: 600;
  color: var(--slate-ink);
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--sanctuary-navy);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--celestial-deep);
  border-radius: 2px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-icon-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.btn-icon-admin:hover {
  background-color: var(--celestial-deep);
  transform: translateY(-1px);
}

.btn-icon-admin svg {
  width: 19px;
  height: 19px;
}

/* Botão de Menu Mobile & Tablet */
.btn-mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  color: var(--sanctuary-navy);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-mobile-menu:hover,
.btn-mobile-menu:focus-visible {
  background-color: #dceaf7;
  border-color: var(--celestial-deep);
}

.hamburger-box {
  width: 18px;
  height: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Gaveta / Drawer Mobile */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 27, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background-color: var(--alabaster-white);
  box-shadow: -8px 0 32px rgba(13, 27, 42, 0.22);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.5rem;
}

body.mobile-nav-active {
  overflow: hidden;
}

body.mobile-nav-active .mobile-nav-backdrop {
  opacity: 1;
  visibility: visible;
}

body.mobile-nav-active .mobile-nav-drawer {
  transform: translateX(0);
}

body.mobile-nav-active .btn-mobile-menu .hamburger-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
body.mobile-nav-active .btn-mobile-menu .hamburger-bar:nth-child(2) {
  opacity: 0;
}
body.mobile-nav-active .btn-mobile-menu .hamburger-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.btn-close-mobile-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  background: var(--surface-subtle);
  color: var(--slate-ink);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.btn-close-mobile-nav:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-ink);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background-color: var(--marian-ice);
  color: var(--sanctuary-navy);
}

.mobile-nav-icon {
  font-size: 1.1rem;
  width: 24px;
  display: inline-flex;
  justify-content: center;
}

.mobile-nav-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-contact {
  font-size: 0.78rem;
  color: var(--slate-muted);
  line-height: 1.5;
}

/* Botões Intencionais (Sem setas decorativas) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-pill);
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
}

.btn-primary:hover {
  background-color: var(--celestial-deep);
}

.btn-pastel {
  background-color: var(--marian-ice);
  color: var(--sanctuary-navy);
}

.btn-pastel:hover {
  background-color: var(--celestial-pastel);
  color: var(--alabaster-white);
}

.btn-light {
  background-color: var(--alabaster-white);
  color: var(--sanctuary-navy);
}

.btn-light:hover {
  background-color: var(--marian-ice);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--alabaster-white);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: var(--text-xs);
}

/* ==========================================================================
   HERO SECTION: ESTILO RIJKSMUSEUM (IMPACTO MONUMENTAL + FOTO DE FUNDO)
   ========================================================================== */
.hero-museum-section {
  position: relative;
  /* Altura geral do Hero: aumentado para 88vh (quase tela inteira com respiro) */
  min-height: clamp(680px, 88vh, 940px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--sanctuary-navy);
}

.hero-museum-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-museum-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-museum-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.45) 0%,
    rgba(13, 27, 42, 0.15) 30%,
    rgba(13, 27, 42, 0.4) 65%,
    rgba(13, 27, 42, 0.88) 100%
  );
  pointer-events: none;
}

.hero-museum-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(3rem, 6vw, 6rem);
}

/* ==========================================================================
   >>> CONTROLE DA POSIÇÃO DO NOME DA MATRIZ ("MATRIZ SANT'ANA") <<<
   - Para SUBIR mais o nome: aumente o valor de margin-bottom (ex: 14rem, 16rem, 18rem).
   - Para DESCER mais o nome: diminua o valor de margin-bottom (ex: 6rem, 4rem).
   - Para ajuste fino em pixels: use transform: translateY(-20px); (negativo sobe, positivo desce).
   ========================================================================== */
.hero-museum-headline {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: clamp(10rem, 24vh, 22rem);
  max-width: 100%;
}

.hero-museum-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--alabaster-white);
  text-transform: uppercase;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.hero-museum-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-museum-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-museum-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--celestial-pastel);
}

.hero-museum-info {
  font-size: clamp(0.9rem, 1vw, 0.95rem);
  font-weight: 600;
  color: var(--alabaster-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-museum-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 768px) {
  .hero-museum-section {
    min-height: 640px;
  }

  .hero-museum-headline {
    margin-bottom: clamp(3.5rem, 8vh, 6rem);
  }

  .hero-museum-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-museum-actions {
    margin-left: 0;
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-museum-actions .btn {
    flex: 1;
  }
}

/* ==========================================================================
   PAINEL RÁPIDO "HOJE NA MATRIZ" (BARRA DE DESTAQUE IMEDIATO)
   ========================================================================== */
.today-highlights-section {
  background-color: var(--marian-ice);
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.today-item {
  background-color: var(--alabaster-white);
  padding: 1.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.today-item-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.today-item-icon {
  width: 20px;
  height: 20px;
  color: var(--celestial-deep);
  flex-shrink: 0;
}

.today-item-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--celestial-deep);
}

.today-item-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sanctuary-navy);
  margin-bottom: 0.25rem;
}

.today-item-note {
  font-size: var(--text-xs);
  color: var(--slate-muted);
}

/* ==========================================================================
   SEÇÃO PRINCIPAL 1: HORÁRIOS DE MISSAS & ATENDIMENTO DOS SACERDOTES
   Contraste e agrupamento inspirados na programação da Elevation Church
   ========================================================================== */
.worship-times-section {
  padding: var(--section-space) 0;
  background-color: var(--alabaster-white);
}

.section-header-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-header-split h2 {
  font-size: var(--text-2xl);
}

.worship-architecture-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: stretch;
}

/* Bloco Azul Pastel de Missas */
.mass-schedule-panel {
  background-color: var(--marian-ice);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-heading-group {
  margin-bottom: 2rem;
}

.panel-heading-group h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

.mass-times-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mass-time-row {
  background-color: var(--alabaster-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mass-day-name {
  font-weight: 700;
  color: var(--sanctuary-navy);
  font-size: var(--text-base);
}

.mass-day-sub {
  font-size: var(--text-xs);
  color: var(--slate-muted);
  margin-top: 0.15rem;
}

.mass-hour-badge {
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* Bloco Escuro de Confissões e Sacerdotes */
.confession-schedule-panel {
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.confession-schedule-panel h3 {
  color: var(--alabaster-white);
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

.confession-schedule-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.priest-roster {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.priest-roster-item {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.priest-day {
  font-size: var(--text-xs);
  color: var(--celestial-pastel);
  font-weight: 600;
}

.priest-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--alabaster-white);
}

.priest-hours {
  font-size: var(--text-xs);
  color: var(--marian-ice);
  font-weight: 600;
  text-align: right;
}

.paroco-special-box {
  background-color: rgba(123, 167, 204, 0.16);
  padding: 1.35rem;
  border-radius: var(--radius-md);
}

.paroco-special-box h4 {
  color: var(--alabaster-white);
  font-size: var(--text-base);
  margin-bottom: 0.35rem;
}

.paroco-special-box p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.85);
}

.pastoral-notice-banner {
  margin-top: 2.5rem;
  background-color: var(--surface-subtle);
  border-left: 4px solid var(--celestial-deep);
  padding: 1.35rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ==========================================================================
   SEÇÃO 2: IDENTIDADE & GALERIA MULTI-FORMATO (PROPORÇÕES NATIVAS DOS ASSETS)
   Acomoda perfeitamente: 3:4 (Matriz), 2:3 (Altar), 9:16 (Comunhão), 3:2 (Ação)
   ========================================================================== */
.parish-showcase-section {
  padding: var(--section-space) 0;
  background-color: var(--surface-subtle);
}

.mosaic-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.mosaic-story-column h2 {
  font-size: var(--text-2xl);
  margin-bottom: 1.5rem;
}

.liturgical-quote {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--celestial-deep);
  line-height: 1.4;
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--celestial-pastel);
}

/* Card Horizontal 3:2 para imagens/solidariedade.jpg (1200x800) */
.landscape-frame-3x2 {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--alabaster-white);
}

.landscape-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.landscape-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption-box {
  padding: 1.25rem 1.5rem;
  background-color: var(--alabaster-white);
}

.media-caption-box h4 {
  font-size: var(--text-base);
  margin-bottom: 0.25rem;
}

.media-caption-box p {
  font-size: var(--text-xs);
  color: var(--slate-muted);
}

/* Coluna Direita com Dupla Vertical: 2:3 (Altar) e 9:16 (Comunhão) */
.mosaic-vertical-pair {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 1.5rem;
  align-items: start;
}

.vertical-card-2x3,
.vertical-card-9x16 {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--alabaster-white);
}

.vertical-card-9x16 {
  margin-top: 3rem;
}

.img-wrap-2x3 {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.img-wrap-9x16 {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.img-wrap-2x3 img,
.img-wrap-9x16 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SEÇÃO 3: CENTRAL INTERATIVA DE DÚVIDAS SACRAMENTAIS
   Para Batizar, Casar, Eucaristia, Crisma, Dízimo e Certidões
   ========================================================================== */
.sacraments-explorer-section {
  padding: var(--section-space) 0;
  background-color: var(--alabaster-white);
}

.sacraments-shell {
  background-color: var(--marian-ice);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.5rem);
}

.sacrament-pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.sacrament-tab-btn {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  background-color: var(--alabaster-white);
  color: var(--slate-ink);
}

.sacrament-tab-btn:hover {
  background-color: #dceaf7;
  color: var(--sanctuary-navy);
}

.sacrament-tab-btn.active {
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
}

.sacrament-content-pane {
  display: none;
}

.sacrament-content-pane.active {
  display: block;
}

.sacrament-pane-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.sacrament-guide-col h3 {
  font-size: var(--text-xl);
  margin-bottom: 1rem;
}

.sacrament-guide-col h4 {
  font-size: var(--text-lg);
  margin: 1.75rem 0 0.75rem;
}

.sacrament-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.sacrament-details-list li {
  background-color: var(--alabaster-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--slate-ink);
}

.sacrament-callout {
  margin-top: 1.75rem;
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.sacrament-callout h5 {
  font-size: var(--text-base);
  color: var(--celestial-pastel);
  margin-bottom: 0.35rem;
}

.sacrament-callout p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.88);
}

/* Checklist Interativo de Documentos */
.interactive-checklist-card {
  background-color: var(--alabaster-white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
}

.interactive-checklist-card h4 {
  font-size: var(--text-lg);
  margin-bottom: 0.4rem;
}

.checklist-helper {
  font-size: var(--text-xs);
  color: var(--slate-muted);
  margin-bottom: 1.5rem;
}

.checklist-items-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface-subtle);
  cursor: pointer;
}

.checklist-row:hover {
  background-color: var(--marian-ice);
}

.checklist-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--sanctuary-navy);
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-text {
  font-size: var(--text-sm);
  color: var(--sanctuary-navy);
  font-weight: 500;
}

.checklist-row input:checked + .checklist-text {
  text-decoration: line-through;
  color: var(--slate-muted);
}

/* ==========================================================================
   SEÇÃO 4: QUADRO DE AVISOS DA COMUNIDADE (MURAL DINÂMICO)
   Adaptado para respeitar as proporções das fotos locais
   ========================================================================== */
.community-board-section {
  padding: var(--section-space) 0;
  background-color: var(--surface-subtle);
}

.board-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  background-color: var(--alabaster-white);
  color: var(--slate-ink);
  border: 1px solid var(--border-light);
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
  border-color: var(--sanctuary-navy);
}

.search-field-wrap {
  flex: 1 1 240px;
  max-width: 100%;
  min-width: 0;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  background-color: var(--alabaster-white);
  border: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--sanctuary-navy);
}

.notices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.notice-card {
  background-color: var(--alabaster-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  min-width: 0;
}

.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.08);
}

.notice-card.pinned {
  border: 2px solid var(--celestial-deep);
}

.notice-media-wrap {
  width: 100%;
  height: 230px;
  background-color: var(--marian-ice);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.notice-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.notice-card:hover .notice-thumb {
  transform: scale(1.03);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background-color: #000;
  flex-shrink: 0;
}

.video-container iframe,
.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.notice-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.notice-pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  background-color: var(--marian-ice);
  color: var(--celestial-deep);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.notice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: var(--slate-muted);
  margin-bottom: 0.65rem;
}

.notice-category {
  font-weight: 700;
  color: var(--celestial-deep);
}

.notice-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--sanctuary-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

.notice-text {
  font-size: var(--text-sm);
  color: var(--slate-ink);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.notice-link-btn {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--celestial-deep);
  margin-top: 0.5rem;
}

.notice-link-btn:hover {
  text-decoration: underline;
}

.notice-attachments {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.doc-download-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background-color: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--sanctuary-navy);
  border: 1px solid var(--border-light);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  min-width: 0;
  max-width: 100%;
}

.doc-download-pill:hover {
  background-color: var(--marian-ice);
  border-color: var(--celestial-pastel);
}

.doc-download-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
  min-width: 0;
}

.doc-download-pill small {
  margin-left: auto;
  color: var(--celestial-deep);
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   SEÇÃO: MOVIMENTOS E PASTORAIS PAROQUIAIS (REDE INTERATIVA SAGRADO CORAÇÃO)
   Inspirado no efeito de conexões radiantes da Stripe + Âncora Sagrado Coração
   ========================================================================== */
.ministries-network-section {
  padding-top: var(--section-space);
  padding-bottom: 2.25rem;
  background-color: var(--alabaster-white);
  border-top: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.ministries-network-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1rem;
}

.network-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d4ed8;
  background-color: #e8f2ff;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.ministries-network-header h2 {
  font-size: var(--text-2xl);
  color: var(--sanctuary-navy);
  margin-bottom: 0.65rem;
}

.ministries-network-header p {
  font-size: var(--text-sm);
  color: var(--slate-ink);
  line-height: 1.6;
}

/* Palco Interativo das Conexões */
.sacred-network-stage {
  position: relative;
  width: 100%;
  height: clamp(500px, 66vh, 650px);
  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(59, 130, 246, 0.38) 0%,
      rgba(147, 197, 253, 0.24) 38%,
      rgba(255, 255, 255, 0) 72%
    ),
    linear-gradient(180deg, #ffffff 0%, #f6faff 35%, #dff0ff 78%, #bfe0fc 100%);
  border-bottom: 2px solid #2563eb;
  overflow: hidden;
  user-select: none;
}

.ministries-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  cursor: default;
}

/* Âncora Central na Base: Sagrado Coração encostado na linha azul inferior */
.sacred-heart-anchor {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 0;
}

.sacred-heart-halo {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 15%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(235, 246, 255, 0.98) 0%,
    rgba(222, 240, 255, 0.88) 46%,
    rgba(191, 224, 252, 0) 76%
  );
  z-index: -1;
  pointer-events: none;
}

.sacred-heart-img {
  width: clamp(108px, 12.5vw, 146px);
  height: auto;
  display: block;
  vertical-align: bottom;
  margin: 0;
  padding: 0;
  filter: drop-shadow(0 4px 14px rgba(29, 78, 216, 0.28));
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.35s ease;
}

.sacred-network-stage.has-active-node .sacred-heart-img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 22px rgba(29, 78, 216, 0.42));
}

/* Card Flutuante (Tooltip Interativo) */
.ministry-floating-tooltip {
  position: absolute;
  z-index: 20;
  width: 320px;
  max-width: calc(100vw - 28px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow:
    0 20px 44px rgba(13, 27, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.2s;
  pointer-events: none;
}

.ministry-floating-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tooltip-close-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.72);
  color: var(--alabaster-white);
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.2s ease;
}

.tooltip-close-btn:hover {
  background: var(--sanctuary-navy);
}

.tooltip-media-wrap {
  width: 100%;
  height: 126px;
  background-color: var(--marian-ice);
  position: relative;
  overflow: hidden;
}

.tooltip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tooltip-category-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background-color: rgba(29, 78, 216, 0.9);
  backdrop-filter: blur(6px);
  color: var(--alabaster-white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.tooltip-body {
  padding: 1rem 1.15rem 1.15rem;
}

.tooltip-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--sanctuary-navy);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.tooltip-desc {
  font-size: 0.81rem;
  color: var(--slate-ink);
  line-height: 1.48;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.tooltip-meta {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.75rem;
}

.tooltip-meta-row {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
}

.tooltip-meta-label {
  font-weight: 700;
  color: #1d4ed8;
  flex-shrink: 0;
}

.tooltip-meta-val {
  color: var(--slate-ink);
}

/* Barra de Acesso Rápido / Pills dos Movimentos */
.ministries-quick-pills-wrap {
  padding-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.quick-pills-label {
  font-size: 0.78rem;
  color: var(--slate-muted);
  font-weight: 600;
}

.ministries-quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.ministry-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem 0.32rem 0.38rem;
  border-radius: var(--radius-pill);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ministry-pill-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.ministry-quick-pill:hover,
.ministry-quick-pill.active {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: var(--alabaster-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.22);
}

.ministry-quick-pill:hover .ministry-pill-thumb,
.ministry-quick-pill.active .ministry-pill-thumb {
  transform: scale(1.1);
  border-color: #93c5fd;
}

@media (max-width: 768px) {
  .sacred-network-stage {
    height: 490px;
  }

  .sacred-heart-img {
    width: 102px;
  }

  .sacred-heart-halo {
    width: 140px;
    height: 140px;
  }

  .ministry-floating-tooltip {
    width: 296px;
  }
}

/* ==========================================================================
   SEÇÃO: SECRETARIA PAROQUIAL & ESPAÇOS
   ========================================================================== */
.directory-section,
.directory-faq-section {
  padding: var(--section-space) 0;
  background-color: var(--alabaster-white);
}

.directory-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* ==========================================================================
   SEÇÃO: PERGUNTAS FREQUENTES (FAQ)
   ========================================================================== */
.faq-section {
  padding: var(--section-space) 0;
  background-color: var(--alabaster-white);
  border-top: 1px solid var(--border-light);
}

.directory-panel {
  background-color: var(--surface-subtle);
  padding: 2.75rem;
  border-radius: var(--radius-lg);
}

.directory-panel h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.75rem;
}

.info-rows-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.info-row-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
}

.info-row-label {
  color: var(--slate-muted);
  font-weight: 500;
}

.info-row-val {
  color: var(--sanctuary-navy);
  font-weight: 700;
  text-align: right;
}

/* FAQ Acordeão */
.faq-container {
  max-width: 920px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: 2.5rem;
}

.faq-group-title {
  font-size: var(--text-lg);
  color: var(--celestial-deep);
  margin-bottom: 1rem;
}

.faq-item {
  background-color: var(--surface-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.65rem;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--sanctuary-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  background-color: var(--marian-ice);
}

.faq-toggle-icon {
  font-size: 1.35rem;
  color: var(--celestial-deep);
  font-weight: 400;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.65rem 1.65rem;
  font-size: var(--text-sm);
  color: var(--slate-ink);
}

.faq-item.open .faq-answer {
  display: block;
}

.pix-copy-box {
  background-color: var(--alabaster-white);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pix-code {
  font-weight: 700;
  color: var(--sanctuary-navy);
}

/* ==========================================================================
   BANNER PANORÂMICO DE TRANSIÇÃO DO RODAPÉ
   Exibição 100% integral da imagem sacra de Pentecostes/Apóstolos
   ========================================================================== */
.footer-panorama-section {
  position: relative;
  width: 100%;
  background-color: var(--alabaster-white);
  line-height: 0;
  margin-bottom: -1px; /* Elimina qualquer fenda sub-pixel entre a imagem e o rodapé */
}

.footer-panorama-media {
  position: relative;
  width: 100%;
}

.footer-panorama-img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-panorama-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0) 0%,
    rgba(13, 27, 42, 0.45) 50%,
    var(--sanctuary-navy) 100%
  );
  pointer-events: none;
}

/* ==========================================================================
   RODAPÉ ARQUITETÔNICO
   ========================================================================== */
.site-footer {
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
  padding: 0.1rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col h3 {
  color: var(--alabaster-white);
  font-size: var(--text-lg);
  margin: 0.85rem 0 0.5rem;
}

.footer-brand-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
}

.footer-col h4 {
  color: var(--celestial-pastel);
  font-size: var(--text-sm);
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-xs);
}

.footer-links a:hover {
  color: var(--alabaster-white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
}

.developer-link {
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.developer-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.developer-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* ==========================================================================
   PORTAL DO ADMINISTRADOR (CMS PAROQUIAL LOCAL)
   ========================================================================== */
.admin-overlay {
  display: none;
  background-color: var(--surface-subtle);
  min-height: 100dvh;
}

.admin-overlay.active {
  display: block;
}

.admin-header {
  background-color: var(--sanctuary-navy);
  color: var(--alabaster-white);
  padding: 1rem 0;
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-badge {
  background-color: var(--celestial-deep);
  color: var(--alabaster-white);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.admin-main-wrap {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100dvh - 68px);
}

.admin-sidebar {
  background-color: var(--alabaster-white);
  border-right: 1px solid var(--border-light);
  padding: 1.5rem 1rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--slate-ink);
  text-align: left;
}

.admin-nav-item.active,
.admin-nav-item:hover {
  background-color: var(--marian-ice);
  color: var(--sanctuary-navy);
}

.admin-content-pane {
  padding: 2.5rem;
  max-width: 1100px;
}

.admin-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background-color: var(--alabaster-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.kpi-card span {
  font-size: var(--text-xs);
  color: var(--slate-muted);
  font-weight: 600;
}

.kpi-card h3 {
  font-size: var(--text-xl);
  margin-top: 0.35rem;
}

.admin-card {
  background-color: var(--alabaster-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--sanctuary-navy);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--surface-subtle);
  font-size: var(--text-sm);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.file-upload-box {
  display: block;
  background-color: var(--marian-ice);
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--celestial-deep);
}

.upload-preview {
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  color: var(--status-open);
  font-weight: 600;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-xs);
}

.admin-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background-color: var(--marian-ice);
  font-weight: 700;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.table-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.table-badge.pinned {
  background-color: var(--status-warn-bg);
  color: var(--status-warn);
}

.table-badge.normal {
  background-color: var(--status-open-bg);
  color: var(--status-open);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

/* Modal Lightbox */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(13, 27, 42, 0.94);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85dvh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85dvh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  color: var(--alabaster-white);
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVIDADE COMPLETA (TABLET & MOBILE)
   Garante 0% de overflow horizontal e navegação fluida em qualquer tela
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-asymmetric-grid,
  .section-header-split,
  .worship-architecture-grid,
  .mosaic-editorial-grid,
  .sacrament-pane-grid,
  .directory-split-grid,
  .notices-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait-showcase {
    display: none;
  }

  .today-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .primary-nav {
    display: none !important;
  }

  .btn-mobile-menu {
    display: inline-flex;
  }

  .header-cta-group .btn-pastel {
    display: none;
  }

  .admin-main-wrap {
    grid-template-columns: 1fr;
  }

  .admin-kpi-strip,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-museum-section {
    min-height: 560px;
  }

  .hero-museum-title {
    font-size: clamp(2rem, 8.5vw, 4rem);
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }

  .hero-museum-headline {
    margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
  }

  .hero-museum-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .hero-museum-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-museum-actions .btn {
    width: 100%;
    text-align: center;
  }

  .sacred-network-stage {
    height: 440px;
  }

  .sacred-heart-img {
    width: 102px;
  }

  .sacred-heart-halo {
    width: 140px;
    height: 140px;
  }

  .ministry-floating-tooltip {
    width: calc(100% - 24px) !important;
    max-width: 320px;
    left: 12px !important;
    right: 12px;
    margin: 0 auto;
  }

  .board-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .search-field-wrap {
    width: 100%;
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1rem;
  }

  .developer-credit {
    justify-content: center;
  }

  .info-row-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .info-row-val {
    text-align: left;
    word-break: break-word;
  }
}

@media (max-width: 640px) {
  .today-grid,
  .mosaic-vertical-pair,
  .form-grid,
  .admin-kpi-strip,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-group.full {
    grid-column: span 1;
  }

  .notice-card {
    grid-template-columns: 1fr;
  }

  .notice-media-wrap {
    aspect-ratio: 3 / 2;
    min-height: auto;
  }

  .notice-body {
    padding: 1.25rem;
  }

  .vertical-card-9x16 {
    margin-top: 0;
  }

  .mass-schedule-panel,
  .confession-schedule-panel {
    padding: 1.25rem;
  }

  .mass-time-row {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .mass-hour-badge {
    align-self: flex-start;
  }

  .priest-roster-item {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .priest-hours {
    text-align: left;
  }

  .sacraments-shell {
    padding: 1.25rem 1rem;
  }

  .sacrament-tab-btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0 0.85rem;
  }

  .header-inner {
    height: 64px;
    gap: 0.65rem;
  }

  .brand-logo-frame {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-diocese {
    display: none;
  }

  .btn-icon-admin,
  .btn-mobile-menu {
    width: 36px;
    height: 36px;
  }

  .container {
    padding: 0 0.85rem;
  }
}
