/* La Casa dei Gemelli · Vico San Mattia 1, Napoli
   Concept v2 «Il modello di Domenico» · THK / OnlinePerTutti · 23/09/2026 */

/* ── Font, serviti da noi ─────────────────────────────── */
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/crimson-pro-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/crimson-pro-latin-wght-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/mulish-latin-wght-normal.woff2') format('woff2');
}

/* ── Token ────────────────────────────────────────────── */
:root {
  --crema: #F3F2ED;
  --carta: #FFFFFF;
  --blu: #0E4266;
  --notte: #0B2E47;
  --testo: #394B55;
  --grigio: #626E74;
  --filetto: #D8D8D2;
  --oro: #A8843F;         /* oro antico: filetti, icone, cifre grandi. Più oro che blu (gusto di Domenico): il blu resta ai comandi */
  --oro-luce: #CFB27D;    /* lo stesso oro schiarito: solo sopra le foto e sui fondi scuri */
  --velo: 11, 46, 71;
  --inchiostro: 20, 17, 14;   /* il velo caldo della foto d'apertura */

  --serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* scala degli spazi: 8 · 16 · 24 · 40 · 64 · 96 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --sezione: clamp(64px, 1.5rem + 5vw, 112px);
  --t-h2: clamp(1.95rem, 1.35rem + 1.6vw, 2.75rem);
  --segno: 40px;

  --gutter: 16px;
  --testata: 64px;
  --stringi: .84;
  --h-foto: clamp(300px, 86vw, 440px);
  --h-striscia: 86px;
  --ombra: 0 1px 2px rgba(var(--velo), .05), 0 14px 36px -14px rgba(var(--velo), .22);
}
@media (min-width: 700px) {
  :root { --gutter: 24px; --testata: 72px; --stringi: .83; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --testata: 84px; --stringi: .81; }
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--crema);
  color: var(--testo);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blu); text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blu); color: var(--crema); }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--testata) + 12px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 32px; height: 32px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--14 { width: 14px; height: 14px; }
.ico--16 { width: 16px; height: 16px; }
.ico--20 { width: 20px; height: 20px; }
.ico--24 { width: 24px; height: 24px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.salta {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--notte); color: #fff; padding: 12px 18px; border-radius: 4px;
  font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.salta:focus { transform: none; }

.gabbia { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.larga  { width: min(100% - 2 * var(--gutter), 1340px); margin-inline: auto; }

/* ── Tipografia ───────────────────────────────────────── */
/* ogni sezione si apre con lo stesso gesto: un filetto d'oro prima dell'occhiello */
.occhiello {
  display: flex; align-items: center; gap: 12px;
  font: 700 .75rem/1.3 var(--sans);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--grigio);
  margin: 0 0 var(--s2);
}
.occhiello::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--oro); }
.occhiello--centro { justify-content: center; }
.occhiello--centro::after { content: ""; flex: none; width: 28px; height: 1px; margin-left: -.2em; background: var(--oro); }
.occhiello--chiaro { color: rgba(243, 242, 237, .88); }
.occhiello--chiaro::before, .occhiello--chiaro::after { background: var(--oro-luce); }
.titolo {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.08; letter-spacing: -.01em;
  color: var(--notte);
  margin: 0 0 var(--s3);
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1;
}
.titolo--centro { text-align: center; }
.sezione p { text-wrap: pretty; }
@media (min-width: 400px) { .unito { white-space: nowrap; } }

/* ── Pulsanti ─────────────────────────────────────────── */
.bottone {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--blu); color: #fff;
  font: 600 .9375rem/1.2 var(--sans);
  text-decoration: none; text-align: center;
  border-radius: 4px;
}
.bottone::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--notte); opacity: 0;
  transition: opacity .25s ease;
}
.bottone:hover::before { opacity: 1; }
.bottone .ico { transition: transform .25s var(--ease); }
.bottone:hover .ico { transform: translateX(3px); }
.bottone--maiuscolo {
  min-height: 52px; padding: 0 28px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
@media (max-width: 699px) {
  .bottone--maiuscolo { text-transform: none; letter-spacing: 0; font-size: .9375rem; padding: 0 20px; }
}
.bottone--chiaro { background: var(--crema); color: var(--notte); }
.bottone--chiaro::before { background: #fff; }
.bottone--chiaro:focus-visible { outline-color: var(--crema); }

.collegamento {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--notte); text-decoration: none; font-weight: 600;
}
.collegamento__ico { width: 26px; height: 26px; color: var(--blu); }
.collegamento__testo {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 2px 8px 0;
  border-bottom: 1px solid var(--notte);
}
/* al passaggio un filo d'oro scorre sulla sottolineatura */
.collegamento__testo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--oro); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.collegamento:hover .collegamento__testo::after,
.collegamento:focus-visible .collegamento__testo::after { transform: scaleX(1); }
.collegamento__testo .ico { color: var(--blu); transition: transform .25s var(--ease); }
.collegamento:hover .collegamento__testo .ico { transform: translate(2px, -2px); }
.collegamento--piccolo { font-size: .875rem; }

/* ── Testata ──────────────────────────────────────────── */
.testata {
  position: sticky; top: 0; z-index: 50;
  height: var(--testata);
  pointer-events: none;
}
.testata::before {
  content: ""; position: absolute; inset: 0;
  background: var(--crema);
  transform-origin: 50% 0;
  transition: transform .35s var(--ease);
}
.testata::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
  background: linear-gradient(rgba(var(--velo), .10), rgba(var(--velo), 0));
  opacity: 0;
  transition: opacity .35s ease, transform .35s var(--ease);
}
.stretta .testata::before { transform: scaleY(var(--stringi)); }
.stretta .testata::after { opacity: 1; transform: translateY(calc(var(--testata) * (var(--stringi) - 1))); }
.testata__barra {
  position: relative;
  width: min(100% - 2 * var(--gutter), 1200px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  transition: transform .35s var(--ease);
}
.stretta .testata__barra { transform: translateY(calc(var(--testata) * (var(--stringi) - 1) / 2)); }
.testata a, .testata button, .testata select, .testata summary, .lingue__lista, .menu { pointer-events: auto; }

/* il marchio composto come quello di un albergo: nome spaziato, sotto il sottotitolo fra due filetti d'oro */
.marchio {
  display: flex; flex-direction: column; align-items: center;
  color: var(--notte); text-decoration: none; line-height: 1;
  margin-right: auto;
}
.marchio__nome {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.125rem; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
  margin-right: -.07em;
}
.marchio__sotto {
  align-self: stretch;
  display: flex; align-items: center; gap: 7px;
  margin-top: 6px;
  font: 700 .5625rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--notte); white-space: nowrap;
}
.marchio__sotto::before, .marchio__sotto::after {
  content: ""; flex: 1 1 0; min-width: 8px; height: 1px; background: var(--oro);
}
.marchio__sotto::before { margin-right: .24em; }

.menu__lista { list-style: none; margin: 0; padding: 0; }
.menu__lista a { color: var(--notte); text-decoration: none; }

