/* ============================================
   NUNZIA SERVIZI — foglio di stile
   Base: design system «Mediterranean Editorial» di Webica Labs
   (lo stesso di casadorvomero.it), adattato in tools/nunzia.css.
   File generato da tools/build_css.py: non modificarlo a mano.
   ============================================ */

/* ---- Caratteri in locale (Google Fonts, OFL) ---- */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-ext-2983b8a8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-2bebd3cb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext-ed6f8e85.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-9e509503.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext-367ba69a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-bec94a4d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens (Mediterranean editorial) ---- */
:root {
  /* Brand · warm earth */
  --ink:           #1a1410;            /* near-black, warm */
  --ink-soft:      #3d322a;
  --ink-mute:      #6b5d52;

  /* Surfaces */
  --cream:         #faf5ec;            /* page bg */
  --paper:         #ffffff;

  /* Accents · Mediterranean */
  --olive:         #6b6e3f;
  --sea:           #2f5d6e;

  /* Hero / dark surfaces */
  --night:         #0e1612;
  --night-soft:    #1c2620;

  /* Aliases (semantic) */
  --primary:       var(--accent);
  --primary-dark:  var(--accent-d);
  --bg:            var(--cream);
  --text:          var(--ink);
  --text-body:     var(--ink-soft);
  --muted:         var(--line-soft);
  --muted-fg:      var(--ink-mute);
  --border:        var(--line);
  --card:          var(--paper);

  /* Type */
  --font-display:  'Fraunces', 'Cormorant', Georgia, serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:        220ms;
  --t-med:         360ms;
  --t-slow:        640ms;

  /* Layout */
  --max:           1240px;
  --max-wide:      1480px;
  --gutter:        clamp(1.25rem, 3vw, 2.5rem);
  --header-h:      80px;
}

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

/* overflow-x: clip (not hidden) — clip clips without creating a scroll
   container, so it won't break position: sticky and won't leave the iOS Safari
   "white strip on the right" artifact that `hidden` produces when a descendant
   is wider than the viewport. Both html+body get it as a defensive guard. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: clip;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- Type system ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  font-weight: 400;
  font-variation-settings: 'opsz' 80, 'SOFT' 30;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; }
h4 { font-size: 1.375rem; font-weight: 500; }

p { max-width: 64ch; }

a { color: inherit; text-decoration: none; }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection { background: var(--accent); color: var(--cream); }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 245, 236, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(26,20,16,0.06);
}

.site-header.hero-header { background: transparent; }

.site-header.hero-header.scrolled {
  background: rgba(250, 245, 236, 0.92);
}

.site-header.hero-header.scrolled .site-nav a { color: var(--ink-soft); }
.site-header.hero-header.scrolled .site-nav a:hover,
.site-header.hero-header.scrolled .site-nav a.active { color: var(--ink); }
.site-header.hero-header.scrolled .site-logo-text { color: var(--ink); }
.site-header.hero-header.scrolled .site-logo-text span { color: var(--accent); }
.site-header.hero-header.scrolled .hamburger span { background: var(--ink); }

.site-logo {
  display: flex; align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-style: italic;
}

.site-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  font-style: normal;
}

.site-header.hero-header .site-logo-text { color: var(--cream); }
.site-header.hero-header .site-logo-text span { color: var(--cream-warm); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 2.25rem; }

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease);
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}

.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.site-header.hero-header .site-nav a { color: rgba(250,245,236,0.82); }
.site-header.hero-header .site-nav a:hover,
.site-header.hero-header .site-nav a.active { color: var(--cream); }

.nav-cta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: var(--cream) !important;
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  border: 1px solid var(--accent);
}

.nav-cta:hover {
  background: var(--accent-d) !important;
  border-color: var(--accent-d);
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.site-header.hero-header .nav-cta {
  background: var(--accent);
  border-color: var(--accent);
}
.site-header.hero-header .nav-cta:hover {
  background: var(--accent-d) !important;
  border-color: var(--accent-d);
}
.site-header.hero-header.scrolled .nav-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  transform-origin: center;
}

.site-header.hero-header .hamburger span { background: var(--cream); }

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 2rem;
  z-index: 99;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  pointer-events: none;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast) var(--ease);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); }

/* "Prenota" nel menu mobile = bottone pieno, non voce di lista.
   Oro/ambra (--hazel) + testo ink, non accent: sul fondo crema del menu il
   accent si mimetizzava nella palette calda, l'oro salta all'occhio. */
.mobile-menu .mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--hazel);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border-bottom: none;
  box-shadow: 0 14px 30px -10px rgba(var(--hazel-rgb), 0.65);
}
.mobile-menu .mobile-menu-cta:hover,
.mobile-menu .mobile-menu-cta.active {
  background: var(--hazel-d);
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: var(--header-h) 0 5.5rem;
  overflow: clip;
  background: var(--night);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14,22,18,0.82) 0%, rgba(14,22,18,0.30) 45%, rgba(14,22,18,0.10) 100%),
    linear-gradient(to right, rgba(14,22,18,0.35) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-warm);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.1s var(--ease-out) forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--cream-warm);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  max-width: 16ch;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 1s 0.25s var(--ease-out) forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--cream-warm);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(250,245,236,0.78);
  margin-bottom: 2.75rem;
  max-width: 48ch;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.45s var(--ease-out) forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.65s var(--ease-out) forwards;
}

.hero-meta {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  right: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
  color: rgba(250,245,236,0.55);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

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

@media (max-width: 768px) {
  .hero { padding: var(--header-h) 0 3.5rem; }
  .hero-meta { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn svg { transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(var(--accent-rgb), 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250,245,236,0.45);
}
.btn-outline-white:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---- Sections ---- */
.section {
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
}

.section-sm {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.section-text {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
}

.section-text-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.divider {
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0 2rem;
}

/* Editorial layout helpers */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.split-asym-left {
  grid-template-columns: 5fr 7fr;
}

.split-asym-right {
  grid-template-columns: 7fr 5fr;
}

@media (max-width: 900px) {
  .split,
  .split-asym-left,
  .split-asym-right {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---- Property Card · editorial ---- */
.property-card {
  background: transparent;
  cursor: pointer;
  display: block;
  transition: transform var(--t-med) var(--ease);
}

.property-card-img-wrapper {
  position: relative;
  overflow: hidden;
  /* 1/1 (non 4/5): le foto sono orizzontali 3:2, il ritaglio verticale
     mostrava solo il 53% del fotogramma = effetto "troppo zoom" */
  aspect-ratio: 1/1;
  background: var(--shell);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.property-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
  display: block;
}

.property-card:hover .property-card-img { transform: scale(1.05); }

.property-card-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,20,16,0.18) 0%, transparent 35%);
  pointer-events: none;
}

.property-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  z-index: 2;
}

.property-card-body { padding: 0; }

.property-card-location {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.property-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.85rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.property-card-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 36ch;
}

.property-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 1.1rem;
}

.property-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.property-card-meta-item svg { color: var(--accent); flex-shrink: 0; }

.property-card-link {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ink);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.property-card-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 0.75rem;
}

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.4vw, 2rem); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Editorial mosaic (homepage hero alt) ---- */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: clamp(420px, 60vw, 640px);
}

.mosaic > * {
  overflow: hidden;
  position: relative;
  border-radius: 2px;
  background: var(--shell);
}

.mosaic > *:first-child {
  grid-row: 1 / 3;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.mosaic > *:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.4fr 1fr 1fr;
    height: clamp(380px, 110vw, 520px);
  }
  .mosaic > *:first-child { grid-row: 1 / 2; grid-column: 1 / 3; }
}

/* ---- Amenity Showcase (Borgo 84) ---- */
.amenity-showcase {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) 0;
  overflow: hidden;
}

.amenity-showcase .section-title { color: var(--cream); }
.amenity-showcase .section-label { color: var(--cream-warm); }
.amenity-showcase .section-text { color: rgba(250,245,236,0.7); }
.amenity-showcase .section-text-lead { color: var(--cream); }

.amenity-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(250,245,236,0.1);
  margin-top: 4rem;
}

.amenity-feature {
  background: var(--ink);
  padding: 2rem 1.5rem;
}

.amenity-feature-icon {
  width: 32px; height: 32px;
  color: var(--cream-warm);
  margin-bottom: 1rem;
  stroke-width: 1.25;
}

.amenity-feature-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.amenity-feature-text {
  font-size: 0.875rem;
  color: rgba(250,245,236,0.65);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .amenity-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .amenity-features { grid-template-columns: 1fr; }
}

