/**
 * CATEQUIZA+ | Estilos Oficiais da Aplicação Web
 * Design System Sacro, Reverente e Clássico (Otimizado para Mobile & Desktop)
 */

:root {
  /* Paleta Litúrgica Principal */
  --bg-primary: #0D1B2A;     /* Azul Noturno Litúrgico */
  --bg-secondary: #FAF6EE;   /* Marfim / Creme Suave */
  --card-bg: #FFFFFF;        /* Branco Puro para Contraste */
  --gold-primary: #D4AF37;   /* Dourado Sacro */
  --gold-hover: #B5952F;     /* Dourado Escuro no Hover */
  --gold-border: #E6D5B3;    /* Dourado Suave / Bordas e Filigranas */
  --text-light: #F8F9FA;     /* Branco Suave */
  --text-dark: #1E293B;      /* Ardósia Escura para Leitura Nobre */
  --text-muted: #64748B;     /* Cinza Suave de Apoio */

  /* Cores de Acento */
  --red-sacred: #8B1E1E;     /* Rubi / Sangue de Cristo */
  --blue-night-deep: #070E17;/* Noturno Profundo */
  --gold-gradient: linear-gradient(135deg, #FFF2B2 0%, #D4AF37 50%, #996515 100%);
  --gold-glow: 0 0 15px rgba(212, 175, 55, 0.4);
  
  /* Fontes */
  --font-title: 'Cinzel', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transições e Sombras */
  --shadow-subtle: 0 4px 15px rgba(13, 27, 42, 0.06);
  --shadow-card: 0 8px 25px rgba(13, 27, 42, 0.1);
  --shadow-hover: 0 14px 35px rgba(212, 175, 55, 0.2);
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6, .font-cinzel {
  font-family: var(--font-title);
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--gold-primary);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--gold-hover);
}

/* Contêiner Geral */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   1. NAVBAR PÚBLICA
   ========================================================================== */
.site-navbar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logotipo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.45));
  transition: var(--transition-smooth);
}

.brand-logo:hover .brand-icon {
  transform: rotate(5deg) scale(1.05);
}

.brand-text {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
}

.brand-plus {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-left: 2px;
}

/* Links da Navbar */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Botão Acessar Painel */
.btn-nav-admin {
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-primary) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: transparent;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-admin:hover {
  background-color: var(--gold-primary);
  color: var(--bg-primary) !important;
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

/* Botão Hambúrguer Mobile */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  position: relative;
  flex-direction: column;
  justify-content: space-around;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
    linear-gradient(to bottom, #0D1B2A 0%, #070E17 100%);
  padding: 4.5rem 1.25rem 5rem;
  text-align: center;
  position: relative;
  border-bottom: 2px solid var(--gold-border);
}

.hero-subtitle-top {
  font-family: var(--font-title);
  color: var(--gold-primary);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-subtitle-top::before, .hero-subtitle-top::after {
  content: '♦';
  margin: 0 0.6rem;
  font-size: 0.75rem;
  color: var(--gold-primary);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  color: var(--gold-primary);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #E2E8F0;
  max-width: 760px;
  margin: 0 auto 2rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-divider-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--gold-primary);
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-divider-bar::before, .hero-divider-bar::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--gold-primary));
}

.hero-divider-bar::after {
  background: linear-gradient(to left, transparent, var(--gold-primary));
}

/* ==========================================================================
   3. SEÇÃO DOS PILARES (HOME) - 2 PILARES CENTRAIS (MISSA E MILAGRES)
   ========================================================================== */
.section-pilares {
  padding: 4.5rem 0 5.5rem;
  background-color: var(--bg-secondary);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-title);
  color: var(--gold-hover);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--bg-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--gold-primary);
}

/* Grid de Cards dos 2 Pilares Centrais */
.pilares-grid.pilares-grid-dois {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  max-width: 980px;
  margin: 0 auto;
}

.card-pilar {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card-pilar:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover);
}

