/* ============================================================
   Le Porte di Sardegna v2 — Mediterraneo contemporaneo
   ============================================================ */

:root {
  --paper:       oklch(97% 0.012 80);
  --paper-2:     oklch(94% 0.016 78);
  --ink:         oklch(22% 0.015 60);
  --ink-2:       oklch(38% 0.018 62);
  --ink-3:       oklch(58% 0.015 65);
  --line:        oklch(86% 0.012 75);
  --line-2:      oklch(78% 0.015 72);
  --terra:       oklch(52% 0.14 42);
  --terra-deep:  oklch(42% 0.13 38);
  --title-em:    oklch(35% 0.10 20);  /* bordeaux per gli italic dei titoli */
  --olive:       oklch(48% 0.07 115);
  --accent:      var(--terra);

  --r-soft: 2px;
  --r-pill: 999px;

  --fs-display: clamp(56px, 8vw, 120px);
  --fs-3xl:     clamp(40px, 5vw, 60px);
  --fs-2xl:     clamp(28px, 3vw, 36px);
  --fs-xl:      clamp(22px, 2.2vw, 28px);

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 140px);
  --container: 1440px;

  --t-mult: 1;
  --t-slow: calc(1.2s * var(--t-mult));
  --t-med:  calc(0.55s * var(--t-mult));
  --t-fast: calc(0.25s * var(--t-mult));
  --ease:   cubic-bezier(.16, 1, .3, 1);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans:    'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--title-em); font-weight: 400; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; letter-spacing: 0; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0;
}
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); font-weight: 300; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand links right";
  align-items: center;
  gap: 20px;
}
.brand     { grid-area: brand; }
.nav-links { grid-area: links; }
.nav-right { grid-area: right; }
.nav-burger { grid-area: burger; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  display: grid; place-items: center;
  line-height: 1;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.brand-name { font-family: var(--font-sans); font-weight: 500; font-size: 15px; }
.brand-name em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
  margin-left: 1px;
}

.nav-links {
  display: flex; justify-content: center; gap: 2px;
}
.nav-links a {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--terra);
}

.cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.cta-pill:hover { transform: translateY(-1px); background: oklch(18% 0.015 60); }
.cta-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(68% 0.16 145);
  box-shadow: 0 0 0 0 oklch(68% 0.16 145 / 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(68% 0.16 145 / 0.6); }
  70%  { box-shadow: 0 0 0 10px oklch(68% 0.16 145 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(68% 0.16 145 / 0); }
}

/* Right side of nav: language switcher + CTA pill */
.nav-right { display: inline-flex; align-items: center; gap: 14px; }
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
}
.lang-switcher button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-switcher button:hover { color: var(--ink); }
.lang-switcher button.active {
  background: var(--ink);
  color: var(--paper);
}

/* Lang dropdown — mostrato solo su mobile (≤860), accanto al CTA Prenota */
.lang-mobile { display: none; position: relative; }
.lang-mobile-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lang-mobile-toggle:hover { border-color: var(--ink-2); }
.lang-mobile-toggle[aria-expanded="true"] { border-color: var(--ink); }
.lang-mobile-caret { font-size: 10px; opacity: 0.7; line-height: 1; }
.lang-mobile-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 100;
}
.lang-mobile-panel[hidden] { display: none; }
.lang-mobile-panel button {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-mobile-panel button:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  color: var(--ink);
}
.lang-mobile-panel button.active {
  background: var(--ink);
  color: var(--paper);
}

/* ===== HAMBURGER + MOBILE DRAWER (≤860) ===== */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  margin-left: -10px;
  transition: background var(--t-fast) var(--ease);
}
.nav-burger:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.nav-burger-icon {
  position: relative;
  width: 22px;
  height: 14px;
  display: block;
}
.nav-burger-icon::before,
.nav-burger-icon::after,
.nav-burger-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease),
              top var(--t-fast) var(--ease),
              bottom var(--t-fast) var(--ease);
}
.nav-burger-icon::before { top: 0; }
.nav-burger-icon span { top: 50%; transform: translateY(-50%); }
.nav-burger-icon::after { bottom: 0; }
.nav-burger[aria-expanded="true"] .nav-burger-icon::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-icon::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-icon span { opacity: 0; }

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(360px, 86vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: max(env(safe-area-inset-top, 0px), clamp(70px, 12vw, 90px))
           max(env(safe-area-inset-right, 0px), clamp(24px, 5vw, 36px))
           max(env(safe-area-inset-bottom, 0px), clamp(24px, 5vw, 36px));
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  box-shadow: -20px 0 40px -20px oklch(22% 0.015 60 / 0.25);
}
.mobile-drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.drawer-links a {
  padding: 16px 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  display: block;
  transition: color var(--t-fast) var(--ease);
}
.drawer-links a:hover { color: var(--terra-deep); }
.drawer-links a.active {
  color: var(--terra-deep);
  font-style: italic;
}
.drawer-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer-lang {
  display: flex;
  gap: 6px;
}
.drawer-lang button {
  flex: 1;
  min-height: 44px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.drawer-lang button:hover { color: var(--ink); border-color: var(--ink-2); }
.drawer-lang button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  min-height: 48px;
}
.drawer-cta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(68% 0.16 145);
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(14% 0.02 60 / 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
  z-index: 70;
}
.drawer-backdrop[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
body.drawer-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; margin-left: 0; }
  .nav-inner {
    /* Tre colonne 1fr|auto|1fr: brand centrato fra burger e CTA */
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "burger brand right";
    gap: 8px;
  }
  .nav-burger { justify-self: start; }
  .brand { justify-self: center; min-width: 0; }
  .nav-right { justify-self: end; gap: 8px; }
  .nav-right .lang-switcher { display: none; } /* sostituito dal dropdown mobile */
  .nav-right .lang-mobile { display: inline-flex; }
  .brand-name {
    font-size: 13.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 420px) {
  .nav-inner { padding-left: 14px; padding-right: 14px; gap: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 24px; height: 24px; font-size: 14px; }
  .brand-name { font-size: 12.5px; }
  .cta-pill { padding: 8px 12px; font-size: 12px; gap: 6px; }
  .cta-pill .dot { width: 7px; height: 7px; }
}
@media (min-width: 861px) {
  .mobile-drawer,
  .drawer-backdrop { display: none !important; }
}