/* ---- Destinations ---- */
.destination-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  aspect-ratio: 4/5;
  background: var(--ink);
}

.destination-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease), opacity var(--t-med) var(--ease);
  opacity: 0.78;
}

.destination-card:hover img { transform: scale(1.05); opacity: 0.9; }

.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,22,18,0.85) 0%, rgba(14,22,18,0.2) 50%, transparent 100%);
}

.destination-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--cream);
}

.destination-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-warm);
  margin-bottom: 0.75rem;
}

.destination-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.015em;
}

.destination-name em { font-style: italic; }

.destination-text {
  color: rgba(250,245,236,0.75);
  font-size: 0.95rem;
  margin-top: 0.85rem;
  font-weight: 400;
  max-width: 30ch;
}

/* ---- Reasons / direct booking ---- */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.reason-item {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.reason-item--full { grid-column: 1 / 3; }

.reason-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.reason-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.reason-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .reason-grid { grid-template-columns: 1fr; }
  .reason-item--full { grid-column: auto; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(250,245,236,0.62);
  padding: clamp(4rem, 7vw, 6rem) var(--gutter) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: var(--max);
  margin: 0 auto 4rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-warm);
  margin-top: 6px;
  font-style: normal;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 38ch;
  margin-bottom: 1.5rem;
  color: rgba(250,245,236,0.6);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250,245,236,0.45);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(250,245,236,0.65);
  transition: color var(--t-fast) var(--ease);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  color: rgba(250,245,236,0.65);
}

.footer-contact-item svg {
  color: var(--accent-l);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-contact-item a { color: rgba(250,245,236,0.78); transition: color var(--t-fast) var(--ease); }
.footer-contact-item a:hover { color: var(--cream); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,245,236,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(250,245,236,0.4);
}

.footer-bottom a {
  color: rgba(250,245,236,0.55);
  transition: color var(--t-fast) var(--ease);
}
.footer-bottom a:hover { color: var(--cream); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ---- Page Hero (sub pages) ---- */
.page-hero {
  height: clamp(380px, 50vh, 540px);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--header-h) 0 4rem;
  margin-top: 0;
  overflow: clip;
  background: var(--ink);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,22,18,0.78) 0%, rgba(14,22,18,0.25) 65%, rgba(14,22,18,0.1) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-warm);
  margin-bottom: 1rem;
}

.page-hero-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  max-width: 22ch;
  letter-spacing: -0.02em;
}

.page-hero-title em { font-style: italic; }

.page-hero-text {
  color: rgba(250,245,236,0.75);
  font-size: 1.05rem;
  font-weight: 300;
  margin-top: 1.5rem;
  max-width: 52ch;
  line-height: 1.7;
}

/* ---- Gallery / Lightbox ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 240px);
  gap: 8px;
  border-radius: 2px;
  overflow: hidden;
}

.gallery-grid .gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--shell);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,22,18,0);
  transition: background var(--t-fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay { background: rgba(14,22,18,0.18); }

.gallery-more-badge {
  position: absolute;
  inset: 0;
  background: rgba(14,22,18,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.gallery-more-badge:hover { background: rgba(14,22,18,0.7); }

.gallery-more-badge span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px repeat(2, 160px);
  }
  .gallery-grid .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14,22,18,0.96);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  touch-action: pan-y;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: min(92vw, 1180px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 2px;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 10;
  background: rgba(14,22,18,0.5);
  border: 1px solid rgba(250,245,236,0.22);
  color: rgba(250,245,236,0.82);
  cursor: pointer;
  padding: 0.7rem;
  border-radius: 999px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:active,
.lightbox-nav:active {
  color: var(--cream);
  background: rgba(250,245,236,0.18);
  border-color: rgba(250,245,236,0.4);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(250,245,236,0.7);
  letter-spacing: 0.06em;
}

/* Mobile: bigger tap targets, nav buttons moved out of the photo into a bottom bar */
@media (max-width: 768px) {
  .lightbox { padding: 0.75rem; }
  .lightbox-img { max-width: 100%; max-height: 74vh; }
  .lightbox-close,
  .lightbox-nav {
    width: 50px; height: 50px;
    background: rgba(14,22,18,0.62);
    border-color: rgba(250,245,236,0.32);
  }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-nav { top: auto; bottom: 0.9rem; transform: none; }
  .lightbox-nav.prev { left: 1.1rem; }
  .lightbox-nav.next { right: 1.1rem; }
  .lightbox-counter { bottom: 1.55rem; }
}

/* ---- Property Detail ---- */
.property-detail {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}

.property-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.property-detail-grid > * { min-width: 0; }

@media (max-width: 980px) {
  .property-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

.property-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.property-sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2rem;
}

.property-sidebar-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}

.cin-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--cream-warm);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.property-quickfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 2rem 0;
  border-radius: 2px;
  overflow: hidden;
}

.property-quickfact {
  background: var(--paper);
  padding: 1.1rem 1rem;
  text-align: center;
}

.property-quickfact-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.property-quickfact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- Amenity list (per property) ---- */
.amenity-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.amenity-item svg { color: var(--accent); flex-shrink: 0; }

@media (max-width: 480px) { .amenity-list { grid-template-columns: 1fr; } }

/* ---- Filter Tabs ---- */
.filter-tabs {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.filter-tab {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--ink-soft);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---- Forms ---- */
.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0; /* iOS: senza questo, il grid item si allarga per contenere
                   l'intrinsic min-width di input type="date"/number e sfonda
                   la viewport invece di rispettare width:100% sull'input */
}

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-input,
.form-textarea,
.form-select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.form-textarea { resize: vertical; min-height: 150px; }

.honeypot { display: none !important; }

/* ---- Prose ---- */
.prose p {
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 64ch;
}

.prose ul {
  list-style: none;
  margin-bottom: 1rem;
}

.prose ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px; height: 1px;
  background: var(--accent);
}

.prose h3 { margin: 2rem 0 1rem; font-size: 1.5rem; }

/* ---- CIN block ---- */
.cin-block {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-mute);
  border: 1px dashed var(--line);
  border-radius: 2px;
  padding: 0.85rem 1.1rem;
  background: var(--cream-warm);
  letter-spacing: 0.04em;
}

.cin-block strong { color: var(--ink-soft); font-weight: 600; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--ink-mute);
  transition: color var(--t-fast) var(--ease);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { color: var(--line); }

/* ---- Visual flourish · scroll cue ---- */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--cream-warm), transparent);
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
  animation: scrollCue 2.4s ease-in-out infinite;
}

@keyframes scrollCue {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}

@media (max-width: 768px) {
  .scroll-cue { display: none; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.no-wrap { white-space: nowrap; }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* Section caps */
.section-head {
  max-width: 60ch;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-head--left {
  text-align: left;
  margin-inline: 0;
  max-width: 56ch;
}

/* ---- Mobile horizontal-overflow safeguards ---- */
/* Allow grid/flex children to shrink below their content's min-width so they
   never push the layout wider than the viewport (the "zoomed-in" symptom). */
.property-detail-grid,
.property-sidebar,
.property-sidebar-card { min-width: 0; }

@media (max-width: 560px) {
  /* The Lodgify "book now" widget can render wider than this narrow sidebar
     card on phones; trim the card padding so it has more room. */
  .property-sidebar-card { padding: 1.5rem 1.25rem; }
}

/* ---- Sticky "Prenota" bar (solo mobile) ---- */
.sticky-book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--t-med) var(--ease);
}
.sticky-book-bar .btn { width: 100%; justify-content: center; display: flex; }
.sticky-book-bar.is-visible { transform: translateY(0); }

@media (max-width: 768px) {
  .sticky-book-bar { display: block; }
}

/* ---- WhatsApp · pulsante flottante + CTA contatti ---- */
.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 95; /* sopra la sticky bar (90), sotto mobile menu (99) e header (100) */
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.2rem 0.4rem 0.4rem;
  border-radius: 9999px;
  background: #25d366; /* verde WhatsApp: fuori palette, riconoscibilità universale */
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 30px -8px rgba(26, 20, 16, 0.45);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), bottom var(--t-med) var(--ease);
}
.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(26, 20, 16, 0.5);
}
.wa-fab:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.wa-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.wa-fab-icon svg { width: 20px; height: 20px; }

/* Su mobile la sticky bar "Prenota" (fixed bottom, ~72px + safe-area) viene
   mostrata/nascosta da main.js con la classe .is-visible: quando c'è, il
   pulsante WhatsApp — suo fratello successivo nel DOM — si solleva sopra
   la barra. Solo CSS, nessun JS. */
