/* Haus Coppi – versione 3 «Rifugio» (spunto: template lodge di montagna). Token e regole: vedi DESIGN.md */

@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cabin";
  src: url("../fonts/cabin-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* colori */
  --paper: #F1EFEC;         /* lino: fondo */
  --paper-2: #E5E3DF;       /* lino 2: pennellate, righe alterne */
  --surface: #FFFFFF;
  --ink: #211B16;           /* marrone quasi nero: testi e barre (18/11, prima verde abete scurissimo #18261F) */
  --ink-soft: #625951;      /* grigio caldo per i testi secondari (18/11, prima grigio-verde #56645B) */
  --wood: #D8C6A8;          /* beige sabbia: fascia appartamenti e contatti (18/11, scelto dalla famiglia al posto del verde #298552) */
  --foot: #2E271F;          /* sabbia molto scura: piè di pagina (18/11; prima era --ink, verde scurissimo) */
  --on-dark: #F2F0EE;
  --on-dark-soft: #F1EDE8;
  --honey: #D9A55B;         /* solo su fondo scuro */
  --accent: #3B2F24;        /* marrone caffè per sottotitoli, link, spunte e focus (18/11, prima verde scuro #114D30) */
  --button: #A25C30;        /* via di mezzo tra caramello e terracotta, scritte bianche (contrasto 5,1:1). 20/11, scelto da Roberto; prima caramello #A06731, caramello chiaro #C98B4F, tortora #6B6056, in origine rosso geranio #B42A1E */
  --button-press: #844B27;
  --on-button: #FFFFFF;     /* scritte sui pulsanti (con il caramello chiaro erano scure #211B16) */
  --button-ink: var(--button); /* asterischi del modulo */
  --error: #9E3A2F;
  --on-accent: #FFFFFF;

  /* tipografia */
  --font-display: "Vollkorn", Georgia, "Times New Roman", serif;
  --font-text: "Cabin", "Segoe UI", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-head: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);

  /* spazi e forme */
  --section-y: clamp(3rem, 2rem + 3.5vw, 5.5rem);
  --gutter: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  --margin: clamp(1rem, 0.25rem + 3.5vw, 4.5rem);
  --max: 1280px;
  --edge: max(var(--margin), (100% - var(--max)) / 2);
  --radius: 14px;
  --bar-h: 56px;
  --tear: clamp(16px, 2.2vw, 30px);   /* altezza del bordo strappato */

  /* movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 220ms;
}

html[lang="zh"] {
  --font-display: "Vollkorn", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Microsoft YaHei", serif;
  --font-text: "Cabin", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html[lang="ja"] {
  --font-display: "Vollkorn", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", serif;
  --font-text: "Cabin", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
}
html[lang="ru"] { --font-display: "Vollkorn", Georgia, "Times New Roman", serif; }
html[lang="zh"] :is(h1, h2, h3, .head), html[lang="ja"] :is(h1, h2, h3, .head) { letter-spacing: 0; line-height: 1.25; }
html[lang="ja"] :is(h1, h2, h3, p, li) { word-break: auto-phrase; } /* il giapponese va a capo tra le parole, non a metà */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); scrollbar-color: var(--ink-soft) var(--paper-2); }
html.is-locked { overflow: hidden; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; hyphens: none;
  font-variant-numeric: lining-nums; /* Vollkorn usa cifre «antiche»: il suo 1 sembra una I */
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--accent); }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: 100%; padding-inline: var(--edge); }
.section { padding-block: var(--section-y); scroll-margin-top: calc(1.25rem - var(--section-y)); }
.head { font-size: var(--step-head); line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; }
.lead { font-size: var(--step-lead); line-height: 1.45; max-width: 44ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--margin); top: -100px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 12px 16px; border-radius: 999px; }
.skip:focus { top: 8px; }

/* ---------- carta strappata e pennellate (forme in img/*.svg) ---------- */
/* ogni sezione .edge morde quella sopra con il suo colore e un bordo strappato */
.edge { position: relative; }
.edge::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--tear);
  background: inherit; pointer-events: none;
  -webkit-mask: url("../img/edge-torn.svg") center bottom / 100% 100% no-repeat;
          mask: url("../img/edge-torn.svg") center bottom / 100% 100% no-repeat;
}
/* riquadro «pennellato» dietro a foto e calcolo, come colore steso a mano */
.brushed { position: relative; isolation: isolate; }
.brushed::before {
  content: ""; position: absolute; inset: calc(-1 * clamp(1rem, 2.4vw, 2.5rem)) calc(-1 * clamp(1rem, 3vw, 3rem)); z-index: -1;
  background: var(--paper-2);
  -webkit-mask: url("../img/brush.svg") center / 100% 100% no-repeat;
          mask: url("../img/brush.svg") center / 100% 100% no-repeat;
}

