/* =====================================================
   TENUTA 4 PINI — foglio di stile condiviso (sito multipagina)
   Identità ripresa dal layout scelto: avorio / oliva / oro,
   Cormorant Garamond + Jost.
   ===================================================== */

/* ---------- Font (self-hosted, nessuna chiamata a terzi) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('../fonts/jost.woff2') format('woff2');
}

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

:root {
  --ivory:   #F5F0E8;
  --ivory-d: #EDE6D8;
  --white:   #FFFFFF;
  --olive:   #2C3B2D;
  --olive-l: #3D5040;
  --olive-d: #222E23;
  --gold:    #B8955A;
  --gold-l:  #D4AF7A;
  --gold-d:  #7A5C2B;
  --dark:    #1A1A18;
  --text:    #55554F;
  --grey:    #63635B;
  --grey-l:  #C8C4BC;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease:    cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:cubic-bezier(0.0, 0.0, 0.2, 1);
  --nav-h:   80px;
  --gutter:  clamp(20px, 5vw, 80px);
}

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

body {
  font-family: var(--sans);
  font-weight: 350;
  color: var(--dark);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--olive); color: var(--ivory);
  padding: 10px 18px; font-size: 0.8rem; letter-spacing: 0.08em;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 6.2rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); color: var(--olive); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--olive); }
h4 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--gold); }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-d);
}
.section-label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
.section-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }

.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--text); max-width: 62ch; }
.prose p { color: var(--text); font-size: 1.02rem; margin-bottom: 1.15rem; max-width: 56ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 500; color: var(--dark); }

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 920px; }
.section { padding: clamp(52px, 6.4vw, 96px) 0; }
.section--lead { padding-top: clamp(40px, 4vw, 56px); }
.section--white { background: var(--white); }
.section--ivory { background: var(--ivory); }
.section--olive { background: var(--olive); color: var(--ivory); }
.section--olive h2, .section--olive h3 { color: var(--ivory); }
.section--olive .eyebrow { color: var(--gold-l); }
.section--olive .lead, .section--olive .prose p { color: rgba(245,240,232,0.84); }
.section--tight { padding: clamp(40px, 4.4vw, 64px) 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(26px, 3.2vw, 44px); }
.section-head .section-label { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--text); font-size: 1.02rem; }
.section--olive .section-head p { color: rgba(245,240,232,0.82); }
.section-head--left { text-align: left; margin-left: 0; }

/* ---------- Animazioni di ingresso (solo con JS attivo) ---------- */
.js .fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.js .fade-in.delay-1 { transition-delay: 0.12s; }
.js .fade-in.delay-2 { transition-delay: 0.24s; }
.js .fade-in.delay-3 { transition-delay: 0.36s; }
.js .fade-in.visible { opacity: 1; transform: none; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-d); box-shadow: 0 8px 30px rgba(184,149,90,0.35); }
.btn--olive { background: var(--olive); color: var(--white); }
.btn--olive:hover { background: var(--gold); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn--line { color: var(--olive); border-color: var(--olive); }
.btn--line:hover { background: var(--olive); color: var(--ivory); }
.btn svg { width: 16px; height: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-d);
  transition: gap 0.3s, color 0.3s;
}
.link-arrow::after { content: '→'; font-size: 0.95rem; transition: transform 0.3s; }
.link-arrow:hover { gap: 16px; color: var(--olive); }
.section--olive .link-arrow { color: var(--gold-l); }
.section--olive .link-arrow:hover { color: var(--ivory); }

/* =====================================================
   HEADER / NAVIGAZIONE
   ===================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--nav-h);
  padding: 0 clamp(20px, 3.2vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), height 0.3s;
}
.site-header::before {
  /* velo scuro per leggibilità del menu sopra le foto */
  content: ''; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.42), transparent);
  transition: opacity 0.45s;
}
.site-header.scrolled {
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  height: 68px;
}
.site-header.scrolled::before { opacity: 0; }