@media (max-width: 768px) {
  .sticky-book-bar.is-visible ~ .wa-fab {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* CTA WhatsApp nella sezione contatti */
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1eb857;
  border-color: #1eb857;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.55);
}
.btn-whatsapp svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-whatsapp:hover svg { transform: none; }

/* ═══════════════════════════════════════════════════════════════
   FAQ · fisarmonica <details>/<summary> nativa, zero JavaScript.
   L'apertura da tastiera, lo stato aria-expanded e l'annuncio a
   screen reader li gestisce il browser. Le risposte restano nel
   DOM anche da chiuse: Google e gli assistenti AI le leggono.
   ═══════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 46rem;
  margin: 0 auto;
}

.faq-item { border-top: 1px solid rgba(26, 20, 16, 0.12); }
.faq-item:last-child { border-bottom: 1px solid rgba(26, 20, 16, 0.12); }

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  transition: color 0.25s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Indicatore +/− disegnato in CSS: due barre, quella verticale
   ruota fino a sparire nell'orizzontale quando la voce è aperta. */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 0.45rem;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}
.faq-icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translateY(-50%) rotate(0deg); }

.faq-a {
  padding: 0 0 1.75rem;
  animation: faq-fade 0.35s ease both;
}
.faq-a p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.faq-a p + p { margin-top: 0.85rem; }

/* Elenco numerato dei percorsi di arrivo */
.faq-steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: faq-step;
}
.faq-steps li {
  position: relative;
  counter-increment: faq-step;
  padding-left: 2.4rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.faq-steps li + li { margin-top: 0.9rem; }
.faq-steps li::before {
  content: counter(faq-step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}

@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
  .faq-icon::before,
  .faq-icon::after { transition: none; }
}

@media (max-width: 640px) {
  .faq-q { padding: 1.25rem 0; gap: 1rem; }
  .faq-steps li { padding-left: 2.1rem; }
}

/* ============================================
   NUNZIA SERVIZI — adattamenti e componenti propri
   Tutto ciò che segue non viene dal CSS di partenza.
   ============================================ */

/* ---- Fondi di sezione ---- */
.section--warm { background: var(--cream-warm); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); }
.section--ink .section-title { color: var(--cream); }
.section--ink .section-label { color: var(--cream-warm); }

.section-head .section-text { margin-inline: auto; }
.section-title { text-wrap: balance; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.site-footer a:focus-visible,
.hero a:focus-visible,
.page-hero a:focus-visible,
.amenity-showcase a:focus-visible { outline-color: var(--cream); }

/* ---- Comparsa allo scorrimento: solo con JavaScript attivo ---- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---- Header ---- */
.site-header.menu-open { background: var(--cream); }
.site-header.hero-header.menu-open .site-logo-text { color: var(--ink); }
.site-header.hero-header.menu-open .site-logo-text span { color: var(--accent); }
.site-header.hero-header.menu-open .hamburger span { background: var(--ink); }
.site-logo-text { white-space: nowrap; }
.hamburger { width: 44px; height: 44px; align-items: center; justify-content: center; }
.mobile-menu { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-menu a { min-height: 44px; }

@media (max-width: 1180px) {
  .site-nav { gap: 1.5rem; }
}
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}

/* ---- Hero con immagine vera (LCP) ---- */
.hero-bg img,
.page-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg img { object-position: center 60%; }
.hero-title { text-wrap: balance; }
.hero-meta { justify-content: flex-start; }
.scroll-cue { left: auto; right: var(--gutter); transform: none; animation: none; }

@media (max-width: 700px) {
  .hero { padding-bottom: 5.25rem; }
  .hero-bg img { object-position: center; }
  .hero-eyebrow { margin-bottom: 1rem; letter-spacing: 0.2em; font-size: 0.68rem; }
  .hero-title { font-size: clamp(2.35rem, 11.5vw, 3.1rem); margin-bottom: 1rem; font-weight: 400; font-variation-settings: 'opsz' 24; }
  /* A questo corpo il taglio display molto sottile perde i tratti della H;
     il tondo rende inoltre inequivocabile la j di Letojanni su telefono. */
  .hero-title em { font-style: normal; }
  .hero-subtitle { font-size: 1rem; line-height: 1.6; margin-bottom: 1.5rem; }
  .hero-cta { gap: 0.6rem; }
  .hero-cta .btn { padding: 0.95rem 1.15rem; font-size: 0.72rem; letter-spacing: 0.1em; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.1rem; }
  .hero { padding-bottom: 4.75rem; }
}

.page-hero { height: auto; min-height: clamp(380px, 50vh, 540px); }
.page-hero-title { text-wrap: balance; }
.page-hero--plain { min-height: 70vh; align-items: center; }
.page-hero--plain .hero-cta { margin-top: 2rem; opacity: 1; transform: none; animation: none; }

/* ---- Pulsanti ---- */
.btn { justify-content: center; }
.btn-block { display: flex; width: 100%; border-radius: 4px; padding-block: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost.btn { border-bottom: 1px solid var(--ink); }

/* ---- Box disponibilità ---- */
.booking-split { align-items: start; }
.booking-box {
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 24px 60px -20px rgba(26, 20, 16, 0.18);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}
.booking-form { display: grid; gap: 1rem; }
.booking-form, .booking-form > * { min-width: 0; }
.booking-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.booking-dates > .form-group { min-width: 0; }
/* Safari su iPhone dà ai campi data una larghezza propria: senza questo il campo «Partenza» esce dal riquadro bianco. */
.booking-form input[type="date"] { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; min-height: 50px; line-height: 1.2; text-align: left; }
.booking-form input[type="date"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.booking-form input[type="date"]::-webkit-datetime-edit { padding: 0; }
.booking-form .form-input,
.booking-form .form-select { background: var(--cream); min-height: 50px; padding: 0.8rem 0.9rem; min-width: 0; }
.form-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.booking-note { font-size: 0.82rem; line-height: 1.55; color: var(--ink-mute); max-width: none; }
.booking-error { font-size: 0.88rem; color: var(--accent-d); font-weight: 500; }

@media (max-width: 440px) {
  .booking-dates { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Risultati del calendario ---- */
.avail { margin-top: clamp(2rem, 4vw, 3.5rem); }
.avail[hidden] { display: none; }
.avail-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--ink); }
.avail-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.avail-summary { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); max-width: none; }
.avail-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0.5rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.section--warm .avail-group { border-bottom-color: var(--shell); }
.avail-group-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height: 1.15; }
.avail-group-name a { border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.avail-group-name a:hover { color: var(--accent); border-color: currentColor; }
.avail-group-place { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-top: 0.4rem; }
.avail-units { list-style: none; display: grid; gap: 0.9rem; }
.avail-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 1.25rem; }
.avail-unit-name { font-weight: 600; color: var(--ink); }
.avail-unit-meta { grid-column: 1; font-size: 0.88rem; color: var(--ink-mute); max-width: none; }
.avail-unit-side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; text-align: right; }
.avail-status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.avail-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail-status.is-open { color: var(--sea); }
.avail-status.is-restricted { color: var(--hazel-d); }
.avail-price { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.avail-price small { font-family: var(--font-body); font-size: 0.78rem; color: var(--ink-mute); }
.avail-action { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-d); border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.avail-action:hover { color: var(--ink); }
.avail-note,
.avail-message { margin-top: 1.25rem; font-size: 0.88rem; color: var(--ink-mute); max-width: 70ch; }
.avail-message { font-size: 1rem; color: var(--ink-soft); }

.avail--compact { margin-top: 1.5rem; }
.avail--compact .avail-head { border-bottom-color: var(--line); padding-bottom: 0.8rem; }
.avail--compact .avail-title { font-size: 1.15rem; }
.avail--compact .avail-group { grid-template-columns: 1fr; padding: 1rem 0 0; border-bottom: 0; }
.avail--compact .avail-group-head { display: none; }
.avail--compact .avail-unit { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }

@media (max-width: 700px) {
  .avail-group { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .avail-unit { grid-template-columns: 1fr; }
  .avail-unit-side { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.4rem 1rem; text-align: left; }
}

/* ---- Mosaico ---- */
.mosaic { height: clamp(420px, 44vw, 600px); }
@media (max-width: 900px) {
  .mosaic { height: clamp(380px, 100vw, 560px); }
}

/* ---- Schede delle case ---- */
.property-card-name a,
.home-row-name a { transition: color var(--t-fast) var(--ease); }
.property-card-name a:hover,
.home-row-name a:hover { color: var(--accent); }
.property-card-img-wrapper { display: block; }
.property-card-meta { max-width: none; }

.homes-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 3.4vw, 3rem) clamp(1.25rem, 2.4vw, 2rem); }
.homes-grid .property-card { grid-column: span 3; }
.homes-grid .property-card:nth-child(-n + 3) { grid-column: span 4; }
.homes-grid .property-card:nth-child(-n + 3) .property-card-img-wrapper { aspect-ratio: 4 / 3; }