/* ---------- bottoni (pillola) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: var(--step-body); line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--button); color: var(--on-button); }
.btn--accent:hover { background: var(--button-press); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: transparent; transition: background-color var(--t-hover) ease;
}
.icon-btn:hover { background: var(--paper-2); }
.more { display: inline-block; font-weight: 600; color: var(--accent); text-decoration: none; padding-block: 0.4rem; }
.more span { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.more:hover span { text-decoration-color: currentColor; }

/* ---------- striscia in alto ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--gutter);
  padding-left: max(var(--edge), env(safe-area-inset-left)); padding-right: max(var(--edge), env(safe-area-inset-right));
  margin-bottom: calc(-1 * var(--bar-h)); color: var(--on-dark);
}
/* vetro smerigliato: sopra la foto del lago un velo scuro leggero (scritte bianche); sopra le sezioni la barra diventa chiara,
   color lino trasparente e sfocata come sopra le montagne, con le scritte scure (19/11; prima era scura anche lì, poi quasi piena 0.92)
   (il filtro sta sul ::before, così il menu del telefono, che è fixed, resta riferito allo schermo) */
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgb(241 239 236 / 0.6); border-bottom: 1px solid rgb(33 27 22 / 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  transition: background-color var(--t-ui) ease;
}
.bar.is-over-hero::before { background: rgb(22 18 14 / 0.22); border-bottom-color: rgb(242 240 238 / 0.12); }
.bar:has(.is-open)::before { background: var(--paper); }
/* barra chiara (fuori dalla foto, o con il menu del telefono aperto): scritte, bordi e sottolineature scuri */
.bar:not(.is-over-hero), .bar:has(.is-open) { color: var(--ink); }
.bar:not(.is-over-hero) .langsel__btn, .bar:has(.is-open) .langsel__btn { color: var(--ink); border-color: rgb(33 27 22 / 0.25); }
.bar:not(.is-over-hero) .langsel__btn:hover, .bar:not(.is-over-hero) .langsel__btn[aria-expanded="true"], .bar:has(.is-open) .langsel__btn:hover { background: rgb(33 27 22 / 0.06); border-color: rgb(33 27 22 / 0.45); }
.bar:not(.is-over-hero) .flag, .bar:has(.is-open) .flag { box-shadow: 0 0 0 1px rgb(33 27 22 / 0.18); }
.bar:not(.is-over-hero) .bar__nav a::after, .bar:has(.is-open) .bar__nav a::after { background: var(--button); } /* 20/11: sottolineatura del menu del colore dei pulsanti */
.bar :focus-visible { outline-color: var(--honey); }
.bar:not(.is-over-hero) :focus-visible, .bar:has(.is-open) :focus-visible { outline-color: var(--accent); }
.bar__nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.bar__nav a { display: inline-block; padding-block: 0.75rem; font-size: var(--step-small); font-weight: 500; text-decoration: none; position: relative; }
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.5rem; height: 2px; border-radius: 2px; background: var(--honey);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out);
}
.bar__nav a:hover::after, .bar__nav a[aria-current="true"]::after { transform: scaleX(1); }
.bar__end { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
/* menu delle lingue: bandiera tonda + nome; la tendina è un foglio di lino che galleggia sotto la barra */
.langsel { position: relative; justify-self: start; }
.flag { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.85); }
.langsel__btn {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 40px; padding: 0.3rem 0.8rem 0.3rem 0.45rem;
  border: 1.5px solid rgb(242 240 238 / 0.28); border-radius: 999px; background: transparent; color: var(--on-dark);
  font-size: var(--step-small); font-weight: 600; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.langsel__btn:hover, .langsel__btn[aria-expanded="true"] { background: rgb(242 240 238 / 0.1); border-color: rgb(242 240 238 / 0.55); }
.langsel__chev { transition: transform var(--t-ui) var(--ease-out); }
.langsel__btn[aria-expanded="true"] .langsel__chev { transform: rotate(180deg); }
.langsel__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 40; min-width: 15rem; padding: 0.4rem;
  background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: 0 14px 40px rgb(22 18 14 / 0.35);
  animation: menu-in var(--t-ui) var(--ease-out);
}
.langsel__menu[hidden] { display: none; }
.langsel__menu::before { content: ""; position: absolute; top: -6px; left: 1.4rem; width: 12px; height: 12px; background: var(--paper); transform: rotate(45deg); border-radius: 2px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.langsel__menu button {
  position: relative; display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 44px; padding: 0.4rem 0.8rem;
  border: 0; border-radius: 10px; background: none; text-align: left; font-size: var(--step-body); transition: background-color var(--t-hover) ease;
}
.langsel__menu .flag { box-shadow: 0 0 0 1px rgb(33 27 22 / 0.15); }
.langsel__menu button:hover, .langsel__menu button:focus-visible { background: var(--paper-2); }
.langsel__menu button:focus-visible { outline-offset: -2px; outline-color: var(--accent); }
.langsel__name { flex: 1; }
.langsel__code { font-size: var(--step-small); color: var(--ink-soft); font-weight: 600; }
.langsel__menu button[aria-current="true"] { background: var(--paper-2); font-weight: 600; }
.langsel__menu button[aria-current="true"] .langsel__code { color: var(--accent); }
.bar__cta { min-height: 40px; padding: 0.4rem 1.1rem; font-size: var(--step-small); }
.bar__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; place-items: center; border-radius: 999px; }

@media (max-width: 1000px) {
  .bar { grid-template-columns: auto 1fr; gap: 0.5rem; }
  .bar__toggle { display: inline-grid; }
  .bar__nav {
    position: fixed; inset: var(--bar-h) 0 0 0; z-index: 29; margin: 0; background: var(--paper); color: var(--ink);
    padding: 2.5rem var(--margin); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
  }
  .bar__nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
  .bar__nav ul { flex-direction: column; gap: 0; }
  .bar__nav a { font-family: var(--font-display); font-size: var(--step-head); font-weight: 600; padding-block: 0.3rem; }
  .bar__nav a::after { bottom: 0.2rem; }
}
@media (max-width: 420px) { .langsel__now { display: none; } .langsel__btn { padding-right: 0.6rem; } .bar__cta { padding-inline: 0.85rem; } }
/* telefoni molto stretti: il pulsante resta su una riga anche con le scritte lunghe (francese, spagnolo, russo) */
@media (max-width: 340px) { form.calc select, form.enquiry select { padding-inline: 0.5rem; } }
@media (max-width: 340px) { .bar { gap: 0.35rem; } .bar__cta { padding-inline: 0.7rem; font-size: 0.75rem; } .bar__toggle { width: 40px; } }