.nav-logo {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--white); white-space: nowrap; transition: color 0.45s;
}
.nav-logo em { font-style: italic; font-weight: 300; color: var(--gold-l); }
.scrolled .nav-logo { color: var(--olive); }
.scrolled .nav-logo em { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .nav-parent {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s; position: relative; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
}
.nav-links > li > a::after {
  content: ''; position: absolute; bottom: 5px; left: 0; right: 100%; height: 1px;
  background: var(--gold-l); transition: right 0.3s var(--ease);
}
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after,
.nav-links > li.is-current > a::after { right: 0; }
.nav-links .caret { width: 8px; height: 8px; opacity: 0.7; transition: transform 0.3s; }
.nav-links li:hover > a .caret, .nav-links li:focus-within > a .caret { transform: rotate(180deg); }
.scrolled .nav-links a { color: var(--olive); }
.scrolled .nav-links > li > a::after { background: var(--gold); }

.nav-sub {
  position: absolute; top: 100%; left: -22px; min-width: 230px;
  background: var(--ivory); box-shadow: 0 18px 50px rgba(26,26,24,0.16);
  padding: 12px 0; border-top: 2px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.nav-links li:hover > .nav-sub, .nav-links li:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-links .nav-sub a {
  display: block; padding: 9px 22px; color: var(--olive);
  font-size: 0.68rem; letter-spacing: 0.13em;
}
.nav-links .nav-sub a:hover { color: var(--gold-d); background: rgba(184,149,90,0.08); }

.nav-lang a {
  font-size: 0.66rem; letter-spacing: 0.14em; padding: 6px 9px; border: 1px solid rgba(255,255,255,0.4); margin-left: 4px;
}
.nav-lang a:hover { border-color: var(--gold-l); }
.scrolled .nav-lang a { border-color: rgba(44,59,45,0.35); }
.nav-links .nav-lang a::after { display: none; }
.nav-mobile-top .nav-lang { margin-left: auto; margin-right: 14px; }
.nav-mobile-top .nav-lang a { font-size: 0.8rem; letter-spacing: 0.14em; padding: 6px 10px; border: 1px solid rgba(245,240,232,0.4); }

.nav-links a.nav-cta {
  font-weight: 500; color: var(--white); background: var(--gold);
  padding: 11px 22px; transition: background 0.3s, transform 0.2s;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--gold-d); transform: translateY(-1px); }
.scrolled .nav-links a.nav-cta { color: var(--white); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px 6px; }
.nav-hamburger span { display: block; width: 26px; height: 1.5px; background: var(--white); transition: background 0.45s; }
.scrolled .nav-hamburger span { background: var(--olive); }

/* Menu mobile a tutto schermo */
.nav-mobile {
  position: fixed; inset: 0; z-index: 950;
  background: var(--olive); color: var(--ivory);
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) 32px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.nav-mobile.open { opacity: 1; visibility: visible; }
.nav-mobile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.nav-mobile-top .nav-logo { color: var(--ivory); }
.nav-mobile-close { font-size: 1.8rem; line-height: 1; padding: 6px 10px; color: var(--ivory); }
.nav-mobile-group { padding: 18px 0; border-top: 1px solid rgba(245,240,232,0.12); }
.nav-mobile-group > p { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 10px; }
.nav-mobile-group a { display: block; padding: 5px 0; }
.nav-mobile-group--feature a { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.25; }
.nav-mobile-group--plain a { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,240,232,0.8); padding: 7px 0; }
.nav-mobile a:hover { color: var(--gold-l); }
.nav-mobile .btn { margin-top: 18px; align-self: flex-start; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: var(--white);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-bg img { transform: scale(1.05); transition: transform 8s ease; }
.js .is-loaded .hero-bg img { transform: scale(1); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.46) 50%, rgba(0,0,0,0.62) 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 0 20px; max-width: 940px; text-shadow: 0 1px 18px rgba(0,0,0,0.45); }
.hero-content .btn { text-shadow: none; }
.hero-label { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.8rem; line-height: 1.05; }
.hero h1 em { color: var(--gold-l); }
.hero-usp { font-size: 0.78rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.86); margin-bottom: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.hero-usp li + li::before { content: '·'; color: var(--gold-l); margin-right: 14px; }
.hero-rating {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em; color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.3); background: rgba(20,24,20,0.28); backdrop-filter: blur(4px); padding: 8px 18px; margin-bottom: 2.4rem;
  transition: border-color 0.3s, color 0.3s;
}
a.hero-rating:hover { border-color: var(--gold-l); color: var(--white); }
.stars { color: var(--gold-l); letter-spacing: 2px; }
.hero .btn-row { justify-content: center; }

.hero-anim > * { opacity: 0; animation: heroFade 1s var(--ease-out) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: 0.25s; }
.hero-anim > *:nth-child(2) { animation-delay: 0.5s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.75s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.95s; }
.hero-anim > *:nth-child(5) { animation-delay: 1.1s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.6); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(5px); opacity: 1; } }

.hero--home {
  height: auto; min-height: clamp(540px, 80vh, 800px); min-height: clamp(540px, 80svh, 800px);
  padding: calc(var(--nav-h) + 28px) 0 56px;
}
/* sugli schermi bassi (portatili) il titolo si regola anche sull'altezza */
.hero--home h1 { font-size: clamp(2.6rem, min(6.4vw, 10.5vh), 6.2rem); }
.hero--home .hero-scroll { display: none; }