/* ===== REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* ===== HERO (home) ===== */
.hero-top {
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 80px);
}
.hero-top .head-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 5vw, 80px);
  align-items: end;
}
.hero-top h1 {
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.hero-top .side-note {
  max-width: 28ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .hero-top .head-grid {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 28px);
    align-items: start;
  }
  .hero-top .side-note { max-width: 56ch; }
}
.hero-frame {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
  margin-top: clamp(32px, 4vw, 56px);
}
.hero-frame .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-frame .slide.active { opacity: 1; }
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  color: var(--paper);
  background: linear-gradient(to top, oklch(14% 0.02 60 / 0.88), oklch(14% 0.02 60 / 0.45) 55%, transparent 85%);
}
.hero-overlay .tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.hero-overlay h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-2xl);
  color: var(--paper);
  font-weight: 300;
  margin-top: 6px;
}
.hero-overlay h2 em { color: oklch(82% 0.08 25); font-style: italic; }
.hero-paginator {
  display: flex; gap: 10px;
}
.hero-paginator button {
  width: 34px; height: 2px;
  background: color-mix(in oklab, var(--paper) 50%, transparent);
  transition: background var(--t-fast) var(--ease);
}
.hero-paginator button.active { background: var(--paper); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(30px, 4vw, 50px) 0;
  border-bottom: 1px solid var(--line);
}
.hero-stats .stat {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-stats .stat small {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  transition: transform var(--t-fast) var(--ease);
}
.btn-primary:hover { transform: translateX(2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: gap var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn-ghost:hover { gap: 14px; border-color: var(--terra); color: var(--terra-deep); }

@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .btn-primary { grid-column: 1 / -1; justify-self: start; }
}

/* ===== TICKER ===== */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--paper);
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tick 48s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink-2);
}
.ticker-track span.sep { color: var(--terra); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ===== SECTION HEAD ===== */
.sect {
  padding: var(--section-y) 0;
}
.sect-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  padding-bottom: clamp(30px, 4vw, 60px);
}
.sect-head h2 {
  font-size: var(--fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.sect-head .side-note { color: var(--ink-2); font-size: 15px; max-width: 28ch; }
@media (max-width: 860px) {
  .sect-head { grid-template-columns: 1fr; }
}

/* ===== PROPERTY CARDS (home) =====
   Card immersive: immagine full-cover, overlay scuro al fondo per
   leggibilità, testo (nome / località / prezzo) e CTA "Apri la porta".
   Mobile: stack 100% × 50vh. Desktop ≥900px: side-by-side, 50vw
   ciascuna × 85vh, gap 4px. */
.prop-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prop-grid-foot {
  margin-top: clamp(30px, 4vw, 50px);
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 3vw, 30px);
}
.prop-card {
  position: relative;
  display: block;
  height: 50vh;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  color: #fff;
}
.prop-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.prop-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease);
  filter: saturate(0.95);
}
.prop-card:hover .prop-frame img { transform: scale(1.05); filter: saturate(1); }

/* gradient overlay scuro al fondo per la leggibilità del testo */
.prop-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

.prop-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(22px, 3vw, 44px) clamp(22px, 3vw, 44px) clamp(28px, 3.5vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.prop-meta h3 {
  margin: 0;
  font-size: var(--fs-xl);
  line-height: 1.05;
  color: #fff;
}
.prop-meta .loc {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.prop-meta .price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}
.prop-cta {
  margin-top: clamp(14px, 1.6vw, 22px);
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.prop-card:hover .prop-cta {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

@media (min-width: 900px) {
  .prop-grid {
    flex-direction: row;
    box-sizing: border-box;
    width: 100vw;
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Margine laterale contro il bordo pagina (clamp responsive) */
    padding: 0 clamp(16px, 2.5vw, 48px);
    gap: clamp(8px, 0.8vw, 14px);
  }
  .pc-1, .pc-2 {
    flex: 1 1 0;
    min-width: 0;
    height: 85vh;
  }
}

/* ===== HOW WE WORK ===== */
.how {
  background: var(--paper-2);
  padding: var(--section-y) 0;
}
.how-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.how-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 36px;
}
.how-points .pt .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terra);
  letter-spacing: 0.08em;
}
.how-points .pt h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  margin: 6px 0 6px;
}
.how-points .pt p { color: var(--ink-2); font-size: 14px; }
.how-img-wrap {
  position: relative;
  aspect-ratio: 5 / 6;
}
.how-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.how-cite {
  position: absolute;
  right: -12px; bottom: -14px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 26px;
  max-width: 340px;
  box-shadow: 0 20px 40px -20px oklch(22% 0.015 60 / 0.15);
}
.how-cite blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}
.how-cite cite { font-style: normal; display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 860px) {
  .how-split { grid-template-columns: 1fr; }
  .how-points { grid-template-columns: 1fr; }
}

/* ===== TESTIMONIALS ===== */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.quotes figure {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  margin: 0;
  background: var(--paper);
}
.quotes blockquote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 20px;
  font-weight: 300;
}
.quotes figcaption { font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; }
.quotes figcaption em { color: var(--title-em); font-style: italic; }
@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; }
}

/* ===== JOURNAL TEASER ===== */
.journal-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.post-card .p-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.post-card .p-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.post-card:hover .p-img img { transform: scale(1.03); }
.post-card .p-meta {
  display: flex; gap: 14px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin-top: 8px;
  max-width: 22ch;
}
@media (max-width: 860px) {
  .journal-teaser { grid-template-columns: 1fr; }
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-y) 0;
}
.final-cta h2 {
  color: var(--paper);
  font-size: var(--fs-3xl);
  line-height: 1.05;
  max-width: 16ch;
}
.final-cta h2 em { color: oklch(78% 0.10 25); font-style: italic; }
.final-cta .lede { color: oklch(82% 0.012 75); max-width: 52ch; margin-top: 20px; }
.final-cta .btn-cream {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  margin-top: 30px;
  transition: transform var(--t-fast) var(--ease);
}
.final-cta .btn-cream:hover { transform: translateX(2px); }