/* ---------- 1. apertura: il lago a tutta larghezza ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark);
  min-height: max(34rem, 100svh);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--bar-h) + clamp(1.5rem, 4vh, 3rem)); padding-bottom: calc(var(--tear) + clamp(2.5rem, 7vh, 5rem));
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* l'inquadratura giusta (riva sopra il titolo, più cielo possibile per il logo) la calcola main.js */
/* velo scuro solo dietro alle scritte (in alto e in basso), il centro della foto resta pulito */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(22 18 14 / 0.55), rgb(22 18 14 / 0) 38%, rgb(22 18 14 / 0) 55%, rgb(22 18 14 / 0.5));
}
.hero__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: var(--gutter); }
.hero__addr { font-size: var(--step-small); line-height: 1.6; padding-top: 0.6rem; }
.hero__addr a { text-decoration: none; }
.hero__addr a:hover { text-decoration: underline; }
.hero__logo { width: clamp(13rem, min(9rem + 12vw, 40vh), 23rem); height: auto; filter: drop-shadow(0 2px 14px rgb(0 0 0 / 0.35)); }
.hero__text { text-align: center; display: grid; justify-items: center; gap: 0.9rem; }
.hero__title { font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3.125rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; max-width: 22ch; }
.star { color: var(--honey); }
@media (max-width: 760px) {
  .hero { min-height: 100svh; }
  .hero__top { grid-template-columns: 1fr; justify-items: center; }
  .hero__addr { display: none; }
  .hero__text { padding-bottom: 0.5rem; }
  .hero__title { font-size: 1.75rem; max-width: none; }
}
/* entrata, solo al caricamento: la foto si posa, il logo e il titolo salgono */
.js .hero__bg { animation: settle 2400ms var(--ease-soft) both; }
.js .hero__logo { animation: rise 900ms var(--ease-expo) 150ms both; }
.js .hero__text > * { animation: rise 900ms var(--ease-expo) 320ms both; }
.js .hero__addr { animation: fade 900ms ease 500ms both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- 2. la casa ---------- */
.house { background: var(--paper); }
/* cliccando «Haus Coppi» nel menu la sezione riempie tutto lo schermo sotto la barra: niente verde in fondo (14/11) */
@media (min-width: 1151px) {
  .house { min-height: calc(100svh - var(--bar-h) - 1.25rem + var(--section-y) + var(--tear) + 4px); display: flex; flex-direction: column; justify-content: center; }
  .house > .wrap { width: 100%; }
}
/* testo a sinistra e foto a destra della stessa altezza; sotto, «Compreso» a riquadri come le distanze */
.house__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.house__text { grid-column: 1 / 7; grid-row: 1; display: grid; gap: 0.9rem; justify-items: start; padding-right: clamp(0rem, 2vw, 2rem); }
.house__text .head { margin-top: -0.12em; margin-bottom: 0.2rem; }
.house__sub { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.35; color: var(--accent); max-width: 34ch; }
.house__text p:not(.house__sub) { max-width: 58ch; }
.house__card { grid-column: 7 / 13; grid-row: 1; }
.house__photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.house__photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
/* estate e inverno si alternano nella stessa cornice: dissolvenza lenta, solo nel tempo */
.house__alt { position: absolute; inset: 0; height: 100%; opacity: 0; animation: seasons 14s ease-in-out 3s infinite; }
@keyframes seasons { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.house__key { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(2rem, 4vw, 3rem); }
.house__key-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.house__key-title { font-size: var(--step-lead); }
.house__key-head .more { font-size: var(--step-small); }
@media (max-width: 1150px) {
  /* su tablet e telefono la casa viene prima del titolo, a tutta larghezza */
  .house__text, .house__card, .house__key { grid-column: 1 / -1; grid-row: auto; padding-right: 0; }
  .house__card { order: -1; margin: 0 0 clamp(2.5rem, 7vw, 3.5rem); }
  /* foto proporzionata: si allarga con la pagina ma non supera circa metà schermo in altezza */
  .house__photo img { max-height: min(58svh, 30rem); object-position: 50% 58%; }
  .house__key { margin-top: 2.25rem; }
}
@media (max-width: 600px) {
  .house { padding-top: 2.5rem; scroll-margin-top: -1.25rem; }
}

/* ---------- 3. appartamenti: fascia di legno ---------- */
/* effetto scamosciato: texture grigia fusa in «soft-light» sul verde, così la tinta resta quella di --wood (04/11, v2) */
.apts { background: url("../img/scamosciato.jpg?v=4") 0 0 / 560px 560px, var(--wood); background-blend-mode: soft-light, normal; color: var(--on-dark); }
/* il bordo strappato eredita lo sfondo ma non la fusione: senza questa riga resterebbe grigio */
.apts.edge::before { background-blend-mode: soft-light, normal; background-position: 0 calc(var(--tear) - 1px), 0 0; }  /* la trama continua senza riga dove il bordo incontra la fascia */
/* i bordi strappati mangiano spazio sotto (quello della sezione dopo) e ne aggiungono sopra (il proprio): si compensa per avere il verde uguale */
.apts { padding-top: calc(var(--section-y) - 0.8 * var(--tear)); padding-bottom: calc(var(--section-y) + 0.8 * var(--tear)); scroll-margin-top: calc(1.25rem - var(--section-y) + 0.8 * var(--tear)); }
@media (max-width: 1199px) { .apts { padding-bottom: calc(var(--section-y) + 0.8 * var(--tear) - 0.5rem); } }
/* fascia beige chiara: testi scuri; schede e modulo bianchi per staccare dal fondo */
.apts, .contact { --on-dark: var(--ink); --on-dark-soft: #3A322B; }
.apts .apt, .apts .apt__photos, .contact .enquiry { background: var(--surface); }
.apts__arrow:hover:not(:disabled) { color: #FFFFFF; }
.apts :focus-visible, .contact :focus-visible { outline-color: var(--accent); }
.foot :focus-visible { outline-color: var(--honey); }
.apts__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem var(--gutter); align-items: end; }
.apts__head .head { grid-column: 1 / 6; max-width: 22ch; }
.apts__head .lead { grid-column: 6 / 11; color: var(--on-dark-soft); font-size: var(--step-body); max-width: 52ch; }
.apts__nav { grid-column: 11 / 13; display: flex; justify-content: flex-end; gap: 10px; }
.apts__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--on-dark-soft); border-radius: 999px;
  background: transparent; color: var(--on-dark); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.apts__arrow:hover:not(:disabled) { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.apts__arrow:active:not(:disabled) { transform: scale(0.94); }
.apts__arrow:disabled { opacity: 0.3; cursor: default; }
/* le schede scorrono di lato (dito, trackpad o frecce); la prima parte dal margine della pagina */
.apts__track {
  display: flex; gap: var(--gutter); margin-top: clamp(1.5rem, 3vw, 2.25rem);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0.25rem var(--edge) 0.5rem; scroll-padding-inline: var(--edge);
}
.apts__track::-webkit-scrollbar { display: none; }
.apts__track:focus-visible { outline-offset: -3px; }
.apt { flex: 0 0 clamp(40rem, 60vw, 54rem); scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--paper); color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.apt__photos { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 3px; background: var(--paper); }
.apt__photos button { display: block; position: relative; padding: 0; border: 0; background: var(--paper-2); overflow: hidden; cursor: zoom-in; }
.apt__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-soft); }
.apt__photos button:hover img { transform: scale(1.04); }
.apt__photos button:focus-visible { outline-offset: -4px; outline-color: var(--honey); }
.apt__main { aspect-ratio: 4 / 3; }
.apt__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.apt__thumbs button { aspect-ratio: 3 / 2; }
.apt__more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(33 27 22 / 0.6); color: var(--on-dark); font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600;
}
.apt__body { display: flex; flex-direction: column; gap: 0.3rem; padding: clamp(1.1rem, 0.8rem + 0.7vw, 1.6rem); }
.apt__name { font-size: clamp(1.5rem, 1.2rem + 0.7vw, 1.9rem); line-height: 1.05; letter-spacing: -0.015em; }
.apt__facts { font-weight: 600; margin-top: 0.2rem; }
.apt__rooms { font-size: var(--step-body); line-height: 1.4; }
.apt__desc { font-size: var(--step-small); line-height: 1.55; color: var(--ink-soft); margin-top: 0.3rem; }
.apt__price { margin-top: auto; padding-top: 0.9rem; font-size: var(--step-small); color: var(--ink-soft); }
.apt__price strong { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 0.9vw, 2.1rem); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.apt__actions { display: grid; gap: 8px; margin-top: 0.75rem; }
.apt__actions .btn { min-height: 44px; padding: 0.5rem 0.9rem; font-size: var(--step-small); }
@media (max-width: 860px) {
  .apts__head .head, .apts__head .lead { grid-column: 1 / -1; }
  .apts__nav { grid-column: 1 / -1; justify-content: flex-start; }
  /* tablet: scheda orizzontale compatta (foto a sinistra, testo a destra), così non riempie lo schermo */
  .apt { flex-basis: min(36rem, calc(100vw - 2 * var(--margin) - 2.5rem)); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .apt__photos { grid-template-rows: 1fr; }
  .apt__main { aspect-ratio: auto; min-height: 100%; }
  .apt__main img { position: absolute; inset: 0; }
  .apt__thumbs { display: none; }
  .apt__body { gap: 0.15rem; padding: 1rem 1.1rem; }
  .apt__name { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); }
  .apt__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .apt__price { padding-top: 0.5rem; }
  .apt__actions { margin-top: 0.6rem; }
  .apt__actions .btn { min-height: 42px; }
}
/* telefono: scheda verticale ma più bassa (foto 3:2, miniature basse, descrizione corta, bottoni affiancati) */
@media (max-width: 560px) {
  .apt { grid-template-columns: 1fr; flex-basis: calc(100vw - 2 * var(--margin) - 1.75rem); }
  .apt__photos { grid-template-rows: auto auto; }
  .apt__main { aspect-ratio: 3 / 2; min-height: 0; }
  .apt__main img { position: static; }
  .apt__thumbs { display: grid; }
  .apt__thumbs button { aspect-ratio: 2 / 1; }
  .apt__body { padding: 0.9rem 1rem 1rem; }
  .apt__desc { -webkit-line-clamp: 2; line-clamp: 2; }
  .apt__actions { grid-template-columns: 1fr 1fr; }
  .apt__actions .btn { padding-inline: 0.4rem; font-size: 0.8125rem; white-space: nowrap; }
}
/* schermi grandi: tutti e 4 gli appartamenti insieme, 2 per riga, senza scorrimento né frecce.
   Scheda compatta: foto principale a sinistra (senza miniature), testo a destra, bottoni affiancati. */