/* Hero pagine interne: più basso, testo in basso a sinistra */
.hero--page {
  height: auto; min-height: clamp(480px, 70vh, 720px); align-items: flex-end; justify-content: flex-start;
  padding-top: calc(var(--nav-h) + 24px);
}
.hero--page h1 { font-size: clamp(2.6rem, min(5.6vw, 9.5vh), 5.2rem); }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero--page .hero-bg::after {
  background:
    linear-gradient(to right, rgba(16,20,16,0.62) 0%, rgba(16,20,16,0.28) 48%, rgba(16,20,16,0) 78%),
    linear-gradient(to bottom, rgba(0,0,0,0.36) 0%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.62) 100%);
}
.hero--page .hero-content { text-align: left; max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(44px, 6vw, 80px); }
.hero--page h1 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); max-width: 16ch; margin-bottom: 1.2rem; }
.hero--page .hero-lead { font-size: clamp(1rem, 1.35vw, 1.2rem); max-width: 54ch; color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.hero--page .btn-row { justify-content: flex-start; }
/* Testo a destra: il soggetto della foto resta libero a sinistra */
.hero--flip .hero-bg::after {
  background:
    linear-gradient(to left, rgba(16,20,16,0.62) 0%, rgba(16,20,16,0.28) 48%, rgba(16,20,16,0) 78%),
    linear-gradient(to bottom, rgba(0,0,0,0.36) 0%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.62) 100%);
}
.hero--flip .hero-content { display: grid; grid-template-columns: 1fr minmax(0, 46%); }
.hero--flip .hero-content > * { grid-column: 2; }
@media (max-width: 1024px) { .hero--flip .hero-content { display: block; } }
@media (max-height: 820px) and (min-width: 1025px) { .hero--flip .breadcrumb { display: none; } }  /* su schermi bassi il percorso finirebbe sotto il menu */

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--gold-l); }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: var(--gold-l); }
.breadcrumb [aria-current] { color: var(--gold-l); }

/* =====================================================
   BLOCCHI DI CONTENUTO
   ===================================================== */

/* Testo + immagine */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse > .split-media { order: -1; }
.split h2, .split h3 { margin-bottom: 1.4rem; }
.split .prose { margin-bottom: 2rem; }
.split-media { position: relative; }
.frame { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--ivory-d); }
.frame--landscape { aspect-ratio: 4/3; }
.frame--wide { aspect-ratio: 16/10; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.frame:hover img { transform: scale(1.04); }
.split-media--accent::before {
  content: ''; position: absolute; bottom: -20px; left: -20px; width: 58%; aspect-ratio: 1;
  border: 2px solid var(--gold); opacity: 0.4; pointer-events: none;
}
.split--reverse .split-media--accent::before { left: auto; right: -20px; }
.split-media .frame--inset {
  position: absolute; bottom: -36px; right: -28px; width: 52%; aspect-ratio: 4/3;
  border: 5px solid var(--white); box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
.section--ivory .split-media .frame--inset { border-color: var(--ivory); }
.split--reverse .split-media .frame--inset { right: auto; left: -28px; }

.split-number { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-d); margin-bottom: 0.6rem; display: block; }
.stack > * + * { margin-top: clamp(44px, 5.6vw, 80px); }

/* Numeri in evidenza */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--grey-l); }
.highlight { padding: 34px 20px; border-right: 1px solid var(--grey-l); text-align: center; }
.highlight:last-child { border-right: none; }
.highlight-num { font-family: var(--serif); font-size: 2.9rem; font-weight: 300; color: var(--olive); line-height: 1; margin-bottom: 6px; }
.highlight-label { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }

/* Elenco caratteristiche */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 28px; margin-bottom: 2rem; }
.features--single { grid-template-columns: 1fr; }
.features li { display: flex; align-items: baseline; gap: 10px; font-size: 0.97rem; color: var(--dark); }
.features li::before { content: '✦'; color: var(--gold); font-size: 0.6rem; flex-shrink: 0; transform: translateY(-1px); }
.section--olive .features li { color: rgba(245,240,232,0.86); }

/* Programma a giorni (Wedding) */
.program { margin-bottom: 2rem; border-top: 1px solid var(--ivory-d); }
.program li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--ivory-d); }
.program strong { font-weight: 500; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-d); white-space: nowrap; }
.program span { font-size: 0.97rem; color: var(--dark); }

