/* ═══════════════════════════════════════════════════════════
   VILLA MARTIUS · Design System
   Ispirazione: Borgo Egnazia — travertino caldo, editoriale
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette — Oro Antico (default) */
  --bg:         #E6DBC8;
  --bg-warm:    #D1C1A0;
  --bg-dark:    #1F1611;
  --dark:       #1F1611;
  --body-txt:   #2A1F14;
  --muted:      #6E5D48;
  --gold:       #9F876A;
  --gold-lt:    #C4B296;
  --terracotta: #B25B3E;
  --rule:       rgba(90,70,45,0.28);
  --rule-dark:  rgba(255,255,255,0.14);
  --title:      #1F1611;   /* default = come dark (oro antico) */

  /* Type */
  --serif:      'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:       'Josefin Sans', system-ui, sans-serif;

  /* Scale */
  --pad-page:   3rem;
  --pad-section:8rem;

  /* Ritmo verticale di testa pagina — unica fonte di verità.
     --nav-h = altezza reale della nav fissa; --page-gap = respiro
     fra la nav e l'etichetta/titolo di pagina. Ogni pagina usa
     --page-top come padding-top del suo primo blocco, così il
     distacco nav→titolo è identico su tutto il sito. */
  --nav-h:      78px;
  --page-gap:   64px;
  --page-top:   calc(var(--nav-h) + var(--page-gap));
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; --page-gap: 44px; }
}

/* ─── Palette MATRIMONI · Prugna & Oro Rosa ─────────────── */
body.theme-plum {
  --dark:      #3F1F35;    /* prugna scuro */
  --bg-dark:   #3F1F35;
  --gold:      #8E4B6F;    /* rosa antica (accent principale) */
  --gold-lt:   #C19A6B;    /* oro rosa (variante chiara) */
  --title:     #3F1F35;    /* titoli prugna scuro */
  --rule:      rgba(63,31,53,0.3);
  --rule-dark: rgba(193,154,107,0.22);
}

/* ─── Palette EVENTI · Smeraldo & Champagne ─────────────── */
body.theme-emerald {
  --dark:      #0F3B30;    /* smeraldo scuro */
  --bg-dark:   #0F3B30;
  --gold:      #2A6B5A;    /* verde chiaro (accent principale) */
  --gold-lt:   #D4C195;    /* champagne (variante chiara) */
  --title:     #2A6B5A;    /* titoli verde chiaro */
  --rule:      rgba(42,107,90,0.3);
  --rule-dark: rgba(212,193,149,0.22);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { color-scheme: light; }           /* no auto-dark su mobile */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);                 /* fallback contro dark mode mobile */
}
body {
  background: var(--bg);
  color: var(--body-txt);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
::selection { background: var(--gold); color: #fff; }

/* ─── TYPOGRAPHY UTILITIES ────────────────────────────────── */
.label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.label-dark { color: var(--gold-lt); }
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--title);                 /* smeraldo medio, unificato */
}
.display-italic { font-style: italic; }
.body-copy {
  max-width: 54ch;
  font-size: 1.1rem;
  line-height: 1.8;
}
.body-copy + .body-copy { margin-top: 1.1rem; }

/* Dividers */
.rule-gold {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
  border: none;
}
.rule-full {
  width: 100%;
  height: 1px;
  background: var(--rule);
  border: none;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1px solid;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
  cursor: pointer;
}
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-ghost-dark { color: var(--dark); border-color: var(--dark); }
.btn-ghost-dark:hover { background: var(--dark); color: var(--bg); }
.btn-solid-dark {
  background: var(--dark); color: var(--bg); border-color: var(--dark);
}
.btn-solid-dark:hover { background: var(--gold); border-color: var(--gold); }
.link-underline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
  transition: color 0.3s, border-color 0.3s;
}
.link-underline:hover { color: var(--gold); }
.link-underline-light {
  color: rgba(255,255,255,0.85);
  border-color: var(--gold-lt);
}
.link-underline-light:hover { color: var(--gold-lt); }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.6rem 3rem;
  transition: background 0.5s, padding 0.4s, backdrop-filter 0.5s;
}
.nav.solid,
.nav.scrolled {
  background: rgba(242,236,224,0.96);
  backdrop-filter: blur(10px);
  padding: 1rem 3rem;
  box-shadow: 0 1px 0 var(--rule);
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links.left  { justify-content: flex-start; }
.nav-links.right { justify-content: flex-end; }
.nav-links a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav.solid .nav-links a,
.nav.scrolled .nav-links a { color: var(--body-txt); }
.nav-links a:hover { color: var(--gold-lt); }
.nav.solid .nav-links a:hover,
.nav.scrolled .nav-links a:hover { color: var(--gold); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 1px;
  background: currentColor;
}
.nav-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-logo img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.5s, height 0.4s;
}
.nav.solid .nav-logo img,
.nav.scrolled .nav-logo img { filter: none; height: 44px; }
/* Hamburger — nuovo design elegante con label */
.hamburger {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem 0.55rem 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  min-height: 44px;
  margin-left: auto;
  transition: color 0.3s ease;
}
.hamburger:hover { color: var(--gold-lt); }
.hamb-icon {
  position: relative;
  width: 26px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.hamb-icon span {
  display: block;
  height: 1.5px;                        /* linee più marcate */
  background: currentColor;
  width: 100%;
  transition: width 0.4s ease;
}
.hamb-icon span:nth-child(2) { width: 65%; align-self: flex-end; }
.hamburger:hover .hamb-icon span:nth-child(2) { width: 100%; }
.hamb-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
}
.nav.solid .hamburger,
.nav.scrolled .hamburger { color: var(--dark); }
.nav.solid .hamburger:hover,
.nav.scrolled .hamburger:hover { color: var(--gold); }

/* ─── MOBILE MENU ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #17110D;            /* stesso fondo del footer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 5rem 2rem 3rem;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.76,0,0.24,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu::before {
  content: "Menu";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;          /* compensa lo spazio finale della spaziatura */
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.mobile-close {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0.6rem 0.9rem;
  transition: color 0.3s;
}
.mobile-close:hover { color: var(--gold-lt); }
.mobile-menu a {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 2.2rem;
  color: #fff;
  transition: color 0.3s, letter-spacing 0.3s, transform 0.3s;
  letter-spacing: 0.005em;
  line-height: 1.2;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.mobile-menu a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--gold-lt);
  transition: width 0.35s ease;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold-lt);
}
.mobile-menu a:hover::before,
.mobile-menu a.active::before {
  width: 24px;
}
.mobile-menu .mobile-menu-cta {
  margin-top: 2.2rem;
  /* .mobile-menu a e' piu' specifico e imponeva serif corsivo 2.2rem:
     qui si alza la specificita' per riportare il tasto al sans del sito */
  font-family: var(--sans);
  font-weight: 400;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;              /* compensa lo spazio finale della spaziatura */
  text-transform: uppercase;
  line-height: 1;
  gap: 0;
  color: #1F1611;
  background: linear-gradient(180deg, #E4CF9C 0%, var(--gold-lt) 55%, #B9A079 100%);
  border: 1px solid rgba(255,245,215,.55);
  padding: 1.05rem 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  box-shadow: 0 16px 34px -16px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,250,232,.6);
  transition: background 0.35s, color 0.35s, transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.mobile-menu .mobile-menu-cta::before { display: none; }
.mobile-menu .mobile-menu-cta:hover,
.mobile-menu .mobile-menu-cta:focus-visible {
  background: linear-gradient(180deg, #FFF4D6 0%, #EFDCAC 55%, #CBB184 100%);
  color: #1F1611;
  border-color: rgba(255,250,232,.85);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,252,240,.75);
}

/* ─── HERO (full screen, home) ─────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.05);
  animation: heroZoom 9s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31,22,17,0.55) 0%,
    rgba(31,22,17,0.18) 40%,
    rgba(31,22,17,0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  animation: heroFade 1.4s ease-out 0.5s both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 8.5vw, 7.5rem);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.8rem;
  letter-spacing: 0.02em;
}
.hero-scroll {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 42px;
  background: rgba(255,255,255,0.35);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.3; transform: scaleY(1); transform-origin: top; }
  50%     { opacity: 0.85; transform: scaleY(0.4); transform-origin: top; }
}

/* ─── PAGE HERO (subpages) — fascia stretta, altezza fissa ───── */
.page-hero {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: var(--page-top) 2rem 2.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.page-hero .hero-bg { transform: scale(1); animation: none; }
.page-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(31,22,17,0.78), rgba(31,22,17,0.58));
}
.page-hero .hero-content { animation: heroFade 1s ease-out 0.2s both; }
.page-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);  /* ridotto per fascia stretta */
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.02em;
}
.page-hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,0.8);
  margin-top: 1rem;
}
.breadcrumb {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: inherit; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold-lt); }

/* ─── SECTION LAYOUTS ──────────────────────────────────────── */
.section {
  padding: var(--pad-section) var(--pad-page);
  background: var(--bg);
}
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--dark); color: rgba(255,255,255,0.85); }
.section-dark .display { color: #fff; }
.section-dark .body-copy { color: rgba(255,255,255,0.7); }
.section-dark .label { color: var(--gold-lt); }

.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-header .display {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-top: 1rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.section-header .body-copy {
  margin: 2rem auto 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 55ch;
}
.section-header.left { text-align: left; }
.section-header.left .display { margin-left: 0; }
.section-header.left .body-copy { margin-left: 0; }

/* Two-column split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.split-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.split-image:hover img { transform: scale(1.04); }
.split-text {
  padding: 3.5rem 4.5rem;              /* era 5.5rem — meno respiro inutile */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-text .display {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 1rem 0 1.6rem;
}
.split-text .btn,
.split-text .link-underline {
  margin-top: 2.5rem;
  align-self: flex-start;
}
.split.reverse .split-image { order: 2; }
.split.reverse .split-text  { order: 1; }

/* Editorial figure with caption (Borgo Egnazia style) */
.editorial-figure {
  max-width: 1200px;
  margin: 0 auto;
}
.editorial-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.editorial-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 1.2rem;
  text-align: center;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* Statement (full-width poetic quote) */
.statement {
  padding: 6.5rem 2rem;
  text-align: center;
}
.statement-text {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.35;
  color: var(--dark);
  max-width: 26ch;
  margin: 0 auto;
  letter-spacing: 0.005em;
}
.statement-attr {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--dark);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Feature grid (services, offerings) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 3.5rem;
  max-width: 1240px;
  margin: 0 auto;
}
.feat {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.section-dark .feat { border-top-color: var(--rule-dark); }
.feat-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0.9rem 0 0.9rem;
  color: var(--dark);
}
.section-dark .feat-title { color: #fff; }
.feat p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}
.section-dark .feat p { color: rgba(255,255,255,0.65); }

/* Timeline (giornata degli sposi) */
.timeline {
  max-width: 780px;
  margin: 0 auto;
}
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.timeline-item:last-child { border-bottom: 1px solid var(--rule); }
.timeline-time {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
}
.timeline-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.timeline-body p {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 52ch;
}

/* Info list (rito civile) */
.info-block {
  max-width: 780px;
  margin: 0 auto;
}
.info-block h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
}
.info-block ul {
  list-style: none;
  padding: 0;
}
.info-block li {
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--body-txt);
  line-height: 1.7;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 1rem;
}
.info-block li:last-child { border-bottom: 1px solid var(--rule); }
.info-block li::before {
  content: "";
  display: block;
  width: 10px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.9em;
}

