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

:root {
  --gold: #b8973a;
  --gold-light: #d4b45a;
  --dark: #1a1a1a;
  --warm-bg: #f2ebe0;
  --warm-bg2: #ede3d5;
  --text: #2c2c2c;
  --text-light: #666;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAVBAR ── */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--dark);
  line-height: 1;
  padding: 4px 8px;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 88px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
  position: relative;
  padding-bottom: 6px;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover { color: var(--gold); transform: translateY(-2px); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); font-weight: 700; }
.nav-links a.active::after { width: 100%; }

/* ── HERO ── */
#home {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('image/fachada.png') no-repeat center center;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── SECTIONS ── */
section { scroll-margin-top: 88px; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── MISSAS ── */
#missas {
  background: var(--warm-bg);
  padding: 96px 48px;
}

.missas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.missa-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.missa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
}

.missa-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.missa-card-img-placeholder {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.6);
}

.missa-card-body {
  padding: 28px 32px 32px;
}

.missa-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--dark);
  text-align: center;
}

.horario-item {
  text-align: center;
  padding: 8px 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  border-bottom: 1px solid var(--warm-bg);
}

.horario-item:last-child { border-bottom: none; }

.confissao-text {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── LOCALIZAÇÃO ── */
#localizacao {
  padding: 96px 48px;
  background: var(--white);
}

.loc-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.loc-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.loc-info p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.loc-detail {
  margin-bottom: 24px;
}

.loc-detail strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.loc-detail span {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.loc-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
}

.loc-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── SECRETARIA ── */
#secretaria {
  padding: 96px 48px;
  background: var(--warm-bg2);
  text-align: center;
}

.secretaria-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.sec-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  flex: 1;
  min-width: 240px;
  max-width: 280px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.sec-card:hover { transform: translateY(-5px); }

.sec-card i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.sec-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.sec-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.sec-card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

/* ── FOOTER ── */
footer {
  background: #1e1e1e;
  color: var(--white);
  padding: 52px 48px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  line-height: 1.4;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: rgba(255,255,255,0.75);
  font-size: 1.3rem;
  transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
  color: var(--gold-light);
  transform: translateY(-3px);
}

.footer-contact h4 {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  margin: 6px 0;
}

.footer-contact a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}

.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── DIVIDER ── */
.divider {
  text-align: center;
  margin: 0 auto 48px;
}
.divider span {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── HERO PASTORAIS ── */
.page-hero {
  margin-top: 88px;
  background: linear-gradient(135deg, #2c3e28 0%, #4a6741 60%, #2c3e28 100%);
  padding: 80px 48px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '✝';
  position: absolute;
  font-size: 320px;
  color: rgba(255,255,255,0.04);
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  font-family: serif;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
}

/* ── SIDEBAR LAYOUT ── */
.pastorais-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 88px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
}

.sidebar {
  padding: 48px 0;
  border-right: 1px solid var(--warm-bg2);
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
  overflow-y: auto;
}

.sidebar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-left: 4px;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.sidebar-nav li a:hover {
  background: var(--warm-bg);
  border-left-color: var(--gold-light);
  color: var(--gold);
}

.sidebar-nav li a.active {
  background: var(--warm-bg);
  border-left-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* ── CONTEÚDO PRINCIPAL ── */
.pastoral-content {
  padding: 56px 48px 80px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.7rem; color: var(--text-light); }

/* Badge */
.pastoral-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pastoral-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.15;
}

.pastoral-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 40px;
  line-height: 1.6;
}

.divider-gold {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.divider-gold span {
  flex: 1;
  height: 1px;
  background: var(--warm-bg2);
}

.divider-gold i {
  color: var(--gold);
  font-size: 1rem;
}

/* Blocos de conteúdo */
.content-block {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--warm-bg2);
}

.content-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.block-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.block-label i { font-size: 0.9rem; }

.block-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 18px;
}

.block-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 720px;
}

.block-text p + p { margin-top: 16px; }

.block-quote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--warm-bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
}

/* Atividades */
.atividades-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 680px;
}

.atividades-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.atividades-list li i {
  color: var(--gold);
  margin-top: 4px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* Encontros badge */
.encontros-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--warm-bg);
  border: 1px solid var(--warm-bg2);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 1.05rem;
  color: var(--text);
}

.encontros-badge i { color: var(--gold); }

/* Coordenadores */
.coord-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.coord-card {
  background: var(--warm-bg);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
  transition: box-shadow 0.2s;
}

.coord-card:hover { box-shadow: var(--shadow); }

.coord-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.coord-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.coord-info a {
  font-size: 0.95rem;
  color: var(--gold);
  text-decoration: none;
}

.coord-info a:hover { text-decoration: underline; }

/* Participar CTA */
.participar-box {
  background: linear-gradient(135deg, #2c3e28 0%, #4a6741 100%);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 680px;
  color: var(--white);
}

.participar-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.participar-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-bottom: 24px;
}

.participar-box .btn-contato {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.participar-box .btn-contato:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════
   RESPONSIVE — mobile-first breakpoints
   (sempre DEPOIS das regras desktop)
   ════════════════════════════════════════ */

/* Tablet / large mobile */
@media (max-width: 900px) {
  .pastorais-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--warm-bg2);
    padding: 32px 24px 24px;
  }
  .pastoral-content { padding: 40px 24px 64px; }
  .atividades-list { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {

  /* ── Navbar: esconde links, mostra hambúrguer ── */
  nav {
    padding: 0 20px;
    height: 68px;
    position: fixed;
  }

  .menu-toggle {
    display: block;
  }

  .nav-logo img { height: 52px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--warm-bg);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    padding: 14px 24px;
    font-size: 16px;
    display: block;
    transform: none !important;
  }

  .nav-links a::after { display: none; }

  /* ── Seções ── */
  section { scroll-margin-top: 68px; }

  #missas { padding: 64px 20px; }
  #localizacao { padding: 64px 20px; }
  #secretaria { padding: 64px 20px; }
  footer { padding: 48px 20px; }

  .missas-grid { grid-template-columns: 1fr; gap: 24px; }
  .missa-card-body { padding: 20px 20px 24px; }

  .loc-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .loc-map { height: 260px; }

  .secretaria-cards { flex-direction: column; align-items: stretch; }
  .sec-card { max-width: 100%; min-width: unset; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  /* ── Pastorais ── */
  .page-hero { padding: 56px 20px 44px; margin-top: 68px; }
  .participar-box { padding: 28px 20px; }
  .pastoral-content { padding: 32px 20px 64px; }
  .coord-cards { flex-direction: column; }
  .coord-card { min-width: unset; }
  .encontros-badge { font-size: 0.95rem; flex-wrap: wrap; }
}