/* ---------- Le quattro occasioni (home) ---------- */
.occasions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.occasion {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3/3.6; overflow: hidden; color: var(--white); isolation: isolate;
  padding: clamp(22px, 2.2vw, 34px);
}
.occasion img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.occasion::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22,26,22,0.93) 0%, rgba(22,26,22,0.62) 34%, rgba(22,26,22,0.14) 68%, rgba(22,26,22,0.2) 100%);
  transition: background 0.5s;
}
.occasion:hover img, .occasion:focus-visible img { transform: scale(1.07); }
.occasion:hover::before { background: linear-gradient(to top, rgba(34,46,35,0.94) 0%, rgba(34,46,35,0.55) 60%, rgba(34,46,35,0.3) 100%); }
.occasion-index { text-shadow: 0 1px 10px rgba(0,0,0,0.6); position: absolute; top: clamp(20px, 2vw, 30px); left: clamp(22px, 2.2vw, 34px); font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-l); }
.occasion h3 { color: var(--white); font-size: clamp(1.7rem, 2.3vw, 2.3rem); margin-bottom: 0.5rem; }
.occasion p { font-size: 0.95rem; line-height: 1.55; color: rgba(255,255,255,0.92); margin-bottom: 1.1rem; }
.occasion .link-arrow { color: var(--gold-l); }
@media (hover: hover) and (min-width: 1025px) {
  .occasion p { max-height: 0; opacity: 0; margin-bottom: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s; }
  .occasion:hover p, .occasion:focus-visible p { max-height: 9em; opacity: 1; margin-bottom: 1.1rem; }
}

/* ---------- Card ville ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.villa-card { display: flex; flex-direction: column; background: var(--white); overflow: hidden; }
.villa-card-img { position: relative; height: 360px; overflow: hidden; }
.villa-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.villa-card:hover .villa-card-img img { transform: scale(1.06); }
.villa-card-overlay {
  position: absolute; inset: auto 0 0 0; height: 65%;
  background: linear-gradient(to top, rgba(26,26,24,0.9) 0%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
}
.villa-card-overlay h3 { color: var(--white); font-size: 1.75rem; }
.badge { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-l); font-weight: 400; margin-bottom: 4px; }
.villa-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.villa-card-body p { font-size: 0.97rem; color: var(--text); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.section--white .villa-card { background: var(--ivory); }

/* ---------- Card con icona (servizi / esperienze) ---------- */
.icon-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.icon-cards--3 { grid-template-columns: repeat(3, 1fr); }
.icon-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(245,240,232,0.08);
  padding: clamp(30px, 3vw, 44px) clamp(24px, 2.4vw, 32px);
  transition: background 0.3s, border-color 0.3s;
}
.icon-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(184,149,90,0.35); }
.icon-card .icon { width: 38px; height: 38px; margin-bottom: 22px; color: var(--gold-l); }
.icon-card h3, .icon-card h4 { font-family: var(--serif); font-size: 1.5rem; color: var(--ivory); margin-bottom: 10px; }
.icon-card p { font-size: 0.96rem; color: rgba(245,240,232,0.82); line-height: 1.6; }
.icon-card .link-arrow { margin-top: 18px; }
/* variante chiara */
.icon-cards--light { gap: 20px; }
.icon-cards--light .icon-card { background: var(--white); border: 1px solid var(--ivory-d); }
.section--white .icon-cards--light .icon-card { background: var(--ivory); border-color: transparent; }
.icon-cards--light .icon-card:hover { border-color: var(--gold); background: var(--white); }
.icon-cards--light .icon-card .icon { color: var(--gold); }
.icon-cards--light .icon-card h3, .icon-cards--light .icon-card h4 { color: var(--olive); }
.icon-cards--light .icon-card p { color: var(--text); }
.icon { display: block; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }

/* ---------- Griglia dotazioni ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--grey-l); border-left: 1px solid var(--grey-l); }
.fact { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-right: 1px solid var(--grey-l); border-bottom: 1px solid var(--grey-l); font-size: 0.88rem; color: var(--dark); }
.fact .icon { width: 26px; height: 26px; color: var(--gold); }

/* ---------- Mosaico di immagini ---------- */
.mosaic { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, clamp(180px, 21vw, 300px)); gap: 6px; }
.mosaic > :first-child { grid-row: span 2; }
.mosaic--4 > :last-child { grid-column: span 2; }
.mosaic .shot { height: 100%; }