@media (max-width: 1100px) {
  .homes-grid .property-card,
  .homes-grid .property-card:nth-child(-n + 3) { grid-column: span 6; }
  .homes-grid .property-card .property-card-img-wrapper,
  .homes-grid .property-card:nth-child(-n + 3) .property-card-img-wrapper { aspect-ratio: 4 / 3; }
  .homes-grid .property-card:last-child { grid-column: 1 / -1; }
  .homes-grid .property-card:last-child .property-card-img-wrapper { aspect-ratio: 16 / 7; }
}

/* Telefono: le sette case diventano un indice compatto, una riga ciascuna. */
@media (max-width: 640px) {
  .homes-grid,
  .others-grid { display: block; border-top: 1px solid var(--shell); }
  .homes-grid .property-card,
  .others-grid .property-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--shell); }
  .homes-grid .property-card .property-card-img-wrapper,
  .homes-grid .property-card:nth-child(-n + 3) .property-card-img-wrapper,
  .homes-grid .property-card:last-child .property-card-img-wrapper,
  .others-grid .property-card-img-wrapper { aspect-ratio: 1 / 1; margin-bottom: 0; }
  .homes-grid .property-card-tag,
  .homes-grid .property-card-desc,
  .homes-grid .property-card-link,
  .others-grid .property-card-tag,
  .others-grid .property-card-desc,
  .others-grid .property-card-link { display: none; }
  .homes-grid .property-card-location,
  .others-grid .property-card-location { margin-bottom: 0.3rem; font-size: 0.66rem; }
  .homes-grid .property-card-name,
  .others-grid .property-card-name { font-size: 1.35rem; margin-bottom: 0.3rem; }
  .homes-grid .property-card-meta,
  .others-grid .property-card-meta { margin-bottom: 0; }
  .js .homes-grid .reveal { opacity: 1; transform: none; }
}

/* ---- Elenco delle case: una riga per struttura ---- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.filter-tab { min-height: 44px; }
.home-rows { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.home-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.home-row:nth-child(even) .home-row-media { order: 2; }
.home-row[hidden] { display: none; }
.home-row-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--shell); }
.home-row-name { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.home-row .section-text { margin-bottom: 1.4rem; }
.unit-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.unit-chips li { display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.unit-chips span { font-weight: 400; color: var(--ink-mute); }

@media (max-width: 900px) {
  .home-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .home-row:nth-child(even) .home-row-media { order: 0; }
  .home-row-media { aspect-ratio: 3 / 2; }
}

/* ---- Fascia scura «Il soggiorno» ---- */
.amenity-showcase { padding-inline: var(--gutter); }
.showcase-inner { max-width: var(--max); margin: 0 auto; }
.amenity-showcase .divider { background: var(--accent-l); }
.amenity-showcase .section-title em { color: var(--accent-l); }
.showcase-photo { aspect-ratio: 5 / 6; overflow: hidden; border-radius: 2px; background: var(--ink-soft); }
.showcase-photo img { width: 100%; height: 100%; object-fit: cover; }
.amenity-feature-title { font-variation-settings: 'opsz' 40; }

@media (max-width: 900px) {
  .showcase-photo { aspect-ratio: 4 / 3; }
  .amenity-features { margin-top: 2.5rem; }
}
@media (max-width: 480px) {
  .amenity-features { grid-template-columns: repeat(2, 1fr); }
  .amenity-feature { padding: 1.4rem 1rem; }
  .amenity-feature-title { font-size: 1.15rem; }
}

/* ---- Dintorni ---- */
.section--ink .section-head { margin-bottom: 3rem; }
.section--ink .section-title em { color: var(--accent-l); }
.destination-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.destination-card { cursor: default; }
.destination-card img { opacity: 0.86; }
.destination-card:hover img { opacity: 0.92; }
.destination-text { max-width: 36ch; }

@media (max-width: 640px) {
  .destination-grid { grid-template-columns: 1fr; gap: 8px; }
  .destination-card { aspect-ratio: 4 / 4.2; }
}

.reason-grid { align-self: start; }
.reason-title { margin-bottom: 0.4rem; }

@media (max-width: 640px) {
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .reason-item { padding: 1.1rem 0.9rem; }
  .reason-title { font-size: 1.08rem; }
  .reason-text { font-size: 0.86rem; line-height: 1.55; }
}

/* ---- Proprietari ---- */
.owners-split { align-items: start; }
.service-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--ink); }
.service-row { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.service-title { font-size: 1.2rem; margin-bottom: 0.3rem; }
.service-text { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 420px) {
  .service-list { column-gap: 1rem; }
  .service-title { font-size: 1.05rem; }
  .service-text { font-size: 0.86rem; }
}

/* ---- Contatti ---- */
.contact-lines { list-style: none; margin-top: 2rem; display: grid; gap: 0.9rem; }
.contact-lines li { display: flex; align-items: center; gap: 0.75rem; font-size: 1.05rem; color: var(--ink); }
.contact-lines svg { color: var(--accent); flex-shrink: 0; }
.contact-lines a { border-bottom: 1px solid var(--shell); overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--accent-d); border-color: currentColor; }

.choice-group { border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.choice-group legend { margin-bottom: 0.6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--ink-mute); border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); background: transparent; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.contact-form .form-textarea::placeholder { color: var(--ink-mute); opacity: 0.8; }

/* ---- Scheda della casa ---- */
.property-detail { padding-top: clamp(2rem, 4vw, 3rem); }
.property-detail > .container { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.breadcrumb { flex-wrap: wrap; margin-bottom: 1.5rem; }
.breadcrumb svg { color: var(--shell); }
.breadcrumb [aria-current] { color: var(--ink); }

.gallery-grid { grid-template-rows: repeat(2, clamp(180px, 19vw, 260px)); }
.gallery-item { display: block; }
.gallery-item--extra { display: none; }
.gallery-more-badge { pointer-events: none; }
.lightbox[hidden] { display: none; }
.lightbox-caption { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 3.6rem; text-align: center; font-size: 0.86rem; color: rgba(250, 245, 236, 0.82); max-width: none; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-rows: 230px repeat(2, 130px); }
  .lightbox-caption { bottom: 5rem; }
}

.property-main > .section-text-lead { max-width: 30ch; }
.property-h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: clamp(2.5rem, 4vw, 3.25rem) 0 1.25rem; }
.property-note { margin-top: 0.5rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--hazel); background: var(--cream-warm); font-size: 0.95rem; color: var(--ink-soft); }
.property-quickfact-num { font-variation-settings: 'opsz' 60; white-space: nowrap; }

.unit-list { list-style: none; border-top: 1px solid var(--ink); }
.unit { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.unit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1.5rem; margin-bottom: 0.6rem; }
.unit-name { font-size: 1.45rem; }
.unit-guests { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); max-width: none; }
.unit-text { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }

.amenity-item { align-items: flex-start; }
.amenity-item svg { margin-top: 0.3rem; }
.map-caption { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.25rem; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--ink-mute); max-width: none; }
.map-caption svg { color: var(--accent); flex-shrink: 0; }
.cin-block { margin-top: clamp(2.5rem, 4vw, 3.25rem); max-width: none; overflow-wrap: anywhere; }

.property-sidebar-card { padding: clamp(1.25rem, 2.4vw, 2rem); box-shadow: 0 24px 60px -28px rgba(26, 20, 16, 0.22); }
.property-sidebar-card .section-label { margin-bottom: 0.75rem; }
.property-sidebar-card-title { font-size: 1.45rem; font-weight: 400; margin-bottom: 1.4rem; }
.sidebar-contact { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.85rem; }
.sidebar-tel { text-align: center; font-size: 1rem; font-weight: 500; color: var(--ink); }
.sidebar-tel:hover { color: var(--accent-d); }

