/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9952a;
  --gold-light: #e8b84b;
  --gold-dark:  #9a6e1a;
  --brown:      #3d2b1f;
  --cream:      #faf6f0;
  --cream-dark: #f0e8d8;
  --text:       #2d2418;
  --text-muted: #7a6a58;
  --white:      #ffffff;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 64px rgba(0,0,0,.18);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section-padded { padding: clamp(60px, 10vw, 100px) 0; }
.section-alt { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,149,42,.1);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}

#navbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
  white-space: nowrap;
}

#navbar.scrolled .nav-brand { color: var(--brown); }

.nav-cross {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold-light); }

#navbar.scrolled .nav-links a { color: var(--text-muted); }
#navbar.scrolled .nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#navbar.scrolled .nav-toggle span { background: var(--brown); }

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2d1a0e; /* fallback */
  background-image: url('https://images.pexels.com/photos/4916521/pexels-photo-4916521.jpeg?auto=compress&cs=tinysrgb&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,149,42,.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139,90,43,.3) 0%, transparent 60%);
  pointer-events: none;
}

/* Gradient overlay per leggibilità testo sul foto hero */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,8,2,.72) 0%,
    rgba(45,26,14,.55) 50%,
    rgba(90,56,32,.40) 100%
  );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,4,1,.30);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: clamp(80px, 15vw, 120px) clamp(16px, 4vw, 40px) clamp(40px, 8vw, 80px);
  max-width: 860px;
}

.hero-subtitle {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 36px;
  border-radius: 99px;
  letter-spacing: .04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(201,149,42,.4);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,149,42,.5);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
}

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

/* =============================================
   INTRO
   ============================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.intro-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--brown);
  margin-bottom: 20px;
  line-height: 1.2;
}

.intro-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.intro-text strong { color: var(--gold-dark); font-weight: 600; }

.intro-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 32px;
  text-align: center;
  border: 2px solid var(--cream-dark);
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =============================================
   CHIESE
   ============================================= */
.chiese-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.chiesa-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(201,149,42,.1);
}

.chiesa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.chiesa-card.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(201,149,42,.2);
}

.chiesa-img-wrap { position: relative; }

.chiesa-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #2d1a0e; /* fallback colore caldo */
}

/* Immagine reale dentro la card chiesa */
.chiesa-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.chiesa-card:hover .chiesa-photo {
  transform: scale(1.06);
}

/* Sottile vignettatura sulla foto card */
.chiesa-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}

.chiesa-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--brown);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}

.chiesa-badge-gold {
  background: var(--gold);
  color: var(--white);
}

.chiesa-body { padding: 24px 28px 28px; }

.chiesa-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 12px;
}

.chiesa-body p { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }

.chiesa-info { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.chiesa-info li {
  display: flex;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-muted);
  align-items: flex-start;
}

.chiesa-info li span { flex-shrink: 0; }

/* =============================================
   ORARI
   ============================================= */
.orari-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.orari-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--cream-dark);
  transition: transform var(--transition);
}

.orari-card:hover { transform: translateY(-3px); }

.orari-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-dark);
}

.orari-card-highlight {
  background: linear-gradient(135deg, var(--brown) 0%, #5a3820 100%);
  border-color: var(--gold-dark);
}

.orari-card-highlight h3 {
  color: var(--gold-light);
  border-bottom-color: rgba(201,149,42,.3);
}

.orari-table { width: 100%; border-collapse: collapse; }

.orari-table tr { border-bottom: 1px solid rgba(0,0,0,.06); }

.orari-card-highlight .orari-table tr { border-bottom-color: rgba(255,255,255,.1); }

.orari-table tr:last-child { border-bottom: none; }

.orari-table td {
  padding: 10px 0;
  font-size: .9rem;
  color: var(--text-muted);
}

.orari-card-highlight .orari-table td { color: rgba(255,255,255,.8); }

.orari-table td:first-child { font-weight: 600; color: var(--text); padding-right: 12px; }

.orari-card-highlight .orari-table td:first-child { color: var(--gold-light); }

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
  background: #2d1a0e; /* fallback */
}

.gallery-item.gi-tall { grid-row: span 2; }
.gallery-item.gi-wide { grid-column: span 2; }

/* Immagine reale nella gallery */
.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}

.gallery-item:hover .gallery-photo { transform: scale(1.07); }