.testata__azioni { display: flex; align-items: center; gap: 8px; }
.bottone--testata { display: none; min-height: 44px; padding: 0 18px; font-size: .875rem; }
.tondo-wa {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blu); color: #fff;
}
.tondo-wa .ico { width: 24px; height: 24px; }
.menu-bottone {
  display: none; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  background: transparent; border: 1px solid rgba(var(--velo), .2); border-radius: 22px;
  color: var(--notte); font-weight: 700; font-size: .875rem;
}
.js .menu-bottone { display: inline-flex; }
/* due linee che, a menu aperto, si incrociano in una × */
.menu-bottone__linee { position: relative; display: block; flex: none; width: 16px; height: 16px; }
.menu-bottone__linee i {
  position: absolute; left: 1px; right: 1px; top: 7.25px; height: 1.5px; border-radius: 1px;
  background: currentColor; transition: transform .3s var(--ease);
}
.menu-bottone__linee i:first-child { transform: translateY(-3px); }
.menu-bottone__linee i:last-child { transform: translateY(3px); }
.menu-bottone[aria-expanded="true"] { background: var(--notte); border-color: var(--notte); color: #fff; }
.menu-bottone[aria-expanded="true"] .menu-bottone__linee i:first-child { transform: rotate(45deg); }
.menu-bottone[aria-expanded="true"] .menu-bottone__linee i:last-child { transform: rotate(-45deg); }
@media (max-width: 374px) {
  .marchio__nome { font-size: 1rem; letter-spacing: .06em; margin-right: -.06em; }
  .marchio__sotto { font-size: .5rem; letter-spacing: .2em; }
  .marchio__sotto::before { margin-right: .2em; }
  .testata__barra { gap: 12px; }
  .js .menu-bottone { width: 44px; padding: 0; justify-content: center; }
  .menu-bottone__testo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* menu del telefono: si apre come un sipario, la pagina sotto si vela */
@media (max-width: 1023px) {
  .menu { display: none; }
  .js .menu {
    display: block;
    position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    background: var(--crema);
    border-top: 1px solid var(--filetto);
    border-bottom: 1px solid var(--filetto);
    box-shadow: 0 24px 40px -24px rgba(var(--velo), .35);
    padding: 8px var(--gutter) 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .stretta .js .menu, .js.stretta .menu { top: calc(100% + var(--testata) * (var(--stringi) - 1) / 2); }
  .js.menu-aperto .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js body::after {
    content: ""; position: fixed; inset: 0; z-index: 40;
    background: rgba(var(--velo), .32); pointer-events: none;
    opacity: 0; transition: opacity .25s ease;
  }
  .js.menu-aperto body::after { opacity: 1; }
  .menu__lista a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 0;
    font: 400 1.625rem/1.2 var(--serif); letter-spacing: -.005em;
    border-bottom: 1px solid var(--filetto);
  }
  .menu__lista li:last-child a { border-bottom: 0; }
  .menu__lista a::after {
    content: ""; flex: none; width: 18px; height: 18px; background: var(--oro);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h10.5M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h10.5M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: translateX(-6px); transition: transform .3s var(--ease);
  }
  .menu__lista a:hover::after, .menu__lista a:focus-visible::after, .menu__lista a:active::after { transform: none; }
  .js .menu__lista li { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .4s var(--ease); }
  .js.menu-aperto .menu__lista li { opacity: 1; transform: none; }
  .js.menu-aperto .menu__lista li:nth-child(2) { transition-delay: 40ms; }
  .js.menu-aperto .menu__lista li:nth-child(3) { transition-delay: 80ms; }
  .js.menu-aperto .menu__lista li:nth-child(4) { transition-delay: 120ms; }
  .js.menu-aperto .menu__lista li:nth-child(5) { transition-delay: 160ms; }
}
@media (min-width: 700px) {
  .marchio__nome { font-size: 1.3rem; }
  .marchio__sotto { font-size: .625rem; }
}
@media (min-width: 1024px) {
  .testata__barra { gap: 24px; }
  .marchio__nome { font-size: 1.375rem; }
  .menu { margin-left: auto; }
  .menu__lista { display: flex; gap: clamp(20px, 2.4vw, 40px); }
  .menu__lista a {
    position: relative; display: block; padding: 6px 0;
    font: 400 1.0625rem/1.2 var(--serif);
  }
  .menu__lista a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px;
    background: var(--oro); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .3s var(--ease);
  }
  .menu__lista a:hover::after, .menu__lista a:focus-visible::after { transform: scaleX(1); }
  .marchio { margin-right: 0; }
  .tondo-wa, .menu-bottone, .js .menu-bottone { display: none; }
  .bottone--testata { display: inline-flex; }
  /* fra il menu e il pulsante, un filetto verticale come nel modello */
  .testata__azioni::before {
    content: ""; flex: none; width: 1px; height: 26px; background: var(--filetto);
    margin-right: clamp(12px, 1.6vw, 24px);
  }
}
@media (min-width: 1200px) {
  .marchio__nome { font-size: 1.5rem; }
  .menu__lista a { font-size: 1.125rem; }
}

/* ── 1 · Apertura ─────────────────────────────────────── */
.apertura { position: relative; }
.apertura__scena {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--h-foto) auto;
}
.apertura__foto {
  grid-row: 1; grid-column: 1;
  position: relative; overflow: hidden;
  background: #cfc6b8;
}
/* un solo velo, caldo, e solo dove c'è il testo: la stanza resta luminosa */
.apertura__foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--inchiostro), .8) 0%, rgba(var(--inchiostro), .5) 30%, rgba(var(--inchiostro), .12) 58%, rgba(var(--inchiostro), 0) 76%);
}
.apertura__cornice { position: absolute; inset: 0; }
.apertura__img {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
}
.apertura__testo {
  grid-row: 1; grid-column: 1; align-self: end;
  position: relative; z-index: 1;
  padding: 0 var(--gutter) var(--s3);
  color: #fff;
  text-shadow: 0 1px 18px rgba(var(--inchiostro), .4);
}
.apertura__titolo { margin: 0; }
.apertura__titolo .occhiello { margin-bottom: 12px; }
.apertura__nome {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 1.55rem + 3.7vw, 5.25rem);
  line-height: 1; letter-spacing: -.015em;
  color: #fff;
}
.apertura__corsivo {
  margin: 12px 0 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 1.02rem + .72vw, 1.65rem);
  line-height: 1.25;
  color: rgba(255, 255, 255, .95);
}
.apertura__info { grid-row: 2; padding: var(--s3) var(--gutter) 0; }
.apertura__frase { margin: 0 0 var(--s1); font-size: 1rem; line-height: 1.5; color: var(--notte); }
.apertura__voto {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0;
  font-size: .875rem; font-weight: 600; color: var(--testo);
}
.apertura__voto .ico { align-self: center; color: var(--oro); }
/* il 4,87 composto in Crimson, come la cifra delle recensioni */
.apertura__num { font: 600 1.25rem/1 var(--serif); color: var(--notte); font-variant-numeric: lining-nums; letter-spacing: .01em; }
.apertura__voto .punto { color: var(--oro); font-weight: 700; }
.apertura__cta { display: none; margin: 0; }