.shot { position: relative; display: block; width: 100%; overflow: hidden; cursor: zoom-in; background: var(--ivory-d); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot::after { content: ''; position: absolute; inset: 0; background: rgba(44,59,45,0); transition: background 0.3s; }
.shot:hover img { transform: scale(1.05); }
.shot:hover::after { background: rgba(44,59,45,0.22); }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.thumbs .shot { aspect-ratio: 4/3; }
.shot--extra { display: none; }
.thumbs-more { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: rgba(34,46,35,0.62); color: var(--white); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; pointer-events: none; }

/* ---------- Passi / processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid rgba(245,240,232,0.16); }
.step { counter-increment: step; padding: 34px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid rgba(245,240,232,0.16); }
.step::before { content: '0' counter(step); display: block; font-family: var(--serif); font-style: italic; font-size: 2.3rem; font-weight: 300; color: var(--gold-l); line-height: 1; margin-bottom: 16px; }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { font-size: 0.96rem; color: rgba(245,240,232,0.82); }
.steps--light { border-top-color: var(--grey-l); }
.steps--light .step + .step { border-left-color: var(--grey-l); }
.steps--light .step::before { color: var(--gold); }
.steps--light .step p { color: var(--text); }

/* ---------- Giornata tipo ---------- */
.timeline { display: grid; gap: 0; max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(245,240,232,0.14); align-items: baseline; }
.timeline li:first-child { border-top: 1px solid rgba(245,240,232,0.14); }
.timeline time { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold-l); }
.timeline strong { display: block; font-weight: 400; font-size: 1.02rem; color: var(--ivory); }
.timeline span { font-size: 0.95rem; color: rgba(245,240,232,0.8); }

/* ---------- Menu / formule ---------- */
.menu-list { border-top: 1px solid var(--ivory-d); }
.menu-item { display: grid; grid-template-columns: minmax(180px, 0.9fr) 2fr; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--ivory-d); align-items: baseline; }
.menu-item h3 { font-style: italic; font-size: 1.45rem; }
.menu-item p { font-size: 0.98rem; color: var(--text); }
.menu-item .tag { display: block; margin-top: 4px; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-d); font-family: var(--sans); font-style: normal; font-weight: 500; }

/* ---------- Fascia recensioni ---------- */
.rating-band { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.rating-score { font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 8vw, 6.4rem); line-height: 0.9; color: var(--olive); }
.rating-score small { font-size: 0.32em; color: var(--grey); }
.rating-text .stars { color: var(--gold); font-size: 1.05rem; display: block; margin-bottom: 8px; }
.rating-text p { color: var(--text); font-size: 0.98rem; max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-d); border: 1px solid var(--gold); padding: 6px 14px; }

/* ---------- Distanze ---------- */
.distances { border-top: 1px solid var(--grey-l); }
.distance { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--grey-l); }
.distance-name { font-family: var(--serif); font-size: 1.3rem; color: var(--olive); }
.distance-name small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--grey); }
.distance-time { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-d); white-space: nowrap; }
.note { font-size: 0.88rem; color: var(--grey); margin-top: 14px; }

.address { font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); color: var(--olive); margin-top: 1.4rem; }
.request-address { display: flex; align-items: center; gap: 12px; margin-top: 2rem; font-size: 1rem; }
.request-address .icon { width: 18px; height: 18px; color: var(--gold-l); }
.request-address a { border-bottom: 1px solid rgba(245,240,232,0.3); }
.request-address a:hover { color: var(--gold-l); border-color: var(--gold-l); }
.request-address + .request-contacts { margin-top: 12px; }
.map--wide { aspect-ratio: 21/8; }

/* Bozza: avviso per la proprietà ed etichetta sulle foto da autorizzare */
.draft-note { margin: clamp(28px, 3vw, 44px) auto 0; max-width: 920px; border-left: 4px solid var(--o-pending); background: rgba(196,81,45,0.07); padding: 18px 22px; }
.draft-note strong { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--o-pending); margin-bottom: 6px; }
.draft-note p { font-size: 0.95rem; color: var(--text); }
.frame.needs-auth::after, .shot.needs-auth::before, .hero-bg.needs-auth::before, .occasion.needs-auth::after {
  content: 'Foto da autorizzare'; position: absolute; z-index: 2; top: 10px; right: 10px; pointer-events: none;
  background: var(--o-pending); color: #fff; padding: 3px 9px;
  font: 500 0.6rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; text-shadow: none;
}
.hero-bg.needs-auth::before { top: auto; bottom: 16px; right: 16px; }
.frame--inset.needs-auth::after { font-size: 0.5rem; padding: 2px 6px; top: 6px; right: 6px; }