/* ===== CASE (list page) ===== */
.case-head {
  padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 50px);
}
.case-head h1 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.case-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-2);
  background: transparent;
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-filters .spacer { flex: 1; }
.case-filters select {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
}

.case-list { padding: clamp(40px, 6vw, 80px) 0; }
.case-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 70px) 0;
  border-bottom: 1px solid var(--line);
}
.case-row.alt { grid-template-columns: 5fr 7fr; }
.case-row.alt .cr-media { order: 2; }
.case-row .cr-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.case-row .cr-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
  filter: saturate(0.9);
}
.case-row:hover .cr-media img { transform: scale(1.03); filter: saturate(1); }
.case-row .cr-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.case-row h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  margin-bottom: 16px;
}
.case-row .lede { max-width: 48ch; margin-bottom: 24px; }
.case-row .stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 24px;
}
.case-row .stats-strip .s { font-size: 13px; color: var(--ink-2); }
.case-row .stats-strip .s .num { font-family: var(--font-display); font-size: 20px; color: var(--ink); display: block; margin-bottom: 2px; }
.case-row .cr-foot {
  display: flex; justify-content: space-between; align-items: center;
}
.case-row .price { font-family: var(--font-mono); font-size: 15px; color: var(--ink); }
.case-row .price small { color: var(--ink-3); margin-left: 4px; }
@media (max-width: 860px) {
  .case-row, .case-row.alt { grid-template-columns: 1fr; }
  .case-row.alt .cr-media { order: 0; }
  .case-row .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== DETAIL ===== */
.det-head {
  padding: clamp(60px, 8vw, 110px) 0 clamp(20px, 3vw, 40px);
}
.det-head-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
}
.det-head h1 {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.det-head h1 em { font-style: italic; color: var(--title-em); }
.det-head .caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
/* ===== BREADCRUMB (detail page) ===== */
.det-breadcrumb {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.det-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.det-breadcrumb li { display: flex; align-items: center; }
.det-breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--ink-3);
  opacity: 0.6;
}
.det-breadcrumb a {
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.det-breadcrumb a:hover { color: var(--terra-deep); }
.det-breadcrumb [aria-current="page"] { color: var(--ink); }

.det-head .loc-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
  color: var(--ink-2);
}
.det-head .loc-txt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2;
}
.det-head .loc-addr {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: -8px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  cursor: pointer;
}
.share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===== LUOGHI DA VEDERE — carosello orizzontale foto ===== */
.det-places {
  padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 60px);
}
.det-places .sect-head {
  padding-bottom: clamp(24px, 3vw, 40px);
}
.places-track {
  display: flex;
  gap: clamp(12px, 1.5vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 6px var(--gutter) 20px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  -webkit-overflow-scrolling: touch;
}
.places-track::-webkit-scrollbar { height: 8px; }
.places-track::-webkit-scrollbar-track { background: transparent; }
.places-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.place-card {
  flex: 0 0 clamp(240px, 28vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  will-change: transform;
}
.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px oklch(0% 0 0 / 0.25);
}
.place-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: oklch(90% 0.01 230);
}
.place-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.place-card:hover .place-img img { transform: scale(1.05); }
/* Focus modifiers: quando la foto ha bisogno di un crop specifico */
.place-img--focus-top img {
  transform: scale(1.18);
  transform-origin: center top;
}
.place-card:hover .place-img--focus-top img { transform: scale(1.22); }
.place-img--focus-bottom img {
  transform: scale(1.18);
  transform-origin: center bottom;
}
.place-card:hover .place-img--focus-bottom img { transform: scale(1.22); }
.place-body {
  padding: clamp(14px, 1.6vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.place-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.005em;
  margin: 0;
}
.place-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.place-cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--title-em);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  transition: color var(--t-fast) var(--ease);
}
.place-card:hover .place-cta { color: var(--terra-deep); }
@media (max-width: 640px) {
  .place-card { flex-basis: 75vw; }
}

/* ===== <noscript> fallback ===== */
.noscript-fallback {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.noscript-fallback h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 18px;
}
.noscript-fallback ul {
  margin: 18px 0;
  padding-left: 20px;
}
.noscript-fallback li {
  margin-bottom: 8px;
}
.noscript-fallback a {
  color: var(--terra-deep);
  text-decoration: underline;
}

/* ===== LUOGO — pagina interna POI: griglia related + placeholder ===== */
.luogo-related { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 40px); }
.luogo-related .sect-head { padding-bottom: clamp(20px, 3vw, 36px); }
.luogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.luogo-grid .place-card {
  flex: none;
  scroll-snap-align: none;
}
@media (max-width: 960px) {
  .luogo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .luogo-grid { grid-template-columns: 1fr; }
  .luogo-grid .place-card { flex-basis: auto; }
}
.luogo-placeholder {
  padding: clamp(36px, 5vw, 64px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== MAPPA (Leaflet) ===== */
.det-map-section { padding: clamp(40px, 6vw, 80px) 0 var(--section-y); }
.det-map-section .sect-head { padding-bottom: clamp(24px, 3vw, 40px); }
.det-map-wrap {
  position: relative;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  padding: clamp(12px, 1.6vw, 20px);
}
#det-map {
  width: 100%;
  height: clamp(320px, 40vh, 560px);
  background: oklch(90% 0.005 230);
}
.det-map-note {
  margin: 14px 0 2px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.det-map-cta {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(20px, 2.4vw, 30px);
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.det-map-cta:hover {
  background: var(--terra-deep);
  transform: translateY(-1px);
}
/* Pin custom per casa + POI */
.fh-pin { position: relative; }
.fh-pin-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--title-em);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 1px 4px oklch(0% 0 0 / 0.4);
}
.fh-pin-house .fh-pin-dot {
  width: 14px; height: 14px;
  background: var(--terra);
}
.fh-pin-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--terra);
  animation: fh-pulse 2.2s infinite ease-out;
  pointer-events: none;
}
@keyframes fh-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
/* Popup Leaflet in tono col sito */
.leaflet-popup-content-wrapper {
  border-radius: 2px !important;
  background: var(--paper) !important;
}
.leaflet-popup-content {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 12px 14px !important;
}
.leaflet-popup-content strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}
.leaflet-popup-content a { color: var(--terra-deep); border-bottom: 1px solid currentColor; }
.leaflet-popup-tip { background: var(--paper) !important; }