@media (min-width: 700px) {
  .apertura__scena {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; justify-content: center;
    min-height: clamp(520px, 40vw, 640px);
    padding: 48px max(var(--gutter), (100% - 1200px) / 2) 104px;
  }
  .apertura__foto { position: absolute; inset: 0; z-index: -1; }
  .apertura__foto::after {
    background:
      radial-gradient(115% 95% at 0% 48%, rgba(var(--inchiostro), .64) 0%, rgba(var(--inchiostro), .42) 34%, rgba(var(--inchiostro), .08) 62%, rgba(var(--inchiostro), 0) 74%),
      linear-gradient(0deg, rgba(var(--inchiostro), .32) 0%, rgba(var(--inchiostro), 0) 32%);
  }
  .apertura__img { height: 115%; object-position: 50% 42%; }
  .apertura__testo, .apertura__info { padding: 0; max-width: 620px; align-self: auto; }
  .apertura__testo { max-width: 800px; }
  .apertura__info { color: #fff; text-shadow: 0 1px 18px rgba(var(--inchiostro), .45); }
  .apertura__titolo .occhiello { margin-bottom: var(--s2); font-size: .8125rem; letter-spacing: .24em; }
  .apertura__corsivo { margin-top: var(--s2); }
  .apertura__frase { margin: var(--s3) 0 var(--s1); max-width: 28em; color: rgba(255, 255, 255, .93); font-size: 1.0625rem; text-wrap: balance; }
  .apertura__voto { color: rgba(255, 255, 255, .9); font-size: .9375rem; }
  .apertura__num { color: #fff; }
  .apertura__voto .ico, .apertura__voto .punto { color: var(--oro-luce); }
  .apertura__cta { display: block; margin-top: 32px; }
}
@media (min-width: 1024px) {
  .apertura__nome { letter-spacing: -.02em; }
}

/* ── La barra delle date ──────────────────────────────── */
.barra-posto {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--gutter), 1200px);
  margin: 20px auto 0;
}
/* una scheda da albergo: icone d'oro, etichette spaziate, i valori in Crimson */
.barra {
  background: var(--carta);
  border: 1px solid rgba(var(--velo), .06);
  border-radius: 6px;
  box-shadow: var(--ombra);
  padding: 16px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px; row-gap: 16px;
}
.campo {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px; row-gap: 4px; align-items: center;
  min-width: 0;
}
.campo__icona { width: 20px; height: 20px; color: var(--oro); }
.campo__etichetta {
  font: 700 .6875rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--grigio);
}
.campo__riga {
  grid-column: 1 / -1;
  position: relative;
  display: flex; align-items: center;
  min-height: 36px;
  border-bottom: 1px solid var(--filetto);
}
/* il filo blu si disegna sotto il campo quando lo tocchi (solo transform) */
.campo__riga::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--blu);
  transform: scale(0, .5); transform-origin: 0 100%;
  transition: transform .35s var(--ease);
  pointer-events: none;
}
.campo:hover .campo__riga::after { transform: scale(.18, .5); }
.campo:focus-within .campo__riga::after { transform: none; }
.campo__testo { display: none; }
.campo__giu { position: absolute; right: 0; top: 50%; margin-top: -8px; color: var(--grigio); pointer-events: none; }
.campo--data .campo__giu { display: none; }
.js .campo--data .campo__giu { display: block; }
.campo__input {
  width: 100%; min-width: 0; min-height: 34px;
  border: 0; background: transparent; padding: 4px 0;
  color: var(--notte); font-size: 1rem; /* 16 px: sotto, iPhone ingrandisce la pagina al tocco */
}
.campo__select {
  width: 100%; min-height: 34px;
  -webkit-appearance: none; appearance: none;
  border: 0; border-radius: 0; background: transparent;
  padding: 4px 24px 4px 0; margin: 0;
  color: var(--notte); font-size: 1rem; cursor: pointer;
}
.js .campo__select { font: 400 1.1875rem/1.3 var(--serif); } /* 19 px: iPhone non ingrandisce */
.campo__select:focus-visible { outline: none; }
.campo--ospiti { grid-column: 1 / -1; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 10px; }
.campo--ospiti .campo__riga { grid-column: auto; margin-left: 6px; }

/* con JS: il valore si legge in parole, il campo vero resta sotto */
.js .campo__testo {
  display: block; flex: 1; min-width: 0;
  padding: 5px 22px 5px 0;
  font: 400 1.1875rem/1.3 var(--serif); white-space: nowrap;
  color: var(--notte);
}
.js .campo__vuoto { font-style: italic; color: var(--grigio); }
.js .campo__lungo, .js .campo__corto { display: none; color: var(--notte); font-weight: 500; }
.js .ha-data .campo__vuoto { display: none; }
.js .ha-data .campo__corto { display: inline; }
.js .campo--data .campo__input {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
  background: var(--carta);
  -webkit-appearance: none; appearance: none;
}
.js .campo--data .campo__input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
/* scrivendo da tastiera il campo vero si vede, con le sue cifre */
.js.tastiera .campo--data:focus-within .campo__input { opacity: 1; }
.js.tastiera .campo--data:focus-within .campo__testo { visibility: hidden; }
.js.tastiera .campo--data .campo__input::-webkit-calendar-picker-indicator { opacity: .7; }
@media (pointer: coarse) {
  .js .campo--data .campo__riga { position: static; }
  .js .campo--data .campo__input { height: 100%; }
}

.barra__invia { grid-column: 1 / -1; order: 2; min-height: 52px; font-weight: 700; }

/* la firma: la notte fra due date — giorno d'oro, notte blu */
.firma {
  grid-column: 1 / -1; order: 1;
  padding-top: 16px; border-top: 1px solid var(--filetto);
  display: flex; flex-direction: column;
}
.firma__stato { order: 2; font-size: .875rem; line-height: 1.45; color: var(--testo); }
.firma__stato p { margin: 0; }
.js .firma__stato {
  min-height: calc(3 * 1.4 * 1.0625rem + 8px);
  display: flex; flex-direction: column;
}
.js .firma__stato > :first-child { margin-top: auto; }
.js .firma__stato > :last-child { margin-bottom: auto; }
.firma__testo { font: italic 400 1.0625rem/1.4 var(--serif); color: var(--notte); }
.firma__riepilogo strong { font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1; color: var(--notte); letter-spacing: .005em; }
.firma__riepilogo .sep { color: var(--oro); font-weight: 700; }
.firma__nota { color: var(--blu); font-weight: 700; }
.striscia { display: none; }
.js .striscia { display: block; position: relative; height: var(--h-striscia); margin: 2px 0 12px; }