@media (min-width: 1200px) {
  .apts__nav { display: none; }
  .apts__head .head { grid-column: 1 / 7; max-width: none; font-size: clamp(1.75rem, 0.9rem + 1.5vw, 2.5rem); }
  .apts__head .lead { grid-column: 7 / 13; }
  .apts__track {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 1.1vw, 1.5rem);
    overflow: visible; scroll-snap-type: none; padding-block: 0.25rem 0; margin-top: clamp(1rem, 1.6vw, 1.5rem);
  }
  .apt { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
  .apt__photos { grid-template-rows: 1fr; }
  .apt__main { aspect-ratio: auto; min-height: 100%; }
  .apt__main img { position: absolute; inset: 0; }  /* la foto riempie l'altezza del testo invece di allungare la scheda */
  .apt__thumbs { display: none; }
  .apt__body { gap: 0.15rem; padding: clamp(0.9rem, 0.4rem + 0.6vw, 1.25rem); }
  .apt__name { font-size: clamp(1.3rem, 0.9rem + 0.5vw, 1.6rem); }
  .apt__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 0.15rem; }
  .apt__price { padding-top: 0.5rem; }
  .apt__price strong { font-size: clamp(1.5rem, 1.1rem + 0.6vw, 1.8rem); }
  .apt__actions { grid-template-columns: 1fr 1fr; margin-top: 0.6rem; }
  .apt__actions .btn { min-height: 40px; padding-inline: 0.5rem; white-space: nowrap; }
}