@media (max-width: 980px) {
  .property-sidebar { position: static; scroll-margin-top: calc(var(--header-h) + 1rem); }
}
[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

/* ---- Footer ---- */
.footer-contact-item { max-width: none; align-items: center; }
.footer-contact-item svg { margin-top: 0; }
.footer-contact-item a { overflow-wrap: anywhere; }
.footer-links a { display: inline-block; padding: 0.15rem 0; }
.footer-cin { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--cream-warm); padding: 0.5rem 0.9rem; border-radius: 999px; }
.footer-credit { max-width: var(--max); margin: 1.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(250, 245, 236, 0.08); text-align: center; font-size: 0.76rem; color: rgba(250, 245, 236, 0.5); }
.footer-credit a { color: rgba(250, 245, 236, 0.72); border-bottom: 1px solid rgba(250, 245, 236, 0.3); }
.footer-credit a:hover { color: var(--cream); }

@media (max-width: 768px) {
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ---- WhatsApp flottante: su telefono solo l'icona, non copre le CTA ---- */
@media (max-width: 768px) {
  .wa-fab { padding: 0.45rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transition: opacity var(--t-med) var(--ease), bottom var(--t-med) var(--ease); }
  .wa-fab.is-visible { opacity: 1; pointer-events: auto; }
  .wa-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wa-fab-icon { width: 44px; height: 44px; }
  .wa-fab-icon svg { width: 24px; height: 24px; }
}

/* ---- Ritocchi dopo la prima prova nel browser ---- */
.section-text + .section-text { margin-top: 1rem; }
.section-cta { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.site-nav a.nav-cta { padding: 0.75rem 1.4rem; }
.service-title,
.reason-title,
.amenity-feature-title,
.unit-name,
.avail-title { letter-spacing: 0; font-variation-settings: 'opsz' 30; }
.footer-bottom { color: rgba(250, 245, 236, 0.66); }
.footer-heading { color: rgba(250, 245, 236, 0.62); }

/* Footer su telefono: marchio a tutta larghezza, località affiancate. */
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; margin-bottom: 2.5rem; }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.25rem; }
  .site-footer { padding-top: 3.5rem; }
}

/* Risultati su schermi larghi: stato, tariffa e azione su tre colonne fisse. */
@media (min-width: 901px) {
  .avail:not(.avail--compact) .avail-unit-side { display: grid; grid-template-columns: 9.5rem 8.5rem 10.5rem; align-items: center; gap: 0 1.25rem; text-align: left; }
  .avail:not(.avail--compact) .avail-status { grid-column: 1; }
  .avail:not(.avail--compact) .avail-price { grid-column: 2; }
  .avail:not(.avail--compact) .avail-action { grid-column: 3; text-align: center; border: 1px solid currentColor; border-radius: 999px; padding: 0.6rem 1rem; }
  .avail:not(.avail--compact) .avail-action:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
}

/* I dati in sintesi stanno sempre su una riga sola: nessuna cella vuota. */
.property-quickfacts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 480px) {
  .property-quickfact { padding: 0.9rem 0.4rem; }
  .property-quickfact-num { font-size: 1.35rem; }
  .property-quickfact-label { font-size: 0.6rem; letter-spacing: 0.1em; }
}

/* Galleria a tutto schermo: didascalia sotto la foto, non sopra. */
.lightbox-img { max-height: 76vh; }
.lightbox-caption { bottom: 3.5rem; }
@media (max-width: 768px) {
  .lightbox-img { max-height: 66vh; }
  .lightbox-caption { bottom: 5.25rem; }
}

/* Filtro a 320 px: le tre voci stanno dentro lo schermo. */
@media (max-width: 400px) {
  .filter-tabs { display: flex; width: 100%; }
  .filter-tab { flex: 1 1 0; padding: 0.7rem 0.4rem; font-size: 0.68rem; letter-spacing: 0.08em; }
}

/* ---- Dopo la misura di revisione-sito del 05/10 ---- */
/* Tavolozza (08/10, viola schiarito al lilla il 18/10: Nunzia in call il 15/10 «più lilla», «viola tenue quasi glicine»; variante B scelta da Daniele): i colori del marchio di Nunzia, campionati dalla sua «N».
   Il viola prende il posto dell'accento di partenza su pulsanti, link, corsivi dei
   titoli e filetti; le fasce chiare hanno una tinta viola molto chiara; il nocciola
   è il neutro caldo di bordi, fondi secondari e dettagli. Crema e scuri non cambiano.
   I token di partenza con lo stesso nome vengono tolti da build_css.py: valgono questi.
   Valori del lilla del 18/10, sostituiti il 21/10 dal glicine (token qui sotto e blocco «Glicine» in fondo al file); contrasti del lilla: testo crema su --accent 4,85:1; --accent su
   crema 4,85:1 e sul viola chiaro 4,69:1; --accent-d (link) su crema 7,43:1;
   --accent-l su --ink 11,02:1; testo secondario sul viola chiaro 5,65:1. */
:root {
  --accent: #6c5590;
  --accent-d: #523f78;
  --accent-l: #d8cbec;
  --accent-rgb: 108, 85, 144;
  --cream-warm: #f8f4fb;
  --sand: #f0eaf7;
  --shell: #ddcdb9;
  --line: #e6dacb;
  --line-soft: #efe7db;
  --hazel: #a47c56;
  --hazel-d: #7a5733;
  --hazel-rgb: 164, 124, 86;
}
.btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(var(--accent-rgb), 0.5); }
/* R15: bianco sul verde WhatsApp dà 1,98:1; il testo scuro 9,2:1. */
.btn-whatsapp,
.btn-whatsapp:hover,
.wa-fab { color: var(--ink); }
.wa-fab-icon { background: rgba(26, 20, 16, 0.1); }

/* R06 e R08: su telefono tutti i titoli di sezione a sinistra, spazi più corti. */
@media (max-width: 768px) {
  .section-head { text-align: left; margin: 0 0 2.25rem; }
  .section-head .section-text { margin-inline: 0; }
  .section-cta { text-align: left; margin-top: 2rem; }
  .section { padding-block: 3.25rem; }
  .amenity-showcase { padding-block: 3.25rem; }
  .divider { margin: 1.1rem 0 1.4rem; }
  .faq-list { margin-inline: 0; }
}
.map-open { margin-left: 0.35rem; color: var(--accent-d); border-bottom: 1px solid currentColor; font-weight: 600; }
.map-open:hover { color: var(--ink); }

/* ============================================
   SITO MULTIPAGINA — componenti delle pagine interne (05/10)
   ============================================ */

/* ---- Apertura e briciole ---- */
.page-hero--short { min-height: clamp(300px, 38vh, 400px); }
.page-hero-title { max-width: 24ch; }
.page-hero-text a { color: var(--cream); border-bottom: 1px solid rgba(250, 245, 236, 0.5); }
.crumbs-bar { padding: 1.4rem var(--gutter) 0; }
.crumbs-bar .breadcrumb { margin-bottom: 0; }
.breadcrumb a { border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-color: currentColor; }
.section--flush { padding-top: clamp(2.25rem, 5vw, 4rem); }
.container--narrow > * { max-width: 54rem; }
.split--top { align-items: start; }

/* ---- Testo nelle sezioni ---- */
.prose--section p { font-size: 1.0625rem; }
.prose--section > :last-child { margin-bottom: 0; }
.prose a:not(.btn),
.section-text a,
.faq-a a,
.reason-text a,
.table-note a,
.link-card-text a { color: var(--accent-d); border-bottom: 1px solid currentColor; transition: color var(--t-fast) var(--ease); }
.prose a:not(.btn):hover,
.section-text a:hover,
.faq-a a:hover,
.reason-text a:hover,
.table-note a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: clamp(2.5rem, 4.5vw, 3.5rem) 0 1.1rem; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.prose ul li { line-height: 1.7; }
.listing-intro { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.section-cta .cta-row { justify-content: center; margin-top: 0; }
.split-photo { margin: 0; }
.split-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--shell); }
.split-photo figcaption,
.article-figure figcaption { margin-top: 0.7rem; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-mute); }
.contact-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-card .contact-lines { margin-top: 0; }
.contact-lines svg { width: 18px; height: 18px; }
.section--ink .section-head .section-text { color: rgba(250, 245, 236, 0.72); }

/* ---- Località in home: schede cliccabili ---- */
a.destination-card { cursor: pointer; }
.destination-more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding-bottom: 0.35rem; border-bottom: 1px solid rgba(250, 245, 236, 0.6); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); transition: gap var(--t-fast) var(--ease); }
a.destination-card:hover .destination-more { gap: 0.8rem; }
a.destination-card:focus-visible { outline: 2px solid var(--cream); outline-offset: -4px; }