.striscia__date, .striscia__binario, .striscia__sotto { position: absolute; left: 0; right: 0; }
.striscia__date { top: 0; height: 40px; }
.striscia__binario { top: 44px; height: 24px; }
.striscia__sotto { top: 72px; height: 14px; }
.striscia__binario::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--filetto);
}
.giorno {
  position: absolute; top: 0;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1; text-align: center; white-space: nowrap;
}
.giorno b { font: 700 .625rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grigio); }
.giorno i { font: 500 1.0625rem/1 var(--serif); font-style: normal; font-variant-numeric: lining-nums tabular-nums; color: var(--notte); margin-top: 4px; }
.giorno s { font: 700 .5625rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--grigio); margin-top: 3px; }
.giorno--vuoto b { margin-top: 20px; }
.mezzanotte { position: absolute; top: -4px; bottom: -4px; width: 1px; background: rgba(168, 132, 63, .5); }
.mezzanotte--dopo { opacity: .6; }
.giorno--dopo { opacity: .38; }
.notte, .mezza, .raccolta { position: absolute; top: 0; height: 24px; border-radius: 12px; }
.notte { background: var(--blu); }
.notte--fantasma { background: rgba(var(--velo), .055); border: 0; }
.mezza {
  top: 5px; height: 14px; border-radius: 8px;
  background: rgba(168, 132, 63, .22); border: 1px solid rgba(168, 132, 63, .75);
}
.mezza--fantasma { background: rgba(168, 132, 63, .10); border-color: rgba(168, 132, 63, .28); }
.raccolta {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--blu);
  background: repeating-linear-gradient(135deg, rgba(14, 66, 102, .10) 0 4px, rgba(14, 66, 102, 0) 4px 8px);
  font: 700 .6875rem/1 var(--sans); color: var(--blu); white-space: nowrap;
}
.etichetta {
  position: absolute; top: 0;
  font: 600 .6875rem/1.2 var(--sans); color: var(--grigio); white-space: nowrap;
}
.etichetta strong { color: var(--notte); font-weight: 700; }

@media (min-width: 700px) {
  .barra-posto { margin-top: -64px; }
  .barra { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; padding: 20px 24px; }
  .campo { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
  .campo__icona { grid-row: 1 / 3; width: 28px; height: 28px; }
  .campo__riga { grid-column: 2; }
  .campo--ospiti { grid-column: auto; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .campo--ospiti .campo__riga { grid-column: 2; margin-left: 0; }
  .js .ha-data .campo__corto { display: none; }
  .js .ha-data .campo__lungo { display: inline; }
}
/* tablet: la striscia a tutta larghezza, poi la frase a sinistra e il pulsante a misura a destra */
@media (min-width: 700px) and (max-width: 1023px) {
  .firma { display: contents; }
  .js .striscia { grid-column: 1 / -1; order: 1; margin: 30px 0 0; }
  .js .striscia::before {
    content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 1px;
    background: var(--filetto);
  }
  .firma__stato { grid-column: 1 / 3; order: 2; align-self: center; padding-right: 24px; }
  .js .firma__stato { height: auto; min-height: 52px; }
  .barra__invia { grid-column: 3; order: 3; justify-self: end; width: max-content; padding: 0 20px; }
  html:not(.js) .firma__stato { border-top: 1px solid var(--filetto); padding-top: 14px; }
}
@media (min-width: 1024px) {
  .barra {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    column-gap: clamp(24px, 2.6vw, 40px);
    padding: 24px 28px 16px;
    align-items: center;
  }
  .barra__invia { grid-column: auto; order: 0; min-height: 52px; padding: 0 26px; }
  .firma {
    order: 0; margin-top: 4px; padding-top: 16px;
    display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); column-gap: 40px;
    align-items: start;
  }
  .firma__stato { order: 0; }
  .js .firma__stato { min-height: 0; height: var(--h-striscia); padding-top: 4px; overflow: hidden; }
  .firma__stato .firma__testo { max-width: 16em; }
  .js .striscia { margin: 0; }
  .campo__icona { width: 30px; height: 30px; }
}

/* ── Sezioni ──────────────────────────────────────────── */
.sezione { padding-block: var(--sezione); }
.casa { padding-top: clamp(48px, 1rem + 4vw, 80px); }

/* 2 · La casa */
.casa__griglia { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
.casa__foto { order: 2; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #d9d2c6; }
.casa__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 55%; }
.casa__testo p:not(.occhiello) { max-width: 34em; }
.cifre {
  list-style: none; margin: var(--s4) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s3);
}
.cifra {
  display: flex; flex-direction: column;
  padding: 0 0 0 16px; border-left: 1px solid var(--filetto);
}
.cifra:nth-child(odd) { padding-left: 0; border-left: 0; }
.cifra__ico { width: 34px; height: 34px; color: var(--oro); margin-bottom: var(--s2); }
.lavoro .cifra__ico { color: var(--blu); }
.cifra strong { font: 700 .9375rem/1.3 var(--sans); color: var(--notte); }
.cifra span { font-size: .875rem; line-height: 1.4; color: var(--grigio); text-wrap: balance; }

@media (min-width: 700px) {
  .casa__griglia {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(32px, 5.5vw, 88px); align-items: center;
  }
  .casa__foto { order: 0; aspect-ratio: 4 / 5; }
  .casa__foto img { object-position: 62% 50%; }
}
@media (min-width: 1024px) {
  .casa__griglia { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .cifre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cifra, .cifra:nth-child(odd) { padding: 0 12px; border-left: 1px solid var(--filetto); }
  .cifra:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 1280px) {
  .cifra, .cifra:nth-child(odd) { padding: 0 18px; }
  .cifra:first-child { padding-left: 0; }
}
/* computer medio: la foto va da filo a filo del testo, dall'occhiello all'ultima cifra */
@media (min-width: 1024px) and (max-width: 1359px) {
  .casa__griglia { align-items: stretch; }
  .casa__foto { aspect-ratio: auto; min-height: 420px; }
  .casa__foto img { object-position: 60% 50%; }
  .casa .cifre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .casa .cifra, .casa .cifra:nth-child(odd) { padding: 0 0 0 18px; border-left: 1px solid var(--filetto); }
  .casa .cifra:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (min-width: 1360px) {
  .casa__foto { aspect-ratio: 3 / 2; }
  .casa__foto img { object-position: 50% 55%; }
}

/* 3 · Il balcone: la foto grande della pagina */
.balcone { padding-top: 0; }
.balcone__griglia { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
/* la frase come una citazione, aperta da un filetto verticale d'oro */
.balcone__frase {
  font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .45vw, 1.5rem); line-height: 1.42;
  color: var(--notte);
  margin: 0; max-width: 22em;
  padding: 2px 0 2px 20px; border-left: 1px solid var(--oro);
}
.balcone__frase em { color: inherit; white-space: nowrap; }
.balcone__foto { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #e3d7b5; }
.balcone__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 700px) {
  .balcone__griglia {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    column-gap: clamp(48px, 5.5vw, 88px); align-items: center;
  }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .balcone__foto { aspect-ratio: 3 / 2; }
}
@media (min-width: 1024px) {
  .balcone__griglia { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* 4 · Dove si trova */
.dove { padding-top: 0; }
.dove__griglia { display: grid; grid-template-columns: minmax(0, 1fr); }
.dove__testo { display: contents; }
.dove__testo > div { order: 1; }
.dove__testo .titolo { margin-bottom: var(--s2); }
.dove__sotto { margin: 0 0 var(--s3); font: italic 400 1.125rem/1.4 var(--serif); color: var(--testo); }
.distanze {
  order: 2; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--s2);
}
.distanza {
  display: grid; grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 16px; row-gap: 1px; align-items: center;
}
.distanza__ico { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--oro); }
.distanza__luogo { font-weight: 700; font-size: .9375rem; line-height: 1.3; color: var(--notte); text-wrap: balance; }
.distanza__tempo { font-size: .875rem; line-height: 1.35; color: var(--grigio); }
.distanza--stacco { padding-top: var(--s2); border-top: 1px solid var(--filetto); }
.dove .collegamento { order: 3; justify-self: start; margin: 32px 0; }
.dove__foto { order: 4; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #cdbfae; }
.dove__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
/* telefono: lo specchio intero, con la cimasa e l'ovale */
@media (max-width: 699px) {
  .dove__foto { aspect-ratio: 1440 / 1328; }
  .dove__foto img { object-position: 50% 50%; }
}
@media (min-width: 700px) and (max-width: 1199px) {
  .dove__griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .dove__testo > div { grid-column: 1 / -1; }
  .distanze { grid-column: 1; grid-row: 2 / 4; }
  .dove .collegamento { grid-column: 1; grid-row: 4; margin-bottom: 0; }
  .dove__foto { grid-column: 2; grid-row: 2 / 5; aspect-ratio: auto; min-height: 100%; }
}
/* computer largo: le tre colonne del modello, divise dai filetti verticali */
@media (min-width: 1200px) {
  .dove__griglia {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: stretch;
  }
  .dove__testo {
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    padding-right: clamp(24px, 2.8vw, 44px);
  }
  .dove .collegamento { margin: 0; }
  .distanze {
    padding: 0 clamp(24px, 2.8vw, 44px);
    border-left: 1px solid var(--filetto); border-right: 1px solid var(--filetto);
    gap: var(--s3);
  }
  .distanza--stacco { padding-top: var(--s3); }
  .dove__foto { aspect-ratio: auto; min-height: 300px; margin-left: clamp(24px, 2.8vw, 44px); }
}

/* 5 · Soggiorni di lavoro — fondo chiaro, come le sezioni del modello */
.lavoro { border-top: 1px solid var(--filetto); border-bottom: 1px solid var(--filetto); background: var(--carta); }
.lavoro__griglia { display: grid; grid-template-columns: minmax(0, 1fr); }
.lavoro__testo p:not(.occhiello) { max-width: 34em; margin-bottom: 0; }
.lavoro__cifre { margin-top: var(--s4); }
@media (min-width: 700px) {
  .lavoro__cifre {
    padding-top: 32px; border-top: 1px solid var(--filetto);
    grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px;
  }
  /* l'icona a sinistra, come nelle distanze di «Dove si trova» */
  .lavoro .cifra { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-content: start; }
  .lavoro .cifra__ico { grid-row: 1 / 3; width: 30px; height: 30px; margin: 0; }
  .lavoro .cifra strong, .lavoro .cifra span { grid-column: 2; }
}
@media (min-width: 1024px) {
  .lavoro__testo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .lavoro__testo .occhiello, .lavoro__testo .titolo { grid-column: 1 / 3; }
  .lavoro__testo .titolo { margin: 0; }
  .lavoro__testo p:not(.occhiello) {
    grid-column: 3 / 5; grid-row: 1 / 3; align-self: end;
    max-width: 30em; margin: 0;
    padding-left: calc(clamp(16px, 1.6vw, 28px) + 44px);
  }
  .lavoro__cifre { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; padding-top: var(--s4); }
  .lavoro .cifra, .lavoro .cifra:nth-child(odd) { padding: 0 clamp(16px, 1.6vw, 28px); border-left: 1px solid var(--filetto); }
  .lavoro .cifra:first-child { padding-left: 0; border-left: 0; }
}

/* 6 · Recensioni */
.ospita__griglia { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
.ospita__testo p { max-width: 34em; }
/* la scheda dei voti come una piccola targa: il 4,87 in oro */
.voti { background: var(--carta); border-radius: 6px; box-shadow: var(--ombra); padding: 24px 20px; }
.voti p { margin: 0; }
.voti__testa { display: flex; align-items: center; gap: 18px; padding-bottom: var(--s3); border-bottom: 1px solid var(--filetto); }
.voti__numero { font: 350 3.75rem/.9 var(--serif); color: var(--oro); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.voti__stelle { display: flex; gap: 3px; color: var(--oro); margin-bottom: 6px !important; }
.voti__stelle .ico { width: 18px; height: 18px; }
.voti__conto { font-size: .9375rem; color: var(--grigio); white-space: nowrap; }
.voti__elenco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin: 0; padding: var(--s1) 0 var(--s3); }
.voti__elenco div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--filetto); }
.voti__elenco dt { font-size: .875rem; color: var(--testo); }
.voti__elenco dd { margin: 0; font: 500 1.1875rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--notte); }
.voti__piede { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.voti__super { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; color: var(--notte); }
.voti__super .ico { color: var(--oro); }
@media (max-width: 374px) {
  .voti { padding: 20px 16px; }
  .voti__elenco { grid-template-columns: minmax(0, 1fr); }
  .voti__numero { font-size: 3.25rem; }
  .voti__testa { gap: 14px; }
}
@media (min-width: 700px) { .voti { padding: 32px 36px; } .voti__numero { font-size: 4.5rem; } }
@media (min-width: 700px) and (max-width: 1023px) {
  .ospita__griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); column-gap: 40px; align-items: center; }
  .voti { padding: 28px; }
  .voti__numero { font-size: 4rem; }
}
@media (min-width: 1024px) {
  .ospita__griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); column-gap: clamp(48px, 7vw, 120px); align-items: center; }
  .ospita .titolo { max-width: 11em; }
}