/* ===== BACK-TO-TOP ===== */
.back-to-top {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
  display: grid; place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), background var(--t-fast) var(--ease);
  z-index: 90;
  box-shadow: 0 10px 24px -8px oklch(0% 0 0 / 0.3);
}
.back-to-top.show { opacity: 0.92; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { opacity: 1; background: var(--title-em); }
@media (max-width: 520px) {
  .back-to-top {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 44px; height: 44px;
  }
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #25D366; /* brand WA */
  color: white;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px oklch(0% 0 0 / 0.35);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  z-index: 90;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px oklch(0% 0 0 / 0.4); }
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 520px) {
  .wa-float {
    padding: 14px; /* diventa solo icona */
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    min-width: 48px;
    min-height: 48px;
  }
  .wa-float .wa-lbl { display: none; }
}

/* Email copy link */
.email-copy {
  position: relative;
  border-bottom: 1px dashed var(--line-2);
  color: var(--ink);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.email-copy:hover { color: var(--terra-deep); border-bottom-color: var(--terra-deep); }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 12px);
  background: var(--ink); color: var(--paper);
  padding: 10px 18px;
  font-size: 13px; letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px -10px oklch(0% 0 0 / 0.3);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.det-hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
  margin: clamp(30px, 4vw, 50px) 0 0;
}
.det-hero img { width: 100%; height: 100%; object-fit: cover; }
.det-hero .gallery-cta {
  position: absolute;
  right: clamp(20px, 3vw, 30px);
  bottom: clamp(20px, 3vw, 30px);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  backdrop-filter: blur(8px);
  transition: transform var(--t-fast) var(--ease);
}
.det-hero .gallery-cta:hover { transform: translateX(2px); }

.det-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(30px, 4vw, 50px);
}
.det-stats .cell {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.det-stats .cell:last-child { border-right: 0; }
.det-stats .cell .big {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 4px;
  text-transform: none;
}
@media (max-width: 860px) {
  .det-stats { grid-template-columns: repeat(3, 1fr); }
  .det-stats .cell:nth-child(3n) { border-right: 0; }
  .det-stats .cell { border-bottom: 1px solid var(--line); }
  .det-head-grid { grid-template-columns: 1fr; }
  .det-head .loc-side { text-align: left; align-items: flex-start; }
}

.det-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 100px);
  padding: var(--section-y) 0;
  align-items: start;
}
.det-story h2 { font-size: var(--fs-2xl); margin-bottom: 24px; max-width: 18ch; line-height: 1.05; }
.det-story p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-bottom: 18px; max-width: 60ch; }
.det-story > .eyebrow,
.det-story > h2,
.det-story > p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.det-ameneties {
  margin-top: 50px;
}
.det-ameneties h3 { font-size: var(--fs-xl); margin-bottom: 20px; }
.amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
@media (max-width: 520px) {
  .amenity-grid { grid-template-columns: 1fr; }
}
.amenity-grid li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-2);
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14px;
  color: var(--ink);
}
.amenity-grid li::before {
  content: "✽"; color: var(--terra);
  font-family: var(--font-display);
}

.book-card {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
}
.book-card .bk-price {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.book-card .bk-price .p {
  font-family: var(--font-mono);
  font-size: 40px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.book-card .bk-price small { color: var(--ink-3); font-size: 13px; }
.book-card .rating { font-size: 13px; color: var(--ink-2); }
.book-card .rating .star { color: var(--terra); }
.book-card .date-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 16px 0;
}
.book-card .cell-i {
  border: 1px solid var(--line);
  padding: 14px;
  font-size: 12px;
}
.book-card .cell-i label {
  display: block;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 6px;
}
.book-card .cell-i .v { font-family: var(--font-mono); color: var(--ink); font-size: 14px; }
.book-card .guests {
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 18px;
  font-size: 14px;
}
.book-card .breakdown {
  font-size: 13px;
  color: var(--ink-2);
}
.book-card .breakdown .ln {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
}
.book-card .breakdown .ln.total {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  border-bottom: 0;
  border-top: 1px solid var(--ink);
  margin-top: 6px;
  padding-top: 14px;
}
.book-card .btn-primary { width: 100%; justify-content: center; margin-top: 18px; }
.book-card .nota { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 12px; }

@media (max-width: 960px) {
  .det-split { grid-template-columns: 1fr; }
  .book-card { position: static; }
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: clamp(10px, 1.5vw, 16px);
  padding: 0 0 var(--section-y);
}
.gallery .g {
  overflow: hidden;
  cursor: zoom-in;
}
.gallery .g img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.gallery .g:hover img { transform: scale(1.04); }
.gallery .g1 { grid-column: span 7; grid-row: span 3; }
.gallery .g2 { grid-column: span 5; grid-row: span 2; }
.gallery .g3 { grid-column: span 5; grid-row: span 2; }
.gallery .g4 { grid-column: span 7; grid-row: span 2; }
.gallery .g5 { grid-column: span 6; grid-row: span 2; }
.gallery .g6 { grid-column: span 6; grid-row: span 2; }
.gallery .g7 { grid-column: span 7; grid-row: span 2; }
.gallery .g8 { grid-column: span 5; grid-row: span 2; }
/* Fallback for any item beyond g8 — keeps the rhythm half/half */
.gallery .g:nth-child(n+9) { grid-column: span 6; grid-row: span 2; }
@media (max-width: 860px) {
  .gallery { grid-auto-rows: 110px; }
  .gallery .g1 { grid-column: span 12; grid-row: span 3; }
  .gallery .g2, .gallery .g3 { grid-column: span 6; grid-row: span 2; }
  .gallery .g4 { grid-column: span 12; grid-row: span 2; }
  .gallery .g5, .gallery .g6 { grid-column: span 6; grid-row: span 2; }
  .gallery .g7 { grid-column: span 12; grid-row: span 2; }
  .gallery .g8 { grid-column: span 12; grid-row: span 2; }
}

/* Ultima foto del mosaic con overlay "+N foto" — segnale visivo forte */
.gallery .g-has-more { position: relative; }
.gallery .g-has-more img {
  filter: brightness(0.55);
  transition: filter var(--t-slow) var(--ease);
}
.gallery .g-has-more:hover img { filter: brightness(0.45); }
.g-more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--paper);
  pointer-events: none;
}
.g-more-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.g-more-lbl {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(100% 0 0 / 0.82);
}