.map {
  position: relative; aspect-ratio: 16/11; background: var(--ivory-d); overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-inner { position: relative; z-index: 1; background: rgba(245,240,232,0.94); padding: 26px 30px; max-width: 340px; }
.map-inner p { font-size: 0.84rem; color: var(--text); margin: 8px 0 16px; }
.map-inner .btn { padding: 12px 22px; }

/* ---------- Sotto-navigazione ville ---------- */
.subnav { position: sticky; top: 68px; z-index: 50; background: rgba(245,240,232,0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ivory-d); }
.subnav ul { display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 0; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s; }
.subnav a:hover, .subnav a.active { color: var(--olive); border-bottom-color: var(--gold); }

/* =====================================================
   GALLERIA + LIGHTBOX
   ===================================================== */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tab {
  padding: 11px 22px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey); border: 1px solid var(--grey-l); margin: 0 -1px -1px 0; transition: all 0.3s;
}
.tab[aria-pressed="true"], .tab:hover { background: var(--olive); color: var(--ivory); border-color: var(--olive); position: relative; z-index: 1; }

.gallery { columns: 3; column-gap: 8px; }
.gallery .shot { margin-bottom: 8px; break-inside: avoid; }
.gallery .shot img { height: auto; }
.gallery .shot[hidden] { display: none; }

.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--white);
  width: 100vw; height: 100vh; max-width: none; max-height: none;
}
.lightbox::backdrop { background: rgba(14,16,14,0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { font-size: 0.74rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.75); text-align: center; }
.lightbox-btn { position: fixed; z-index: 2; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.7rem; opacity: 0.75; transition: opacity 0.3s, background 0.3s; }
.lightbox-btn:hover { opacity: 1; background: rgba(255,255,255,0.1); }
.lightbox-close { top: 16px; right: 18px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* =====================================================
   FASCIA CTA
   ===================================================== */
.cta-band { position: relative; isolation: isolate; color: var(--white); text-align: center; padding: clamp(68px, 8vw, 112px) 0; overflow: hidden; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(26,30,26,0.62), rgba(26,30,26,0.72)); }
.cta-band .eyebrow { color: var(--gold-l); display: block; margin-bottom: 1.2rem; }
.cta-band h2 { color: var(--white); max-width: 18ch; margin: 0 auto 1.2rem; }
.cta-band h2 em { color: var(--gold-l); }
.cta-band p { max-width: 52ch; margin: 0 auto 2.2rem; color: rgba(255,255,255,0.86); }
.cta-band .btn-row { justify-content: center; }

/* =====================================================
   MODULO DI RICHIESTA + FAQ
   ===================================================== */
.request-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.request-grid > *, .form-row > * { min-width: 0; }
.request-intro h2 { margin-bottom: 1.2rem; }
.request-intro h2 em { color: var(--gold-l); }
.request-contacts { margin-top: 2rem; display: grid; gap: 12px; }
.request-contacts li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.request-contacts .icon { width: 18px; height: 18px; color: var(--gold-l); }
.request-contacts a { border-bottom: 1px solid rgba(245,240,232,0.3); transition: color 0.3s, border-color 0.3s; }
.request-contacts a:hover { color: var(--gold-l); border-color: var(--gold-l); }
.request-card { background: var(--white); color: var(--dark); padding: clamp(24px, 3.2vw, 44px); box-shadow: 0 24px 70px rgba(0,0,0,0.22); }

.request-form fieldset { border: 0; min-width: 0; }
.form-group { margin-bottom: 18px; }
.form-group label, .form-label { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark); margin-bottom: 8px; padding: 0; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--grey-l); background: var(--ivory);
  font-family: var(--sans); font-size: 1rem; font-weight: 350; color: var(--dark);
  transition: border-color 0.3s, box-shadow 0.3s; outline: none; border-radius: 0; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,149,90,0.18); }
.form-group textarea { min-height: 104px; resize: vertical; }
.form-group .invalid { border-color: #b3402f; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row--3 { grid-template-columns: 1fr 1fr 0.8fr; }
.form-error { font-size: 0.8rem; color: #b3402f; margin-top: 6px; display: none; }
.form-error.show { display: block; }
#err-date.show { margin: -8px 0 16px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.form-group label.pill { position: relative; margin: 0; font-size: 0.92rem; font-weight: inherit; letter-spacing: 0; text-transform: none; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span { display: block; padding: 8px 15px; border: 1px solid var(--grey-l); background: var(--ivory); color: var(--dark); transition: all 0.2s; }
.form-foot .btn { flex-shrink: 0; white-space: nowrap; }
.pill:hover span { border-color: var(--gold); }
.pill input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--ivory); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--grey); }
.form-success { display: none; text-align: center; padding: 40px 12px; }
.form-success.show { display: block; }
.form-success .check { font-size: 2.6rem; color: var(--gold); margin-bottom: 12px; }
.form-success h3 { font-size: 2rem; margin-bottom: 10px; color: var(--olive); }
.form-success p { color: var(--text); font-size: 0.98rem; max-width: 44ch; margin: 0 auto 8px; }