/* ---------- 4. prezzi ---------- */
.prices { background: var(--paper); }
.prices__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.prices__text { grid-column: 1 / 7; grid-row: 1; }
.prices__calc { grid-column: 8 / 13; grid-row: 1; justify-self: end; width: min(100%, 29rem); padding-block: 0.5rem; }
.prices__intro { margin-top: 1rem; color: var(--ink-soft); max-width: 50ch; }
.ptable { width: 100%; margin-top: clamp(1.5rem, 3vw, 2.25rem); border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.ptable th, .ptable td { padding: 0.55rem 0.8rem; text-align: right; vertical-align: baseline; }
.ptable th:first-child { text-align: left; }
.ptable thead th { font-size: var(--step-body); font-weight: 600; line-height: 1.3; vertical-align: bottom; }
.ptable__unit { display: block; font-size: var(--step-small); font-weight: 400; color: var(--ink-soft); }
.ptable tbody th { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; white-space: nowrap; }
.ptable__occ { display: inline; margin-left: 0.6rem; font-family: var(--font-text); font-size: var(--step-small); font-weight: 400; color: var(--ink); }
.ptable tbody th, .ptable td { vertical-align: middle; }
.ptable td { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; white-space: nowrap; }
.ptable td.ptable__main { color: var(--ink); font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem); }
.ptable tbody tr:nth-child(odd) { background: var(--paper-2); }
.ptable tbody tr:nth-child(odd) > :first-child { border-radius: 10px 0 0 10px; }
.ptable tbody tr:nth-child(odd) > :last-child { border-radius: 0 10px 10px 0; }
/* «Gut zu wissen»: come un sottotitolo, in grigio */
.good { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.good__title { font-size: var(--step-lead); color: var(--ink); font-weight: 600; }
/* elenco puntato su due colonne: pallino color legno scuro, testo pieno e leggibile */
.good__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; margin-top: 0.75rem; color: var(--ink); font-size: var(--step-body); line-height: 1.45; }
.good__list li { position: relative; padding-left: 1.1rem; }
.good__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); }
/* «Compreso nel prezzo»: stesso elenco, con la spunta verde al posto del pallino */
.good__list--check li { padding-left: 1.6rem; }
.good__list--check li::before { top: 0.2em; width: 1.05em; height: 1.05em; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%233B2F24' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* calcolo del soggiorno: un foglio bianco sulla pennellata */
.calc {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.65rem 1.25rem; align-items: end;
  background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 0.6vw, 1.6rem);
}
.calc__title { grid-column: 1 / -1; font-size: var(--step-lead); }
/* persone e animale sulla stessa riga (6 colonne, 3 ciascuno) */
.calc__row { grid-column: span 3; display: grid; gap: 0.35rem; }
.calc__row label { font-weight: 600; line-height: 1.3; font-size: var(--step-small); }
.calc__check { grid-column: span 3; display: flex; align-items: center; gap: 0.6rem; min-height: 3rem; line-height: 1.25; white-space: nowrap; cursor: pointer; }
.calc__check input { width: 22px; height: 22px; accent-color: var(--accent); }
.calc__warn { grid-column: 1 / -1; font-size: var(--step-small); color: var(--error); font-weight: 600; }
.calc__warn:empty { display: none; }
.calc__row--wide { grid-column: 1 / -1; }
/* calendario sempre aperto: arrivo e partenza in rosso geranio, i giorni in mezzo su una striscia di lino */
.cal { display: grid; gap: 0.2rem; min-width: 0; }
.cal__head { display: flex; align-items: center; justify-content: space-between; }
.cal__title {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.3rem 0.9rem; border: 0; border-radius: 999px; background: none;
  font-family: var(--font-display); font-size: var(--step-body); font-weight: 600; color: var(--ink); transition: background-color var(--t-hover) ease;
}
.cal__title:hover, .cal__title[aria-expanded="true"] { background: var(--paper-2); }
.cal__title svg { transition: transform var(--t-ui) var(--ease-out); }
.cal__title[aria-expanded="true"] svg { transform: rotate(180deg); }
/* il pannello dei mesi copre la griglia dei giorni, così il riquadro non cambia altezza */
.cal__body { position: relative; }
.cal__panel { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr; gap: 0.5rem; background: var(--surface); animation: fade var(--t-ui) ease; }
.cal__panel[hidden] { display: none; }
.cal__years { display: flex; align-items: center; justify-content: space-between; }
.cal__year { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; font-variant-numeric: lining-nums; }
.cal__months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.cal__mon {
  border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: var(--step-body); font-weight: 600;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.cal__mon:hover:not(:disabled) { background: var(--paper-2); }
.cal__mon[aria-current="true"] { background: var(--button); color: var(--on-button); }
.cal__mon:disabled { color: rgb(33 27 22 / 0.28); background: none; cursor: default; }
.cal__nav { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--ink); transition: background-color var(--t-hover) ease; }
.cal__nav:hover:not(:disabled) { background: var(--paper-2); }
.cal__nav:disabled { opacity: 0.25; cursor: default; }
.cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 0; text-align: center; }
.cal__wd { padding-block: 0 0.2rem; font-size: var(--step-small); color: var(--ink-soft); }
.cal__pad, .cal__day { height: 1.85rem; padding: 0; border: 0; background: none; color: var(--ink); font-size: var(--step-small); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; cursor: pointer; }
.cal__day span { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; margin-inline: auto; border-radius: 999px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.cal__day:hover:not(:disabled) span { background: var(--paper-2); }
.cal__day:disabled { color: rgb(33 27 22 / 0.28); cursor: default; }
.cal__day.is-today span { box-shadow: inset 0 0 0 1.5px rgb(33 27 22 / 0.3); }
.cal__day.is-in { background: var(--paper-2); }
.cal__day.is-range.is-start { background: linear-gradient(to right, transparent 50%, var(--paper-2) 50%); }
.cal__day.is-range:not(.is-start) { background: linear-gradient(to left, transparent 50%, var(--paper-2) 50%); }
.cal__day.is-start span, .cal__day.is-end span, .cal__day.is-start:hover span, .cal__day.is-end:hover span { background: var(--button); color: var(--on-button); box-shadow: none; }
.cal__day.is-preview span { box-shadow: inset 0 0 0 2px var(--button); }
.cal__day:focus-visible { outline: none; }
.cal__day:focus-visible span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .calc__check { min-height: 44px; } }
@media (max-width: 380px) { .cal__day span { width: min(2.4rem, 100%); } }
.cal__sum { display: grid; gap: 0.15rem; padding-bottom: 0.35rem; }
.cal__do { display: flex; align-items: center; gap: 0.55rem; font-size: var(--step-lead); font-weight: 600; line-height: 1.3; color: var(--ink); }
.cal__n { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--button); color: var(--on-button); font-size: var(--step-small); font-weight: 700; }
.cal__done { font-size: var(--step-small); color: var(--ink-soft); }
/* su telefono e tablet i giorni restano grandi da toccare */
@media (max-width: 960px) { .cal__pad, .cal__day { height: 2.5rem; } .cal__day span { width: 2.4rem; height: 2.4rem; } .cal__nav { width: 44px; height: 44px; } }
@media (max-width: 380px) { .cal__nav { width: 34px; height: 34px; } }
.calc__cta { grid-column: 1 / -1; width: 100%; min-height: 50px; }
.calc input[type="number"], .calc input[type="date"], .calc select, .enquiry input, .enquiry select, .enquiry textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 0.6rem 0.85rem; border: 2px solid var(--paper-2); border-radius: 10px;
  background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; transition: border-color var(--t-hover) ease;
}
.calc input[type="number"], .calc input[type="date"], .calc select, .enquiry input, .enquiry select { height: 3rem; min-height: 0; }
.calc input:focus, .calc select:focus, .enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--accent); }
/* campi obbligatori: asterisco dopo l'etichetta, spiegato dalla nota sopra il modulo */
.enquiry .field:has([required]) > label::after { content: " *"; color: var(--button-ink); font-weight: 700; }
.enquiry__required { grid-column: 1 / -1; font-size: var(--step-small); color: var(--ink-soft); }
.enquiry__required b { color: var(--button-ink); }
/* se non entrano affiancati: tabella a tutta larghezza e, sotto, il riquadro largo uguale */
@media (max-width: 1240px) {
  .prices__text, .prices__calc { grid-column: 1 / -1; grid-row: auto; }
  .prices__calc { justify-self: stretch; width: 100%; margin-top: clamp(2.25rem, 5vw, 3.25rem); padding: 1.75rem 7%; }
  /* il bordo pennellato rientra fino al 6,5% della sua larghezza: il riquadro bianco sta più dentro, così non esce mai */
  .prices__calc.brushed::before { inset: 0; }
}
/* riquadro largo: calendario a sinistra, il resto a destra, così i giorni non si stirano */
@media (min-width: 901px) and (max-width: 1240px) {
  .calc { grid-template-columns: minmax(0, min(27rem, 54%)) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .calc .cal { grid-column: 1; grid-row: 2 / span 5; }
  .calc > .calc__row--wide:not(.cal) { grid-column: 2; grid-row: 2; }
  .calc > .calc__row:not(.calc__row--wide) { grid-column: 2; grid-row: 3; }
  .calc__check { grid-column: 2; grid-row: 4; }
  .calc__warn { grid-column: 2; grid-row: 5; }
  .calc__cta { grid-column: 2; grid-row: 6; align-self: end; }
}
/* colonna destra stretta: il pulsante passa sotto, a tutta larghezza, così resta su una riga */
/* fino a 900px il riquadro è su una colonna, largo al massimo 34rem e centrato */
@media (max-width: 400px) { form.calc select, form.enquiry select { font-size: var(--step-small); padding-inline: 0.5rem; } }
/* una colonna: il calendario resta di una larghezza giusta e centrato, non stirato */
@media (max-width: 900px) { .calc .cal { width: 100%; max-width: 27rem; justify-self: center; } .calc__title { justify-self: start; } .prices__calc { justify-self: center; max-width: 34rem; } }
@media (max-width: 360px) { .calc__cta { padding-inline: 0.5rem; font-size: var(--step-small); } }
@media (max-width: 560px) {
  .good__list { grid-template-columns: 1fr; }
  .ptable th, .ptable td { padding: 0.6rem 0.4rem; }
  .ptable__occ { display: block; margin-left: 0; }
  .ptable thead th:nth-child(n + 3), .ptable td:nth-child(n + 3) { font-size: var(--step-small); }
  .ptable td:nth-child(n + 3) { font-family: var(--font-text); font-weight: 600; }
}
/* telefoni stretti: le intestazioni lunghe (tedesco, russo) vanno a capo invece di allargare la pagina */
@media (max-width: 440px) {
  .ptable th, .ptable td { padding-inline: 0.3rem; }
  .ptable thead th { font-size: var(--step-small); hyphens: auto; overflow-wrap: anywhere; }
  .ptable td.ptable__main { font-size: 1.25rem; }
  .ptable__occ { white-space: normal; }
}

/* ---------- 5. dintorni: tre colonne, poi la galleria ---------- */
.area { padding-top: clamp(2rem, 4vw, 4rem); padding-bottom: 0; scroll-margin-top: calc(1.25rem - clamp(2rem, 4vw, 4rem)); }
.area__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem var(--gutter); align-items: end; }
.area__head .head { grid-column: 1 / 7; }
.area__head .lead { grid-column: 8 / 13; color: var(--ink-soft); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.trio__item { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.trio__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.6rem; }
.trio__item h3 { font-size: var(--step-lead); }
.trio__item p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .area__head .head, .area__head .lead { grid-column: 1 / -1; }
  .trio { grid-template-columns: 1fr; gap: 2.5rem; }
  .trio__item img { aspect-ratio: 16 / 9; }
}
/* tablet: Inverno, Estate e Webcam con la foto a sinistra e il testo a destra, invece di tre foto enormi una sotto l'altra */
@media (min-width: 561px) and (max-width: 860px) {
  .trio { gap: 1.75rem; }
  .trio__item { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); column-gap: 1.25rem; row-gap: 0.4rem; align-items: start; align-content: start; }
  .trio__item img { grid-row: 1 / span 4; aspect-ratio: 3 / 2; margin-bottom: 0; }
}
/* galleria: una riga di foto che scorre di lato; su PC se ne vedono due e l'inizio della terza, su telefono una e un pezzo */
.gal { padding-block: clamp(2.5rem, 4.5vw, 4rem) var(--section-y); }
.gal__track {
  display: flex; gap: clamp(8px, 1vw, 14px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  /* 20/11: la riga finisce al margine della pagina (come le altre sezioni): le foto scorrono «dietro» il bordo invece di uscire fino al bordo dello schermo */
  margin-inline: var(--edge); padding: 0.25rem 0 0.5rem;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline-offset: -3px; }
.gal__item {
  /* stessa misura delle foto di Inverno/Estate/Webcam.
     Le % sono della larghezza utile della riga (la stessa della pagina, senza margini) */
  flex: 0 0 calc((100% - 2 * var(--gutter)) / 3); aspect-ratio: 3 / 2; scroll-snap-align: start;
  display: block; padding: 0; border: 0; background: var(--paper-2); border-radius: 10px; overflow: hidden; cursor: zoom-in;
}
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-soft); }
.gal__item:hover img { transform: scale(1.04); }
/* tablet: le foto principali sono larghe il 46% (vedi .trio più sotto); telefono: tutta la larghezza, come quelle */
@media (max-width: 860px) { .gal__item { flex-basis: 46%; } }
@media (max-width: 560px) { .gal__item { flex-basis: 100%; aspect-ratio: 16 / 9; } }  /* come le foto principali sul telefono */
/* banda di scorrimento sotto la riga: la parte scura è larga quanto la porzione di foto visibile (--thumb, da main.js) */
.gal__bar { margin-top: clamp(0.9rem, 1.6vw, 1.4rem); }
.gal__range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; --thumb: 120px; }
.gal__range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgb(33 27 22 / 0.14); }
.gal__range::-moz-range-track { height: 6px; border-radius: 999px; background: rgb(33 27 22 / 0.14); }
.gal__range::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: 6px; border: 0; border-radius: 999px; background: var(--ink); transition: background-color var(--t-hover) ease; }
.gal__range::-moz-range-thumb { width: var(--thumb); height: 6px; border: 0; border-radius: 999px; background: var(--ink); }
.gal__range:hover::-webkit-slider-thumb, .gal__range:active::-webkit-slider-thumb { background: var(--accent); }
.gal__range:focus-visible { outline-offset: 4px; }