/* Overlay didascalia – sempre leggero, pieno su hover */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.70) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: .65;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: var(--white);
  font-size: .85rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.gallery-note {
  text-align: center;
  margin-top: 20px;
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* =============================================
   MAPPA
   ============================================= */
#map {
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-dark);
}

/* Custom map popup */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 220px !important;
}

.map-popup {
  padding: 18px 20px;
}

.map-popup h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.map-popup p {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.map-popup .popup-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* =============================================
   EVENTI
   ============================================= */
.eventi-list { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }

.evento-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.evento-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.evento-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  padding: 10px 16px;
  min-width: 64px;
}

.evento-day {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.evento-month {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.evento-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 8px;
}

.evento-body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 10px; }

.evento-luogo {
  font-size: .8rem;
  color: var(--gold-dark);
  font-weight: 500;
}

/* =============================================
   CONTATTI
   ============================================= */
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.contatto-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--cream-dark);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contatto-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.contatto-icon { font-size: 2.4rem; margin-bottom: 14px; }

.contatto-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 8px;
}

.contatto-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--brown);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  align-items: flex-start;
}

.footer-brand p {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}

.footer-links h4 {
  color: var(--gold-light);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: .8rem; }

.footer-map-credit a {
  color: rgba(255,255,255,.5);
  text-decoration: underline;
  transition: color var(--transition);
}

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

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   HERO SECOND BUTTON
   ============================================= */
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 34px;
  border-radius: 99px;
  border: 2px solid rgba(255,255,255,.5);
  letter-spacing: .04em;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.9);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 24px;
  border-radius: 99px;
  border: 2px solid var(--gold);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* =============================================
   DROPDOWN MENU
   ============================================= */
.nav-dropdown { position: relative; }

/*
 * Il dropdown usa opacity/visibility invece di display:none/block
 * così non c'è alcun gap fisico tra trigger e menu:
 * top: 100% = attaccato subito sotto, senza spazio vuoto.
 * Il padding-top interno crea lo spazio visivo senza creare un buco
 * in cui il mouse "cade" perdendo il hover.
 */
.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;           /* nessun gap – attaccato al nav item */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 190px;
  padding: 10px 0 8px;
  z-index: 300;
  transition:
    opacity .22s ease,
    transform .22s ease,
    visibility .22s ease;
}

/* Apertura: hover CSS + classe JS .dropdown-open */
.nav-dropdown:hover    .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.dropdown-open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Ponte invisibile: copre il piccolo spazio tra nav e menu
   in modo che il mouse non "cada" nel vuoto  */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.dropdown-menu li a {
  display: block;
  padding: 11px 20px;
  font-size: .88rem;
  color: var(--text-muted) !important;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--cream);
  color: var(--gold) !important;
  padding-left: 26px;
}

.dropdown-menu li a::after { display: none; }

/* =============================================
   SERVIZI / SACRAMENTI GRID
   ============================================= */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.servizio-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

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

.servizio-icon { font-size: 2.6rem; margin-bottom: 14px; }

.servizio-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: 10px;
}

.servizio-card p { color: var(--text-muted); font-size: .9rem; flex: 1; }

.servizio-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
}

/* =============================================
   SECTION CTA BAND
   ============================================= */