/* CTA "Apri tutte le N foto" — bordeaux come gli italic dei titoli */
.gallery:has(+ .gallery-more) { padding-bottom: 0; }
.gallery-more {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px) 0 var(--section-y);
}
.gallery-more .btn-primary {
  background: var(--title-em);
  color: var(--paper);
}
.gallery-more .btn-primary:hover { background: color-mix(in oklab, var(--title-em) 88%, black); }

/* ===== VIDEO TOUR — mockup smartphone + testo ===== */
.video-tour {
  padding: clamp(40px, 6vw, 80px) 0 var(--section-y);
}
.vt-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.vt-copy { max-width: 56ch; }
.vt-copy .vt-meta { font-size: 12px; letter-spacing: 0.08em; }

/* Phone mockup (CSS puro, nessun asset).
   --video-ar è impostato da JS leggendo l'aspect del poster; fallback 9/16. */
.vt-phone {
  --phone-w: clamp(220px, 28vw, 320px);
  --video-ar: 9 / 16;
  width: var(--phone-w);
  justify-self: center;
}
.vt-phone-frame {
  position: relative;
  width: 100%;
  background: oklch(14% 0.008 60);
  border-radius: calc(var(--phone-w) * 0.14);
  padding: calc(var(--phone-w) * 0.035);
  box-shadow:
    0 2px 0 oklch(100% 0 0 / 0.05) inset,
    0 0 0 1px oklch(100% 0 0 / 0.06) inset,
    0 30px 60px -20px oklch(0% 0 0 / 0.35),
    0 10px 24px -8px oklch(0% 0 0 / 0.2);
}
.vt-phone-notch {
  position: absolute;
  top: calc(var(--phone-w) * 0.055);
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: calc(var(--phone-w) * 0.04);
  background: oklch(6% 0 0);
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}
.vt-phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-ar);
  background: oklch(10% 0 0);
  border-radius: calc(var(--phone-w) * 0.09);
  overflow: hidden;
}
.vt-phone-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: oklch(10% 0 0);
}

@media (max-width: 860px) {
  .vt-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }
  .vt-phone { --phone-w: min(260px, 70vw); }
  .vt-copy { max-width: none; }
}

.det-foot {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.det-foot a {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.det-foot a:hover { color: var(--terra-deep); }
.det-foot a small { font-family: var(--font-sans); font-style: normal; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* ===== LUOGO (pagina interna POI) ===== */
.luogo-head {
  padding: clamp(40px, 5vw, 70px) 0 clamp(30px, 4vw, 50px);
}
.luogo-head h1 {
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.luogo-head h1 em { font-style: italic; color: var(--title-em); }
.luogo-head .caption {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.luogo-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 0 clamp(30px, 4vw, 60px);
  background: var(--ink-4);
}
.luogo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.luogo-intro {
  padding: clamp(20px, 3vw, 40px) 0 clamp(30px, 4vw, 60px);
}
.luogo-intro .lede {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  color: var(--ink);
}
.luogo-sect {
  padding: clamp(30px, 4vw, 60px) 0;
  border-top: 1px solid var(--line);
}
.luogo-sect--alt {
  background: var(--paper-alt, var(--paper));
}
.luogo-sect h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.luogo-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.luogo-body p:last-child { margin-bottom: 0; }
.luogo-body strong { color: var(--ink); font-weight: 600; }
.luogo-links {
  padding: clamp(40px, 5vw, 70px) 0;
  border-top: 1px solid var(--line);
}
.luogo-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.luogo-link-row .btn-primary,
.luogo-link-row .btn-ghost {
  font-size: 14px;
}

/* ===== SERVIZI ===== */
.srv-list { padding: clamp(30px, 4vw, 60px) 0; }
.srv-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(30px, 4vw, 50px) 0;
  border-bottom: 1px solid var(--line);
}
.srv-row:first-child { border-top: 1px solid var(--line); }
.srv-row .glyph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  color: var(--terra);
  line-height: 1;
}
.srv-row h3 {
  font-size: var(--fs-xl);
  line-height: 1.05;
}
.srv-row p { color: var(--ink-2); font-size: 15px; max-width: 58ch; }
.srv-row .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.srv-row .badge.incl { color: var(--olive); border-color: var(--olive); }
@media (max-width: 860px) {
  .srv-row { grid-template-columns: 60px 1fr; gap: 12px 20px; }
  .srv-row .glyph { font-size: 36px; }
  .srv-row p { grid-column: 1 / -1; }
  .srv-row .badge { grid-column: 1 / -1; justify-self: start; }
}

.img-break {
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  margin: var(--section-y) 0;
}
.img-break img { width: 100%; height: 100%; object-fit: cover; }

.net-local {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding: 0 0 var(--section-y);
  align-items: center;
}
.net-local h2 { font-size: var(--fs-3xl); line-height: 1.02; }
.net-local p { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
@media (max-width: 860px) { .net-local { grid-template-columns: 1fr; } }

/* ===== STORIA ===== */
.story-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 5vw, 70px);
}
.story-hero .caption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.story-hero h1 {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1;
  margin-bottom: 30px;
  max-width: 16ch;
}
.story-hero .lede { max-width: 60ch; }

.timeline {
  padding: clamp(40px, 5vw, 80px) 0;
}
.tl-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.5vw, 30px) 0;
  border-bottom: 1px dashed var(--line-2);
  align-items: baseline;
}
.tl-row .year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--terra-deep);
}
.tl-row .txt { color: var(--ink-2); font-size: 16px; max-width: 62ch; }

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: var(--section-y) 0;
}
.team .m .ph {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.team .m img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--t-slow) var(--ease);
}
.team .m:hover img { filter: grayscale(0%); }
.team .m h4 { font-family: var(--font-display); font-size: 19px; font-weight: 400; margin: 14px 0 4px; }
.team .m .role { font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, 1fr); } }