/* 7 · Cosa c'è in casa: una fascia bianca chiusa da due filetti */
.dotazioni { background: var(--carta); border-block: 1px solid var(--filetto); }
.dotazioni .titolo { margin-bottom: 0; }
.dotazioni__griglia {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dotazione {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 0 24px 16px; border-left: 1px solid var(--filetto);
  font-size: .9375rem; line-height: 1.45; color: var(--notte);
}
.dotazione span { max-width: 26ch; text-wrap: balance; }
.dotazione:nth-child(odd) { padding-left: 0; padding-right: 16px; border-left: 0; }
.dotazione:nth-child(n+3) { border-top: 1px solid var(--filetto); }
.dotazione__ico { width: 36px; height: 36px; color: var(--oro); stroke-width: 1.3; }
@media (min-width: 700px) {
  .dotazioni__griglia { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
  .dotazione, .dotazione:nth-child(odd) {
    flex-direction: column; gap: 16px;
    padding: 32px clamp(20px, 3vw, 40px); border-left: 1px solid var(--filetto); border-top: 0;
    font-size: 1rem;
  }
  .dotazione:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .dotazione:nth-child(n+4) { border-top: 1px solid var(--filetto); }
}
@media (min-width: 1024px) {
  .dotazione, .dotazione:nth-child(odd) { flex-direction: row; align-items: flex-start; gap: 20px; padding-block: 36px; font-size: 1.0625rem; }
  .dotazione__ico { width: 40px; height: 40px; margin-top: -8px; }
}

/* 8 · Come prenotare: un cartoncino d'invito, tutto centrato */
.prenotare__foglio {
  background: var(--carta); border-radius: 6px; box-shadow: var(--ombra);
  padding: 40px 24px;
}
.prenotare .titolo { margin-bottom: 0; }
.passi { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.passo { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-top: 1px solid var(--filetto); }
.passo:first-child { border-top: 0; padding-top: 0; }
.passo__n { flex: none; width: 40px; font: 300 3.25rem/.8 var(--serif); font-variant-numeric: lining-nums; color: var(--oro); }
.passo p { margin: 4px 0 0; font-size: 1.0625rem; line-height: 1.45; color: var(--notte); text-wrap: balance; }
/* i link di testo: notte, sottolineati d'oro */
.passo a, .piede a, .cookie__testo a {
  color: var(--notte);
  text-decoration: underline; text-decoration-color: var(--oro);
  text-decoration-thickness: 1px; text-underline-offset: .3em;
}
.passo a:hover, .piede a:hover, .cookie__testo a:hover { text-decoration-color: currentColor; }
.prenotare__piede {
  position: relative;
  margin-top: 12px; padding-top: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.prenotare__piede::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: var(--segno); height: 1px; margin-left: calc(var(--segno) / -2);
  background: var(--oro);
}
.prenotare__minimo { margin: 0; font: italic 400 1.35rem/1.3 var(--serif); color: var(--notte); }
.riepilogo { margin: 0; min-height: 1.45em; font-size: .875rem; line-height: 1.45; color: var(--grigio); }
.riepilogo:empty { display: none; }
.riepilogo--chiaro { color: rgba(243, 242, 237, .82); }
@media (min-width: 700px) {
  .prenotare__foglio { padding: 56px clamp(32px, 4vw, 64px); }
  .passi { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
  .passo, .passo:first-child {
    flex-direction: column; align-items: center; gap: 18px; text-align: center;
    padding: 6px clamp(16px, 2.6vw, 40px);
    border-top: 0; border-left: 1px solid var(--filetto);
  }
  .passo:first-child { border-left: 0; }
  .passo p { margin: 0; max-width: 22ch; }
  .passo__n { width: auto; font-size: 3.75rem; }
  .prenotare__piede { margin-top: 40px; padding-top: 40px; }
}

/* 9 · Come arrivare · 10 · Domande: la stessa scheda di lettura */
.arrivare { padding-top: 0; }
.arrivare__griglia, .domande__griglia { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
.scheda__testa .titolo { margin: 0; }
.arrivi { list-style: none; margin: 0; padding: 0; }
.arrivo { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--filetto); }
.arrivo:last-child { border-bottom: 1px solid var(--filetto); }
.arrivo__ico { width: 32px; height: 32px; color: var(--oro); stroke-width: 1.3; }
.arrivo p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--testo); text-wrap: pretty; }
.arrivo p strong { font-weight: 700; color: var(--notte); }
.arrivo .punto { color: var(--oro); font-weight: 700; }
@media (min-width: 1024px) {
  .arrivare__griglia, .domande__griglia {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    column-gap: clamp(48px, 6vw, 100px); align-items: start;
  }
  /* il filetto d'oro dell'occhiello cade sulla riga del primo filetto grigio: una sola linea */
  .scheda__testa { margin-top: -8px; }
  .arrivo { padding: 26px 0; gap: 28px; }
  .arrivo__ico { width: 36px; height: 36px; }
  .arrivo p { font-size: 1.0625rem; }
}

/* Galleria: un nastro editoriale */
.galleria { padding-top: 0; }
.galleria__testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.galleria__testa .titolo { margin: 0; }
.galleria__frecce { display: flex; gap: 10px; flex: none; }
/* al telefono si scorre col dito: il titolo prende tutta la riga, la linea d'oro dice quanto resta */
@media (max-width: 699px) { .galleria__frecce { display: none; } }
.freccia {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--filetto); border-radius: 50%;
  background: var(--carta); color: var(--blu);
  transition: opacity .2s ease;
}
.freccia::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--blu); opacity: 0; transition: opacity .25s ease;
}
.freccia .ico { transition: transform .25s var(--ease); }
.freccia:hover:not(:disabled) { color: #fff; border-color: var(--blu); }
.freccia:hover:not(:disabled)::before { opacity: 1; }
.freccia[data-dir="1"]:hover:not(:disabled) .ico { transform: translateX(2px); }
.freccia[data-dir="-1"]:hover:not(:disabled) .ico { transform: translateX(-2px); }
.freccia:disabled { opacity: .3; cursor: default; }
.nastro {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - 1200px) / 2);
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.nastro::-webkit-scrollbar { display: none; }
.nastro:focus-visible { outline-offset: -2px; }
.nastro__lista {
  list-style: none; margin: 0;
  display: flex; gap: 12px; width: max-content;
  padding: 0 max(var(--gutter), (100% - 1200px) / 2);
}
.scatto { flex: none; width: 80vw; scroll-snap-align: start; }
.scatto__foto { display: block; overflow: hidden; border-radius: 2px; background: #ddd5c8; }
.scatto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .9s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .scatto:hover img { transform: scale(1.035); }
}
/* didascalie da libro fotografico: un trattino d'oro e il corsivo */
.scatto figcaption {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font: italic 400 1.0625rem/1.3 var(--serif); color: var(--notte);
}
.scatto figcaption::before { content: ""; flex: none; width: 16px; height: 1px; background: var(--oro); }
/* la linea d'oro che si riempie mentre scorri */
.avanza { display: none; }
.js .avanza { display: block; position: relative; height: 1px; margin-top: 32px; background: var(--filetto); }
.avanza__barra { position: absolute; inset: 0; background: var(--oro); transform-origin: 0 50%; transform: scaleX(.3); }
@media (min-width: 700px) {
  .scatto { width: 42vw; }
  .nastro__lista { gap: 16px; }
}
@media (min-width: 1024px) {
  .nastro__lista { gap: 20px; }
  .scatto { width: clamp(260px, 25vw, 440px); }
}