.faq-title { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--grey-l); }
.faq details:first-of-type { border-top: 1px solid var(--grey-l); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none;
  padding: 18px 0; font-size: 0.96rem; font-weight: 400; color: var(--dark); transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--gold); transition: transform 0.35s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-d); }
.faq details p { font-size: 0.98rem; color: var(--text); line-height: 1.75; padding: 0 28px 20px 0; max-width: 64ch; }
.faq--columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.faq--columns details:nth-of-type(2) { border-top: 1px solid var(--grey-l); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--olive); color: rgba(245,240,232,0.72); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; margin-bottom: 52px; }
.footer-logo { font-family: var(--serif); font-size: 1.7rem; color: var(--ivory); letter-spacing: 0.04em; margin-bottom: 12px; display: inline-block; }
.footer-logo em { font-style: italic; font-weight: 300; color: var(--gold-l); }
.footer-tagline { font-size: 0.92rem; color: rgba(245,240,232,0.76); margin-bottom: 18px; max-width: 34ch; }
.footer-rating { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; color: rgba(245,240,232,0.7); transition: color 0.3s; }
.footer-rating:hover { color: var(--gold-l); }
.footer-col h2 { font-family: var(--sans); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.94rem; color: rgba(245,240,232,0.8); transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-l); }
.footer-contact li { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; }
.footer-contact .icon { width: 14px; height: 14px; color: var(--gold-l); }
.footer-col .btn { margin-top: 22px; padding: 12px 24px; font-size: 0.68rem; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(245,240,232,0.12); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: rgba(245,240,232,0.66); letter-spacing: 0.04em; }
.footer-bottom a:hover { color: var(--gold-l); }

/* =====================================================
   REVISIONE (solo nella bozza: SITE["review"] in _build/kit.py)
   ===================================================== */
:root { --o-airbnb: #3F7D58; --o-editorial: #B8955A; --o-pending: #C4512D; --o-confirmed: #2F6F9F; }

.review-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 850;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: calc(100vw - 32px);
  background: var(--olive-d); color: var(--ivory); padding: 10px 16px;
  font-size: 0.74rem; letter-spacing: 0.04em; box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.review-pill strong { font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.64rem; color: var(--gold-l); }
.review-pill label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.review-pill input { accent-color: var(--gold); width: 15px; height: 15px; }
.review-pill a { text-decoration: underline; text-underline-offset: 3px; }
.review-pill a:hover { color: var(--gold-l); }
.review-legend { display: none; gap: 12px; flex-wrap: wrap; flex-basis: 100%; padding-top: 8px; border-top: 1px solid rgba(245,240,232,0.16); }
.show-origin .review-legend { display: flex; }
.review-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; }
.review-legend li::before { content: ''; width: 10px; height: 10px; background: var(--k); }
[data-k="airbnb"] { --k: var(--o-airbnb); }
[data-k="editorial"] { --k: var(--o-editorial); }
[data-k="pending"] { --k: var(--o-pending); }
[data-k="confirmed"] { --k: var(--o-confirmed); }

/* Blocchi evidenziati quando "Origine testi" è attivo */
.show-origin [data-origin] { position: relative; outline: 1.5px solid var(--k); outline-offset: 5px; }
.show-origin [data-origin="airbnb"] { --k: var(--o-airbnb); --t: 'Da Airbnb'; }
.show-origin [data-origin="editorial"] { --k: var(--o-editorial); --t: 'Editoriale'; outline-style: dashed; }
.show-origin [data-origin="pending"] { --k: var(--o-pending); --t: 'Da confermare'; background-color: rgba(196,81,45,0.09); }
.show-origin [data-origin="confirmed"] { --k: var(--o-confirmed); --t: 'Confermato'; }
.show-origin [data-origin]::before {
  content: var(--t); position: absolute; top: -15px; left: -5px; z-index: 3;
  background: var(--k); color: #fff; padding: 2px 7px;
  font: 500 0.56rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; text-shadow: none;
}
.show-origin .icon-card[data-origin] { outline-offset: -3px; }
.show-origin .icon-card[data-origin]::before { top: 3px; left: 3px; }
.show-origin main :is(h1, h2):not([data-origin]) { outline: 1.5px dashed var(--o-editorial); outline-offset: 5px; }
.show-origin .occasion p { max-height: none; opacity: 1; overflow: visible; margin: 18px 0 1.1rem; }