/* Pool full-bleed moment */
.moment {
  position: relative;
  height: 72vh;
  min-height: 460px;
  overflow: hidden;
}
.moment-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.moment-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31,22,17,0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 4.5rem;
  text-align: center;
}
.moment-eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.2rem;
}
.moment-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: rgba(255,255,255,0.95);
  max-width: 22ch;
  padding: 0 2rem;
  line-height: 1.35;
}

/* Gallery grid (editorial 12-col) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-grid > figure { position: relative; overflow: hidden; margin: 0; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(31,22,17,0.6);
  padding: 0.4rem 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }
.g-col-6  { grid-column: span 6; }
.g-col-5  { grid-column: span 5; }
.g-col-4  { grid-column: span 4; }
.g-col-7  { grid-column: span 7; }
.g-col-8  { grid-column: span 8; }
.g-col-12 { grid-column: span 12; }
.g-h-lg   { height: 460px; }
.g-h-md   { height: 340px; }
.g-h-sm   { height: 280px; }
.g-h-xl   { height: 560px; }

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}
.contact-info .display {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #fff;
  margin: 1rem 0 1.6rem;
  line-height: 1.05;
}
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-details .c-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.contact-details .c-val {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.contact-details a:hover { color: var(--gold-lt); }

/* Form */
.contact-form { display: flex; flex-direction: column; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  padding-bottom: 1.8rem;
}
.form-field label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.95);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  padding: 0.55rem 0;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.3s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--gold-lt);
}
.form-field select option { background: var(--dark); color: #fff; }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-privacy {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem;
}
.form-privacy a { color: var(--gold-lt); }

/* Footer */
.footer {
  position: relative;
  background: #17110D;
  padding: 4rem 2rem 2rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule-dark);
}
.footer-brand .footer-logo img {
  height: 56px;
  filter: brightness(0) invert(0.6);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  max-width: 1240px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: inherit; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--gold-lt); }

/* ─── Rooms grid (Casa Vacanze · Camere) ──────────────────── */
.rooms-hero {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: var(--page-top) 2rem 2.6rem;
  justify-content: flex-start;
}
.rooms-hero .hero-content {
  max-width: 780px;
  text-align: center;
}
.rooms-hero .label {
  color: #D4C195;
  display: block;
  margin-bottom: 0.5rem;
}
.rooms-hero .rule-gold {
  background: #D4C195;
  margin: 0.4rem 0 1rem;
  opacity: 0.75;
}
.rooms-hero--light {
  background: linear-gradient(180deg, #E6DBC8 0%, #D9CDB4 100%);
}
.rooms-hero--light .label { color: var(--gold); }
.rooms-hero--light .rule-gold { background: var(--gold); opacity: 0.85; }
.rooms-hero--light .rooms-hero-title { color: var(--dark); text-shadow: none; }
.rooms-hero--light .rooms-hero-sub { color: var(--muted); text-shadow: none; }
.rooms-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 0.8rem;
}
.rooms-hero-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.45;
  max-width: 56ch;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .rooms-hero { height: auto; min-height: 0; max-height: none; padding: var(--page-top) 1.4rem 1.8rem; }
  .rooms-hero-title { font-size: 1.9rem; }
  .rooms-hero-sub { font-size: 0.9rem; }
}

/* Strip con dotazioni comuni (dopo l'hero) */
.rooms-amenities-strip {
  background: var(--bg-warm);
  padding: 2.4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.rooms-amenities-strip .label {
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.rooms-amenities-strip ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 2.6rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--body-txt);
}
.rooms-amenities-strip li { position: relative; }
.rooms-amenities-strip li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -1.4rem;
  color: var(--gold);
  font-weight: 600;
}
@media (max-width: 640px) {
  .rooms-amenities-strip { padding: 1.8rem 1.2rem; }
  .rooms-amenities-strip ul { gap: 0.5rem 1.6rem; font-size: 0.62rem; letter-spacing: 0.18em; }
  .rooms-amenities-strip li:not(:last-child)::after { right: -1rem; }
}

.rooms-section { padding: 2.5rem 2.2rem 4rem; }
.rooms-intro {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.rooms-intro .label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.rooms-intro-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--title);
  margin: 0 0 1rem;
  line-height: 1.15;
  text-wrap: balance;
}
.rooms-intro-sub {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 720px) {
  .rooms-intro { margin-bottom: 2.4rem; }
  .rooms-intro-sub { font-size: 0.95rem; }
}
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
.room-card {
  background: #FAF4EA;
  border: 1px solid rgba(90,70,45,0.12);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.5s ease, border-color 0.4s ease;
}
.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px -28px rgba(31,22,17,0.3);
  border-color: var(--gold);
}
.room-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.room-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}
.room-card:hover .room-photo img { transform: scale(1.07); }
.room-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}
.room-number {
  position: absolute;
  top: 1rem; left: 1.2rem;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1;
  letter-spacing: 0.01em;
}
.room-category {
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  z-index: 2;
  background: rgba(31,22,17,0.78);
  color: #fff;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.42rem 0.9rem;
  backdrop-filter: blur(6px);
}
.room-content {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.room-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--title);
  margin: 0;
  letter-spacing: 0.005em;
}
.room-divider {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin: 0.1rem 0 0.3rem;
}
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.1rem 0 0.3rem;
}
.room-meta span {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(90,70,45,0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.room-desc {
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--body-txt);
  margin: 0;
  flex: 1;
}
.room-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dark);
  background: transparent;
  border: 1px solid var(--dark);
  border-radius: 6px;
  padding: 0.85rem 1.3rem;
  margin-top: 0.6rem;
  width: fit-content;
  cursor: pointer;
  min-height: 42px;
  transition: background 0.35s, color 0.35s, gap 0.35s, letter-spacing 0.35s;
}
.room-cta::after {
  content: "→";
  font-size: 0.95rem;
  letter-spacing: 0;
  transition: transform 0.35s;
}
.room-cta:hover {
  background: var(--dark);
  color: var(--bg);
  letter-spacing: 0.3em;
}
.room-cta:hover::after { transform: translateX(3px); }