/* ---- Schede di rimando ---- */
.link-cards { display: grid; gap: clamp(2rem, 3.4vw, 3rem) clamp(1.25rem, 2.4vw, 2rem); }
.link-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--shell); margin-bottom: 1.25rem; }
.link-cards--2 .link-card-media { aspect-ratio: 16 / 9; }
.link-card:hover .property-card-img { transform: scale(1.05); }
.link-card-title { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 400; line-height: 1.12; margin-bottom: 0.7rem; letter-spacing: -0.01em; font-variation-settings: 'opsz' 40; }
.link-card-title a { transition: color var(--t-fast) var(--ease); }
.link-card-title a:hover { color: var(--accent); }
.link-card-text { font-size: 0.97rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 40ch; }
.link-card--plain { padding: clamp(1.5rem, 2.6vw, 2rem); background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 1000px) {
  .link-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-cards--3 .link-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .link-cards--3 .link-card:last-child:nth-child(odd) .link-card-media { aspect-ratio: 16 / 7; }
}
@media (max-width: 640px) {
  .link-cards--3,
  .link-cards--2 { grid-template-columns: 1fr; gap: 2rem; }
  .link-cards--3 .link-card:last-child:nth-child(odd) .link-card-media,
  .link-cards--2 .link-card-media { aspect-ratio: 3 / 2; }
  .link-card-media { aspect-ratio: 3 / 2; margin-bottom: 1rem; }
  .js .link-cards .reveal { opacity: 1; transform: none; }
}

/* ---- Tabelle ---- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.5; }
.data-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.data-table th,
.data-table td { text-align: left; vertical-align: top; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.section--paper .data-table th,
.section--paper .data-table td { border-bottom-color: var(--line); }
.data-table thead th { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.data-table tbody th { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; color: var(--ink); min-width: 9rem; }
.data-table tbody th a { border-bottom: 1px solid var(--shell); transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.data-table tbody th a:hover { color: var(--accent-d); border-color: currentColor; }
.table-note { margin-top: 1.25rem; font-size: 0.88rem; color: var(--ink-mute); max-width: 70ch; }
.property-main .table-wrap { margin-top: 0.25rem; }
@media (max-width: 720px) {
  .table-wrap { overflow: visible; border-top: 0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td { display: block; }
  .data-table tr { padding: 1.1rem 0; border-top: 1px solid var(--ink); }
  .data-table tbody th { padding: 0 0 0.6rem; border-bottom: 0; font-size: 1.3rem; }
  .data-table td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before { content: attr(data-label); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); padding-top: 0.25rem; }
}

/* ---- Elenchi di fatti e di passi ---- */
.fact-list { border-top: 1px solid var(--ink); margin: 0.5rem 0 1.5rem; }
.fact-list > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.35rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1.25; font-variation-settings: 'opsz' 30; }
.fact-list dd { color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 560px) {
  .fact-list > div { grid-template-columns: 1fr; }
}
.step-list { list-style: none; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.step-number { font-family: var(--font-display); font-size: 2.2rem; font-style: italic; font-weight: 300; line-height: 1; color: var(--accent); }
.step-title { font-size: 1.35rem; margin-bottom: 0.4rem; letter-spacing: 0; font-variation-settings: 'opsz' 30; }
.step-text { color: var(--ink-soft); line-height: 1.7; max-width: 60ch; }
.prose ol.steps { margin: 0 0 1.25rem 1.25rem; color: var(--ink-soft); }
.prose ol.steps li { margin-bottom: 0.5rem; line-height: 1.7; }
.next-links { list-style: none; margin: 1.5rem 0 0; border-top: 1px solid var(--ink); }
.next-links li { border-bottom: 1px solid var(--line); }
.next-links a { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto; align-items: center; gap: 0.25rem 1.25rem; padding: 0.95rem 0; color: var(--ink-soft); transition: color var(--t-fast) var(--ease); }
.next-links strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 400; color: var(--ink); font-variation-settings: 'opsz' 30; }
.next-links span { font-size: 0.9rem; }
.next-links svg { color: var(--accent); transition: transform var(--t-fast) var(--ease); }
.next-links a:hover strong { color: var(--accent-d); }
.next-links a:hover svg { transform: translateX(4px); }
@media (max-width: 560px) {
  .next-links a { grid-template-columns: minmax(0, 1fr) auto; }
  .next-links span { grid-column: 1; }
  .next-links svg { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---- Domande ---- */
.faq-list { margin-inline: 0; max-width: none; }
.faq-group-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: clamp(2.5rem, 4.5vw, 3.5rem) 0 1rem; }
.faq-group-title:first-child { margin-top: 0; }

/* ---- Fascia di chiusura ---- */
.cta-band { background: var(--ink); color: var(--cream); padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter); }
.cta-band .section-label { color: var(--cream-warm); }
.cta-band .section-title { color: var(--cream); max-width: 20ch; }
.cta-band .section-title em { color: var(--accent-l); }
.cta-band .section-text { color: rgba(250, 245, 236, 0.74); }
.cta-band a:focus-visible { outline-color: var(--cream); }
.amenity-showcase .cta-row { margin-top: 2rem; }

/* ---- Guide ---- */
.article-grid { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 19rem); justify-content: space-between; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.article-grid--single { grid-template-columns: minmax(0, 46rem); justify-content: start; }
.article p { font-size: 1.0625rem; }
.byline { font-size: 0.8rem !important; letter-spacing: 0.04em; color: var(--ink-mute) !important; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem !important; }
.article-figure { margin: 2rem 0; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: var(--shell); }
.article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.toc { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.toc ol { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.1rem; }
.toc a { display: block; padding: 0.4rem 0; font-size: 0.95rem; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); transition: color var(--t-fast) var(--ease); }
.toc a:hover { color: var(--accent-d); }
.article-aside-card { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; }
.article-aside-card p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
.article-aside-card .section-label { margin-bottom: 0.75rem; }
.article-aside-card .cta-row { margin-top: 1.1rem; }
.article-aside-card .btn { width: 100%; }
.sources { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--cream-warm); border-left: 3px solid var(--hazel); }
.prose .sources h2 { font-size: 1.35rem; margin: 0 0 0.6rem; }
.sources > p { font-size: 0.92rem; margin-bottom: 1rem; }
.prose .sources ul { margin-bottom: 0; }
.prose .sources li { padding-left: 0; margin-bottom: 0.7rem; display: grid; gap: 0.1rem; }
.prose .sources li::before { display: none; }
.sources li a { justify-self: start; font-weight: 600; }
.sources li span { font-size: 0.88rem; color: var(--ink-mute); }
@media (max-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; order: -1; }
  .article-aside-card { display: none; }
}