/* ===== GIORNALE ===== */
.jrn-head { padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 50px); }
.jrn-head h1 { font-size: clamp(48px, 6vw, 88px); line-height: 0.98; max-width: 14ch; }
.jrn-feat {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(30px, 4vw, 60px);
  padding: clamp(30px, 4vw, 60px) 0;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.jrn-feat .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.jrn-feat .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.jrn-feat:hover .ph img { transform: scale(1.03); }
.jrn-feat h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin-bottom: 16px; }
.jrn-feat .cap { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.jrn-feat .exc { color: var(--ink-2); font-size: 16px; max-width: 50ch; }

.jrn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 50px);
  padding: clamp(40px, 6vw, 80px) 0;
}
@media (max-width: 860px) {
  .jrn-feat, .jrn-grid { grid-template-columns: 1fr; }
}

.newsletter {
  background: var(--paper-2);
  padding: var(--section-y) 0;
  text-align: center;
}
.newsletter h2 { font-size: var(--fs-3xl); max-width: 20ch; margin: 0 auto 28px; }
.newsletter form {
  display: inline-flex;
  border: 1px solid var(--line-2);
  background: var(--paper);
  border-radius: var(--r-pill);
  padding: 6px;
  gap: 6px;
  max-width: 100%;
}
.newsletter input {
  border: 0; background: transparent;
  padding: 10px 18px;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
  width: 320px;
  max-width: 60vw;
  outline: 0;
}
.newsletter button {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-size: 13px;
}
.newsletter .ok { color: var(--olive); font-family: var(--font-display); font-style: italic; font-size: 22px; margin-top: 10px; min-height: 30px; }