@media (max-width: 720px) {
  .rooms-section { padding: 2rem 1.2rem 3rem; }
  .rooms-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
/* room-cta rendered as <a> keeps the same visual as button */
a.room-cta { text-decoration: none; }
.room-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ─── ROOM DETAIL (hero cinematografico + mosaico) ───────────── */
.room-detail {
  --rd-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --rd-sans: 'Instrument Sans', 'Josefin Sans', system-ui, sans-serif;
  padding-top: var(--nav-h);        /* altezza nav fissa */
  padding-bottom: 4.5rem;
  font-family: var(--rd-sans);
  color: var(--body-txt);
}
.room-detail > * { max-width: 1240px; margin-inline: auto; }

/* Mosaico foto in apertura */
.room-detail > .rd-top { max-width: none; position: relative; }
.rd-top .rd-crumb {
  position: absolute; top: 16px; left: 16px; z-index: 3; margin: 0;
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 15px; border-radius: 999px;
  background: rgba(15,10,7,.28); color: #fff; border: 1px solid rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 500; letter-spacing: .14em; line-height: 1; text-transform: uppercase; white-space: nowrap;
  transition: background .25s;
}
.rd-top .rd-crumb::after { content: ""; position: absolute; inset: -6px; }  /* area di tocco 44px */
.rd-top .rd-crumb:hover { background: rgba(15,10,7,.5); color: #fff; }
.rd-mosaic { transition: opacity .2s ease; }
.rd-mosaic.is-swapping { opacity: 0; }
.rd-swap { grid-column: 1; grid-row: 1 / -1; justify-self: end; align-self: center; z-index: 3; width: 56px; height: 72px; margin-right: .6rem; padding: 0; border: 0; background: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; filter: drop-shadow(0 1px 6px rgba(0,0,0,.55)); }
.rd-swap[hidden] { display: none; }
.rd-swap svg { width: 22px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.rd-swap:hover svg { transform: translateX(4px); }
.rd-swap:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 8px; }
.rd-mosaic { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(320px, 34vw, 480px); background: var(--bg); position: relative; }
.rd-mosaic.rd-n1 { grid-template-columns: 1fr; grid-template-rows: clamp(320px, 46vw, 600px); height: auto; }
.rd-mosaic.rd-n2 { grid-template-rows: clamp(320px, 46vw, 600px); height: auto; }
.rd-tile { padding: 0; border: 0; background: var(--bg-warm); cursor: zoom-in; overflow: hidden; position: relative; }
.rd-tile:first-child { grid-column: 1 / 3; grid-row: 1 / -1; }
.rd-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rd-showall { position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; background: #fff; color: var(--ink); border: 1px solid rgba(0,0,0,.2); border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: .82rem; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; transition: transform .2s ease; }
.rd-showall:hover { transform: scale(1.03); }
.rd-showall svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rd-showall:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (min-width: 901px) { .rd-swap { display: none; } }
.rd-tile:hover img { transform: scale(1.04); }

/* Titolo */
.rd-head { padding: 1.8rem 2.2rem 0; }
.rd-crumb { display: inline-block; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: .55rem 0; min-height: 44px; }
.rd-crumb:hover { color: var(--dark); }
.rd-head .label { display: block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: .3rem 0 .6rem; }
.rd-title { font-family: var(--rd-serif); font-weight: 400; font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1; margin: 0; color: var(--title); text-wrap: balance; }
.rd-title em { font-style: italic; }

/* Barra disponibilità */
.rd-book {
  position: relative; z-index: 2; margin: 2rem auto 0; width: calc(100% - 4.4rem); max-width: calc(1240px - 4.4rem);
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px -28px rgba(31,22,17,.5);
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: stretch;
}
.rd-field { padding: 1rem 1.4rem; border-right: 1px solid rgba(90,70,45,.16); min-width: 0; }
.rd-field label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rd-field input, .rd-field select { width: 100%; border: 0; padding: .3rem 0 0; background: none; font: 500 1rem var(--rd-sans); color: var(--dark); min-height: 30px; }
.rd-cta {
  border: 0; border-radius: 0 14px 14px 0; padding: 0 2.2rem; min-height: 68px; cursor: pointer;
  background: var(--gold); color: var(--dark);
  font: 600 .8rem var(--rd-sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.rd-cta:hover { background: var(--dark); color: #fff; }
.rd-cta:focus-visible, .rd-tile:focus-visible, .rd-card:focus-visible, .rd-crumb:focus-visible, .rd-field input:focus-visible, .rd-field select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Descrizione + servizi */
.rd-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; padding: 4rem 2.2rem 1rem; }
.rd-h { font-family: var(--rd-serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: 0 0 1.1rem; color: var(--title); }
.rd-intro { font-size: 1.12rem; line-height: 1.75; margin: 0 0 1.6rem; max-width: 56ch; }
.rd-facts, .rd-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.rd-fact, .rd-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.05rem; border-radius: 999px; font-weight: 500; font-size: .98rem; border: 1px solid var(--rule); background: rgba(255,255,255,.5); }
.rd-fact { background: var(--dark); color: #fff; border-color: var(--dark); }
.rd-ic { display: inline-flex; width: 1.3rem; height: 1.3rem; }
.rd-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rd-chip .rd-ic { color: var(--gold); }
.rd-fact .rd-ic { color: var(--gold-lt); }

/* ── Hero a due colonne da desktop ──────────────────────────────
   Foto a sinistra, nome della sistemazione e form di prenotazione a
   destra: così entrando nella pagina si vedono tutti e tre sullo
   stesso piano, senza scorrere. L'altezza del mosaico è legata al
   viewport perché resti dentro la prima schermata anche sui portatili. */
@media (min-width: 901px) {
  .room-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(350px, 0.68fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "photos info"
      "photos form"
      "photos ."
      "body   body"
      "more   more";
    column-gap: clamp(1.6rem, 2.4vw, 2.8rem);
    padding-top: calc(var(--nav-h) + 30px);
    max-width: 1460px;
    margin-inline: auto;
    padding-inline: clamp(1.4rem, 2.6vw, 2.6rem);
  }
  .room-detail > * { max-width: none; margin-inline: 0; }
  .room-detail > .rd-top  { grid-area: photos; }
  .room-detail > .rd-head { grid-area: info; padding: 0 0 1.2rem; }
  .room-detail > .rd-book { grid-area: form; width: 100%; max-width: none; margin: 0; align-self: start; }
  .room-detail > .rd-body { grid-area: body; width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 0; }
  .room-detail > .rd-more { grid-area: more; width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 0; }

  .rd-mosaic { height: clamp(360px, calc(100vh - 262px), 560px); border-radius: 12px; overflow: hidden; }
  .rd-mosaic.rd-n1,
  .rd-mosaic.rd-n2 { height: auto; grid-template-rows: clamp(360px, calc(100vh - 262px), 560px); }

  /* titolo proporzionato alla colonna stretta */
  .rd-title { font-size: clamp(2.1rem, 2.9vw, 3.2rem); }

  /* form in verticale: ogni campo su una riga, CTA a tutta larghezza */
  .rd-book { grid-template-columns: 1fr; }
  .rd-field { border-right: 0; border-bottom: 1px solid rgba(90,70,45,.16); padding: .85rem 1.3rem; }
  .rd-cta { border-radius: 0 0 14px 14px; min-height: 58px; padding: 0 1.6rem; }
}

/* Altre sistemazioni */
.rd-more { padding: 3.2rem 2.2rem 0; }
.rd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.rd-card { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--dark); background: rgba(255,255,255,.55); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; padding-bottom: .9rem; transition: transform .3s, box-shadow .3s; }
.rd-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(31,22,17,.5); }
.rd-card-im { display: block; aspect-ratio: 4/3; overflow: hidden; margin-bottom: .7rem; }
.rd-card-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-card b { padding-inline: .9rem; font-weight: 600; }
.rd-card > span:last-child { padding-inline: .9rem; font-size: .82rem; color: var(--muted); }

/* Lightbox: frecce minimali integrate nella foto */
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(15,10,7,.97); display: flex; align-items: center; justify-content: center; padding: 3rem 2.5rem; }
.lb-fig { position: relative; display: flex; max-width: 100%; max-height: 100%; }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem); object-fit: contain; border-radius: 4px; }
@media (min-width: 901px) {
  .lb { padding: 6vh 8vw; }
  .lb-fig { max-width: min(100%, 980px); }
  .lb-fig img { max-height: min(calc(100vh - 12vh), 680px); max-height: min(calc(100dvh - 12vh), 680px); }
}
.lb button { position: absolute; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 6px rgba(0,0,0,.6)); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lb button[hidden] { display: none; }
.lb button svg { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.lb button:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 8px; }
.lb-p, .lb-nx { top: 50%; transform: translateY(-50%); width: 52px; height: 80px; }
.lb-p { left: 6px; } .lb-nx { right: 6px; }
.lb-p svg, .lb-nx svg { width: 22px; height: 44px; }
.lb-p:hover svg { transform: translateX(-4px); } .lb-nx:hover svg { transform: translateX(4px); }
.lb-x { top: 6px; right: 6px; width: 48px; height: 48px; }
.lb-x svg { width: 20px; height: 20px; }
.lb-n { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .72rem; letter-spacing: .18em; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

@media (max-width: 900px) {
  .room-detail { padding-bottom: 5.5rem; }
  .rd-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 210px 104px; height: auto; gap: 4px; }
  .rd-tile:first-child { grid-column: 1 / -1; grid-row: 1; }
  .rd-tile:nth-child(n+4) { display: none; }
  .rd-mosaic.rd-n1 { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .rd-mosaic.rd-n2 { grid-template-rows: 210px 104px; }
  .rd-showall { display: none; }
  .rd-top .rd-crumb { top: 12px; left: 12px; }
  .rd-head { padding: 1rem 1.2rem 0; }
  .rd-swap { grid-column: 1 / -1; grid-row: 1; margin-right: .2rem; }
  .rd-crumb { font-size: .7rem; padding: .4rem 0; }
  .rd-head .label { font-size: .7rem; margin: 0 0 .4rem; }
  .rd-title { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .rd-book { width: calc(100% - 2.4rem); margin-top: 1.1rem; grid-template-columns: 1fr 1fr; }
  .rd-field { border-bottom: 1px solid rgba(90,70,45,.16); padding: .7rem 1rem; }
  .rd-field input, .rd-field select { min-height: 44px; padding: 0; font-size: 1rem; }
  .rd-field:nth-child(2) { border-right: 0; }
  .rd-field:nth-child(3) { grid-column: 1 / -1; border-right: 0; }
  .rd-cta { grid-column: 1 / -1; border-radius: 0 0 14px 14px; min-height: 56px; }
  .rd-body { grid-template-columns: 1fr; gap: 1.8rem; padding: 2rem 1.2rem 0; }
  .rd-h { font-size: 1.7rem; }
  .rd-more { padding: 2.2rem 1.2rem 0; }
  .rd-cards { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .rd-card b { font-size: .92rem; }
  .lb { padding: 3rem 0; }
  .lb-fig img { border-radius: 0; }
}
/* Barra fissa disponibilità (solo mobile) */
.rd-sticky { display: none; }
@media (max-width: 900px) {
  .rd-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: .7rem 1.2rem calc(.7rem + env(safe-area-inset-bottom, 0px)); background: rgba(230,219,200,.97); border-top: 1px solid var(--rule); backdrop-filter: blur(8px); transform: translateY(110%); transition: transform .3s; }
  .rd-sticky.on { transform: none; }
  .rd-sticky .rd-cta { width: 100%; border-radius: 999px; min-height: 52px; }
}
.rd-tile, .rd-cta { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (hover: none) { .rd-tile:hover img { transform: none; } .rd-card:hover { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .rd-tile img, .rd-card, .rd-cta, .rd-sticky, .rd-mosaic, .rd-swap { transition: none; } }

/* Map embed */
.map-wrap {
  width: 100%;
  height: 460px;
  background: var(--bg-warm);
  overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: sepia(0.15) saturate(0.9); }

/* ─── SPLASH (cinema style) ────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  display: block;
}
.splash-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: splashZoom 22s ease-out infinite alternate;
}
@keyframes splashZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
/* Cinema gradient: darkened top + heavy dark bottom for legible text */
.splash-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.12) 22%,
      rgba(0,0,0,0.05) 38%,
      rgba(0,0,0,0.45) 60%,
      rgba(0,0,0,0.92) 100%);
}

/* Top-left brand mark (Borgo Egnazia style) */
.splash-corner-top {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  animation: splashFade 1.2s ease-out 0.2s both;
}
.splash-corner-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.splash-corner-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,0.45);
  padding-left: 0.9rem;
}

/* Bottom-center cinematic text block */
.splash-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  animation: splashFade 1.4s ease-out 0.5s both;
}
@keyframes splashFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;             /* compensa lo spazio finale della spaziatura */
  text-transform: uppercase;
  /* la foto sotto e' chiarissima all'orizzonte: l'oro medio ci si perde,
     serve un tono piu' caldo e chiaro con un'ombra che lo stacchi */
  color: #F2E6D2;
  text-shadow: 0 1px 12px rgba(0,0,0,.7), 0 0 3px rgba(0,0,0,.55);
  margin-bottom: 1.2rem;
}
/* filetto oro sotto l'occhiello: e' la firma usata in tutte le altre pagine */
.splash-eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold-lt);
  opacity: .85;
  margin: 1rem auto 0;
  text-indent: 0;
}
.splash-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.05;
  letter-spacing: 0.005em;
  max-width: 22ch;
  margin: 0 auto 2.8rem;
}
.splash-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 999px;            /* pillola, come ogni CTA del sito */
  min-height: 54px;
  padding: 0 2.6rem;
  box-shadow: 0 18px 38px -18px rgba(0,0,0,.7);
  transition: background 0.4s, color 0.4s, gap 0.4s, border-color 0.4s;
}
.splash-cta svg { transition: transform 0.4s; }
.splash:hover .splash-cta {
  background: #fff;
  border-color: #fff;
  color: var(--dark);
  gap: 1.4rem;
}
.splash:hover .splash-cta svg { transform: translateX(4px); }