.section-cta {
  background: linear-gradient(135deg, var(--brown) 0%, #5a3820 100%);
  padding: clamp(60px, 8vw, 90px) 0;
}

.cta-inner {
  text-align: center;
  color: var(--white);
  max-width: 680px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
  color: var(--white);
}

.cta-inner p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-light {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 34px;
  border-radius: 99px;
  border: 2px solid rgba(255,255,255,.4);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* =============================================
   INNER HERO
   ============================================= */
.inner-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
  /* Hero base (chi-siamo, contatti): paesaggio toscano collinare */
  background-color: #2d1a0e;
  background-image: url('https://images.pexels.com/photos/34266721/pexels-photo-34266721.jpeg?auto=compress&cs=tinysrgb&w=1600&q=80');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.inner-hero-sm { min-height: 300px; }

/* Chiusi Scalo – facciata chiesa italiana */
.inner-hero-scalo {
  background-image: url('https://images.pexels.com/photos/30222800/pexels-photo-30222800.jpeg?auto=compress&cs=tinysrgb&w=1600&q=80');
  background-position: center 30%;
}

/* Chiusi Città – interno cattedrale */
.inner-hero-citta {
  background-image: url('https://images.pexels.com/photos/105987/pexels-photo-105987.jpeg?auto=compress&cs=tinysrgb&w=1600&q=80');
  background-position: center;
}

/* Chianciano Terme – borgo su collina */
.inner-hero-chianciano {
  background-image: url('https://images.pexels.com/photos/6246192/pexels-photo-6246192.jpeg?auto=compress&cs=tinysrgb&w=1600&q=80');
  background-position: center 60%;
}

/* Sacramenti / Battesimo – interno chiesa cattolica */
.inner-hero-sac {
  background-image: url('https://images.pexels.com/photos/16984163/pexels-photo-16984163.jpeg?auto=compress&cs=tinysrgb&w=1600&q=80');
  background-position: center;
}

/* Matrimonio – cerimonia nuziale in chiesa */
.inner-hero-matr {
  background-image: url('https://images.pexels.com/photos/14897692/pexels-photo-14897692.jpeg?auto=compress&cs=tinysrgb&w=1600&q=80');
  background-position: center 40%;
}

/* Catechismo – sacerdote in preghiera */
.inner-hero-cat {
  background-image: url('https://images.pexels.com/photos/5875274/pexels-photo-5875274.jpeg?auto=compress&cs=tinysrgb&w=1600&q=80');
  background-position: center 30%;
}

.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,4,1,.72) 0%,
    rgba(20,10,4,.55) 60%,
    rgba(10,4,1,.45) 100%
  );
}

.inner-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 48px clamp(16px, 4vw, 40px) 56px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.inner-hero-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.inner-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.inner-hero-content p {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.75);
  max-width: 560px;
  font-weight: 300;
}

/* Breadcrumb */
.breadcrumb { margin-bottom: 20px; }

.breadcrumb ol {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 8px;
}

.breadcrumb a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}

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

/* =============================================
   PAGE TWO-COLUMN LAYOUT
   ============================================= */
.page-two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.page-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--brown);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }
.page-text strong { color: var(--gold-dark); font-weight: 600; }
.page-text a { color: var(--gold-dark); font-weight: 500; text-decoration: underline; }

.page-aside { display: flex; flex-direction: column; gap: 16px; }

.aside-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--cream-dark);
}

.aside-card-highlight {
  background: var(--brown);
  border-color: var(--gold-dark);
  color: var(--white);
}

.aside-card-highlight h3 { color: var(--gold-light); }
.aside-card-highlight p { color: rgba(255,255,255,.8); }

.aside-icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }

.aside-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.aside-card p { font-size: .88rem; color: var(--text-muted); }
.aside-card a { color: var(--gold-dark); }

.aside-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light) !important;
  display: block;
}

/* =============================================
   STRUTTURA GRID (chi siamo / attività)
   ============================================= */
.struttura-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.struttura-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.struttura-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.struttura-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 8px;
}

.struttura-item p { color: var(--text-muted); font-size: .9rem; }
.struttura-item a { color: var(--gold-dark); font-weight: 500; }

/* =============================================
   PARROCO CARD
   ============================================= */
.parroco-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  max-width: 860px;
  margin: 0 auto;
}

.parroco-avatar {
  font-size: 5rem;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
}

.parroco-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 4px;
}

.parroco-ruolo {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.parroco-body p { color: var(--text-muted); margin-bottom: 12px; }

/* =============================================
   SEDE CARDS (contatti)
   ============================================= */
.contatti-sedi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.sede-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sede-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.sede-card-main { border: 2px solid var(--gold); }

.sede-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  color: var(--white);
}

.sede-scalo     { background: linear-gradient(135deg,#5a3820,#c9952a); }
.sede-citta     { background: linear-gradient(135deg,#1a1a3a,#5a3820); }
.sede-chianciano{ background: linear-gradient(135deg,#1a3a1a,#3a6a1a); }

.sede-icon { font-size: 1.6rem; flex-shrink: 0; }

.sede-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.3;
}

.sede-body { padding: 24px; }
.sede-body address { font-style: normal; margin-bottom: 16px; }
.sede-body address p { color: var(--text-muted); font-size: .9rem; margin-bottom: 8px; }
.sede-body address a { color: var(--gold-dark); font-weight: 500; }
.sede-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  color: var(--brown);
  margin-bottom: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--cream-dark);
}

/* =============================================
   STEPS GRID
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--cream-dark);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.step-num {
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-item h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--brown); margin-bottom: 10px; }
.step-item p { color: var(--text-muted); font-size: .88rem; }
.step-item a { color: var(--gold-dark); }

/* =============================================
   PERCORSI CATECHISMO
   ============================================= */
.percorsi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.percorso-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--cream-dark);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.percorso-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.percorso-icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }

.percorso-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 4px;
}