/* ===== CONTATTI ===== */
.cnt-head { padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 50px); }
.cnt-head h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; max-width: 16ch; }
.cnt-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(30px, 4vw, 50px) 0 var(--section-y);
  align-items: start;
}
.cnt-side .block {
  padding: clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid var(--line);
}
.cnt-side .block:last-child { border-bottom: 1px solid var(--line); }
.cnt-side .eyebrow { margin-bottom: 8px; }
.cnt-side .block p { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--ink); margin: 0; }
.cnt-side .block .sub { font-family: var(--font-sans); font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.cnt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cnt-form .row { display: grid; gap: 6px; }
.cnt-form .row.wide { grid-column: 1 / -1; }
.cnt-form label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cnt-form input, .cnt-form select, .cnt-form textarea {
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  padding: 10px 0;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  outline: 0;
  transition: border-color var(--t-fast) var(--ease);
}
.cnt-form input:focus, .cnt-form select:focus, .cnt-form textarea:focus { border-color: var(--ink); }
.cnt-form textarea { min-height: 100px; resize: vertical; }
.cnt-form .submit { grid-column: 1 / -1; }
.cnt-form .btn-primary { margin-top: 10px; }
.cnt-form .cnt-privacy {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.cnt-form .cnt-privacy a {
  color: var(--terra-deep);
  border-bottom: 1px solid color-mix(in oklab, var(--terra-deep) 40%, transparent);
}
.cnt-form .cnt-privacy a:hover { border-color: var(--terra-deep); }

.faq { padding: 0 0 var(--section-y); }
.faq h2 { font-size: var(--fs-3xl); margin-bottom: 30px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: clamp(16px, 2vw, 24px) 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terra); font-size: 22px; transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 15px; margin: 14px 0 0; max-width: 64ch; }

@media (max-width: 860px) {
  .cnt-split { grid-template-columns: 1fr; }
  .cnt-form { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-foot {
  background: var(--paper-2);
  padding: clamp(32px, 4vw, 48px) 0 24px;
  border-top: 1px solid var(--line);
}
.foot-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 16px;
  text-align: center;
}
.foot-brand { display: grid; gap: 4px; justify-items: center; }
.foot-brand .brand-name { font-size: 15px; }
.foot-tag {
  color: var(--ink-3);
  font-size: 13px;
  max-width: 50ch;
  margin: 0 auto;
}
.foot-nav {
  display: flex; flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}
.foot-nav a {
  font-size: 13px;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.foot-nav a:hover { color: var(--terra-deep); }
.foot-contact {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
}
.foot-contact a { color: inherit; }
.foot-contact a:hover { color: var(--terra-deep); }
.foot-legal {
  margin: 4px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 76ch;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .foot-nav { gap: 4px 12px; }
  .foot-legal { font-size: 10.5px; }
}

/* ===== HOVER CUE ===== */
.hover-cue {
  position: fixed;
  top: 0; left: 0;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--paper);
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 40;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.hover-cue.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0;
  background: oklch(18% 0.015 60 / 0.92);
  display: none;
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 40px;
  touch-action: pan-y; /* consente lo swipe orizzontale senza interferenze scroll */
  user-select: none;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 86vh;
  object-fit: contain;
  animation: zin 0.4s var(--ease);
  pointer-events: none; /* così pointerdown va al container per lo swipe */
  -webkit-user-drag: none;
}
@keyframes zin { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  color: var(--paper);
  font-size: 36px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background var(--t-fast) var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: oklch(100% 0 0 / 0.1); }
.lb-close {
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
}
.lb-prev {
  left: calc(20px + env(safe-area-inset-left, 0px));
  top: 50%; transform: translateY(-50%);
}
.lb-next {
  right: calc(20px + env(safe-area-inset-right, 0px));
  top: 50%; transform: translateY(-50%);
}
.lb-counter {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ===== TWEAKS PANEL =====
   Gated: nascosto in produzione. Per attivarlo aggiungere ?tweaks=1 all'URL
   (lo stato viene memorizzato in localStorage). Vedi app.js.
   Quando attivo, si posiziona top-right per non collidere con WhatsApp. */
.tweaks-toggle,
.tweaks { display: none !important; }
body.has-tweaks .tweaks-toggle {
  display: grid !important;
  bottom: auto !important;
  top: calc(80px + env(safe-area-inset-top, 0px)) !important;
}
body.has-tweaks .tweaks {
  display: block !important;
  bottom: auto;
  top: calc(136px + env(safe-area-inset-top, 0px));
  max-height: calc(100vh - 160px);
}

.tweaks-toggle {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  place-items: center;
  font-size: 18px;
  z-index: 60;
  box-shadow: 0 10px 24px -10px oklch(22% 0.015 60 / 0.4);
  transition: transform var(--t-fast) var(--ease);
}
.tweaks-toggle:hover { transform: rotate(60deg); }

.tweaks {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
  z-index: 61;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  box-shadow: 0 20px 50px -20px oklch(22% 0.015 60 / 0.3);
  max-height: 80vh;
  overflow-y: auto;
}
.tweaks[aria-hidden="false"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tw-close { font-size: 22px; line-height: 1; color: var(--ink-3); }
.tw-row { padding: 12px 0; border-top: 1px solid var(--line); }
.tw-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.tw-swatches { display: flex; gap: 8px; }
.tw-sw {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--s, var(--terra));
  border: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.tw-sw.active, .tw-sw:hover { border-color: var(--ink); }
.tw-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-pill {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--ink-2);
  background: transparent;
  transition: all var(--t-fast) var(--ease);
}
.tw-pill:hover { color: var(--ink); border-color: var(--ink-2); }
.tw-pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* paper variants */
body[data-paper="pietra"] {
  --paper: oklch(96% 0.006 240);
  --paper-2: oklch(93% 0.008 240);
}
body[data-paper="crema"] {
  --paper: oklch(98% 0.02 85);
  --paper-2: oklch(95% 0.025 82);
}
/* radius variants */
body[data-radius="soft"] {
  --r-soft: 12px;
}
body[data-radius="soft"] .prop-frame,
body[data-radius="soft"] .hero-frame,
body[data-radius="soft"] .det-hero,
body[data-radius="soft"] .case-row .cr-media,
body[data-radius="soft"] .gallery .g,
body[data-radius="soft"] .post-card .p-img,
body[data-radius="soft"] .jrn-feat .ph,
body[data-radius="soft"] .how-img-wrap,
body[data-radius="soft"] .team .m .ph,
body[data-radius="soft"] .img-break {
  border-radius: 12px;
}

/* motion variants set --t-mult via JS on :root */

/* ===== BOOKING CARD — SEASONAL PRICING =====
   Le Porte di Sardegna uses weekly seasonal tariffs (Giugno/Luglio/Agosto/Settembre),
   not per-night. The chip row swaps the displayed rate + total. */
.book-card .season-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 16px 0 18px;
}
@media (max-width: 520px) {
  .book-card .season-row { grid-template-columns: repeat(2, 1fr); }
}
.book-card .season-chip {
  display: grid;
  gap: 3px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.book-card .season-chip:hover { border-color: var(--ink-2); }
.book-card .season-chip .lbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.book-card .season-chip .p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.book-card .season-chip.active {
  background: var(--ink);
  border-color: var(--ink);
}
.book-card .season-chip.active .lbl { color: oklch(78% 0.012 75); }
.book-card .season-chip.active .p   { color: var(--paper); }

/* det-rules: second amenity-grid on the detail page (reuses ul style) */
.det-rules { margin-top: 40px; }
.det-rules h3 { font-size: var(--fs-xl); margin-bottom: 20px; }

/* det-cta-inline: CTA "Richiedi disponibilità" sotto amenities/rules */
.det-cta-inline { margin-top: 50px; }
.det-cta-inline .nota { font-size: 12px; color: var(--ink-3); margin-top: 12px; }

/* ===== UTIL ===== */
.flex-row { display: flex; gap: 20px; align-items: center; }
.mt-xl { margin-top: clamp(30px, 4vw, 60px); }
.mt-lg { margin-top: clamp(20px, 3vw, 40px); }
.mt-md { margin-top: 20px; }
.text-right { text-align: right; }

/* ===== ACTIVITIES ===== */
.activities { padding: clamp(50px, 7vw, 100px) 0 clamp(20px, 3vw, 40px); }
.activities .sect-head { padding-bottom: clamp(20px, 3vw, 40px); }
/* Titolo dintorni: leggermente più piccolo per tenere "Intorno a La Porta del Lido." su una riga */
.activities .sect-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  text-wrap: balance;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .activities .sect-head h2 { white-space: normal; font-size: clamp(26px, 5vw, 36px); }
}
.act-list { display: flex; flex-direction: column; }
.act-row {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(30px, 4vw, 50px) 0;
  border-bottom: 1px solid var(--line);
}
.act-row.alt { grid-template-columns: 6fr 6fr; }
.act-row.alt .act-media { order: 2; }
.act-row .act-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.act-row .act-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
  filter: saturate(0.9);
}
.act-row:hover .act-media img { transform: scale(1.02); filter: saturate(1); }
.act-row .act-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.act-row h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
}
.act-row h3 em { font-style: italic; color: var(--title-em); font-weight: 400; }
.act-row .act-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 14px;
}
.act-row .act-practical {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 52ch;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.act-row .act-more {
  margin-top: 18px;
}
@media (max-width: 860px) {
  .act-row, .act-row.alt { grid-template-columns: 1fr; }
  .act-row.alt .act-media { order: 0; }
}

/* ===== GUIDA LOCALE (3 card: mangiare / escursioni / servizi) ===== */
.guide { padding: clamp(40px, 6vw, 80px) 0 var(--section-y); }
.guide .sect-head { padding-bottom: clamp(24px, 3vw, 44px); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.guide-card {
  background: var(--paper-2);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 2px solid var(--ink);
}
.guide-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
}
.guide-icon {
  font-size: 22px;
  line-height: 1;
  filter: grayscale(0.1);
}
.guide-card h3 {
  font-size: var(--fs-xl);
  margin: 0;
}
.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.guide-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.guide-item:last-child { border-bottom: 1px solid var(--line); }
.guide-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guide-item-info strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.guide-item-info span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.guide-link {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-2);
  font-size: 16px;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.guide-link:hover {
  background: var(--title-em);
  color: var(--paper);
  border-color: var(--title-em);
  transform: translateX(2px);
}
.guide-note {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}
.guide-note a {
  color: var(--title-em);
  border-bottom: 1px solid currentColor;
}
.guide-note a:hover { color: var(--ink); }

@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   INTRO VIDEO TRANSITION — overlay full-viewport che riproduce
   un breve video al click di una prop-card della home, poi fa
   un fade-to-white prima del cambio rotta.
   ============================================================ */
.fh-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000;
  z-index: 9999;
  overflow: hidden;
  cursor: wait;
  /* fade-in dell'overlay quando appare */
  animation: fh-intro-in 220ms ease-out both;
}
.fh-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}
.fh-intro-fade {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
}
.fh-intro.fade-to-white .fh-intro-fade { opacity: 1; }