/* ─── HUB 4-TILE ───────────────────────────────────────────── */
.hub {
  min-height: 100svh;
  padding-top: var(--nav-h);         /* room for fixed nav */
  display: flex;
  flex-direction: column;
}
.hub-head {
  text-align: center;
  padding: 1.6rem clamp(16px, 4vw, 48px) 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hub-head .label { color: var(--gold); }
.hub-head .rule-gold { margin: 0.7rem 0 0.9rem; }
.hub-head-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  color: var(--dark);
  margin: 0 0 0.4rem;
  letter-spacing: 0.005em;
}
.hub-head-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.hub-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42vh;
  cursor: pointer;
  color: #fff;
  isolation: isolate;
}
.hub-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.02);
  z-index: -2;
}
.hub-tile-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31,22,17,0.22) 0%, rgba(31,22,17,0.3) 55%, rgba(31,22,17,0.62) 100%);
  transition: background 0.5s ease;
  z-index: -1;
}
.hub-tile:hover .hub-tile-bg { transform: scale(1.06); }
.hub-tile:hover .hub-tile-overlay {
  background: linear-gradient(180deg, rgba(31,22,17,0.12) 0%, rgba(31,22,17,0.22) 55%, rgba(31,22,17,0.5) 100%);
}
.hub-tile-content {
  text-align: center;
  padding: 2.4rem 2rem;
  transform: translateY(0);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hub-tile:hover .hub-tile-content { transform: translateY(-4px); }
.hub-tile-num {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #F2ECE0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  margin-bottom: 0.1rem;
}
.hub-tile-num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #D4C195;
  opacity: 0.7;
}
.hub-tile-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: #fff;
  margin: 0 0 0.3rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
}
.hub-tile-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.015em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  margin: 0;
}
.hub-tile::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--gold-lt, #D4C195);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.22, 0.65, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}
.hub-tile-frame {
  position: absolute;
  width: 1px;
  top: 14px;
  bottom: 14px;
  background: var(--gold-lt, #D4C195);
  transform: scaleY(0);
  transition: transform 0.65s cubic-bezier(0.22, 0.65, 0.3, 1) 0.18s;
  z-index: 2;
  pointer-events: none;
}
.hub-tile-frame-l { left: 14px; transform-origin: top center; }
.hub-tile-frame-r { right: 14px; transform-origin: bottom center; }
.hub-tile:hover::before { transform: scaleX(1); }
.hub-tile:hover .hub-tile-frame { transform: scaleY(1); }
.hub-tile::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--gold-lt, #D4C195);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.65s cubic-bezier(0.22, 0.65, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}
.hub-tile:hover::after { transform: scaleX(1); }

/* ─── NAV V2 (persistent with CTA) ─────────────────────────── */
.nav.v2 {
  grid-template-columns: auto 1fr auto;
  padding: 1rem 2rem;
  background: rgba(230,219,200,0.96);   /* beige caldo medio */
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(90,68,44,0.18);
}
/* Nav senza freccia (esplora.html): logo a sinistra, actions a destra */
.nav.v2.no-back { grid-template-columns: auto 1fr; }
.nav.v2.no-back .nav-logo { grid-column: 1; justify-content: flex-start; padding-left: 0; }
.nav.v2.no-back .nav-actions { grid-column: 2; justify-content: flex-end; }
.nav.v2 .nav-logo img {
  filter: none;
  height: 42px;
}
.nav.v2 .hamburger {
  display: inline-flex;
  color: #3A2417;                       /* marrone scuro caldo */
  margin: 0;
  padding: 0.5rem;
}
.nav.v2 .hamburger:hover { color: var(--gold); }
.nav.v2 .hamb-label { display: none; } /* la parola Menu non compare in nav v2 */

/* ─── NAV BACK (solo icona freccia, in ogni pagina) ──────── */
.nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #3A2417;
  min-width: 44px;
  min-height: 44px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.nav-back:hover {
  color: var(--gold);
  transform: translateX(-3px);
}
.nav-back svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.nav.v2.on-dark .nav-back { color: #fff; }
.nav.v2.on-dark .nav-back:hover { color: var(--gold-lt); }
.nav.v2 .nav-logo { justify-content: flex-start; padding-left: 0.5rem; }
.nav-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.nav-cta,
.nav-vt {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.75rem 1.3rem;
  min-height: 44px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
  white-space: nowrap;
  border: 1px solid;
  border-radius: 999px;
}
.nav-cta { color: var(--dark); border-color: var(--dark); }
.nav-cta:hover { background: var(--dark); color: var(--bg); }
/* Virtual Tour: oro antico FISSO in tutte le pagine (indipendente dal theme) */
.nav-vt { color: #fff; background: #9F876A; border-color: #9F876A; }
.nav-vt:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.nav-cta-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
/* icona 360° del Virtual Tour: bianca, tratto sottile arrotondato */
/* PC: Contattaci mostra solo la scritta (su mobile resta l'icona) */
@media (min-width: 721px) {
  .nav-cta-icon { display: none; }
}
.nav-vt-icon {
  width: 36px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav.v2.on-dark {
  background: rgba(31,22,17,0.72);
  backdrop-filter: blur(10px);
}
.nav.v2.on-dark .nav-logo img { filter: brightness(0) invert(1); }
.nav.v2.on-dark .hamburger { color: #fff; }
.nav.v2.on-dark .hamburger:hover { color: var(--gold-lt); }
.nav.v2.on-dark .nav-cta {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.nav.v2.on-dark .nav-cta:hover {
  background: #fff;
  color: var(--dark);
}
.nav.v2.on-dark .nav-vt {
  color: var(--gold-lt);
  border-color: rgba(196,178,150,0.75);
}
.nav.v2.on-dark .nav-vt:hover {
  background: var(--gold-lt);
  color: var(--dark);
  border-color: var(--gold-lt);
}

/* ─── HUB 2-TILE (intermediate hub Matrimoni/Eventi) ────── */
.hub-grid.hub-grid-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
.hub-grid.hub-grid-2 .hub-tile { min-height: 60vh; }
/* l'ancora #chiesa non deve finire sotto la barra fissa */
#chiesa { scroll-margin-top: var(--page-top); }
/* tre vie di cerimonia: civile, matrimonio, chiesa consacrata */
.hub-grid.hub-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
}
.hub-grid.hub-grid-3 .hub-tile { min-height: 60vh; }
@media (max-width: 1000px) {
  .hub-grid.hub-grid-3 { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  /* 36vh x 3 piu' la barra sforava la finestra e il terzo riquadro restava
     tagliato: senza minimo le tre righe si dividono l'altezza disponibile
     e si vedono tutte all'apertura. Il floor serve solo ai display cortissimi. */
  .hub-grid.hub-grid-3 .hub-tile { min-height: 140px; }
}
@media (max-width: 720px) {
  .hub-grid.hub-grid-2 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .hub-grid.hub-grid-2 .hub-tile { min-height: 44vh; }
}

/* ─── SERVICE LIST (numbered services in text column) ───── */
.service-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.service-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  transition: padding-left 0.3s ease;
}
.service-list li:hover { padding-left: 0.4rem; }
.service-list li:hover .num { color: var(--gold-lt); }
.service-list .num { transition: color 0.3s ease; }
.service-list li:last-child { border-bottom: 1px solid var(--rule); }
.service-list .num {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;                    /* era 1.5rem */
  color: var(--gold);
  line-height: 1;
}
.service-list h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;                      /* era 1.15rem */
  color: var(--dark);
  margin-bottom: 0.2rem;
  letter-spacing: 0.005em;
  line-height: 1.25;
}
.service-list p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.88rem;                   /* era 0.95rem */
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
/* The split that holds the service list balances the sibling split */
.split.split-tall { min-height: auto; }
.split.split-tall .split-text { padding: 2.6rem 3.5rem; }
.split.split-tall .display { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.split.split-tall .body-copy { font-size: 1rem; line-height: 1.6; }
@media (max-width: 900px) {
  .split.split-tall .split-text { padding: 2.2rem 1.6rem; order: 1; }
  .split.split-tall .split-image { order: 2; min-height: 320px; }
  .service-list li { grid-template-columns: 38px 1fr; gap: 0.8rem; padding: 0.65rem 0; }
}

/* Virtual Tour placeholder */
.vt-placeholder {
  min-height: calc(100svh - var(--nav-h));
  padding-top: var(--page-top);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-inline: 2rem;
  background: var(--bg);
}
.vt-placeholder-logo {
  height: 90px;
  width: auto;
  opacity: 0.45;
  margin-bottom: 3rem;
}
.vt-placeholder .label {
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.vt-placeholder h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--dark);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 1.6rem;
}
.vt-placeholder p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 42ch;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.vt-placeholder .rule-gold {
  margin: 0 auto 3rem;
}

/* ─── MOBILE / TOUCH BASE ──────────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; }
a, button, .btn, .hamburger, .mobile-close, input[type=submit] {
  touch-action: manipulation;  /* removes 300ms tap delay on old iOS */
}
/* iOS Safari 100vh fix — 100svh already used on .hero, but html/body sane */
html, body { min-height: 100%; }
/* Prevent iOS auto-zoom on input focus: never smaller than 16px */
input, select, textarea { font-size: 16px; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */

/* Tablet landscape and below */
@media (max-width: 1080px) {
  :root { --pad-page: 2rem; --pad-section: 6rem; }
  .nav { padding: 1.4rem 2rem; }
  .nav.solid, .nav.scrolled { padding: 1rem 2rem; }
  .split-text { padding: 4rem 2.5rem; }
  .feat-grid { gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet portrait — hamburger appears, splits stack */
@media (max-width: 900px) {
  :root { --pad-section: 5rem; }
  .nav {
    grid-template-columns: auto 1fr;
    padding: 1.1rem 1.4rem;
  }
  .nav.solid, .nav.scrolled { padding: 0.9rem 1.4rem; }
  .nav-links.left, .nav-links.right { display: none; }
  .nav-logo { justify-content: flex-start; }
  .nav-logo img { height: 44px; }
  .nav.solid .nav-logo img, .nav.scrolled .nav-logo img { height: 40px; }
  .hamburger { display: inline-flex; margin-left: auto; }
  .split { grid-template-columns: 1fr; }
  .split-image { min-height: 360px; }
  .split.reverse .split-image { order: 1; }
  .split.reverse .split-text  { order: 2; }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .g-col-6, .g-col-5, .g-col-7, .g-col-4, .g-col-8 { grid-column: span 6; }
  .g-col-12 { grid-column: span 6; }
  .g-h-lg, .g-h-md, .g-h-sm, .g-h-xl { height: 280px; }
}

/* Hub mobile: 4 tile in colonna verticale */
@media (max-width: 720px) {
  .hub { padding-top: var(--nav-h); min-height: 100svh; }
  .hub-head { padding: 1.1rem 1.2rem 0.9rem; }
  .hub-head .rule-gold { margin: 0.5rem 0 0.7rem; }
  .hub-head-sub { font-size: 0.9rem; }
  .hub-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(180px, 25vh));
  }
  .hub-tile { min-height: 180px; }
  .hub-tile-content { padding: 1.8rem 1.4rem; gap: 0.5rem; }
  .hub-tile-title { font-size: 1.85rem; }
  .hub-tile-num { font-size: 0.95rem; gap: 0.6rem; }
  .hub-tile-num::after { width: 22px; }
  .hub-tile-sub { font-size: 0.9rem; }
  .nav.v2 { padding: 0.8rem 1.2rem; }
  .nav.v2 .nav-cta {
    font-size: 0.62rem;
    padding: 0.6rem 0.95rem;
    letter-spacing: 0.2em;
    min-height: 40px;
  }
  .nav.v2 .nav-cta-icon { width: 18px; height: 18px; }
  /* Virtual Tour su mobile: solo icona, ma resta SEMPRE visibile */
  .nav.v2 .nav-vt {
    padding: 0.55rem;
    gap: 0;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }
  .nav.v2 .nav-vt-text { display: none; }
  .nav.v2 .nav-vt-icon { width: 32px; height: 18px; }
  .nav-actions { gap: 0.5rem; }
}

/* Large phone (iPhone Pro Max / Android XL) */
@media (max-width: 640px) {
  :root { --pad-page: 1.4rem; --pad-section: 3.8rem; }
  html { font-size: 15px; }

  .hero { min-height: 560px; }
  .hero-title { font-size: 2.9rem; letter-spacing: 0.015em; }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.24em; margin-bottom: 1.1rem; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 2.2rem; }
  .hero-scroll { bottom: 1.6rem; font-size: 0.55rem; }
  .scroll-line { height: 32px; }

  .page-hero { height: auto; max-height: none; min-height: 0; padding: var(--page-top) 1.4rem 1.8rem; }
  .page-hero-title { font-size: 2rem; }
  .page-hero-sub { font-size: 0.95rem; }
  .breadcrumb { font-size: 0.58rem; letter-spacing: 0.24em; margin-bottom: 0.6rem; }

  .split-text { padding: 2.8rem 1.4rem 3rem; }
  .split-text .display { font-size: 2rem; }

  .section-header { margin-bottom: 3rem; }
  .section-header .display { font-size: 2rem; }
  .section-header .body-copy { font-size: 1rem; margin-top: 1.4rem; }

  .body-copy { font-size: 1.02rem; line-height: 1.72; }

  .statement { padding: 4rem 1.4rem; }
  .statement-text { font-size: 1.4rem; max-width: 20ch; }

  .moment { height: 60vh; min-height: 380px; }
  .moment-overlay { padding-bottom: 3rem; }
  .moment-caption { font-size: 1.3rem; }

  .feat-grid { grid-template-columns: 1fr; gap: 0; }
  .feat { padding: 2rem 0 1.4rem; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-field { padding-bottom: 1.6rem; }

  .stats-row { gap: 1.4rem 2rem; }
  .stat-item { flex: 1 1 40%; }
  .stat-num { font-size: 1.6rem; }
  .stat-lbl { font-size: 0.58rem; }

  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.6rem 0; }
  .timeline-time { font-size: 1.15rem; font-style: normal; letter-spacing: 0.05em; }

  .info-block h3 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
  .info-block li { grid-template-columns: 20px 1fr; gap: 0.7rem; padding: 1rem 0; font-size: 0.98rem; }

  .footer { padding: 3rem 1.4rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; font-size: 0.58rem; }

  .contact-info .display { font-size: 2rem; }

  .btn { padding: 1.05rem 2rem; min-height: 48px; display: inline-flex; align-items: center; }
  .link-underline { padding: 0.5rem 0; min-height: 44px; display: inline-flex; align-items: center; }

  .map-wrap { height: 320px; }

  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .g-col-6, .g-col-5, .g-col-7, .g-col-4, .g-col-8, .g-col-12 { grid-column: 1 / -1; }
  .g-h-lg, .g-h-md, .g-h-sm, .g-h-xl { height: 260px; }

  .hamb-label { display: none; }
  .hamburger { padding: 0.5rem; }
  .mobile-menu { gap: 1.6rem; padding: 4.5rem 1.5rem 2.5rem; }
  .mobile-menu::before { font-size: 0.6rem; letter-spacing: 0.36em; margin-bottom: 0.8rem; }
  .mobile-menu a { font-size: 1.75rem; }
  .mobile-menu-cta { font-size: 0.68rem; padding: 0.9rem 2.2rem; margin-top: 1rem; }

  /* Nav v2 compatta su mobile */
  .nav.v2 { padding: 0.7rem 1rem; }
  .nav.v2 .nav-logo img { height: 38px; }
  .nav-actions { gap: 0.35rem; }
  .nav-back { min-width: 40px; min-height: 40px; padding: 0.4rem; gap: 0; }
  .nav-back-label { display: none; }   /* solo icona sotto 640 */
  .nav-back svg { width: 20px; height: 20px; }
  .nav.v2 .nav-cta {
    font-size: 0.6rem;
    padding: 0.55rem 0.85rem;
    letter-spacing: 0.18em;
    min-height: 38px;
    gap: 0.4rem;
  }
  .nav.v2 .nav-cta-icon { width: 18px; height: 18px; }

  /* Splash mobile */
  .splash-corner-top { top: 1.2rem; left: 1.2rem; gap: 0.7rem; }
  .splash-corner-logo { height: 36px; }
  .splash-corner-name {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    padding-left: 0.7rem;
  }
  .splash-content { bottom: 6vh; padding: 0 1.4rem; }
  .splash-eyebrow { font-size: 0.6rem; letter-spacing: 0.32em; margin-bottom: 1.2rem; }
  .splash-h1 { font-size: 2.2rem; margin-bottom: 2rem; max-width: 18ch; }
  .splash-cta { font-size: 0.66rem; padding: 1rem 1.9rem; letter-spacing: 0.28em; gap: 0.9rem; }
  .mobile-close { top: 1.2rem; right: 1.2rem; padding: 12px; }
}

/* Mid-small phone — nav va stretta, Contattaci diventa icon-only */
@media (max-width: 480px) {
  .nav.v2 { padding: 0.65rem 0.8rem; }
  .nav.v2 .nav-logo img { height: 34px; }
  /* Contattaci: nasconde il testo, resta solo icona busta */
  .nav.v2 .nav-cta {
    padding: 0.5rem;
    min-width: 38px;
    min-height: 38px;
    gap: 0;
    justify-content: center;
    font-size: 0;
  }
  .nav.v2 .nav-cta-icon { width: 18px; height: 18px; }
  .nav.v2 .nav-vt { min-width: 38px; min-height: 38px; padding: 0.5rem; }
  .nav.v2 .nav-vt-icon { width: 32px; height: 18px; }
  .nav-back { min-width: 38px; min-height: 38px; }
  .nav-back svg { width: 18px; height: 18px; }
  .hamburger { padding: 0.4rem; }
  .hamb-icon { width: 20px; height: 13px; }
}

/* Small phone (iPhone SE / mini) */
@media (max-width: 380px) {
  :root { --pad-page: 1.2rem; --pad-section: 3.2rem; }
  html { font-size: 14.5px; }
  .hero-title { font-size: 2.5rem; }
  .page-hero-title { font-size: 2rem; }
  .split-text .display,
  .section-header .display,
  .contact-info .display { font-size: 1.75rem; }
  .statement-text { font-size: 1.25rem; }
  .moment-caption { font-size: 1.15rem; }
  .mobile-menu a { font-size: 1.7rem; }
  .btn { padding: 1rem 1.6rem; font-size: 0.7rem; letter-spacing: 0.22em; }
  .stat-num { font-size: 1.4rem; }
  /* Nav ancora più stretta */
  .nav.v2 { padding: 0.6rem 0.7rem; }
  .nav.v2 .nav-logo img { height: 32px; }
  .nav-actions { gap: 0.25rem; }
}

/* Landscape phones — compact hero */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .hero-title { font-size: 2.6rem; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 1.4rem; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .hero-content, .page-hero .hero-content { animation: none; }
  .split-image img, .gallery-grid img { transition: none; }
  .scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* Aree di tocco minime 44px nella nav (mobile) */
@media (max-width: 900px) {
  .nav.v2 .nav-back, .nav.v2 .nav-vt, .nav.v2 .nav-cta, .nav.v2 .hamburger { min-width: 44px; min-height: 44px; }
  .nav.v2 .nav-back, .nav.v2 .nav-vt, .nav.v2 .nav-cta { display: inline-flex; align-items: center; justify-content: center; }
}

/* ─── EVENTI · il cielo che cambia (dal colore del sito alla notte) ─── */
.ev-sky {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
/* la sfumatura è divisa per sezioni, senza stacchi: parte dal travertino del sito,
   passa per tramonto, viola e notte, e si chiude sul colore del footer */
.ev-sky > section { background: linear-gradient(180deg, var(--a), var(--b)); }
.ev-story { --a: #E6DBC8; --b: #E6DBC8; }
.ev-intro { --a: #E6DBC8; --b: #E6DBC8; }
/* il tramonto parte subito dopo "Occasioni rare" */
.ev-ch.c1 { --a: #E6DBC8; --b: #5A4A5A; background: linear-gradient(180deg, #E6DBC8 0%, #D7BA98 22%, #BC8F7E 45%, #A6796C 62%, #7C5F67 82%, #5A4A5A 100%); color: #2A1410; }
.ev-ch.c1 .ev-tag { color: #4A2012; }
.ev-ch.c1 .ev-tx h3 { color: #2A1410; }
.ev-ch.c1 .ev-tx p { color: #2A1410; }
.ev-ch.c2 { --a: #6A4466; --b: #2E315A; }
.ev-ch.c3 { --a: #2E315A; --b: #14263A; }
.ev-end { --a: #14263A; --b: #17110D; }
.ev-page .footer { position: relative; z-index: 3; }

/* sole e luna: fissi nella finestra, si muovono con lo scroll */
.ev-cel { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.ev-sun, .ev-moon { position: absolute; right: 7vw; border-radius: 50%; opacity: 0; will-change: top, opacity; }
/* Sole: disco con oscuramento al bordo (limb darkening, come il sole vero,
   più luminoso al centro) e corona a tre strati invece di un alone piatto. */
.ev-sun {
  --s: 0; top: 14%; width: 72px; height: 72px; margin-top: -36px;
  background:
    radial-gradient(circle at 50% 50%,
      #FFFEF8 0%, #FFF8E2 26%, #FFEFC4 48%,
      #FBDC9E 68%, #F0C178 85%, #DFA463 96%, rgba(223,164,99,0) 100%);
  box-shadow: 0 0 16px 2px rgba(255,236,190,.45);
}
/* Corona esterna. Molti stop con caduta quasi esponenziale: senza, i pochi
   stop disegnano anelli concentrici visibili sul fondo piatto. */
.ev-sun::before {
  content: ""; position: absolute; inset: -150%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,231,178,.26)  0%,
    rgba(255,226,170,.205) 11%,
    rgba(254,217,158,.153) 20%,
    rgba(252,207,147,.111) 28%,
    rgba(250,197,137,.078) 36%,
    rgba(247,186,127,.053) 44%,
    rgba(244,176,118,.035) 52%,
    rgba(241,166,110,.022) 60%,
    rgba(238,157,103,.013) 69%,
    rgba(235,149,98,.006)  79%,
    rgba(232,143,94,.002)  89%,
    rgba(230,140,92,0)     100%);
}
/* stato tramonto: stessa costruzione, toni più caldi e profondi */
.ev-sun::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: var(--s);
  background:
    radial-gradient(circle at 50% 50%,
      #FFF2DC 0%, #FBDDB2 24%, #EFBF8C 46%,
      #DE9D6E 68%, #C87A58 86%, #B0624C 96%, rgba(176,98,76,0) 100%);
  box-shadow: 0 0 18px 3px rgba(240,180,130,.42);
}
.ev-moon {
  top: 14%; width: 72px; height: 72px; margin-top: -36px;
  box-shadow: 0 0 14px 1px rgba(236,240,250,.34);
}
/* alone lunare: stessa caduta graduale della corona del sole, in toni freddi */
.ev-moon::before {
  content: ""; position: absolute; inset: -170%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle,
    rgba(216,228,248,.22)  0%,
    rgba(210,223,246,.170) 11%,
    rgba(203,217,243,.126) 20%,
    rgba(196,211,240,.091) 28%,
    rgba(189,205,237,.064) 36%,
    rgba(183,199,234,.043) 44%,
    rgba(177,193,231,.028) 52%,
    rgba(171,188,228,.017) 60%,
    rgba(166,183,225,.010) 69%,
    rgba(161,179,222,.004) 80%,
    rgba(158,176,220,0)    100%);
}
.ev-moon-svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.ev-stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; }

/* sezioni */
.ev-sky > section { position: relative; }
.ev-wrap { position: relative; z-index: 2; max-width: 1060px; margin: 0 auto; padding: 0 2.2rem; }
.ev-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ev-light { color: #2A1410; }
.ev-dark { color: #fff; }
.ev-story { padding: var(--page-top) 0 1.2rem; }
.ev-intro { padding: 1.2rem 0 4.5rem; }
.ev-sep { display: flex; align-items: center; gap: 1rem; margin: 0 auto; max-width: 1060px; padding: 0 2.2rem; }
.ev-sep::before, .ev-sep::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .5; }
.ev-sep i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); opacity: .75; }
.ev-light .label { color: var(--dark); }
/* Stessa scala tipografica di matrimoni: h1 dell'hero = .mt-title,
   titoli di sezione = .mt-h (più piccoli) */
.ev-h { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2.3rem, 3.9vw, 3.6rem); line-height: 1.06; margin: 1rem 0 1.6rem; color: var(--title); text-wrap: balance; }
.ev-intro .ev-h { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.08; }
/* Sezione allineata a sinistra (come .mt-sec di matrimoni) */
.ev-left { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.ev-left .rule-gold { margin-left: 0; }
.ev-copy { font-family: var(--serif); font-size: 1.28rem; line-height: 1.7; max-width: 44ch; margin: 0 0 1.1rem; }
.ev-copy-strong { font-style: italic; font-size: 1.45rem; font-weight: 500; }

.ev-ch { padding: 3.2rem 0; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.ev-rev .ev-ph { order: 2; }
.ev-ph { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; border-radius: 220px 220px 10px 10px; background-size: cover; background-position: center; box-shadow: 0 34px 70px -30px rgba(0,0,0,.65); }
.ev-rev .ev-ph { border-radius: 10px 10px 220px 220px; }
.ev-tag { font-family: var(--sans); font-weight: 300; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #F2ECE0; }
.ev-num { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.4rem; line-height: 1; letter-spacing: .04em; color: #D4C195; margin: 0 0 .9rem; opacity: .85; }
.ev-num::after { content: ""; display: block; width: 36px; height: 1px; background: currentColor; margin-top: .55rem; opacity: .6; }
.ev-ch.c1 .ev-num { color: #4A2012; opacity: .78; }
.ev-tx h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.08; margin: .6rem 0 1rem; color: #fff; }
.ev-tx p { font-family: var(--serif); font-size: 1.24rem; line-height: 1.68; margin: 0; max-width: 40ch; color: rgba(255,255,255,.95); }

.ev-end { padding: 5rem 0 7rem; }
.ev-quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 0 0 2.2rem; color: #fff; text-wrap: balance; }
.ev-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 2.4rem; border-radius: 999px; border: 1.5px solid var(--gold-lt); color: #fff; text-decoration: none; background: transparent; font-family: var(--sans); font-weight: 300; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; transition: background .3s, color .3s; }
.ev-btn:hover { background: var(--gold-lt); color: var(--dark); }
.ev-btn:focus-visible, .ev-sky a:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 4px; }
.ev-light a:focus-visible { outline-color: var(--dark); }

/* comparsa dolce (i contenuti restano visibili senza JS) */
.js-rv .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.js-rv .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .ev-sun, .ev-moon { right: 14px; opacity: 0; }
  .ev-sun { width: 48px; height: 48px; margin-top: -24px; }
  .ev-moon { width: 48px; height: 48px; margin-top: -24px; }
  .ev-wrap { padding: 0 1.2rem; }
  .ev-story { padding: var(--page-top) 0 .8rem; }
  /* il rombo divideva 36px sopra e 12px sotto: la label sembrava
     attaccata al separatore. Spazi pari da entrambi i lati. */
  .ev-intro { padding: 2.5rem 0 2.8rem; }
  .ev-sep { padding: 0 1.2rem; }
  .ev-copy { font-size: 1.18rem; }
  .ev-ch { padding: 1.8rem 0; }
  .ev-num { font-size: 2rem; margin-bottom: .7rem; }
  .ev-num::after { width: 30px; }
  .ev-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .ev-rev .ev-ph { order: 0; }
  .ev-ph, .ev-rev .ev-ph { aspect-ratio: 16 / 11; max-height: none; border-radius: 110px 110px 8px 8px; }
  .ev-tx p { font-size: 1.15rem; }
  .ev-end { padding: 3rem 0 5rem; }
}
@media (prefers-reduced-motion: reduce) { .js-rv .rv { transition: none; } .ev-btn { transition: none; } }

/* ─── MATRIMONI · titolo e fedi fissi, lettera a destra, cartoline d'album ─── */
.mt-body { --mt-ink: #2B1810; --mt-lab: #4A2012; --mt-rule: rgba(74,32,18,.38); background: #E6DBC8; }
.mt-page { position: relative; isolation: isolate; padding-bottom: 6rem; background: linear-gradient(180deg, #E6DBC8 0%, #D9CDB4 100%); }
.mt-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: 1240px; margin: 0 auto; }
.mt-stick { position: sticky; top: 0; height: 100vh; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-start; padding: var(--page-top) 2rem 3rem 3.4rem; }
.mt-stick .label, .mt-sec .label { display: block; color: var(--mt-lab); }
.mt-stick .rule-gold, .mt-sec .rule-gold { margin-left: 0; background: var(--mt-lab); opacity: .55; }
.mt-title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2.3rem, 3.9vw, 3.6rem); line-height: 1.06; margin: .8rem 0 2.2rem; color: var(--mt-ink); text-wrap: balance; }
.mt-rings { position: relative; width: min(100%, 290px); }
.mt-rings svg { width: 100%; height: auto; display: block; overflow: visible; }
.mt-glow { position: absolute; inset: -30% -10%; background: radial-gradient(closest-side, rgba(255,235,170,.5), transparent); opacity: 0; pointer-events: none; }
.mt-main { padding: 8.4rem 3.4rem var(--mt-pb, 5rem) 1.6rem; max-width: 700px; }
.mt-sec { position: relative; text-align: left; }
.mt-h { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.08; margin: 1rem 0 1.6rem; color: var(--mt-ink); text-wrap: balance; }
.mt-letter p, .mt-copy { font-family: var(--serif); font-size: 1.28rem; line-height: 1.75; margin: 0 0 1.25rem; color: #2E1D12; }
.mt-letter .mt-strong { font-style: italic; font-weight: 500; font-size: 1.42rem; color: var(--mt-ink); }
.mt-sep { display: flex; align-items: center; gap: 1rem; margin: 4.6rem 0; }
.mt-sep::before, .mt-sep::after { content: ""; flex: 1; height: 1px; background: var(--mt-rule); }
.mt-sep i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--mt-lab); opacity: .7; }

/* cartoline d'album */
.mt-card { position: relative; margin: 0; background: #FBF4E4; padding: 10px; border-radius: 10px; box-shadow: 0 22px 40px -22px rgba(60,25,10,.65), 0 2px 0 rgba(255,255,255,.5) inset; transform: rotate(var(--rot, -2deg)); }
.mt-card .mt-pic { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: #CDB48A; }
.mt-card img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.mt-card.mt-big { width: min(100%, 470px); margin: 2.8rem 0 .6rem; }
.mt-card.mt-big::before { content: ""; position: absolute; left: 50%; top: -13px; width: 86px; height: 26px; margin-left: -43px; background: rgba(255,246,222,.72); box-shadow: 0 1px 3px rgba(60,25,10,.25); transform: rotate(-3deg); }

.mt-list { margin-top: 2.2rem; }
.mt-row { display: grid; grid-template-columns: 1fr 1.45fr; gap: 2rem; align-items: baseline; padding: 1.6rem 0; border-top: 1px solid var(--mt-rule); }
.mt-row:last-child { border-bottom: 1px solid var(--mt-rule); }
.mt-row h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; line-height: 1.1; margin: 0; color: var(--mt-ink); }
.mt-row p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.65; margin: 0; color: #2E1D12; }

/* griglia di 8 cartoline */
.mt-album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem .9rem; margin: 5rem 0 0; padding: 0 .3rem; }
.mt-album .mt-card { padding: 6px; border-radius: 7px; box-shadow: 0 14px 24px -16px rgba(60,25,10,.7); }
.mt-album .mt-card .mt-pic { border-radius: 3px; }
.mt-album .mt-card:nth-child(4n+1) { --rot: -2.4deg; }
.mt-album .mt-card:nth-child(4n+2) { --rot: 1.8deg; }
.mt-album .mt-card:nth-child(4n+3) { --rot: -1.2deg; }
.mt-album .mt-card:nth-child(4n+4) { --rot: 2.6deg; }

.mt-end { margin-top: 3.4rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.mt-sig { align-self: flex-start; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.45rem; color: var(--mt-ink); margin-bottom: 2.2rem; }
.mt-seal { display: inline-flex; align-items: center; justify-content: center; width: 128px; height: 128px; border-radius: 50%; text-align: center; text-decoration: none; background: #9F876A; color: #fff; font-family: var(--sans); font-weight: 400; font-size: .68rem; letter-spacing: .2em; line-height: 1.6; text-transform: uppercase; box-shadow: 0 12px 28px -12px rgba(60,40,15,.6), inset 0 0 0 6px rgba(255,255,255,.14); transition: transform .3s, background .3s; }
.mt-seal:hover { transform: rotate(-4deg) scale(1.05); background: var(--dark); }
.mt-seal:focus-visible { outline: 2px solid var(--mt-ink); outline-offset: 5px; }

.js-rv .mt-page .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.js-rv .mt-page .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .mt-split { grid-template-columns: 1fr; }
  .mt-stick { position: relative; height: auto; min-height: 0; padding: var(--page-top) 1.3rem 1rem; align-items: center; text-align: center; }
  .mt-stick .rule-gold { margin-left: auto; margin-right: auto; }
  .mt-page { padding-bottom: 5rem; background: linear-gradient(180deg, #E6DBC8 0%, #D9CDB4 100%); }
  .mt-title { font-size: clamp(2.2rem, 9vw, 3rem); margin-bottom: 1.4rem; }
  .mt-rings { width: min(100%, 220px); }
  .mt-main { padding: 1.6rem 1.3rem 3.6rem; max-width: none; }
  .mt-letter p, .mt-copy { font-size: 1.2rem; }
  .mt-sep { margin: 3.4rem 0; }
  .mt-row { grid-template-columns: 1fr; gap: .5rem; padding: 1.4rem 0; }
  .mt-row h3 { font-size: 1.6rem; }
  .mt-card.mt-big { width: min(100%, 420px); margin-top: 2.4rem; }
  .mt-album { margin-top: 3.6rem; }
}
@media (max-width: 520px) {
  .mt-album { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
  .mt-album .mt-card { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) { .js-rv .mt-page .rv { transition: none; } .mt-seal { transition: none; } }

/* cartoline apribili + lightbox */
.mt-card { transition: transform .35s ease, box-shadow .35s ease; }
.mt-card:hover { transform: rotate(0deg) scale(1.03); }
.mt-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: zoom-in; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
.mt-open:focus-visible { outline: 2px solid var(--mt-ink); outline-offset: 3px; }
.mt-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; flex-direction: column; background: rgba(23,17,13,.95); padding: 4.2rem 1rem 3.4rem; }
.mt-lb.on { display: flex; }
.mt-lb-fig { position: relative; margin: 0; max-width: min(1100px, 94vw); display: flex; flex-direction: column; align-items: center; }
.mt-lb-img { display: block; max-width: 100%; max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem); width: auto; height: auto; object-fit: contain; border: 8px solid #FBF4E4; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); background: #CDB48A; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.mt-lb-cap { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #EADFC6; text-align: center; max-width: 60ch; }
.mt-lb-n { margin-top: .3rem; font-family: var(--sans); font-weight: 300; font-size: .68rem; letter-spacing: .3em; color: #C4B296; }
.mt-lb button { z-index: 2; font: inherit; border: 0; cursor: pointer; color: #FBF4E4; background: rgba(23,17,13,.4); -webkit-tap-highlight-color: transparent; }
.mt-lb button:focus-visible { outline: 2px solid #C4B296; outline-offset: 2px; }
.mt-lb-x { position: absolute; top: max(.9rem, env(safe-area-inset-top)); right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(251,244,228,.45) !important; display: flex; align-items: center; justify-content: center; }
.mt-lb-p, .mt-lb-nx { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mt-lb-p { left: .8rem; } .mt-lb-nx { right: .8rem; }
.mt-lb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mt-lb button:hover { background: rgba(196,178,150,.35); }
body.mt-lock { overflow: hidden; }
@media (max-width: 700px) { .mt-lb { padding: 4rem .6rem 3rem; } .mt-lb-p { left: .4rem; } .mt-lb-nx { right: .4rem; } .mt-lb-img { border-width: 6px; } }
@media (prefers-reduced-motion: reduce) { .mt-card { transition: none; } }
.mt-body .footer { border-top: 0; }

/* EVENTI · foto a cartolina, come l'album di Matrimoni */
.ev-grid .mt-card.mt-big { margin: 0; justify-self: center; }
.ev-rev .mt-card.mt-big { --rot: 1.8deg; }
.ev-ch.c3 .mt-card.mt-big { --rot: -1.4deg; }
@media (max-width: 900px) {
  .ev-grid .mt-card.mt-big { width: min(100%, 420px); margin: .6rem 0 0; }
  /* su mobile ogni momento si legge nell'ordine: etichetta e testo, poi la foto */
  .ev-grid .ev-tx { order: 1; }
  .ev-grid .mt-card.mt-big { order: 2; }
}

/* EVENTI · sfumatura continua del cielo (costruita dallo script; senza JS restano le sfumature per sezione) */
.ev-sky.ev-gx > section { background: none !important; }
.ev-page .footer { border-top: 0; }

/* ─── WhatsApp: pulsante fisso, su tutte le pagine ──────────────
   Chiuso e' un cerchio con la sola icona; al passaggio del mouse si
   allunga e scopre la scritta. Su telefono resta il solo cerchio. */
.wa-fab {
  position: fixed; z-index: 95;
  right: clamp(14px, 2.2vw, 26px);
  bottom: calc(clamp(14px, 2.2vw, 26px) + env(safe-area-inset-bottom, 0px));
  /* centrato: da chiuso centra l'icona, da aperto centra icona + scritta.
     La scritta deve avere larghezza zero da chiusa, altrimenti entra nel
     calcolo del centro e spinge l'icona fuori dal cerchio. */
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  width: 56px; height: 56px; padding: 0 15px;
  border-radius: 999px; overflow: hidden; text-decoration: none;
  background: #1E6A55; color: #fff;
  box-shadow: 0 12px 30px -12px rgba(16,70,55,.65), 0 2px 6px rgba(0,0,0,.16);
  transition: width .38s cubic-bezier(.2,.7,.3,1), background .3s, box-shadow .3s;
}
.wa-fab svg { width: 26px; height: 26px; flex: 0 0 auto; fill: currentColor; }
.wa-fab .wa-txt {
  font-family: var(--sans); font-weight: 400; font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  max-width: 0; margin-left: 0; opacity: 0; overflow: hidden;
  transition: max-width .38s cubic-bezier(.2,.7,.3,1), margin-left .38s cubic-bezier(.2,.7,.3,1), opacity .25s ease;
}
.wa-fab:hover, .wa-fab:focus-visible {
  width: 262px; background: #175443;
  box-shadow: 0 16px 36px -12px rgba(16,70,55,.7), 0 2px 6px rgba(0,0,0,.18);
}
.wa-fab:hover .wa-txt, .wa-fab:focus-visible .wa-txt { max-width: 200px; margin-left: .75rem; opacity: 1; }
.wa-fab:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }
/* sulle pagine camera, quando compare la barra di prenotazione, si alza */
body:has(.rd-sticky.on) .wa-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: none; } }

/* CONTATTI · stessa sabbia del resto del sito, form su scheda chiara.
   Prima la sezione era un blocco marrone scuro che stonava con tutte
   le altre pagine. */
.ct-page .page-hero .hero-overlay { background: linear-gradient(180deg, rgba(31,22,17,.52), rgba(31,22,17,.38)); }
/* etichetta e filetto erano inline, quindi finivano sulla STESSA riga:
   l'una a sinistra e l'altro a destra del centro. Qui si impilano. */
.page-hero .hero-content .label { display: block; }
.page-hero .hero-content .rule-gold { display: block; margin: .8rem auto 1rem; }
/* fascia foto piu' bassa e sezione piu' vicina, cosi' il modulo di
   contatto si vede intero appena si apre la pagina */
.ct-page .page-hero { padding: calc(var(--nav-h) + 10px) 2rem 1.1rem; }
.ct-page .page-hero-title { font-size: clamp(2rem, 3.2vw, 2.9rem); }
.ct-page .page-hero-sub { margin-top: .35rem; font-size: clamp(.9rem, 1.4vw, 1.05rem); }
.ct-page .section-dark { padding-top: 1.4rem; padding-bottom: 2.2rem; }
.ct-page .contact-info .display { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin: .8rem 0 1.1rem; }
.ct-page .contact-details { margin-top: 1.6rem; gap: .85rem; }
.ct-page .contact-form { padding: clamp(1.2rem, 1.8vw, 1.7rem); }
.ct-page .form-field { padding-bottom: .78rem; }
.ct-page .form-field textarea { min-height: 64px; }
.ct-page .form-privacy { margin: .5rem 0 1rem; }
/* "Dove siamo" era a 440px dal modulo: avvicinato e introdotto dal
   separatore col rombo, lo stesso di matrimoni ed eventi */
.ct-page .section:not(.section-dark) { padding-top: 0; padding-bottom: 4rem; }
.ct-page .ct-sep { display: flex; align-items: center; gap: 1rem; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad-page); }
.ct-page .ct-sep::before, .ct-page .ct-sep::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .45; }
.ct-page .ct-sep i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); opacity: .75; }
.ct-page .section:not(.section-dark) .section-header { margin-top: 1.8rem; }
.ct-page .section-dark { background: var(--bg); color: var(--body-txt); }
.ct-page .section-dark .display, .ct-page .contact-info .display { color: var(--dark); }
.ct-page .section-dark .body-copy { color: var(--body-txt); }
.ct-page .section-dark .label { color: var(--gold); }

/* Impaginazione: intro e recapiti a sinistra, modulo a destra.
   Da telefono l'ordine diventa intro → modulo → recapiti, così i
   contatti non spingono il modulo troppo in basso. */
.ct-page .contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro form" "dett form";
  align-items: start;
  gap: 1.8rem 4rem;
}
.ct-page .contact-info { grid-area: intro; }
.ct-page .contact-form { grid-area: form; }
.ct-page .contact-details { grid-area: dett; }
@media (max-width: 900px) {
  .ct-page .contact-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "dett"; gap: 1.6rem; }
}

/* i recapiti in riquadri affiancati, due per riga */
.ct-page .contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 0;
  list-style: none;
}
/* i recapiti sono cinque: l'ultimo occupa la riga intera, niente mezzo buco */
.ct-page .contact-details li:last-child { grid-column: 1 / -1; }
.ct-page .contact-details li {
  display: flex; flex-direction: column; gap: .25rem;
  background: #FBF6EC;
  border: 1px solid rgba(159,135,106,.22);
  border-radius: 12px;
  padding: .85rem 1rem .95rem;
}
.ct-page .contact-details .c-label { color: var(--gold); }
.ct-page .contact-details .c-val { color: var(--dark); }
.ct-page .contact-details a { color: inherit; border-bottom: 1px solid rgba(159,135,106,.45); transition: color .3s, border-color .3s; }
.ct-page .contact-details a:hover { color: var(--gold); border-color: var(--gold); }

/* colonna di destra: il modulo dentro una scheda chiara arrotondata */
.ct-page .contact-form {
  background: #FBF6EC;
  border: 1px solid rgba(159,135,106,.22);
  border-radius: 16px;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  box-shadow: 0 26px 60px -34px rgba(31,22,17,.45);
}
.ct-page .form-field label { color: var(--muted); }
.ct-page .form-field input,
.ct-page .form-field select,
.ct-page .form-field textarea { color: var(--dark); border-bottom-color: rgba(90,70,45,.3); color-scheme: light; }
.ct-page .form-field input::placeholder,
.ct-page .form-field textarea::placeholder { color: rgba(90,70,45,.45); }
.ct-page .form-field input:focus,
.ct-page .form-field select:focus,
.ct-page .form-field textarea:focus { border-bottom-color: var(--gold); }
.ct-page .form-field select option { background: #FBF6EC; color: var(--dark); }
.ct-page .form-privacy { color: var(--muted); font-size: .72rem; }
.ct-page .form-privacy a { color: var(--gold); }
.ct-page .contact-form .btn-solid-dark {
  background: var(--gold); border-color: var(--gold); color: #fff;
  border-radius: 999px; min-height: 54px;
  transition: background .3s, color .3s, border-color .3s;
}
.ct-page .contact-form .btn-solid-dark:hover { background: var(--dark); border-color: var(--dark); color: #fff; }

/* mappa: stessi angoli morbidi del resto. Sotto all'iframe c'e' l'indirizzo,
   così se la mappa non carica il riquadro non resta vuoto. */
.ct-page .map-wrap {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(159,135,106,.25);
  display: grid; place-items: center;
}
.ct-page .map-wrap::before {
  content: "Contrada Pirrera · 98045 San Pier Niceto (ME) · Sicilia";
  position: absolute; z-index: 0; padding: 0 1.4rem; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--muted);
}
.ct-page .map-wrap iframe { position: relative; z-index: 1; }
.ct-page .map-note { text-align: center; margin: 1rem 0 0; font-family: var(--sans); font-weight: 300; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.ct-page .map-note a { color: var(--gold); border-bottom: 1px solid rgba(159,135,106,.45); transition: color .3s, border-color .3s; }
.ct-page .map-note a:hover { color: var(--dark); border-color: var(--dark); }
.ct-page .contact-form .btn-solid-dark:focus-visible, .ct-page .section-dark a:focus-visible { outline: 2px solid #F0D9A4; outline-offset: 3px; }
.ct-page .section:not(.section-dark) .label { color: #5A4733; }
.ct-page .section:not(.section-dark) .body-copy { color: #3A2D21; }

/* MATRIMONI · mobile: fedi che accompagnano i titoli (partono staccate, finiscono incrociate) */
.mt-fx, .mt-endslot { display: none; }
@media (max-width: 900px) {
  .js-fx .mt-rings { visibility: hidden; }
  .mt-fx { display: block; position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; will-change: transform; transform: translateZ(0); contain: layout paint; }
  .mt-fx svg { width: 100%; height: auto; display: block; overflow: visible; }
  .mt-fxg { position: absolute; inset: -40% -10%; background: radial-gradient(closest-side, rgba(255,235,170,.55), transparent); opacity: 0; }
  .mt-endslot { display: block; align-self: flex-start; width: 62px; height: 31px; margin: -.3rem 0 1.6rem; }
  .mt-end .mt-sig { margin-bottom: 1.2rem; }
}

/* MATRIMONI · sfondo: luce dorata, rami d'ulivo, grana di carta e lanterne della sera */
.mt-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mt-bg::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(46% 22% at 88% 4%, rgba(255,240,200,.75), rgba(255,240,200,0) 70%),
  radial-gradient(40% 18% at 6% 34%, rgba(255,232,185,.5), rgba(255,232,185,0) 70%),
  radial-gradient(44% 20% at 92% 62%, rgba(255,226,170,.38), rgba(255,226,170,0) 70%); }
.mt-bg::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .12  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.mt-olive { position: absolute; width: var(--w, 200px); height: auto; opacity: var(--o, .3); transform: translate3d(0, calc(var(--sy, 0) * var(--k, -.04) * 1px), 0) rotate(var(--r, 0deg)); will-change: transform; }
.mt-olive path.s { fill: none; stroke: #8A6A2E; stroke-width: 1.8; stroke-linecap: round; }
.mt-olive ellipse { fill: rgba(138,106,46,.28); stroke: #8A6A2E; stroke-width: .8; }
.mt-split { position: relative; z-index: 1; }
@media (max-width: 900px) { .mt-olive { --o: .22; } }
@media (prefers-reduced-motion: reduce) { .mt-olive { transform: rotate(var(--r, 0deg)); } }
/* L'ombra resta solo sulle fedi ferme del desktop. Su .mt-fx (che viene
   trasformato a ogni frame) un drop-shadow costringe il browser a
   ricalcolare il filtro frame per frame: su telefono è la causa
   principale degli scatti. */
.mt-rings svg { filter: drop-shadow(0 5px 6px rgba(80,50,10,.28)); }

/* ─── RITO CIVILE · le partecipazioni (titolo fisso, cartoline che si impilano) ─── */
.rc-body { background: #E6DBC8; }
.rc-body .footer { border-top: 0; }
.rc-body .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rc-page { position: relative; padding-bottom: 5rem; background: #E6DBC8; }
.rc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: 1240px; margin: 0 auto; }
.rc-stick { position: sticky; top: 0; height: 100vh; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: var(--page-top) 2rem 3rem 3.4rem; overflow: hidden; }
.rc-stick .label, .rc-sec .label, .rc-photo .label { display: block; color: var(--mt-lab); margin: 0; }
.rc-stick .rule-gold { display: none; }
.rc-title { position: relative; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.3rem, 3.9vw, 3.6rem); line-height: 1.06; margin: 1.6rem 0 1.4rem; color: var(--mt-ink); text-wrap: balance; }
.rc-title2 { color: var(--mt-ink); margin: 1.6rem 0 1.1rem; }
.rc-small { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; color: #4A3322; margin: 0 0 1.8rem; max-width: 30ch; }
.rc-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 2rem; border-radius: 999px; background: #9F876A; border: 1.5px solid #9F876A; color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 300; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; transition: background .3s, border-color .3s, transform .3s; }
.rc-cta:hover { background: var(--dark); border-color: var(--dark); transform: translateY(-2px); }
.rc-cta:focus-visible { outline: 2px solid var(--mt-ink); outline-offset: 4px; }
.rc-main { padding: var(--page-top) 3.4rem 2rem 1.6rem; max-width: 720px; display: flex; flex-direction: column; gap: 4rem; }
.rc-h { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; margin: .8rem 0 1.3rem; color: var(--mt-ink); text-wrap: balance; }
.rc-copy { font-family: var(--serif); font-size: 1.28rem; line-height: 1.65; margin: 0 0 1rem; color: #2E1D12; }
.rc-copy em { font-style: italic; font-weight: 500; color: var(--mt-ink); }
.rc-quiet { font-size: 1.12rem; color: #4A3322; margin: 1.3rem 0 0; }
/* prima sezione: due frasi + riconoscimento a schema */
.rc-first { text-align: center; padding: 0; }
.rc-lab { text-align: center; }
.rc-sep { display: block; width: 60px; height: 1px; margin: 1.5rem auto 3rem; background: var(--mt-lab); opacity: .55; }
.rc-recbox { text-align: center; }
.rc-recbox .label { display: block; margin: 0; color: var(--mt-lab); }
.rc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.rc-cols p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; margin: 0; color: #2E1D12; }
.rc-cols em { font-style: italic; font-weight: 500; color: var(--mt-ink); }
.rc-cols p + p { color: #4A3322; }
/* polaroid */
.rc-photo { margin: 0; padding: 12px 12px 4.1rem; background: #FBF4E4; border-radius: 6px; box-shadow: 0 26px 44px -26px rgba(60,25,10,.7); transform: rotate(-1.4deg); position: relative; }
.rc-photo::before { content: ""; position: absolute; left: 50%; top: -13px; width: 86px; height: 26px; margin-left: -43px; background: rgba(255,246,222,.72); box-shadow: 0 1px 3px rgba(60,25,10,.25); transform: rotate(-3deg); }
.rc-pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: #CDB48A; }
.rc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc-photo figcaption { position: absolute; left: 0; right: 0; bottom: 13px; text-align: center; }
.rc-photo .label { font-size: .6rem; }
.rc-cap { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--mt-ink); }
/* vantaggi */
.rc-advs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.rc-note { background: #FBF4E4; padding: 1.15rem 1.25rem 1.25rem; border-radius: 8px; box-shadow: 0 16px 28px -22px rgba(60,25,10,.7); }
.rc-note:nth-child(odd) { transform: rotate(-.6deg); }
.rc-note:nth-child(even) { transform: rotate(.6deg); }
.js-rv .rc-note.rv.in:nth-child(odd) { transform: rotate(-.6deg); }
.js-rv .rc-note.rv.in:nth-child(even) { transform: rotate(.6deg); }
.rc-n { font-family: var(--sans); font-weight: 300; font-size: .62rem; letter-spacing: .3em; color: var(--terra, #B25B3E); }
.rc-note h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.15; margin: .35rem 0 .35rem; color: var(--mt-ink); }
.rc-note p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.5; margin: 0; color: #3A2818; }
/* passi: cartoline che si impilano */
.rc-stack { position: relative; padding-bottom: .5rem; }
.rc-step { position: sticky; top: calc(104px + var(--i) * 16px); margin-bottom: 1.4rem; padding: 1.5rem 6rem 1.7rem 1.8rem; background: #FBF4E4; border-radius: 8px; box-shadow: 0 24px 40px -26px rgba(60,25,10,.75); transform: rotate(var(--r)); }
.rc-step::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(159,135,106,.5); border-radius: 4px; pointer-events: none; }
.rc-stamp { position: absolute; right: 1.2rem; top: 1.1rem; width: 58px; height: 70px; display: grid; place-items: center; border: 2px dotted rgba(159,135,106,.85); background: rgba(230,219,200,.35); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2rem; color: #B25B3E; }
.rc-step h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.55rem; line-height: 1.12; margin: 0 0 .45rem; color: var(--mt-ink); }
.rc-step p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; margin: 0; color: #3A2818; }
@media (max-width: 900px) {
  .rc-split { display: flex; flex-direction: column; align-items: stretch; text-align: center; padding-top: var(--page-top); }
  .rc-stick { display: contents; }
  /* su mobile le due colonne si impilano: l'etichetta della sidebar
     duplicherebbe l'h1 "Rito Civile" di .rc-main, quindi si nasconde */
  .rc-stick > .label { display: none; }
  .rc-main { order: 1; }
  .rc-cta { order: 2; }
  .rc-small { display: none; }
  .rc-stick .rc-sep { order: 3; display: block; width: 60px; height: 1px; margin: 2.4rem auto 0; background: var(--mt-lab); opacity: .55; }
  .rc-title { order: 4; }
  .rc-title { padding: 0 1.3rem; margin-left: auto; margin-right: auto; }
  .rc-cta { align-self: center; margin-bottom: 1rem; }
  .rc-title { font-size: clamp(2.2rem, 9vw, 3rem); margin: 1.6rem 0 0; }
  .rc-title2 { margin: 1.8rem 0 1.5rem; }
  .rc-main { padding: 0 1.3rem 1rem; max-width: none; gap: 3rem; }
  .rc-main { text-align: left; }
  .rc-first { text-align: center; }
  .rc-cols { grid-template-columns: 1fr; }
  .rc-copy { font-size: 1.2rem; }
  .rc-advs { gap: .7rem; }
  .rc-note { padding: .95rem .9rem 1.05rem; }
  .rc-note h3 { font-size: 1.15rem; }
  .rc-note p { font-size: .95rem; line-height: 1.45; }
  .rc-step { top: calc(84px + var(--i) * 14px); padding: 1.3rem 4.6rem 1.5rem 1.4rem; }
  .rc-stamp { width: 46px; height: 58px; font-size: 1.6rem; right: .9rem; }
  .rc-step h3 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .rc-cta { transition: none; } }

/* ─── LA CHIESA ──────────────────────────────────────────────
   La pagina riusa l'impianto del rito civile. Cambia un elemento
   solo, ma e' quello che dice "chiesa" senza scriverlo: l'arcata.
   La foto e' tagliata a tutto sesto, come l'apertura di un'abside,
   e un filo d'oro la segue a un paio di millimetri di distanza. */
.ch-arch {
  margin: clamp(2.4rem, 5vw, 4rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ch-arch-plate {
  width: min(100%, 420px);
  aspect-ratio: 3 / 4.1;
  border-radius: 50% 50% 6px 6px / 34% 34% 2% 2%;
  background: linear-gradient(180deg, var(--bg-warm) 0%, #C9B894 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 18px 50px rgba(60, 44, 28, .18), inset 0 0 0 7px rgba(255, 255, 255, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 2rem 1.6rem;
}
.ch-plate-rule { width: 38px; height: 1px; background: var(--dark); opacity: .4; }
.ch-plate-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.22;
  color: var(--dark);
  margin: 0;
}
.ch-plate-dia { width: 6px; height: 6px; transform: rotate(45deg); background: var(--dark); opacity: .55; }
.ch-plate-loc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: .64rem;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: .72;
  margin: 0;
}
.ch-lead {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: var(--body-txt);
  max-width: 62ch;
  margin: 1.2rem 0 2.2rem;
}
.ch-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2.6rem;
  margin-top: 1.4rem;
}
.ch-two p {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--body-txt);
  margin: 0;
}
@media (max-width: 760px) {
  .ch-arch-plate { width: min(100%, 290px); }
  .ch-two { grid-template-columns: 1fr; gap: 1rem; }
}