.percorso-eta {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.percorso-card p { color: var(--text-muted); font-size: .88rem; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  font-style: italic;
  transition: transform var(--transition);
}

.testi-card:hover { transform: translateY(-3px); }
.testi-card p { color: var(--text-muted); margin-bottom: 16px; font-size: .95rem; }
.testi-card footer { font-style: normal; font-size: .85rem; color: var(--text-muted); }
.testi-card footer strong { color: var(--brown); }

/* =============================================
   FAQ
   ============================================= */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: .9rem;
  border-top: 1px solid var(--cream-dark);
  padding-top: 14px;
}

.faq-item a { color: var(--gold-dark); font-weight: 500; }

/* =============================================
   404 PAGE
   ============================================= */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(16px, 4vw, 40px) 80px;
  background: var(--cream);
}

.error-content {
  text-align: center;
  max-width: 600px;
}

.error-cross {
  font-size: 3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.error-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 15vw, 9rem);
  color: var(--gold);
  line-height: 1;
  opacity: .25;
}

.error-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brown);
  margin-top: -16px;
  margin-bottom: 16px;
}

.error-content p { color: var(--text-muted); margin-bottom: 32px; }
.error-content a { color: var(--gold-dark); }

.error-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.error-nav-grid { text-align: left; background: var(--white); border-radius: var(--radius); padding: 24px; }
.error-nav-grid h3 { font-family: 'Playfair Display', serif; color: var(--brown); margin-bottom: 12px; font-size: 1rem; }
.error-nav-grid ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.error-nav-grid a { font-size: .88rem; color: var(--gold-dark); font-weight: 500; }
.error-nav-grid a:hover { text-decoration: underline; }

/* =============================================
   CARD LINK (chiesa cards)
   ============================================= */
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-dark);
  transition: color var(--transition);
}
.card-link:hover { color: var(--gold); }

/* =============================================
   FOOTER NAP
   ============================================= */
.footer-nap { font-style: normal; margin-top: 8px; }
.footer-nap p { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.footer-nap a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-nap a:hover { color: var(--gold-light); }
.footer-diocese { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: 8px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-stats {
    flex-direction: row;
    justify-content: center;
  }

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

  .gallery-item.gi-wide { grid-column: span 1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: span 2; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
  }

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

  .nav-links a {
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 1rem;
  }

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

  .nav-toggle { display: flex; }

  /* Hamburger animation */
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .chiese-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item.gi-tall { grid-row: span 1; }

  .gallery-overlay { opacity: .85; }

  .evento-item { flex-direction: column; gap: 16px; }
  .evento-date { flex-direction: row; align-items: center; width: fit-content; gap: 8px; padding: 8px 16px; }
  .evento-day { font-size: 1.4rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  #map { height: 380px; }

  .orari-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .intro-stats { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.gi-wide { grid-column: span 1; }
}

@media (max-width: 900px) {
  .page-two-col { grid-template-columns: 1fr; }
  .page-aside { flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1 1 200px; }
  .parroco-card { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 680px) {
  .inner-hero { min-height: 280px; }
  .steps-grid { grid-template-columns: 1fr; }
  .percorsi-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .contatti-sedi-grid { grid-template-columns: 1fr; }
  .struttura-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .error-nav-grid ul { grid-template-columns: 1fr; }
  .page-aside { flex-direction: column; }
  /* Mobile: il dropdown diventa un blocco statico nel menu aperto */
  .dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: var(--cream);
    border-radius: 0;
    padding: 4px 0 4px 16px;
    /* Nascosto di default su mobile finché il menu è chiuso */
    display: none;
    transition: none;
  }
  /* Il dropdown mobile si apre con la classe JS .dropdown-open */
  .nav-links.open .nav-dropdown.dropdown-open .dropdown-menu {
    display: block;
  }
  .dropdown-menu::before { display: none; }
  .dropdown-menu li a {
    padding: 9px 12px;
    font-size: .88rem;
    border-bottom: none !important;
  }
  .dropdown-menu li a:hover { padding-left: 12px; }
}