/* Cantoneiras Ornamentais em SVG nos cantos */
.card-pilar::before, .card-pilar::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  background-image: url('../images/ornamento_canto.svg');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 5;
  opacity: 0.7;
}

.card-pilar::before {
  top: 10px;
  left: 10px;
}

.card-pilar::after {
  bottom: 10px;
  right: 10px;
  transform: rotate(180deg);
}

.card-pilar-img {
  width: 100%;
  height: 210px;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-border);
}

.card-pilar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-pilar:hover .card-pilar-img img {
  transform: scale(1.04);
}

.card-pilar-body {
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.card-pilar-title {
  font-size: 1.3rem;
  color: var(--bg-primary);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.card-pilar-desc {
  font-size: 0.94rem;
  color: var(--text-dark);
  margin-bottom: 1.6rem;
  flex-grow: 1;
  font-style: italic;
  opacity: 0.85;
}

/* Caixa de Citação na Home */
.quote-box-eucharist {
  margin-top: 4rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--gold-border);
  border-radius: 8px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}

.quote-box-subtitle {
  font-family: var(--font-title);
  color: var(--gold-primary);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.quote-box-text {
  font-style: italic;
  color: #F8F9FA;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

.quote-box-author {
  color: var(--gold-hover);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
}

/* Botões Litúrgicos */
.btn-gold {
  background: var(--gold-gradient);
  color: #1A1A1A !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: 1px solid #B5952F;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  min-height: 44px;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FFF9D2 0%, #E2BE46 50%, #B5851E 100%);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary) !important;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  border: 1.5px solid var(--gold-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  min-height: 44px;
}

.btn-outline-gold:hover {
  background-color: var(--gold-primary);
  color: var(--bg-primary) !important;
  box-shadow: var(--gold-glow);
}

/* ==========================================================================
   4. SEÇÃO DO ALTAR INTERATIVO (missa.php) - OTIMIZADO PARA MOBILE & DESKTOP
   ========================================================================== */
.altar-experience-container {
  background-color: var(--bg-primary);
  border: 2px solid var(--gold-border);
  border-radius: var(--border-radius);
  padding: 1.4rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 3.5rem;
}

.altar-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  background: #000;
  line-height: 0;
  touch-action: manipulation;
}

.altar-image-base {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

/* Hotspots Clicáveis - Proporcionais e Discretos */
.altar-hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 50;
  border: none;
  background: none;
  padding: 0;
  outline: none;
  touch-action: manipulation;
}

.hotspot-beacon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D1B2A;
  font-size: 11px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

/* Animação suave e controlada para não poluir no mobile */
.hotspot-beacon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  top: -1.5px;
  left: -1.5px;
  animation: pulse-beacon 2.4s infinite ease-out;
}

@keyframes pulse-beacon {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.altar-hotspot:hover .hotspot-beacon,
.altar-hotspot.highlight-focus .hotspot-beacon {
  background: #FFFFFF;
  color: #DC2626;
  border-color: var(--gold-primary);
  transform: scale(1.3);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.95);
  z-index: 100;
}

/* ==========================================================================
   OBJETOS LITÚRGICOS ILUSTRADOS SOBRE O ALTAR
   ========================================================================== */
.altar-object-node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 50;
  border: none;
  background: none;
  padding: 0;
  outline: none;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.altar-node-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.altar-node-img {
  max-width: clamp(34px, 5.2vw, 65px);
  max-height: clamp(34px, 5.2vw, 65px);
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.85));
  transition: transform 0.2s ease, filter 0.2s ease;
  user-select: none;
  pointer-events: none;
}

.altar-node-beacon {
  position: absolute;
  top: -5px;
  right: -7px;
  width: clamp(16px, 1.8vw, 22px);
  height: clamp(16px, 1.8vw, 22px);
  border-radius: 50%;
  background: var(--gold-primary);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D1B2A;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 800;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.altar-object-node:hover,
.altar-object-node.highlight-focus {
  z-index: 100;
  transform: translate(-50%, -50%) scale(1.18);
}

.altar-object-node:hover .altar-node-img,
.altar-object-node.highlight-focus .altar-node-img {
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 1));
}