/* 10 · Domande frequenti: un indice elegante */
.domande { padding-top: 0; }
.domanda { position: relative; border-top: 1px solid var(--filetto); }
.domanda:last-child { border-bottom: 1px solid var(--filetto); }
.domanda summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font: 500 1.2rem/1.3 var(--serif); color: var(--notte);
}
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary:hover { color: var(--blu); }
.domanda__segno { width: 18px; height: 18px; color: var(--oro); transition: transform .3s var(--ease); }
.domanda[open] .domanda__segno { transform: rotate(45deg); }
.domanda p { margin: -6px 0 24px; max-width: 38em; padding-right: 48px; color: var(--testo); text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  .domanda[open] > p { animation: cdg-sali .45s var(--ease) both; }
}
@media (min-width: 1024px) {
  .domanda summary { font-size: 1.3rem; padding: 24px 0; }
  /* la domanda aperta: un filetto verticale d'oro che si disegna */
  .domanda::before {
    content: ""; position: absolute; left: -28px; top: 26px; bottom: 26px; width: 1px;
    background: var(--oro); transform: scaleY(0); transform-origin: 50% 0;
    transition: transform .45s var(--ease);
  }
  .domanda[open]::before { transform: scaleY(1); }
  .domande .scheda__testa { position: sticky; top: calc(var(--testata) + 32px); }
}