/* ---- Alloggi nella pagina della struttura ---- */
.unit-cards { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.unit-card { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1.25rem 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.unit-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--shell); }
.unit-card:hover .property-card-img { transform: scale(1.05); }
.unit-card .unit-guests { margin-bottom: 0.4rem; }
.unit-card .unit-name { margin-bottom: 0.5rem; }
.unit-card .unit-name a { transition: color var(--t-fast) var(--ease); }
.unit-card .unit-name a:hover { color: var(--accent); }
.unit-card .unit-text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.9rem; }
.unit-cards--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); border-top: 0; margin-bottom: 0.5rem; }
.unit-cards--wide .unit-card { border-top: 1px solid var(--ink); border-bottom: 0; }
.unit-cards--wide .unit-card:only-child { grid-column: 1 / -1; max-width: 46rem; }
@media (max-width: 900px) {
  .unit-cards--wide { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .unit-card { grid-template-columns: 104px minmax(0, 1fr); gap: 1rem; align-items: start; }
  .unit-card-media { aspect-ratio: 1 / 1; }
  .unit-card .unit-text { display: none; }
}
.unit-chips a { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.unit-chips li:has(a) { transition: border-color var(--t-fast) var(--ease); }
.unit-chips li:has(a):hover { border-color: var(--accent); }
.cin-note { display: block; margin-top: 0.35rem; letter-spacing: 0; }

/* ---- Galleria con meno di cinque foto ---- */
.gallery-grid--4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery-grid--4 .gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-grid--3 { grid-template-columns: 2fr 1fr; }
.gallery-grid--2 { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(220px, 26vw, 340px); }
.gallery-grid--2 .gallery-item:first-child { grid-row: auto; }
@media (max-width: 768px) {
  .gallery-grid--4 { grid-template-columns: 1fr 1fr; }
  .gallery-grid--4 .gallery-item:nth-child(4) { grid-column: 1 / -1; }
}

/* ---- Fascia scura: quattro voci sempre in riga piena ---- */
@media (max-width: 480px) {
  .amenity-features--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Footer: riga legale ---- */
.footer-legal { max-width: var(--max); margin: 1.25rem auto 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.8rem; }
.footer-legal a { color: rgba(250, 245, 236, 0.72); border-bottom: 1px solid rgba(250, 245, 236, 0.25); padding: 0.2rem 0; }
.footer-legal a:hover { color: var(--cream); border-color: currentColor; }
.footer-links { display: grid; gap: 0.15rem; }

/* ---- Menu con sei voci ---- */
@media (max-width: 1280px) {
  .site-nav { gap: 1.25rem; }
  .site-nav a { letter-spacing: 0.14em; }
}
@media (max-width: 1120px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}

/* ---- Dopo la misura di revisione-sito sul sito multipagina (05/10) ---- */
/* R03: su telefono la griglia dei fatti resta a due colonne, quindi l'elemento
   dispari finale occupa la riga intera anche lì. */
@media (max-width: 640px) {
  .reason-item--full { grid-column: 1 / -1; }
}
/* R15: velo scuro in alto, perché logo e menu si leggano anche sulle foto chiare. */
.page-hero-overlay { background-image: linear-gradient(to bottom, rgba(14, 22, 18, 0.62) 0, rgba(14, 22, 18, 0.28) 110px, rgba(14, 22, 18, 0) 210px), linear-gradient(to top, rgba(14, 22, 18, 0.78) 0%, rgba(14, 22, 18, 0.25) 65%, rgba(14, 22, 18, 0.1) 100%); }
.hero-overlay { background-image: linear-gradient(to bottom, rgba(14, 22, 18, 0.55) 0, rgba(14, 22, 18, 0.22) 110px, rgba(14, 22, 18, 0) 210px), linear-gradient(to top, rgba(14, 22, 18, 0.82) 0%, rgba(14, 22, 18, 0.3) 45%, rgba(14, 22, 18, 0.1) 100%), linear-gradient(to right, rgba(14, 22, 18, 0.35) 0%, transparent 60%); }

/* ---- Dopo la revisione indipendente del 06/10 ---- */
/* Briciole: testo continuo; il separatore è legato alle voci con spazi indivisibili,
   quindi non resta mai da solo né a fine né a inizio riga. */
.breadcrumb { display: block; line-height: 1.7; }
.crumb-sep { color: var(--ink-mute); opacity: 0.7; }
/* «check-out» non va a capo sul trattino. */
.nobr { white-space: nowrap; }
/* CTA del menu aperto: lo stesso colore delle altre CTA. */
.mobile-menu .mobile-menu-cta { background: var(--accent); color: var(--cream); box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), 0.5); }
.mobile-menu .mobile-menu-cta:hover,
.mobile-menu .mobile-menu-cta.active { background: var(--accent-d); color: var(--cream); }
/* Pulsanti che vanno su due righe: le righe non si toccano, l'altezza resta quella di prima. */
.btn:not(.btn-block) { line-height: 1.25; padding-block: 0.9rem; text-align: center; }
/* Celle affiancate (schede, servizi): ogni cella parte dall'alto, con lo stesso spazio
   fra titolo e testo in tutte (terza revisione del 06/10). */
.reason-item,
.service-row { align-self: stretch; }
/* Foto panoramiche accanto al testo: riquadro orizzontale. */
.split-photo--wide img { aspect-ratio: 3 / 2; }
.article-ask { margin-top: 2rem; }
/* R11 e R15: velo più scuro dove il testo sta sulla foto, stesso stile. */
.page-hero-overlay { background-image: linear-gradient(to bottom, rgba(14, 22, 18, 0.74) 0, rgba(14, 22, 18, 0.45) 130px, rgba(14, 22, 18, 0) 240px), linear-gradient(to top, rgba(14, 22, 18, 0.88) 0%, rgba(14, 22, 18, 0.62) 45%, rgba(14, 22, 18, 0.25) 80%, rgba(14, 22, 18, 0.1) 100%); }
.page-hero-content,
.hero-content,
.hero-meta,
.destination-content { text-shadow: 0 1px 14px rgba(14, 22, 18, 0.5); }
.destination-overlay { background: linear-gradient(to top, rgba(14, 22, 18, 0.9) 0%, rgba(14, 22, 18, 0.62) 45%, rgba(14, 22, 18, 0.25) 75%, rgba(14, 22, 18, 0.08) 100%); }
@media (max-width: 700px) {
  .page-hero-overlay { background-image: linear-gradient(to bottom, rgba(14, 22, 18, 0.66) 0, rgba(14, 22, 18, 0.3) 110px, rgba(14, 22, 18, 0.2) 210px), linear-gradient(to top, rgba(14, 22, 18, 0.9) 0%, rgba(14, 22, 18, 0.72) 55%, rgba(14, 22, 18, 0.38) 100%); }
  .destination-overlay { background: linear-gradient(to top, rgba(14, 22, 18, 0.92) 0%, rgba(14, 22, 18, 0.72) 55%, rgba(14, 22, 18, 0.35) 100%); }
}

/* ---- Dopo la seconda revisione del 06/10 ---- */
/* Il numero di telefono non va mai a capo. */
a[href^="tel:"] { white-space: nowrap; }
/* Pulsanti su due righe: le righe hanno la stessa lunghezza. */
.btn { text-wrap: balance; }
/* Fascia scura della home: titoli delle quattro voci alla stessa altezza. */
@supports (grid-template-rows: subgrid) {
  .amenity-feature { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
}
/* «Apri in Google Maps» va a capo intero, non parola per parola. */
.map-caption { flex-wrap: wrap; row-gap: 0.25rem; }
.map-open { white-space: nowrap; }
/* Etichette dei dati in sintesi: dentro la cella anche a 320 px. */
@media (max-width: 400px) {
  .property-quickfact { padding-inline: 0.25rem; }
  .property-quickfact-label { font-size: 0.56rem; letter-spacing: 0.04em; }
}
/* Sezioni di solo testo: dopo l'introduzione lo stesso spazio degli altri paragrafi. */
.container--narrow > .section-head { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
/* Pulsante WhatsApp su schermi larghi: solo l'icona, non copre gallerie e schede. */
@media (min-width: 769px) {
  .wa-fab { padding: 0.4rem; }
  .wa-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* Barra «Verifica le date» su telefono: più bassa, copre meno testo. */
@media (max-width: 768px) {
  .sticky-book-bar { padding: 0.45rem var(--gutter) calc(0.45rem + env(safe-area-inset-bottom)); }
  .sticky-book-bar .btn { padding-block: 0.75rem; }
  .sticky-book-bar.is-visible ~ .wa-fab { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
/* Home su telefono: velo più scuro dove stanno l'occhiello e il sottotitolo. */
@media (max-width: 700px) {
  .hero-overlay { background-image: linear-gradient(to bottom, rgba(14, 22, 18, 0.6) 0, rgba(14, 22, 18, 0.35) 120px, rgba(14, 22, 18, 0.35) 100%), linear-gradient(to top, rgba(14, 22, 18, 0.9) 0%, rgba(14, 22, 18, 0.62) 55%, rgba(14, 22, 18, 0.2) 100%); }
  .hero-eyebrow { font-weight: 600; }
}
.map-open { margin-left: 0; }
/* Occhielli su telefono: il filetto sta sopra il testo, il testo su una riga. */
@media (max-width: 480px) {
  .hero-eyebrow,
  .page-hero-eyebrow { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .hero-eyebrow { white-space: nowrap; letter-spacing: 0.12em; font-size: 0.64rem; }
  .page-hero-eyebrow { letter-spacing: 0.18em; }
}

/* ---- Dopo la terza revisione del 06/10 ---- */
/* Apertura delle sezioni allineate a sinistra: il testo d'introduzione parte dal margine. */
.section-head--left .section-text { margin-inline: 0; }
/* Etichetta in basso nell'apertura della home: stesso margine del titolo. */
.hero-meta { left: 0; right: 0; padding-inline: var(--gutter); }
/* Briciole su telefono: una riga sola, senza scorrimento, da «Home» alla pagina madre.
   La pagina corrente non si mostra (il titolo è subito sopra) ma resta per i lettori di
   schermo. Se il percorso non entra, al suo posto compare la versione corta con le voci
   intermedie chiuse in «…»: la corta ha larghezza di base zero, quindi il percorso intero
   va a capo solo quando da solo non sta nella riga, e la riga in più resta fuori dal riquadro. */
.crumb-short { display: none; }
@media (max-width: 640px) {
  .breadcrumb { position: relative; display: flex; flex-wrap: wrap; gap: 0; height: 1.7em; overflow: hidden; overflow: clip; }
  .crumb-trail { order: 2; flex: 9999 0 auto; white-space: nowrap; }
  .crumb-short { display: block; order: 1; flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; white-space: nowrap; }
  .crumb-sep--last { display: none; }
  .crumb-current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---- Dopo la telefonata dell'08/10: marchio in testata e nel piè di pagina ---- */
/* La «N» di Nunzia accanto al nome, su tutte le pagine. L'altezza è fissa e la larghezza
   segue le proporzioni del file: con il logo originale non cambia nulla qui. */
.site-logo { gap: 0.7rem; min-width: 0; }
.site-logo-mark { height: 50px; width: auto; max-width: 160px; flex-shrink: 0; object-fit: contain; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.footer-brand .footer-logo { margin-bottom: 0; }
.footer-logo-mark { height: 52px; width: auto; max-width: 170px; flex-shrink: 0; object-fit: contain; }
@media (max-width: 640px) {
  .site-logo { gap: 0.55rem; }
  .site-logo-mark { height: 40px; }
}
@media (max-width: 360px) {
  .site-logo-mark { height: 36px; }
  .site-logo-text { font-size: 1.4rem; }
}

/* ---- Secondo giro dell'08/10, dopo la revisione ---- */
/* Testo d'apertura (due-quattro righe): righe di lunghezza simile, mai una parola sola in fondo. */
.hero-subtitle,
.page-hero-text { text-wrap: balance; }
.amenity-feature-text { text-wrap: pretty; }
/* Schede degli altri alloggi affiancate: il testo parte alla stessa quota in tutte. */
.unit-cards--wide .unit-card { align-items: start; }
/* Fascia scura su telefono: due colonne larghe uguali, dentro il margine anche a 320 px
   (il numero di telefono, che non va a capo, allargava la seconda colonna oltre lo schermo). */
@media (max-width: 480px) {
  .amenity-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .amenity-feature { padding-inline: 0.6rem; }
  .amenity-feature-text { font-size: 0.8rem; }
}

/* ---- Terzo giro dell'08/10 ---- */
/* Corsivo d'apertura delle sezioni: come i testi d'apertura, mai una parola sola in fondo. */
.section-text-lead { text-wrap: balance; }
/* Testata dopo lo scorrimento: fondo pieno, il testo che passa sotto non si legge. */
.site-header.scrolled,
.site-header.hero-header.scrolled { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Piè di pagina su telefono: l'ultimo elenco in una colonna sola, senza la cella vuota. */
@media (max-width: 600px) {
  .footer-grid > div:last-child .footer-links { grid-template-columns: 1fr; gap: 0.15rem; }
}
/* CIR e CIN: etichetta e codice sulla stessa riga; su telefono una coppia per riga. */
.code-pair { white-space: nowrap; }
@media (max-width: 480px) {
  .code-pair { display: block; }
  .code-sep { display: none; }
}
/* Guide: dopo una tabella lo stesso respiro che c'è dopo un elenco. */
.article .table-wrap { margin: 0.5rem 0 1.5rem; }
/* Riquadri con testi lunghi: accanto al testo stanno a metà altezza, così il vuoto si divide
   sopra e sotto; su telefono vanno uno sotto l'altro. */
.split > .reason-grid--stack { align-self: center; }
@media (max-width: 640px) {
  .reason-grid--stack { grid-template-columns: 1fr; }
}

/* ---- Ritocchi finali dell'08/10 ---- */
/* Menu da telefono: il pannello copre tutto lo schermo sotto la testata, a ogni altezza;
   le voci restano dove sono e, se lo schermo è basso, il pannello scorre. */
.mobile-menu { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); max-height: none; }

/* ---- Glicine (21/10, variante A) ----
   Nunzia, 20/10: «bisogna abbassare ancora la tonalità del viola Gradirei un Glicine».
   Due toni della stessa tinta (hue ~265): il glicine chiaro (--glicine) è per le superfici
   (pulsanti, selezione del testo), con il testo scuro --ink; il glicine scuro (--accent, --accent-d)
   è per link, etichette, corsivi, icone e filetti, e regge il testo sul fondo crema e sulle fasce chiare.
   Il testo crema sul glicine chiaro non regge (sotto 3:1): sui pulsanti il testo è --ink. */
:root {
  --glicine: #c0abdd;
  --glicine-h: #b39cd5;
  --glicine-line: #8d74b6;
  --glicine-rgb: 192, 171, 221;
}
::selection { background: var(--glicine); color: var(--ink); }
.nav-cta,
.site-header.hero-header .nav-cta,
.site-header.hero-header.scrolled .nav-cta { background: var(--glicine); border-color: var(--glicine-line); color: var(--ink) !important; }
.nav-cta:hover,
.site-header.hero-header .nav-cta:hover { background: var(--glicine-h) !important; border-color: var(--glicine-line); }
.btn-primary { background: var(--glicine); border-color: var(--glicine-line); color: var(--ink); }
.btn-primary:hover { background: var(--glicine-h); border-color: var(--glicine-line); box-shadow: 0 14px 34px -12px rgba(var(--glicine-rgb), 0.75); }
.mobile-menu .mobile-menu-cta { background: var(--glicine); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(var(--glicine-rgb), 0.75); }
.mobile-menu .mobile-menu-cta:hover,
.mobile-menu .mobile-menu-cta.active { background: var(--glicine-h); color: var(--ink); }

/* ---- Prenotazione: il motore Beddy incorporato (/prenota/) ---- */
/* Testata corta: il motore deve entrare quasi tutto nel primo schermo, anche sul telefono. */
.page-hero--prenota { min-height: 0; height: auto; padding: calc(var(--header-h) + 1.5rem) 0 1.75rem; }
.prenota-motore { padding: 0 0 2rem; scroll-margin-top: var(--header-h); }
/* L'iframe ha uno scorrimento suo: alto quanto lo schermo meno la testata fissa. */
.beddy-frame { position: relative; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); min-height: 560px; background: var(--paper); }
.beddy-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.beddy-frame-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); text-align: center; color: var(--ink-mute); }
.prenota-aiuto { max-width: var(--max); margin: 1.25rem auto 0; padding: 0 var(--gutter); }

/* ---- Prenotazione sopra la pagina: il motore Beddy della casa (main.js, NunziaBeddy) ---- */
/* Nascosto ma a grandezza piena mentre si carica: un iframe a misura zero partirebbe storto. */
.beddy-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; background: var(--cream); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--t-fast) var(--ease), visibility 0s linear var(--t-fast); }
.beddy-overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity var(--t-fast) var(--ease); }
.beddy-overlay-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: 0.5rem var(--gutter); background: var(--ink); color: var(--cream); }
.beddy-overlay-title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beddy-tax-note { flex: none; margin: 0; max-width: none; padding: 0.6rem var(--gutter); background: var(--cream); color: var(--ink); font: 400 0.9rem/1.4 var(--font-body); }
.beddy-overlay-close { flex: none; padding: 0.55rem 1.1rem; border: 1px solid rgba(250, 245, 236, 0.5); border-radius: 999px; background: transparent; color: var(--cream); font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.beddy-overlay-close:hover, .beddy-overlay-close:focus-visible { background: var(--cream); color: var(--ink); }
.beddy-overlay .beddy-frame { flex: 1; height: auto; min-height: 0; }
html.beddy-open, html.beddy-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .beddy-overlay, .beddy-overlay.is-open { transition: none; } }

/* Lingua: sempre disponibile anche nel pannello del menu da telefono. */
.language-switcher { display:inline-flex; align-items:center; gap:.3rem; white-space:nowrap; font-size:.8rem; }
.language-switcher a { min-width:32px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
.language-switcher a[aria-current="true"] { text-decoration:underline; text-underline-offset:5px; }
.mobile-menu .language-switcher { margin-top:1rem; }
.mobile-menu .language-switcher a { display:inline-flex; width:auto; padding:.5rem; }
/* English labels need their own space; preserve the logo and switch to the mobile menu
   before the navigation can collide with it. */
.site-logo { flex-shrink:0; }
.site-nav { gap:1.1rem; margin-left:1.5rem; }
.site-nav > a { white-space:nowrap; letter-spacing:.07em; }
.site-nav .nav-cta { padding:.75rem 1rem; }
.mobile-menu { max-height:calc(100dvh - var(--header-h)); overflow-y:auto; overscroll-behavior:contain; padding-bottom:calc(1.5rem + env(safe-area-inset-bottom)); }
@media (max-width:1199px) {
  .site-nav { display:none; }
  .hamburger { display:flex; }
}