.altar-object-node:hover .altar-node-beacon,
.altar-object-node.highlight-focus .altar-node-beacon {
  background: #FFFFFF;
  color: #DC2626;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
}

.altar-object-node:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ==========================================================================
   PROPORÇÕES LITÚRGICAS DOS OBJETOS NO ALTAR
   ========================================================================== */
.obj-type-crucifixo .altar-node-img {
  width: auto !important;
  height: clamp(75px, 15vw, 140px) !important;
  max-width: 90px !important;
  max-height: none !important;
}

.obj-type-velas .altar-node-img {
  width: auto !important;
  height: clamp(65px, 12vw, 115px) !important;
  max-width: 60px !important;
  max-height: none !important;
}

.obj-type-corporal .altar-node-img {
  width: clamp(100px, 18vw, 190px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-missal .altar-node-img {
  width: clamp(55px, 8.5vw, 85px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-calice .altar-node-img {
  width: auto !important;
  height: clamp(45px, 7vw, 70px) !important;
  max-height: none !important;
}

.obj-type-ciborio .altar-node-img {
  width: auto !important;
  height: clamp(45px, 6.8vw, 68px) !important;
  max-height: none !important;
}

.obj-type-patena .altar-node-img {
  width: clamp(45px, 6.5vw, 65px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-galhetas .altar-node-img {
  width: clamp(48px, 7vw, 72px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-lavabo .altar-node-img {
  width: clamp(48px, 7vw, 72px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-pala .altar-node-img {
  width: clamp(34px, 4.5vw, 46px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-sanguineo .altar-node-img {
  width: clamp(36px, 5vw, 48px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.obj-type-sineta .altar-node-img {
  width: auto !important;
  height: clamp(36px, 5vw, 50px) !important;
  max-height: none !important;
}

.obj-type-padrao .altar-node-img {
  width: clamp(40px, 5.5vw, 55px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

/* Tooltip do Hotspot no Desktop */
.hotspot-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid var(--gold-primary);
  color: #FFFFFF;
  padding: 5px 10px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

.altar-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Lista Rápida dos Objetos Litúrgicos */
.altar-objects-quicklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.quicklist-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 48px;
}

.quicklist-item:hover, .quicklist-item:active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.quicklist-number {
  color: var(--gold-primary);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
}

/* ==========================================================================
   5. GUIA DOS RITOS DA SANTA MISSA (missa.php)
   ========================================================================== */
.ritos-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.btn-filter-rito {
  background: var(--card-bg);
  border: 1.5px solid var(--gold-border);
  color: var(--bg-primary);
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 40px;
}

.btn-filter-rito:hover, .btn-filter-rito.active {
  background: var(--bg-primary);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.15);
}

.ritos-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 900px;
  margin: 0 auto;
}

.rito-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: var(--transition-smooth);
}

.rito-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card);
}

.rito-badge-step {
  display: inline-block;
  background-color: var(--bg-primary);
  color: var(--gold-primary);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.rito-title {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--bg-primary);
  margin-bottom: 0.6rem;
}

.rito-postura {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF9E6;
  border: 1px solid #FFE082;
  color: #8A6715;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.rito-description {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.65;
}

.rito-box-espiritual {
  background: #F8F9FA;
  border-left: 3px solid var(--gold-primary);
  padding: 0.9rem 1.1rem;
  border-radius: 0 4px 4px 0;
  margin-top: 0.8rem;
}

.rito-box-espiritual h5 {
  font-size: 0.88rem;
  color: var(--gold-hover);
  margin-bottom: 0.2rem;
}

.rito-resposta {
  background: #FAF6EE;
  border: 1px dashed var(--gold-border);
  padding: 0.75rem 1.1rem;
  border-radius: 4px;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #334155;
}

/* ==========================================================================
   6. MAPA E MILAGRES EUCARÍSTICOS (milagres.php)
   ========================================================================== */
.mapa-section {
  background: var(--bg-primary);
  padding: 2.5rem 0;
  border-bottom: 2px solid var(--gold-border);
}

.mapa-wrapper {
  border: 2px solid var(--gold-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.55);
  position: relative;
}

#mapaMilagres {
  width: 100%;
  height: 480px;
  background: #0A1420;
}

/* Estilos de Popup no Leaflet */
.leaflet-popup-content-wrapper {
  background: #0D1B2A !important;
  color: #F8F9FA !important;
  border: 1.5px solid var(--gold-primary) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6) !important;
}

.leaflet-popup-tip {
  background: #0D1B2A !important;
  border: 1.5px solid var(--gold-primary) !important;
}

.popup-milagre-title {
  font-family: var(--font-title);
  color: var(--gold-primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.popup-milagre-local {
  color: #CBD5E1;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.popup-milagre-btn {
  display: inline-block;
  background: var(--gold-primary);
  color: #0D1B2A !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 3px;
  margin-top: 4px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* Grid de Milagres */
.milagres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}

.milagre-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.milagre-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover);
}

.milagre-header {
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
}

.milagre-ano {
  font-family: var(--font-title);
  color: var(--gold-hover);
  font-weight: 700;
  font-size: 0.82rem;
}

.milagre-card-title {
  font-size: 1.25rem;
  color: var(--bg-primary);
  margin-top: 0.2rem;
}

.milagre-localidade {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.milagre-status-tag {
  display: inline-block;
  background: #EBF8FF;
  border: 1px solid #BEE3F8;
  color: #2B6CB0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* ==========================================================================
   7. MODAL SAGRADO (COMPARTILHADO & TOUCH-FRIENDLY)
   ========================================================================== */
.sacred-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 16, 26, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 1rem;
}

.sacred-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sacred-modal {
  background: var(--card-bg);
  border: 2px solid var(--gold-primary);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65);
  position: relative;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sacred-modal-backdrop.active .sacred-modal {
  transform: scale(1);
}

.modal-header-sacred {
  background: var(--bg-primary);
  border-bottom: 2px solid var(--gold-border);
  padding: 1.2rem 1.6rem;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-sacred {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  color: var(--gold-primary);
}

.modal-subtitle-sacred {
  color: #E2E8F0;
  font-size: 0.82rem;
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body-sacred {
  padding: 1.6rem;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section h4 {
  font-size: 1.05rem;
  color: var(--bg-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-section h4::before {
  content: '♦';
  color: var(--gold-primary);
  font-size: 0.75rem;
}

.modal-box-ciência {
  background: #F1F5F9;
  border-left: 4px solid #0D1B2A;
  padding: 1rem 1.2rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: #1E293B;
  line-height: 1.7;
}

/* ==========================================================================
   8. FOOTER LITÚRGICO
   ========================================================================== */
.site-footer {
  background-color: var(--bg-primary);
  color: #CBD5E1;
  border-top: 2px solid var(--gold-border);
  padding: 3.5rem 0 1.8rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-about p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  max-width: 380px;
}

.footer-col-title {
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #E2E8F0;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #64748B;
}

/* ==========================================================================
   9. RESPONSIVIDADE PROFUNDA (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .pilares-grid.pilares-grid-dois {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
  .milagres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    height: 64px;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .btn-nav-admin {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  .hero-section {
    padding: 3rem 1rem 3.5rem;
  }
  .milagres-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  #mapaMilagres {
    height: 380px;
  }

  /* OTIMIZAÇÃO CRÍTICA DO ALTAR EM TELAS MOBILE / PEQUENAS */
  .altar-experience-container {
    padding: 0.6rem;
    border-width: 1.5px;
  }
  .altar-hotspot {
    width: 19px;
    height: 19px;
  }
  .altar-node-img {
    max-width: clamp(28px, 6vw, 44px);
    max-height: clamp(28px, 6vw, 44px);
  }
  .altar-node-beacon {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: -4px;
    right: -5px;
  }
  .hotspot-beacon {
    font-size: 10px;
    border-width: 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.8);
  }
  .hotspot-beacon::after {
    animation: none; /* No mobile desliga pulso contínuo para evitar poluição e sobreposição */
  }
  .hotspot-tooltip {
    display: none; /* No mobile o tooltip flutuante é dispensável pois o toque abre o modal */
  }
  .altar-objects-quicklist {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .quicklist-item {
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle-top {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }
  .hero-divider-bar {
    font-size: 0.75rem;
    gap: 10px;
  }
  .altar-hotspot {
    width: 16px;
    height: 16px;
  }
  .hotspot-beacon {
    font-size: 9px;
  }
  .modal-body-sacred {
    padding: 1.2rem;
  }
}

/* ==========================================================================
   10. BARRA LITÚRGICA SUPERIOR (CALENDÁRIO DA IGREJA)
   ========================================================================== */
.liturgical-topbar {
  background-color: #08111B;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  color: #CBD5E1;
  font-size: 0.78rem;
  padding: 6px 0;
  line-height: 1.4;
}

.liturgical-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.liturgical-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.liturgical-sphere {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #FFFFFF;
}

.liturgical-tag-title {
  color: #94A3B8;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.liturgical-season-name {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.82rem;
}

.liturgical-dot-sep {
  color: rgba(212, 175, 55, 0.4);
}

.liturgical-color-label {
  color: #E2E8F0;
}

.liturgical-cycle-label {
  color: #94A3B8;
  font-style: italic;
}

.liturgical-right {
  color: #94A3B8;
  font-style: italic;
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

@media (max-width: 768px) {
  .liturgical-right {
    display: none; /* No mobile foca apenas no nome do tempo e na cor */
  }
  .liturgical-topbar-inner {
    justify-content: center;
  }
  .liturgical-left {
    justify-content: center;
    font-size: 0.74rem;
  }
}


/* ==========================================================================
   CATEQUIZA+ | EXPANSÃO LITÚRGICA: FORMAÇÃO, OFERTÓRIO & GLOSSÁRIO
   ========================================================================== */

/* GRID DE 3 PILARES NA HOME */
.pilares-grid-tres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}
@media (max-width: 992px) {
  .pilares-grid-tres {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .pilares-grid-tres {
    grid-template-columns: 1fr;
  }
}

/* 1. GUIA DOS COROINHAS E ACÓLITOS (FORMAÇÃO LITÚRGICA) */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
@media (max-width: 860px) {
  .formation-grid {
    grid-template-columns: 1fr;
  }
}
.formation-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.formation-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.formation-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.formation-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF6EE;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  flex-shrink: 0;
}
.formation-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-sacred);
  background: rgba(139, 30, 30, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}
.formation-title {
  font-size: 1.25rem;
  color: var(--bg-primary);
  line-height: 1.3;
}
.formation-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.formation-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #FAF6EE;
  border-left: 3px solid var(--gold-primary);
  padding: 0.9rem 1.1rem;
  border-radius: 0 6px 6px 0;
}
.step-item {
  font-size: 0.88rem;
  color: #1E293B;
  line-height: 1.55;
}

/* 2. CORES LITÚRGICAS */
.colors-interactive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .colors-interactive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .colors-interactive-grid {
    grid-template-columns: 1fr;
  }
}
.color-lit-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.color-lit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.color-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}
.color-lit-card h4 {
  font-size: 1.2rem;
  color: var(--bg-primary);
  margin-bottom: 0.6rem;
}
.color-meaning {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}
.color-when {
  font-size: 0.85rem;
  color: #64748B;
  background: #F8FAFC;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  line-height: 1.5;
}

/* 3. VESTIMENTAS SAGRADAS */
.vestments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .vestments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .vestments-grid {
    grid-template-columns: 1fr;
  }
}
.vestment-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}
.vestment-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.vestment-card h4 {
  font-size: 1.2rem;
  color: var(--bg-primary);
  margin-bottom: 0.3rem;
}
.vestment-role {
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.vestment-card p {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
}

/* 4. SIMULADOR DA MONTAGEM DO ALTAR NO OFERTÓRIO */
.offertory-stepper-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.offertory-step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #CBD5E1;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}
.offertory-step-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: #FFFFFF;
}
.offertory-step-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #0D1B2A;
  font-weight: 700;
  box-shadow: var(--gold-glow);
}
.offertory-step-btn .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.offertory-step-btn.active .step-num {
  background: #0D1B2A;
  color: var(--gold-primary);
}

.offertory-display-panel {
  position: relative;
  min-height: 420px;
}
.offertory-step-view {
  display: none;
  animation: fadeIn 0.35s ease-out forwards;
}
.offertory-step-view.active {
  display: block;
}

.step-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
}

.step-visual-card {
  background: #060D15;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.step-visual-badge {
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.step-illustration-box {
  position: relative;
  background: radial-gradient(circle at 50% 60%, rgba(212, 175, 55, 0.12) 0%, rgba(13, 27, 42, 0.9) 70%);
  border-radius: 6px;
  padding: 1.5rem 1rem;
  text-align: center;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-img-altar {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.step-elements-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.step-tag-marker {
  position: absolute;
  background: rgba(13, 27, 42, 0.88);
  border: 1px solid var(--gold-border);
  color: #FFF;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.step-corporal-box {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(250, 246, 238, 0.95);
  border: 1.5px dashed var(--gold-primary);
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  text-align: center;
}
.step-corporal-box span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0D1B2A;
}
.step-corporal-box small {
  display: block;
  font-size: 0.72rem;
  color: #64748B;
}
.step-elements-list {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
}
.step-elements-list strong {
  color: #F8F9FA;
}

.step-info-card {
  background: #FFFFFF;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.step-phase-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red-sacred);
  background: rgba(139, 30, 30, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.step-title {
  font-size: 1.45rem;
  color: var(--bg-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.step-rubric {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.sacred-prayer-box {
  background: #FAF6EE;
  border-left: 3px solid var(--gold-primary);
  padding: 0.8rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: #1E293B;
  font-style: italic;
  margin-top: 0.6rem;
  line-height: 1.6;
}
.step-catechesis {
  border-top: 1px solid var(--gold-border);
  padding-top: 1rem;
  margin-top: auto;
}
.step-catechesis h5 {
  font-size: 0.92rem;
  color: var(--gold-hover);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.step-catechesis p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.offertory-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}
.offertory-step-indicator {
  font-size: 0.95rem;
  color: #E2E8F0;
  letter-spacing: 0.05em;
}
.offertory-step-indicator strong {
  color: var(--gold-primary);
  font-size: 1.15rem;
}

/* 5. GLOSSÁRIO E DICIONÁRIO LITÚRGICO */
.glossary-header-controls {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.glossary-search-wrapper {
  position: relative;
  width: 100%;
}
.glossary-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #94A3B8;
  pointer-events: none;
}
.glossary-search-input {
  width: 100%;
  padding: 0.9rem 2.8rem 0.9rem 3rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--gold-border);
  border-radius: 30px;
  background: #FFFFFF;
  color: var(--text-dark);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}
.glossary-search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.glossary-clear-btn {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #94A3B8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.glossary-clear-btn:hover {
  color: var(--text-dark);
}

.glossary-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.glossary-pill {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.glossary-pill:hover {
  border-color: var(--gold-primary);
  color: var(--bg-primary);
}
.glossary-pill.active {
  background: var(--bg-primary);
  border-color: var(--bg-primary);
  color: var(--gold-primary);
  font-weight: 600;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) {
  .glossary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .glossary-grid {
    grid-template-columns: 1fr;
  }
}

.glossary-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.glossary-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.glossary-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.6rem;
}
.glossary-badge-cat {
  font-size: 0.7rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
}
.glossary-badge-cat.teologia {
  background: rgba(139, 30, 30, 0.09);
  color: var(--red-sacred);
}
.glossary-badge-cat.vasos {
  background: rgba(212, 175, 55, 0.14);
  color: #8A6715;
}
.glossary-badge-cat.alfaias {
  background: rgba(30, 41, 59, 0.08);
  color: #1E293B;
}
.glossary-badge-cat.ritos {
  background: rgba(14, 116, 144, 0.1);
  color: #0E7490;
}
.glossary-etymology {
  font-size: 0.75rem;
  color: #64748B;
  font-style: italic;
}
.glossary-title {
  font-size: 1.22rem;
  color: var(--bg-primary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.glossary-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.glossary-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 0.6rem;
  margin-top: auto;
}
.glossary-ref {
  font-size: 0.76rem;
  color: #94A3B8;
  font-style: italic;
}


/* ==========================================================================
   OTIMIZAÇÃO MOBILE GLOBAL DE TODAS AS PÁGINAS PÚBLICAS
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
  }

  /* Reduz padding excessivo em seções no mobile */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
  }

  /* Botões e Ações */
  .hero-section div[style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-section .btn-gold,
  .hero-section .btn-outline-gold {
    width: 100% !important;
    text-align: center;
  }

  /* Altar Interativo */
  .altar-experience-container {
    padding: 0.6rem !important;
    margin-bottom: 2rem !important;
    border-radius: 6px !important;
  }
  .altar-stage {
    border-radius: 4px !important;
  }
  .altar-node-img {
    max-width: clamp(26px, 6.5vw, 40px) !important;
    max-height: clamp(26px, 6.5vw, 40px) !important;
  }
  .altar-node-beacon {
    width: 16px !important;
    height: 16px !important;
    font-size: 8.5px !important;
    top: -4px !important;
    right: -4px !important;
  }

  /* Quicklist */
  .altar-objects-quicklist {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  .quicklist-item {
    padding: 0.75rem 1rem !important;
  }

  /* Filtros dos Ritos em Linha Rolável Suave */
  .ritos-filter-nav {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 0.6rem !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
  }
  .btn-filter-rito {
    flex-shrink: 0 !important;
    font-size: 0.82rem !important;
    padding: 0.5rem 0.9rem !important;
  }

  /* Cards dos Ritos */
  .rito-card {
    padding: 1.3rem !important;
    margin-bottom: 1.4rem !important;
  }
  .rito-title {
    font-size: 1.2rem !important;
  }
  .rito-postura {
    margin-top: 0.5rem;
    font-size: 0.85rem !important;
  }

  /* Glossário */
  .glossary-header-controls {
    gap: 1rem !important;
  }
  .glossary-search-input {
    font-size: 0.95rem !important;
    padding: 0.85rem 2.5rem 0.85rem 2.8rem !important;
  }
  .glossary-filter-pills {
    display: flex !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    white-space: nowrap !important;
    padding-bottom: 0.5rem !important;
    -webkit-overflow-scrolling: touch;
  }
  .glossary-pill {
    flex-shrink: 0 !important;
    font-size: 0.8rem !important;
    padding: 0.45rem 0.85rem !important;
  }
  .glossary-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  .glossary-card {
    padding: 1.3rem !important;
  }

  /* Formação Litúrgica */
  .formation-grid {
    grid-template-columns: 1fr !important;
    gap: 1.3rem !important;
  }
  .formation-card {
    padding: 1.3rem !important;
  }
  .colors-interactive-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  .color-lit-card {
    padding: 1.3rem !important;
  }
  .vestments-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  .vestment-card {
    padding: 1.3rem !important;
  }

  /* Milagres Eucarísticos */
  #mapaMilagres {
    height: 340px !important;
  }
  .milagres-grid {
    grid-template-columns: 1fr !important;
    gap: 1.3rem !important;
  }
  .milagre-card {
    padding: 1.3rem !important;
  }

  /* Modal Sacro em Tela Cheia no Celular */
  .modal-sacred-backdrop {
    padding: 10px !important;
  }
  .modal-sacred-content {
    width: 100% !important;
    max-height: 94vh !important;
    border-radius: 8px !important;
  }
  .modal-header-sacred {
    padding: 1rem 1.2rem !important;
  }
  .modal-header-sacred h3 {
    font-size: 1.18rem !important;
  }
  .modal-body-sacred {
    padding: 1.2rem !important;
  }
}