/* ---------- 6. come arrivare ---------- */
.arrival { background: var(--paper); padding-top: 0; scroll-margin-top: 1.25rem; }
.arrival__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); align-items: start; }
/* testi a sinistra, mappa a destra, distanze in una fascia pennellata sotto a tutta larghezza */
.arrival__how { grid-column: 1 / 6; }
.arrival__how h3 { font-size: var(--step-lead); }
.arrival__how h3 + p, .arrival__how h3 + address { margin-top: 0.5rem; max-width: 56ch; }
.arrival__how p + h3 { margin-top: 1.5rem; }
/* mappa ravvicinata: l'immagine resta a grandezza naturale (nitida) e si taglia attorno alla casa; il segnaposto sta sempre sulla casa */
.arrival__mapbox { grid-column: 7 / 13; display: grid; gap: 0.75rem; justify-items: start; }
.arrival__map { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #F2EFE9; cursor: zoom-in; box-shadow: 0 1px 0 rgb(33 27 22 / 0.06), 0 10px 30px -14px rgb(33 27 22 / 0.35); }
.arrival__map img { width: 100%; height: 100%; object-fit: none; object-position: 37.58% 50%; }
.arrival__map .map-pin { position: absolute; left: 37.58%; top: 50%; transform: translate(-50%, -100%); }
.arrival__map-zoom { position: absolute; right: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.4rem 0.9rem; border-radius: 999px; background: rgb(255 255 255 / 0.94); color: var(--ink); font-size: var(--step-small); font-weight: 600; box-shadow: 0 4px 14px -6px rgb(33 27 22 / 0.5); transition: background 200ms ease; }
.arrival__map:hover .arrival__map-zoom { background: #fff; }
.arrival__map:hover .map-pin svg { transform: translateY(-3px); }
.arrival__map-credit { font-size: 0.75rem; line-height: 1.4; color: var(--ink-soft); }
.arrival__map-credit a { color: inherit; }
.arrival__mapbox > .btn { margin-top: 0.25rem; }
/* segnaposto della casa (uguale nella mappa piccola e in quella grande) */
.map-pin { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--button); pointer-events: none; }
.map-pin svg { display: block; filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.3)); transition: transform 300ms var(--ease-soft); }
.map-pin__label { padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-body, inherit); font-size: 0.8125rem; font-weight: 700; line-height: 1.3; white-space: nowrap; box-shadow: 0 3px 8px -3px rgb(0 0 0 / 0.45); }
.map-pin-icon { display: flex; align-items: flex-end; justify-content: center; }
/* distanze: riquadri arrotondati (nome sopra, distanza sotto), 4 per riga sotto testi e mappa */
.arrival__table { grid-column: 1 / -1; margin-top: 0.25rem; }
.arrival__dist-title { font-size: var(--step-lead); }
.distances { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.distances div { background: var(--paper-2); border-radius: 10px; padding: 0.55rem 0.9rem; }
.distances dt { font-size: var(--step-small); color: var(--ink-soft); }
.distances dd { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.2; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.arrival__addr { font-style: normal; }
@media (max-width: 860px) {
  .arrival__how, .arrival__mapbox { grid-column: 1 / -1; }
  .arrival__mapbox { max-width: 40rem; margin-top: 0.75rem; }
}
@media (max-width: 720px) {
  .distances { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
}

/* ---------- panorama: le cime intere con gli abeti alla base ---------- */
.panorama { position: relative; height: clamp(16rem, min(42vw, 68svh), 46rem); overflow: hidden; background: var(--wood); }
.panorama img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.panorama::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: var(--tear); z-index: 1;
  background: var(--paper); transform: scaleY(-1);
  -webkit-mask: url("../img/edge-torn.svg") center bottom / 100% 100% no-repeat;
          mask: url("../img/edge-torn.svg") center bottom / 100% 100% no-repeat;
}

/* ---------- 7. contatti ---------- */
.contact { background: var(--wood); color: var(--on-dark); padding-bottom: calc(var(--section-y) + var(--tear)); }  /* il bordo strappato del piè di pagina copre --tear: così il verde sotto il modulo è uguale a quello sopra */
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.contact__say { grid-column: 1 / 6; display: grid; gap: 1.25rem; justify-items: start; }
.contact__say .lead { color: var(--on-dark-soft); }
.contact__links { display: grid; gap: 0.5rem; justify-items: start; margin-top: 0.75rem; }
.contact__links a { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; text-decoration-color: var(--accent); overflow-wrap: anywhere; transition: color var(--t-hover) ease; }
.contact__links a:hover { color: var(--accent); }
.contact__links p { margin-top: 0.5rem; color: var(--on-dark-soft); }
.enquiry {
  grid-column: 7 / 13;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.25rem;
  background: var(--paper); color: var(--ink); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); border-radius: var(--radius);
}
.enquiry :focus-visible { outline-color: var(--accent); }
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field:has(textarea), .enquiry__send { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--step-small); }
.enquiry textarea { resize: vertical; min-height: 4.5rem; }
.enquiry input[type="date"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; line-height: normal; }
.enquiry input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field__err { font-size: var(--step-small); color: var(--error); font-weight: 600; }
.field__err:empty { display: none; }
.field__err.is-info { color: var(--ink-soft); font-weight: 400; }   /* nota informativa, non un errore */
.field.has-error input { border-color: var(--error); }
.enquiry__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.enquiry__note { font-size: var(--step-small); color: var(--ink-soft); flex: 1 1 14rem; }
.enquiry__status { flex-basis: 100%; font-size: var(--step-small); color: var(--accent); font-weight: 600; }
.enquiry__status:empty { display: none; }
.enquiry__status.is-error { color: var(--error); }
.enquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* fino a 1239px testo sopra e modulo sotto a tutta larghezza; da 1240px testo a sinistra e modulo largo a destra */
@media (max-width: 1239px) {
  .contact__say, .enquiry { grid-column: 1 / -1; }
  .enquiry { margin-top: 2rem; }
}
@media (min-width: 1240px) {
  /* testi un po' più grandi del normale ma sobri: titolo misurato, righe ariose, contatti meno pesanti; centrati in altezza accanto al modulo */
  .contact__say { grid-column: 1 / 5; align-self: center; gap: 1.35rem; }
  .contact__say .head { font-size: clamp(2.2rem, 1.55rem + 0.9vw, 2.6rem); letter-spacing: -0.01em; text-wrap: balance; }
  .contact__say .lead { font-size: clamp(1.125rem, 0.98rem + 0.3vw, 1.3rem); line-height: 1.6; max-width: 30ch; }
  .contact__links { gap: 0.55rem; margin-top: 0.6rem; }
  .contact__links a { font-size: clamp(1.15rem, 0.95rem + 0.35vw, 1.4rem); font-weight: 500; letter-spacing: 0.005em; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
  .contact__links p { font-size: var(--step-body); margin-top: 0.85rem; }
  .enquiry { grid-column: 5 / 13; margin-left: clamp(0rem, 2vw, 2rem); }
}
/* telefono: un campo per riga */
@media (max-width: 599px) {
  .enquiry { grid-template-columns: 1fr; }
  .enquiry__send .btn { width: 100%; }
}
/* medio: nome | cognome; e-mail; persone | arrivo | partenza; appartamento */
@media (min-width: 600px) {
  .enquiry { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .enquiry .f-first, .enquiry .f-last { grid-column: span 3; }
  .enquiry .f-email { grid-column: 1 / -1; }
  .enquiry .f-persons, .enquiry .f-date { grid-column: span 2; }
  .enquiry .f-apt, .enquiry .field--wide { grid-column: 1 / -1; }
}
/* largo: nome | cognome | e-mail lunga; persone | arrivo | partenza | appartamento */
@media (min-width: 760px) {
  .enquiry { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 0.75rem; }
  .enquiry .f-first, .enquiry .f-last { grid-column: span 3; }
  .enquiry .f-email { grid-column: span 6; }
  .enquiry .f-persons { grid-column: span 2; }
  .enquiry .f-date { grid-column: span 3; }
  .enquiry .f-apt { grid-column: span 4; }
}

/* ---------- 8. piè di pagina scuro, logo al centro ---------- */
.foot { background: var(--foot); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 5rem) calc(1.5rem + env(safe-area-inset-bottom)); }
.foot__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--gutter); }
.foot__addr { font-size: var(--step-small); line-height: 1.7; color: var(--on-dark-soft); }
.foot__addr a { color: var(--on-dark); text-decoration: none; }
.foot__addr a:hover { text-decoration: underline; }
.foot__logo { display: block; }
.foot__logo img { width: clamp(11rem, 8rem + 8vw, 16rem); }
.foot__bottom {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem var(--gutter); align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; font-size: var(--step-small); }
.foot__links a { display: inline-block; padding-block: 0.5rem; text-decoration: none; color: var(--on-dark-soft); transition: color var(--t-hover) ease; }
.foot__links a:hover { color: var(--on-dark); text-decoration: underline; }
.foot__legal { font-size: var(--step-small); color: var(--on-dark-soft); }
@media (max-width: 760px) {
  .foot__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot__logo { order: -1; }
  .foot__bottom { grid-template-columns: 1fr; }
  .foot__links { order: -1; }
}