@keyframes fh-intro-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* mentre l'overlay è attivo: blocca scroll della pagina sotto */
html.fh-intro-active,
html.fh-intro-active body {
  overflow: hidden;
}

/* ============================================================
   STILI STAMPA — pulisce la pagina per chi la stampa:
   via nav, footer, interattività (share, wa, back-to-top,
   carosello, video, mappa, lightbox, tweaks). Mantiene:
   breadcrumb testuale, hero + stats, storia, amenities,
   rules, booking card con prezzo, dintorni (no immagini),
   guida locale con link.
   ============================================================ */
@media print {
  :root {
    --paper:   #fff;
    --paper-2: #f5f3ef;
    --ink:     #111;
    --ink-2:   #222;
    --ink-3:   #555;
    --line:    #ccc;
    --line-2:  #999;
    --section-y: 18mm;
    --gutter:  12mm;
  }
  html, body { background: #fff; color: #111; font-size: 11pt; line-height: 1.45; }
  body { margin: 0; }
  @page { margin: 16mm 14mm; }

  /* Chrome ed elementi interattivi — nascosti in stampa */
  .nav, .site-foot, .hover-cue,
  #lightbox, .lightbox,
  #tweaks, #tweaks-toggle,
  .lang-switcher,
  .cta-pill, .share-btn,
  .wa-float, .back-to-top,
  .det-breadcrumb,
  .ticker,
  .hero-frame, .hero-overlay,
  .video-tour,
  .det-places, .places-track,
  .det-map-section, #det-map, .det-map-wrap,
  .gallery-more, .g-more-overlay,
  .final-cta,
  .det-foot,
  [data-reveal] { transition: none !important; animation: none !important; }
  .nav, .site-foot, .hover-cue,
  #lightbox, #tweaks, #tweaks-toggle,
  .lang-switcher, .cta-pill, .share-btn,
  .wa-float, .back-to-top,
  .det-breadcrumb, .ticker,
  .video-tour, .det-places,
  .det-map-section,
  .gallery-more,
  .det-foot { display: none !important; }

  /* Immagini: niente crop violenti, bianco/nero se i toner lo gradiscono */
  img { max-width: 100%; height: auto; break-inside: avoid; page-break-inside: avoid; }
  .det-hero img { max-height: 100mm; object-fit: contain; }
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2mm; grid-auto-rows: 40mm; }
  .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4,
  .gallery .g5, .gallery .g6, .gallery .g7, .gallery .g8 {
    grid-column: auto; grid-row: auto;
  }

  /* Titoli compatti */
  h1 { font-size: 22pt; margin: 0 0 4mm; }
  h2 { font-size: 15pt; margin: 6mm 0 3mm; break-after: avoid; }
  h3 { font-size: 12pt; margin: 4mm 0 2mm; break-after: avoid; }
  .eyebrow { font-size: 8pt; letter-spacing: 0.15em; color: #555; }

  /* Forza reveal visibile anche senza JS di intersection */
  [data-reveal] { opacity: 1 !important; transform: none !important; }

  /* Evita break in mezzo a blocchi-chiave */
  .det-split, .book-card, .act-row, .guide-card,
  .srv-row, figure, section { break-inside: avoid; page-break-inside: avoid; }

  /* Booking card: diventa lista prezzi leggibile */
  .book-card {
    border: 1px solid #999;
    padding: 4mm;
    display: block;
    background: #f5f3ef;
  }
  .book-card .bk-price .p { font-size: 16pt; }
  .season-row { display: flex; flex-wrap: wrap; gap: 2mm; }
  .season-chip { border: 1px solid #999; padding: 1mm 2mm; background: #fff; }
  .season-chip.active { background: #111; color: #fff; }

  /* Activities: senza immagine grossa, solo testo */
  .act-row { display: block !important; margin: 6mm 0; }
  .act-media { display: none !important; }
  .act-body { padding: 0 !important; }

  /* Guida locale: lista lineare */
  .guide-grid { display: block; }
  .guide-card { page-break-inside: avoid; border-top: 1px solid #ccc; padding: 3mm 0; margin: 3mm 0; }
  .guide-list { list-style: none; padding: 0; margin: 2mm 0 0; }
  .guide-item { display: flex; justify-content: space-between; gap: 4mm; padding: 1.5mm 0; border-top: 1px dotted #bbb; }
  .guide-item:first-child { border-top: 0; }
  .guide-link { display: none; } /* freccia inutile su carta */

  /* Link esterni: mostra l'URL tra parentesi dopo il testo link */
  main a[href^="http"]::after,
  main a[href^="https"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }
  /* Non aggiungere URL ai link interni (hash), email, tel */
  main a[href^="#"]::after,
  main a[href^="mailto:"]::after,
  main a[href^="tel:"]::after { content: ""; }

  /* Header stampa: aggiunto in coda con brand + URL canonico */
  main::before {
    content: "Le Porte di Sardegna — www.leportedisardegna.com";
    display: block;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 10pt;
    color: #555;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3mm;
    margin-bottom: 6mm;
  }
  main::after {
    content: "Stampato da www.leportedisardegna.com · cosmoalghero@gmail.com";
    display: block;
    margin-top: 10mm;
    padding-top: 3mm;
    border-top: 1px solid #ccc;
    font-family: Georgia, serif;
    font-size: 9pt;
    color: #777;
    text-align: center;
  }
}