/* 11 · Contatti: il finale sul murale */
.contatti {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--crema); background: var(--notte);
  padding-block: clamp(140px, 36vw, 280px) 64px;
}
.contatti__foto { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* il volto in alto resta visibile, il velo si scurisce solo dove c'è il testo */
.contatti__foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--velo), .28) 0%, rgba(var(--velo), .45) 22%, rgba(var(--velo), .84) 48%, rgba(var(--velo), .9) 100%);
}
.contatti__img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 3%; }
.contatti__interno {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 28px;
  justify-items: center; text-align: center;
}
.contatti__nome { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.contatti__nome .marchio__nome { color: #fff; font-size: 1.375rem; }
.contatti__nome .marchio__sotto { color: rgba(243, 242, 237, .8); }
.contatti__nome .marchio__sotto::before, .contatti__nome .marchio__sotto::after { background: var(--oro-luce); }
.contatti__centro { display: flex; flex-direction: column; align-items: center; }
.contatti__centro .occhiello { margin-bottom: var(--s2); }
.contatti__frase {
  margin: 0 0 var(--s2);
  font: italic 400 clamp(1.75rem, 1.2rem + 2vw, 3rem)/1.15 var(--serif); letter-spacing: -.005em;
  color: #fff; text-wrap: balance;
  text-shadow: 0 1px 24px rgba(var(--velo), .45);
}
.contatti__riga { margin: 0 0 28px; max-width: 30em; font-size: .9375rem; line-height: 1.5; color: rgba(243, 242, 237, .86); text-wrap: balance; }
.contatti__centro .riepilogo { margin-top: 10px; }
.contatti__dati { position: relative; padding-top: 28px; font-size: .9375rem; }
.contatti__dati::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: var(--segno); height: 1px; margin-left: calc(var(--segno) / -2);
  background: var(--oro-luce);
}
.contatti__dati p { margin: 0 0 4px; }
.contatti__ig {
  color: #fff;
  text-decoration: underline; text-decoration-color: var(--oro-luce);
  text-decoration-thickness: 1px; text-underline-offset: .3em;
}
.contatti__ig:hover { text-decoration-color: currentColor; }
.contatti__cin { color: rgba(243, 242, 237, .78); font-size: .8125rem; letter-spacing: .04em; }
.contatti__social { display: flex; gap: 10px; justify-content: center; margin-top: 16px !important; }
.social {
  position: relative;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(243, 242, 237, .4); border-radius: 50%;
  color: #fff;
  transition: transform .25s var(--ease);
}
/* al passaggio un anello d'oro (solo opacity) */
.social::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--oro-luce); opacity: 0; transition: opacity .25s ease;
}
.social:hover { transform: translateY(-2px); }
.social:hover::after, .social:focus-visible::after { opacity: 1; }
.social .ico { width: 22px; height: 22px; }
.contatti a:focus-visible { outline-color: var(--crema); }
@media (min-width: 1024px) {
  .contatti {
    display: flex; align-items: flex-end;
    min-height: clamp(480px, 40vw, 640px);
    padding-block: 96px 72px;
  }
  .contatti__foto::after {
    background: linear-gradient(180deg, rgba(var(--velo), .2) 0%, rgba(var(--velo), .3) 30%, rgba(var(--velo), .74) 62%, rgba(var(--velo), .9) 100%);
  }
  .contatti__img { top: -15%; height: 130%; object-position: 50% 0%; }
  .contatti__interno {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr); column-gap: 32px;
    align-items: end; text-align: left;
  }
  .contatti__centro { text-align: center; }
  .contatti__dati { padding-top: 0; justify-self: end; text-align: right; }
  .contatti__dati::before { display: none; }
  .contatti__dati p { white-space: nowrap; }
  .contatti__nome { justify-self: start; align-items: flex-start; }
  .contatti__nome .marchio__nome { font-size: 1.625rem; }
  .contatti__social { justify-content: flex-end; }
}

/* ── Piede: un colophon in due righe ─────────────────── */
.piede { padding-block: 48px 40px; font-size: .875rem; line-height: 1.5; color: var(--testo); }
.piede__interno { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
.piede__nome { margin: 0; font: 400 1.125rem/1.2 var(--serif); letter-spacing: .07em; text-transform: uppercase; color: var(--notte); }
.piede__contatti { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; font-size: .9375rem; }
.piede__legale {
  list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--filetto);
  display: flex; flex-direction: column; gap: 4px;
  font-size: .8125rem; color: var(--grigio);
}
.piede__firma { margin: 0; font-size: .8125rem; color: var(--grigio); }
/* informativa e 404: il piede di prima, una riga sola */
.piede__dati { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (min-width: 700px) {
  .piede__legale { flex-direction: row; flex-wrap: wrap; column-gap: 24px; }
}
@media (min-width: 1024px) {
  .piede__interno { grid-template-columns: minmax(0, 1fr) auto; column-gap: 0; row-gap: 24px; align-items: center; }
  .piede__contatti { justify-self: end; }
  .piede__legale, .piede__firma { align-self: stretch; padding-top: 20px; border-top: 1px solid var(--filetto); }
  .piede__firma { padding-left: 40px; text-align: right; }
  .piede__interno:has(.piede__dati) { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 40px; }
  .piede__interno:has(.piede__dati) .piede__firma { padding: 0; border: 0; }
  .piede__dati { justify-content: center; }
}
.js .piede { padding-bottom: 96px; }
.js.cookie-ok .piede, .js .cookie-via ~ .piede { padding-bottom: 40px; }

/* ── Pagine semplici: informativa e 404 ─────────────────── */
.torna { color: var(--notte); font-weight: 700; font-size: .875rem; text-decoration: none; border-bottom: 1px solid var(--notte); padding: 4px 0; }
.legale { max-width: 760px; padding-block: clamp(40px, 2rem + 3vw, 88px) clamp(56px, 3rem + 3vw, 104px); }
.legale__titolo { font: 400 clamp(2.1rem, 1.5rem + 2vw, 3.2rem)/1.08 var(--serif); color: var(--notte); margin: 0 0 22px; }
.legale__attacco { font: 400 1.3rem/1.45 var(--serif); color: var(--notte); margin-bottom: 36px; }
.legale h2 { font: 500 1.45rem/1.25 var(--serif); color: var(--notte); margin: 36px 0 10px; padding-top: 26px; border-top: 1px solid var(--filetto); }
.legale p { max-width: 38em; }
.legale__torna { margin-top: 40px; }
.legale--404 { min-height: 52vh; }
.pagina-semplice .piede { padding-bottom: 40px; border-top: 1px solid var(--filetto); }

/* ── Cookie: una pillola discreta, larga quanto il suo testo ── */
.cookie {
  display: flex; align-items: center; gap: 12px;
  width: min(100% - 2 * var(--gutter), 1200px); margin: 0 auto 24px;
  background: var(--carta); color: var(--testo);
  border: 1px solid var(--filetto); border-radius: 6px;
  padding: 6px 6px 6px 18px;
  font-size: .75rem; line-height: 1.4;
}
.cookie__testo { margin: 0; flex: 1; }
.cookie__testo a { font-weight: 700; white-space: nowrap; }
.cookie__chiudi { display: none; }
.js .cookie {
  position: fixed; left: 0; right: 0; bottom: 16px; z-index: 60;
  width: fit-content; max-width: min(100% - 20px, 760px); margin: 0 auto;
  box-shadow: var(--ombra);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.js .cookie__chiudi {
  position: relative;
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--notte);
}
.js .cookie__chiudi::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--crema); opacity: 0; transition: opacity .2s ease;
}
.js .cookie__chiudi:hover::before { opacity: 1; }
.js .cookie__chiudi .ico { position: relative; }
@media (max-width: 699px) { .js .cookie { bottom: 10px; } }
.js .cookie.via, .js .cookie.attesa { opacity: 0; transform: translateY(12px); pointer-events: none; }
.cookie-ok .cookie, .cookie[hidden] { display: none; }