/* ---------- scheda appartamento ---------- */
.apt-dialog {
  width: min(64rem, 100% - 2rem); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); overflow: hidden; display: none; flex-direction: column;
}
.apt-dialog[open] { display: flex; animation: dlg-in var(--t-ui) var(--ease-out); }
.apt-dialog::backdrop { background: rgb(33 27 22 / 0.75); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.apt-dialog__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.6rem 0.6rem clamp(1.25rem, 1rem + 1.5vw, 2.5rem); background: var(--paper); }
.apt-dialog__title { font-size: var(--step-head); letter-spacing: -0.02em; line-height: 1.05; }
.apt-dialog__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(1.25rem, 1rem + 1.5vw, 2.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.apt-dialog__intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem 2.5rem; align-items: end; }
.apt-dialog__meta { font-size: var(--step-small); color: var(--ink-soft); }
.apt-dialog__desc { margin-top: 0.5rem; font-size: var(--step-lead); line-height: 1.45; }
.apt-dialog__price { display: grid; gap: 1rem; justify-items: start; }
.apt-dialog__price p { color: var(--ink-soft); }
.apt-dialog__price strong { font-family: var(--font-display); font-size: var(--step-head); color: var(--ink); line-height: 1; }
.apt-dialog__sub { margin-top: 2.5rem; font-size: var(--step-lead); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 8px; margin-top: 1rem; }
.thumbs button { display: block; padding: 0; border: 0; background: var(--paper-2); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; cursor: zoom-in; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-soft); }
.thumbs button:hover img { transform: scale(1.05); }
.plan-btn { display: block; width: 100%; max-width: 40rem; margin-top: 1rem; padding: 1rem; border: 0; background: var(--surface); border-radius: var(--radius); cursor: zoom-in; }
/* «Calcola il percorso»: piccolo menu per scegliere l'app di mappe */
.route { position: relative; display: inline-block; }
.route__menu { position: absolute; z-index: 30; top: calc(100% + 0.5rem); left: 0; min-width: 15rem; margin: 0; padding: 0.4rem; list-style: none; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 2px 6px rgb(33 27 22 / 0.12), 0 18px 40px -12px rgb(33 27 22 / 0.45); animation: dlg-in 180ms var(--ease-out); }
.route__menu[hidden] { display: none; }
.route__menu--right { left: auto; right: 0; }
.route__menu-title { padding: 0.45rem 0.75rem 0.3rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.route__menu a { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; padding: 0.35rem 0.75rem; border-radius: 9px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.route__menu a:hover, .route__menu a:focus-visible { background: var(--paper); outline: none; }
.route__menu a::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dot, var(--ink-soft)); }
.route__menu a::after { content: "↗"; margin-left: auto; padding-left: 1rem; color: var(--ink-soft); font-weight: 400; }