/* Pagina revisione.html */
.review-key { margin-top: 2rem; display: grid; gap: 14px; }
.review-key li { border-left: 4px solid var(--k); background: var(--ivory); padding: 16px 20px; font-size: 0.94rem; color: var(--text); }
.review-key strong { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark); margin-bottom: 4px; }
.review-key a, .review-item a, .prose a { text-decoration: underline; text-underline-offset: 3px; }
.review-list { border-top: 1px solid var(--grey-l); }
.review-item { display: grid; grid-template-columns: minmax(200px, 0.8fr) 2fr; gap: 12px 36px; padding: 24px 0; border-bottom: 1px solid var(--grey-l); }
.review-item h3 { font-size: 1.5rem; margin-bottom: 8px; }
.review-item > p { font-size: 0.94rem; color: var(--text); }
.review-counts { display: flex; flex-direction: column; gap: 3px; font-size: 0.74rem; color: var(--grey); }
.review-counts span { display: inline-flex; align-items: center; gap: 7px; }
.review-counts span::before { content: ''; width: 8px; height: 8px; background: var(--k); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.86em; background: var(--ivory-d); padding: 1px 6px; }

/* CTA fissa su mobile */
.mobile-cta { display: none; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1220px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse > .split-media { order: 0; }
  .split-media { max-width: 640px; }
  .split .frame { aspect-ratio: 16/11; }
  .split-media .frame--inset { display: none; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: none; }
  .highlight:nth-child(-n+2) { border-bottom: 1px solid var(--grey-l); }
  .occasions { grid-template-columns: repeat(3, 1fr); }
  .occasion { aspect-ratio: 3/4; padding: 18px; }
  .cards-3 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .icon-cards, .icon-cards--3 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(odd) { padding-left: 0; border-left: none; }
  .step:nth-child(n+3) { border-top: 1px solid rgba(245,240,232,0.16); }
  .steps--light .step:nth-child(n+3) { border-top-color: var(--grey-l); }
  .rating-band { grid-template-columns: auto 1fr; }
  .rating-band > :last-child { grid-column: 1 / -1; }
  .request-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery { columns: 2; }
  .faq--columns { grid-template-columns: 1fr; }
  .faq--columns details:nth-of-type(2) { border-top: none; }
}

@media (max-width: 700px) {
  :root { --nav-h: 68px; }
  .cards-3 { grid-template-columns: 1fr; }
  .occasions { grid-template-columns: 1fr; }
  .occasion { aspect-ratio: 16/12; }
  .icon-cards, .icon-cards--3 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; }
  .mosaic > :first-child { grid-row: auto; grid-column: span 2; }
  .mosaic--4 > :last-child { grid-column: span 2; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: none; }
  .step + .step { border-top: 1px solid rgba(245,240,232,0.16); }
  .steps--light .step + .step { border-top-color: var(--grey-l); }
  .timeline li { grid-template-columns: 70px 1fr; gap: 14px; }
  .menu-item { grid-template-columns: 1fr; }
  .rating-band { grid-template-columns: 1fr; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .form-row--3 { grid-template-columns: 1fr 1fr; }
  .form-row--3 > :last-child { grid-column: 1 / -1; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-usp { display: none; }
  .map--wide { aspect-ratio: 4/3; }
  .hero--page { min-height: clamp(480px, 82vh, 680px); }
  /* foto sopra e testo sotto: il soggetto della foto resta libero (pagina Destination Wedding) */
  .hero--stack { display: block; min-height: 0; padding: 0; background: var(--olive-d); }
  .hero--stack .hero-bg { position: relative; height: 68svh; min-height: 380px; }
  .hero--stack .hero-bg::after { background: linear-gradient(to bottom, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 78%, rgba(34,46,35,0.95) 100%); }
  .hero--stack .hero-content { padding-top: 26px; padding-bottom: 40px; text-shadow: none; }
  .split-media--accent::before { display: none; }
  .subnav ul { justify-content: flex-start; }
  .gallery { column-gap: 6px; }
  .gallery .shot { margin-bottom: 6px; }
  .site-footer { padding-bottom: 96px; }
  .mobile-cta {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 800;
    background: rgba(34,46,35,0.97); backdrop-filter: blur(10px);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
    transform: translateY(110%); transition: transform 0.4s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; padding: 13px 10px; font-size: 0.66rem; letter-spacing: 0.14em; }
  .review-pill { left: 10px; bottom: 76px; font-size: 0.7rem; padding: 8px 12px; }
  .review-item { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .highlight-num { font-size: 2.3rem; }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .js .fade-in { opacity: 1; transform: none; }
  .js .hero-bg img { transform: none; }
}

@media print {
  .site-header, .nav-mobile, .mobile-cta, .cta-band, .hero-scroll, .review-pill { display: none !important; }
  .js .fade-in { opacity: 1; transform: none; }
}