/* ── Movimento: stati di partenza solo se li ha messi il JS ── */
@media screen and (prefers-reduced-motion: no-preference) {
  .js-posa .apertura__cornice { animation: cdg-zoom 1.6s var(--ease) both; }
  .js-posa .compone { animation: cdg-sali 1s var(--ease) both; animation-delay: calc(.18s + var(--i, 0) * .12s); }
  .js-posa .compone--barra { animation-name: cdg-sali-barra; animation-duration: .9s; animation-delay: .82s; }
  /* il filetto d'oro dell'occhiello d'apertura si disegna all'arrivo */
  .js-posa .apertura .occhiello::before { transform-origin: 0 50%; animation: cdg-filo .9s var(--ease) .35s both; }
  .js-posa [data-posa] {
    opacity: 0; transform: translateY(12px);
    transition: opacity .52s var(--ease), transform .52s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js-posa [data-posa].posato { opacity: 1; transform: none; }
  /* le foto si posano con una lieve messa a fuoco, come la foto d'apertura */
  .js-posa .casa__foto img, .js-posa .balcone__foto img, .js-posa .dove__foto img {
    transform: scale(1.05); transition: transform 1.4s var(--ease);
  }
  .js-posa .posato img { transform: none; }
}
@keyframes cdg-zoom { from { transform: scale(1.06); } to { transform: none; } }
@keyframes cdg-sali { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cdg-sali-barra { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cdg-filo { from { transform: scaleX(0); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Stampa ───────────────────────────────────────────── */
@media print {
  .testata, .cookie, .galleria__frecce, .striscia, .barra__invia, .apertura__cta, .salta { display: none !important; }
  [data-posa], .compone, .apertura__cornice { opacity: 1 !important; transform: none !important; animation: none !important; }
  body { background: #fff; }
  .notte-fascia, .contatti { background: #fff; color: var(--notte); }
  .notte-fascia__grande, .contatti__frase { color: var(--notte); }
  .contatti__foto { display: none; }
}

/* ── Lingue: selettore nella testata, elenco nel piede, cinese ── */
.lingue { position: relative; }
.lingue__bottone {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px;
  border: 1px solid rgba(var(--velo), .2); border-radius: 22px;
  color: var(--notte); font: 700 .8125rem/1 var(--sans); letter-spacing: .08em;
  transition: transform .25s var(--ease);
}
.lingue__bottone::-webkit-details-marker { display: none; }
.lingue__bottone::marker { content: ""; }
.lingue__bottone .ico--20 { color: var(--oro); }
.lingue__giu { transition: transform .25s var(--ease); }
.lingue[open] .lingue__giu { transform: rotate(180deg); }
.lingue__bottone:hover { transform: translateY(-1px); }
.lingue__lista {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 176px; margin: 0; padding: 8px; list-style: none;
  background: var(--carta); border-radius: 8px; box-shadow: var(--ombra);
  border-top: 2px solid var(--oro);
}
.lingue__lista a {
  display: block; padding: 10px 12px; border-radius: 4px;
  color: var(--notte); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.lingue__lista a:hover { background: var(--crema); }
html[lang="it"] .lingue a[data-lingua="it"], html[lang="en"] .lingue a[data-lingua="en"],
html[lang="fr"] .lingue a[data-lingua="fr"], html[lang="de"] .lingue a[data-lingua="de"],
html[lang="es"] .lingue a[data-lingua="es"], html[lang^="zh"] .lingue a[data-lingua="zh"] {
  color: var(--oro); box-shadow: inset 2px 0 0 var(--oro);
}
.piede__lingue {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem;
}
.piede__lingue a { color: var(--notte); text-decoration: none; }
.piede__lingue a:hover { text-decoration: underline; }
html[lang="it"] .piede__lingue a[data-lingua="it"], html[lang="en"] .piede__lingue a[data-lingua="en"],
html[lang="fr"] .piede__lingue a[data-lingua="fr"], html[lang="de"] .piede__lingue a[data-lingua="de"],
html[lang="es"] .piede__lingue a[data-lingua="es"], html[lang^="zh"] .piede__lingue a[data-lingua="zh"] {
  color: var(--oro); font-weight: 700;
}
/* telefono: la testata deve stare in 320-414 px con nome, lingua, WhatsApp e menu */
@media (max-width: 699px) {
  .lingue__bottone { padding: 0 10px; gap: 4px; }
  .lingue__giu { display: none; }
  .marchio { min-width: 0; }
  .marchio__sotto { letter-spacing: .16em; }
  /* menu solo icona: la scritta resta per i lettori di schermo */
  .js .menu-bottone { width: 44px; padding: 0; justify-content: center; }
  .menu-bottone__testo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 380px) {
  .marchio__nome { font-size: 1rem; letter-spacing: .05em; }
  .marchio__sotto { letter-spacing: .16em; }
  .testata__azioni { gap: 6px; }
  .lingue__bottone .ico--20 { display: none; }
}
/* cinese: caratteri di sistema per gli ideogrammi, niente corsivo finto, spaziatura ridotta */
html[lang^="zh"] {
  --serif: 'Crimson Pro', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Mulish', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
}
html[lang^="zh"] em, html[lang^="zh"] i, html[lang^="zh"] [class*="corsivo"], html[lang^="zh"] .contatti__frase { font-style: normal; }
html[lang^="zh"] .occhiello, html[lang^="zh"] .marchio__sotto { letter-spacing: .06em; }
html[lang^="zh"] body { line-height: 1.8; }
/* il codice della lingua nel pulsante segue <html lang> (le pagine tradotte si generano dall'italiano) */
.lingue__codice::before { content: "IT"; }
html[lang="en"] .lingue__codice::before { content: "EN"; }
html[lang="fr"] .lingue__codice::before { content: "FR"; }
html[lang="de"] .lingue__codice::before { content: "DE"; }
html[lang="es"] .lingue__codice::before { content: "ES"; }
html[lang^="zh"] .lingue__codice::before { content: "中文"; letter-spacing: 0; }

/* CIN: l'etichetta si traduce (può essere lunga), il codice resta uguale */
.contatti__cin .cin__etichetta { display: block; font-size: .6875rem; letter-spacing: .06em; opacity: .85; white-space: normal; }
.contatti__cin .cin__codice { white-space: nowrap; letter-spacing: .04em; }