/* ---------- mappa grande ---------- */
.map-dialog {
  width: min(76rem, 100% - 2rem); height: calc(100dvh - 2rem); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); overflow: hidden; display: none; flex-direction: column;
}
.map-dialog[open] { display: flex; animation: dlg-in var(--t-ui) var(--ease-out); }
.map-dialog::backdrop { background: rgb(33 27 22 / 0.75); }
.map-dialog__bar { position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 0.6rem 0.6rem 0.6rem clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.map-dialog__title { font-size: var(--step-lead); line-height: 1.15; }
.map-dialog__actions { display: flex; align-items: center; gap: 0.5rem; }
.map-dialog__map { flex: 1; min-height: 0; background: #F2EFE9; z-index: 0; }
.map-dialog__map.is-error { display: grid; place-items: center; padding: 2rem; text-align: center; color: var(--ink-soft); }
.map-dialog .leaflet-container { font: inherit; }
@media (max-width: 560px) {
  .map-dialog__bar { padding-left: 1rem; }
  .map-dialog__title { font-size: 1.05rem; }
  .map-dialog__actions .btn { min-height: 42px; padding-inline: 0.9rem; font-size: 0.8125rem; white-space: nowrap; }
}
@media (max-width: 760px) {
  .map-dialog { width: 100%; height: 100%; margin: 0; border-radius: 0; }
  .apt-dialog { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; }
  .apt-dialog__intro { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: 1fr 1fr; }
}

/* ---------- foto a tutto schermo ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(30 22 16 / 0.96); color: var(--on-dark); overflow: hidden; touch-action: pan-y pinch-zoom;
}
.lightbox[open] { display: grid; place-items: center; animation: lb-in var(--t-ui) ease; }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { display: grid; justify-items: center; gap: 0.75rem; width: 100%; height: 100%; min-height: 0; padding: 4.5rem 4.5rem 1.25rem; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox__fig img { width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 200ms ease; }
.lightbox__fig img.is-loading { opacity: 0.2; }
.lightbox__cap { font-size: var(--step-small); color: var(--on-dark-soft); text-align: center; padding-bottom: env(safe-area-inset-bottom); }
.lightbox__count { margin-left: 0.75rem; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 999px;
  background: rgb(246 241 234 / 0.14); color: var(--on-dark); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.lightbox__btn:hover { background: rgb(246 241 234 / 0.26); }
.lightbox__btn:active { transform: scale(0.94); }
.lightbox :focus-visible { outline-color: var(--honey); }
.lightbox__prev { left: max(12px, env(safe-area-inset-left)); top: 50%; margin-top: -26px; }
.lightbox__next { right: max(12px, env(safe-area-inset-right)); top: 50%; margin-top: -26px; }
.lightbox__close { right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); }
@media (max-width: 640px) {
  .lightbox__fig { padding: 4.25rem 0.5rem 5.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); margin-top: 0; }
}

/* ---------- pagine legali ---------- */
/* pagine Note legali e Privacy: barra scura semplice, testo su una colonna leggibile, piè di pagina sobrio */
.legal { background: var(--paper); }
.legal .legal__bar { position: sticky; margin-bottom: 0; background: var(--paper); color: var(--ink); border-bottom: 1px solid rgb(33 27 22 / 0.1); grid-template-columns: 1fr auto 1fr; gap: 0.5rem; }
.legal__bar::before { display: none; }
.legal__back { justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: var(--ink); font-size: var(--step-small); font-weight: 600; text-decoration: none; }
.legal__back:hover span { text-decoration: underline; }
.legal__logo { display: block; }
.legal__logo img { display: block; height: 42px; width: auto; }
.legal main { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.legal__foot { margin-top: var(--section-y); padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom)); background: var(--foot); color: var(--on-dark-soft); font-size: var(--step-small); }
.legal__foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem; }
.legal__foot ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.legal__foot a { color: var(--on-dark); text-decoration: none; }
.legal__foot a:hover { text-decoration: underline; }
@media (max-width: 480px) { .legal__back span { display: none; } }
.legal__body { max-width: calc(46rem + 2 * var(--edge)); margin-inline: auto; }
.legal__body .lead { margin-top: 1rem; color: var(--ink-soft); }
.legal__body h2 { margin-top: 3rem; font-size: var(--step-lead); }
.legal__body h2 + * { margin-top: 1rem; }
.legal__body p + p, .legal__body p + address, .legal__body address + p { margin-top: 1rem; }
.legal__todo { background: var(--paper-2); padding: 0.5rem 0.85rem; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .house__alt { animation: none !important; opacity: 0; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}

/* ---------- telefono in orizzontale (schermo basso e largo): affiancare invece di impilare ---------- */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) {
  /* casa: testo a sinistra, foto a destra come sul computer (la foto non diventa una striscia) */
  .house__text { grid-column: 1 / 7; grid-row: 1; padding-right: clamp(0rem, 2vw, 1.5rem); }
  .house__card { grid-column: 7 / 13; grid-row: 1; order: 0; margin: 0; }
  .house__photo img { max-height: none; aspect-ratio: 4 / 3; }
  .house__key { grid-row: 2; }
  /* calendario a sinistra, scelte a destra: il riquadro sta tutto nello schermo */
  .prices__calc { max-width: none; justify-self: stretch; padding: 0.6rem 3%; }
  .calc { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: clamp(1.5rem, 4vw, 3rem); row-gap: 0.5rem; align-items: start; padding: 1rem 1.25rem; }
  .calc .cal { grid-column: 1; grid-row: 2 / span 5; max-width: none; justify-self: stretch; }
  .calc > .calc__row--wide:not(.cal) { grid-column: 2; grid-row: 2; }
  .calc > .calc__row:not(.calc__row--wide) { grid-column: 2; grid-row: 3; }
  .calc__check { grid-column: 2; grid-row: 4; }
  .calc__warn { grid-column: 2; grid-row: 5; }
  .calc__cta { grid-column: 2; grid-row: 6; align-self: end; }
  .cal__pad, .cal__day { height: 1.8rem; }
  .cal__day span { width: 1.8rem; height: 1.8rem; }
  .calc input[type="number"], .calc select { height: 2.75rem; }
  .cal__nav { width: 40px; height: 40px; }
  .cal__title { white-space: nowrap; }
  /* come arrivare: testi a sinistra, mappa a destra (non più alta dello schermo) */
  .arrival__how { grid-column: 1 / 7; }
  .arrival__mapbox { grid-column: 7 / 13; max-width: none; margin-top: 0; }
}
