/* La Maga del Lago
   Palette: tre colori e i neutri caldi.
   - marrone del logo (#78340f) e il suo scuro, per i testi e le sezioni scure
   - terracotta, come le camere Rossa, Arancio e Gialla e gli ombrelloni della spiaggetta, solo sulle azioni
   - turchese, il lago e la camera Turchese, per la sezione della spiaggetta e i piccoli dettagli
   I colori pieni delle quattro camere compaiono solo come pallino accanto al nome. */

:root {
  --stone: #f3ece2;
  --stone-2: #e7ddcf;
  --paper: #fbf7f1;
  --ink: #2e1c12;
  --muted: #6b5446;
  --deep: #3e2417;
  --brown: #78340f;
  --accent: #a8461c;
  --accent-dark: #8a3714;
  --teal: #1d6563;
  --teal-2: #2f8f8a;
  --on-deep: #f6efe6;
  --on-deep-muted: #d5c3b1;
  --on-teal: #f2f7f6;
  --on-teal-muted: #bfdcd8;
  --wa: #25d366;

  --gialla: #d9a521;
  --rossa: #a8321f;
  --arancio: #d9731f;
  --turchese: #2f8f8a;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-small: 0.875rem;
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --s-title: clamp(1.5rem, 1.05rem + 1.7vw, 2.25rem);
  --s-head: clamp(2.25rem, 0.9rem + 5.4vw, 5.75rem);

  --m: clamp(20px, 4.2vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --sec: clamp(88px, 12vw, 180px);
  --bar-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, h4, .foot__sign, .tabs__btn, dt, .rev blockquote, .legend__story {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "SOFT" 60;
  letter-spacing: -0.02em;
}
h1, h2 { font-size: var(--s-head); line-height: 1.02; text-wrap: balance; }
h3, .h3 { font-size: var(--s-title); line-height: 1.1; text-wrap: balance; }
h4 { font-size: var(--s-lead); line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--s-lead); line-height: 1.4; max-width: 34em; }
.kicker { font-size: var(--s-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .beach :focus-visible, .legend :focus-visible, .foot :focus-visible, .bar:not(.is-solid) :focus-visible, .lb :focus-visible { outline-color: #fff; }
::selection { background: var(--deep); color: var(--on-deep); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { padding-inline: var(--m); max-width: 1760px; margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; }

/* Segnaposto da riempire: ben visibili, ma senza rompere la pagina */
.ph { background: rgba(168, 70, 28, 0.14); padding: 0.05em 0.3em; border-radius: 4px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.beach .ph, .hero .ph, .legend .ph, .foot__credits .ph, .tabs__pics .ph { background: rgba(255, 255, 255, 0.18); }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 0.9375rem; }
.btn--wide { width: 100%; }
.btn--ghost { background: var(--stone-2); color: var(--ink); }
.btn--ghost:hover { background: #ddd0bf; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--stone-2); }
.link { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: color 0.2s; }
.link:hover { color: var(--accent-dark); }
.link--light, .link--light:hover { color: #fff; }

/* Entrate allo scroll: solo se c'è JavaScript, mai contenuto nascosto senza */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 85ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Barra ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--m); color: #fff;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.bar.is-solid, .bar.is-open { background: var(--stone); color: var(--ink); }
.bar__logo { display: block; flex: none; }
.bar__logo img { height: 30px; width: auto; }
.bar__logo--dark { display: none; }
.bar.is-solid .bar__logo--dark, .bar.is-open .bar__logo--dark { display: block; }
.bar.is-solid .bar__logo--light, .bar.is-open .bar__logo--light { display: none; }
.bar__nav { display: none; }
.bar__nav a { text-decoration: none; }
.bar__tools { display: flex; align-items: center; gap: 6px; }
.bar__cta { display: none; }
.bar__menu { min-height: 44px; padding: 0 4px 0 12px; font-weight: 600; font-size: 0.9375rem; }
.lang { display: flex; }
.lang button { min-width: 40px; min-height: 44px; font-weight: 600; font-size: 0.9375rem; opacity: 0.6; transition: opacity 0.2s; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.lang button:hover { opacity: 1; }

.bar.is-open .bar__nav {
  display: flex; flex-direction: column; gap: 6px;
  position: fixed; inset: var(--bar-h) 0 0 0; padding: 28px var(--m);
  background: var(--stone); overflow: auto;
}
.bar.is-open .bar__nav a { font-family: var(--serif); font-size: 2rem; letter-spacing: -0.02em; padding: 10px 0; font-variation-settings: "SOFT" 60; }

/* ---------- 1 · Hero con le foto che si alternano ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--deep); color: #fff; }
.hero__show { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide--cervi img { object-position: 92% 50%; } /* il cervo grande sta a destra: su smartphone resta nell'inquadratura */
/* lento avvicinamento mentre la foto è in scena; torna indietro solo dopo la dissolvenza */
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.09); transition: transform 0s linear 1.6s; }
.hero__slide.is-on img { transform: scale(1); transition: transform 7.5s linear; }
.hero__slide figcaption {
  position: absolute; z-index: 2; top: calc(var(--bar-h) + 10px); right: var(--m);
  font-size: var(--s-small); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity 0.6s ease, transform 0.6s var(--ease);
}
.hero__slide.is-on figcaption { opacity: 1; transform: none; transition-delay: 0.5s; }
/* velo scuro solo dove c'è il testo (in basso) e sotto la barra (in alto) */
.hero__show::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(30, 16, 9, 0.9) 0%, rgba(30, 16, 9, 0.55) 32%, rgba(30, 16, 9, 0) 60%, rgba(30, 16, 9, 0) 80%, rgba(30, 16, 9, 0.45) 100%); } /* taste-skill-ignore: velo neutro sotto il testo sulla foto */
.hero__text { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 0 var(--m) calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 20px; }
.hero__side { display: grid; gap: 22px; justify-items: start; }
.hero__side p { font-size: var(--s-body); max-width: 30em; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.js .hero h1, .js .hero__side { animation: rise 1s var(--ease) both; }
.js .hero__side { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- 2 · L'esperienza ---------- */
.exp { padding-top: clamp(64px, 9vw, 140px); }
.exp__head { display: grid; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); }
.exp__caps { display: grid; gap: 10px; font-size: var(--s-small); line-height: 1.5; max-width: 24em; }
.exp__pano img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }
.exp__rows { display: grid; gap: clamp(56px, 8vw, 120px); padding-top: clamp(56px, 9vw, 140px); }
.exp--solo { padding-top: var(--sec); }
.exp--solo .exp__rows { padding-top: 0; }
.exp__row { display: grid; gap: 22px; }
.exp__copy { display: grid; gap: 12px; }
.exp__copy p { max-width: 34em; }
.exp__pic img { width: 100%; object-fit: cover; }
.exp__pic--a img { aspect-ratio: 4 / 5; }
.exp__pic--b { width: 100%; }
.exp__pic--b img { aspect-ratio: 3 / 2; }
.exp__pic--a { width: 78%; justify-self: end; }
.exp__pic--c { width: 66%; }
.exp__pic--c img { aspect-ratio: 4 / 5; object-position: 50% 60%; }
.exp__pic--duo { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 3 · Le camere ---------- */
.rooms { padding-top: var(--sec); }
.rooms__head { display: grid; gap: 20px; padding-block: 16px; }
.room { display: grid; margin-top: clamp(56px, 8vw, 120px); }
.room__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room__pic { order: 1; }
.room__card { order: 2; position: relative; z-index: 1; background: var(--paper); padding: clamp(24px, 3vw, 40px); margin: -36px 12px 0; display: grid; gap: 14px; justify-items: start; }
/* il colore della camera: un pallino accanto al nome e i punti dell'elenco */
.room__card h3::before { content: ""; display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--room, var(--teal-2)); margin-right: 0.3em; vertical-align: 0.14em; }
.room__pic--second { order: 3; width: 62%; justify-self: end; margin-top: 16px; }
.room__pic--second img { aspect-ratio: 3 / 4; }
.room__meta { font-size: var(--s-small); font-weight: 600; }
.room__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; width: 100%; font-size: 1rem; padding-block: 6px; }
.room__list li { padding-left: 16px; position: relative; }
.room__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--room, var(--teal-2)); }
.room__price { font-weight: 600; }

/* ---------- 4 · Recensioni ---------- */
.revs { padding-top: var(--sec); }
.revs__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 56px); }
.revs__score { font-size: var(--s-lead); }
.revs__score strong { font-family: var(--serif); font-weight: 400; font-size: 1.6em; margin-right: 6px; }
.revs__row {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px var(--m) 8px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: none; cursor: grab;
}
.revs__row::-webkit-scrollbar { display: none; }
.revs__row.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rev { flex: none; width: min(84vw, 440px); scroll-snap-align: start; background: var(--paper); padding: clamp(24px, 3vw, 36px); display: grid; gap: 22px; align-content: space-between; }
.rev blockquote { font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem); line-height: 1.45; }
.rev figcaption { font-size: var(--s-small); font-weight: 600; color: var(--muted); }
.rev figcaption::before { content: "★★★★★"; display: block; color: var(--accent); letter-spacing: 0.15em; margin-bottom: 6px; }
.revs__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; }
.revs__note { font-size: var(--s-small); color: var(--muted); }
.revs__note:empty { display: none; }

/* ---------- 5 · La spiaggetta (assaggio) ---------- */
.beach { background: var(--teal); color: var(--on-teal); margin-top: var(--sec); padding-block: clamp(72px, 10vw, 150px); }
.beach__head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 64px); }
.beach__row, .gal__row {
  display: flex; gap: 8px; height: clamp(320px, 56svh, 600px);
  overflow-x: auto; overflow-y: hidden; padding-inline: var(--m);
  scroll-snap-type: x proximity; scroll-padding-inline: var(--m);
  scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch;
}
.beach__row::-webkit-scrollbar, .gal__row::-webkit-scrollbar { display: none; }
.beach__row.is-drag, .gal__row.is-drag { cursor: grabbing; scroll-snap-type: none; }
.beach__row.is-drag .g, .gal__row.is-drag .g { pointer-events: none; }
.beach__foot { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- 6 · Il territorio (a schede) ---------- */
.land { padding-top: var(--sec); }
.land__head { display: grid; gap: 20px; padding-block: 16px; }
.tabs { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 56px); }
.tabs__list { display: grid; gap: clamp(2px, 0.5vw, 8px); justify-items: start; }
.tabs__btn { font-size: clamp(1.5rem, 0.9rem + 2.4vw, 3rem); letter-spacing: -0.025em; line-height: 1.15; text-align: left; padding: 6px 0; opacity: 0.38; transition: opacity 0.5s var(--ease); }
.tabs__btn.is-on { opacity: 1; }
.tabs__btn.is-on::after { content: ""; display: block; height: 2px; width: 2.2em; background: var(--accent); margin-top: 6px; }
.tabs__btn:hover { opacity: 0.8; }
.tabs__btn.is-on:hover { opacity: 1; }
.tabs__pics { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep); }
.tabs__pics figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.tabs__pics figure.is-on { opacity: 1; }
/* «Scopri i sentieri»: occupa sempre il suo spazio (niente salti), si vede solo con la scheda Sentieri */
.land__cta { opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s; }
.land__cta.is-on { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.tabs__pics img { width: 100%; height: 100%; object-fit: cover; }
.tabs__pics figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; color: #fff; font-size: 1rem; line-height: 1.45; background: linear-gradient(to top, rgba(30, 16, 9, 0.85), rgba(30, 16, 9, 0)); } /* taste-skill-ignore: velo sotto la didascalia */
.land__foot { margin-top: clamp(32px, 4vw, 56px); }

/* Pagina del territorio: le schede dei luoghi */
.land__group { margin: clamp(72px, 8vw, 110px) 0 clamp(20px, 2.4vw, 32px); }
.land__grid { display: grid; gap: clamp(36px, 4.5vw, 72px) var(--gap); }
.place figure { overflow: hidden; }
.place img { width: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.place:hover img { transform: scale(1.035); }
.place--gole img, .place--scanno img { aspect-ratio: 16 / 10; }
.place--godi img { aspect-ratio: 16 / 9; }
.place--sentieri img, .place--parco img { aspect-ratio: 4 / 5; }
.place--villalago img { aspect-ratio: 4 / 3; }
.place--sentieri, .place--villalago { width: 80%; justify-self: end; }
.place--parco { width: 80%; }
.place__text { display: grid; gap: 6px; margin-top: 16px; max-width: 30em; }
.place__time { font-size: var(--s-small); font-weight: 600; margin-top: 2px; }

.ebike { display: grid; gap: 24px; margin-top: clamp(64px, 9vw, 130px); }
.ebike__pic { width: 62%; }
.ebike__pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ebike__text { display: grid; gap: 14px; align-content: center; }
.ebike__text p { max-width: 34em; }
.ebike__val { font-weight: 600; }

.trek { background: var(--paper); padding: clamp(24px, 3.4vw, 48px); margin-top: clamp(64px, 9vw, 130px); display: grid; gap: 14px; justify-items: start; }
.trek p { max-width: 36em; }

/* ---------- 7 · Galleria ---------- */
.gal { padding-top: var(--sec); }
.gal__head { display: grid; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.gal__count { font-size: var(--s-small); font-weight: 600; }
.g { display: block; overflow: hidden; flex: none; scroll-snap-align: start; background: var(--stone-2); }
.g img, .g video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); -webkit-user-drag: none; user-select: none; }
button.g:hover img { transform: scale(1.04); }
.g--tall { height: 100%; aspect-ratio: 3 / 4; }
.g--wide { height: 100%; aspect-ratio: 4 / 3; }
.g--pair { flex: none; height: 100%; aspect-ratio: 2 / 3; display: grid; grid-template-rows: 1fr 1fr; gap: 8px; scroll-snap-align: start; }
.g--pair .g { width: 100%; height: 100%; min-height: 0; }

/* ---------- 8 · Chi siamo ---------- */
.about { padding-top: var(--sec); }
.about__inner { display: grid; gap: 32px; }
.about__pic { width: 72%; }
.about__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text { display: grid; gap: 20px; align-content: center; }
.about__text p:not(.lead) { max-width: 34em; }

/* ---------- 9 · La leggenda ---------- */
.legend { background: var(--deep); color: var(--on-deep); margin-top: var(--sec); padding-block: clamp(80px, 11vw, 170px); }
.legend__inner { max-width: 46rem; display: grid; gap: 22px; text-align: center; justify-items: center; }
.legend__kicker { font-size: var(--s-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-deep-muted); }
.legend h2 { font-size: clamp(2rem, 1rem + 4vw, 4rem); margin-bottom: 8px; }
.legend__story { font-size: var(--s-lead); line-height: 1.45; }
.legend__end { font-family: var(--serif); font-style: italic; font-size: var(--s-lead); color: #e9a77f; margin-top: 8px; }

/* ---------- 10 · Dove siamo ---------- */
.where { padding-top: var(--sec); }
.where__head { display: grid; gap: 20px; padding-block: 16px; }
.where__main { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 72px); }
.where__map { aspect-ratio: 4 / 3; background: var(--stone-2); }
.where__map iframe { width: 100%; height: 100%; border: 0; }
.where__pic { width: 62%; justify-self: end; }
.where__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.where__facts { display: grid; gap: 32px; margin-top: clamp(36px, 5vw, 72px); }
.where__facts h3 { font-size: var(--s-lead); margin-bottom: 8px; }
.where__facts p { max-width: 30em; }

/* ---------- 11 · Prenotazione ---------- */
.book { margin-top: var(--sec); background: var(--paper); padding-block: clamp(64px, 8vw, 120px); }
/* su smartphone il calendario viene subito dopo il titolo, le regole e i contatti dopo */
.book__inner { display: flex; flex-direction: column; gap: 22px; }
.book__info { display: contents; }
.book__info > h2 { order: 1; }
.book__intro { order: 2; }
.book__engine { order: 3; margin-block: 12px 18px; }
.book__rules { order: 4; }
.book__alt { order: 5; }
.book h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.book__card h3, .book__rules h3 { font-size: var(--s-lead); }
.book__intro { font-size: var(--s-lead); line-height: 1.4; }
.book__rules { display: grid; gap: 8px; }
.book__rules .room__list { grid-template-columns: 1fr; font-size: var(--s-small); }
.book__alt { display: grid; gap: 10px; font-size: 1rem; }
.book__alt .ico { color: #1a9e4b; }
.book__engine { display: grid; gap: 16px; align-content: start; }
.book__loading { min-height: 220px; display: grid; place-items: center; background: var(--stone); border-radius: 6px; color: var(--muted); font-size: var(--s-small); }
/* scelta della camera: Smoobu ha un calendario per camera e uno per tutte */
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick__btn { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--stone); font-size: 0.9375rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; }
.pick__btn[data-room]:not([data-room=""])::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--room); }
.pick__btn:hover { background: var(--stone-2); }
.pick__btn[aria-pressed="true"] { background: var(--deep); color: var(--on-deep); }
.book__engine.is-ready .book__loading { display: none; }
[hidden] { display: none !important; }

/* ---------- Pagine interne ---------- */
.page-head { padding-top: calc(var(--bar-h) + clamp(48px, 8vw, 120px)); display: grid; gap: 20px; }
.page-head .kicker { color: var(--accent); }
.page-head h1 { max-width: 14em; }
.page-head__pic { margin-top: clamp(36px, 5vw, 72px); }
.page-head__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bp { padding-top: clamp(64px, 9vw, 130px); display: grid; gap: clamp(40px, 6vw, 80px); }
.bp__where { display: grid; gap: 12px; }
.bp__where p { max-width: 36em; }
.bp__list { display: grid; gap: 28px; }
.bp__list dt { font-size: var(--s-title); line-height: 1.1; margin-bottom: 6px; }
.bp__val { margin-top: 4px; font-weight: 600; }
.bp__guest { background: var(--teal); color: var(--on-teal); padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 14px; justify-items: start; align-content: center; }
.bp__guest p { font-size: var(--s-lead); line-height: 1.4; }
.bp__menu { display: grid; gap: 12px; }
.page-cta { padding-block: var(--sec) 0; display: grid; justify-items: start; gap: 18px; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: var(--on-deep); margin-top: var(--sec); padding-block: clamp(40px, 6vw, 96px) calc(28px + 84px); }
[data-page="home"] .foot { margin-top: 0; }   /* in home sopra c'è già il fondo chiaro della prenotazione */
.foot__card { background: var(--paper); color: var(--ink); max-width: none; margin-inline: var(--m); padding: clamp(24px, 4vw, 56px); display: grid; gap: 28px; position: relative; }
.foot__sign { font-size: var(--s-title); line-height: 1.1; margin-bottom: 12px; }
.foot__msg p:last-child { max-width: 26em; }
.foot__addr { display: grid; gap: 14px; }
.foot__addr a { text-decoration: none; }
.foot__logo { width: min(240px, 70%); height: auto; mix-blend-mode: multiply; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--stone); color: var(--brown); transition: background 0.2s, color 0.2s; }
.social a:hover { background: var(--accent); color: #fff; }
.foot__legal { font-size: var(--s-small); line-height: 1.9; }
.foot__credits { margin-top: 28px; font-size: var(--s-small); color: var(--on-deep-muted); display: grid; gap: 12px; }
.foot__credits p:first-child { max-width: 68ch; }

/* ---------- Barra fissa: Prenota + WhatsApp ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper);
  transition: transform 0.4s var(--ease);
}
.dock.is-away { transform: translateY(130%); }
.dock__main { flex: 1; padding: 0 16px; }
.dock__wa { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--wa); color: #fff; transition: transform 0.2s var(--ease); }
.dock__wa .ico { width: 28px; height: 28px; }
.dock__wa:active { transform: scale(0.94); }

/* ---------- Lightbox ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 13, 7, 0.96); color: #fff; }
.lb::backdrop { background: rgba(24, 13, 7, 0.96); }
.lb[open] { display: grid; place-items: center; animation: fade 0.3s ease both; }
.lb__fig { display: grid; gap: 12px; justify-items: center; padding: 64px 12px 24px; max-height: 100dvh; }
.lb__fig img { max-width: min(94vw, 1500px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
.lb__fig figcaption { font-size: 1rem; text-align: center; max-width: 40em; }
.lb__close { position: absolute; top: 12px; right: 16px; min-height: 44px; padding: 0 12px; font-weight: 600; }
.lb__nav { position: absolute; bottom: 16px; width: 56px; height: 56px; font-size: 1.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.12); transition: background 0.2s; }
.lb__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lb__nav--prev { left: 16px; }
.lb__nav--next { right: 16px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============ Da 600px: due colonne dove serve ============ */
@media (min-width: 600px) {
  .exp__pano img { aspect-ratio: 16 / 10; }
  .exp__pic--a { width: 52%; }
  .exp__pic--b { width: 80%; }
  .exp__pic--c { width: 44%; }
  .exp__pic--duo { width: 70%; }
  .room__card { margin-inline: 32px; }
  .land__grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .place--sentieri, .place--villalago, .place--parco { width: 100%; }
  .place--gole, .place--godi { grid-column: 1 / -1; }
  .place--scanno { grid-column: 1 / -1; }
  .ebike { grid-template-columns: 1fr 1.4fr; align-items: center; }
  .ebike__pic { width: 100%; }
  .where__facts { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr 1.3fr; align-items: center; }
  .about__pic { width: 100%; }
  .page-head__pic img { aspect-ratio: 16 / 9; }
  .bp__list { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Da 900px: la composizione da scrivania ============ */
@media (min-width: 900px) {
  .bar__logo img { height: 34px; }
  .bar__nav { display: flex; gap: clamp(18px, 2.4vw, 36px); font-size: 0.9375rem; font-weight: 600; margin-left: auto; margin-right: clamp(12px, 2vw, 32px); }
  .bar__nav a { padding: 12px 0; position: relative; }
  .bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
  .bar__nav a:hover::after { transform: scaleX(1); }
  .bar__cta { display: inline-flex; margin-left: 10px; }
  .bar__menu { display: none; }
  /* da scrivania resta solo l'icona di WhatsApp, in basso a destra */
  .dock { inset: auto var(--m) 28px auto; padding: 0; background: none; }
  .dock__main { display: none; }
  .dock__wa { width: 60px; height: 60px; box-shadow: 0 6px 18px rgba(30, 16, 9, 0.25); }
  .dock__wa:hover { transform: scale(1.06); }
  .foot { padding-bottom: 28px; }

  /* hero divisa: a sinistra il testo sul marrone, a destra le foto (quasi tutte verticali) */
  .hero__show { left: 42%; }
  .hero__show::after { background: linear-gradient(to bottom, rgba(30, 16, 9, 0.5) 0%, rgba(30, 16, 9, 0) 22%); }
  .hero__text { inset: 0 auto 0 0; width: 42%; align-content: end; padding: var(--bar-h) clamp(28px, 3.4vw, 56px) clamp(40px, 5vw, 72px) var(--m); }
  .hero h1 { font-size: clamp(2.75rem, 1rem + 3.6vw, 5rem); }

  .exp__head, .rooms__head, .beach__head, .land__head, .where__head, .revs__head { grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
  .exp__head h2, .rooms__head h2, .beach__head h2, .land__head h2, .where__head h2, .revs__head h2 { grid-column: 1 / 8; }
  .exp__caps { grid-column: 9 / 13; padding-bottom: 0.8vw; }
  .rooms__head .lead, .beach__head .lead, .land__head .lead, .where__head .lead { grid-column: 8 / 13; padding-bottom: 0.8vw; }
  .revs__score { grid-column: 9 / 13; padding-bottom: 0.8vw; }
  .exp__pano img { aspect-ratio: 21 / 9; object-position: 50% 42%; }

  /* tre righe: titolo sul margine, testo sull'asse, foto disuguali a destra */
  .exp__row { grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
  .exp__copy { display: contents; }
  .exp__copy h3 { grid-column: 1 / 5; }
  .exp__copy p { grid-column: 5 / 9; }
  .exp__pic { justify-self: stretch; width: auto; }
  .exp__pic--a { grid-column: 9 / 12; }
  .exp__pic--b { grid-column: 8 / 13; }
  .exp__pic--c { grid-column: 9 / 12; }
  .exp__pic--duo { grid-column: 8 / 13; width: auto; }

  .room { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
  .room__pic, .room__card, .room__pic--second { order: 0; grid-row: 1; }
  .room__card { margin: 0; }
  .room--a .room__pic { grid-column: 1 / 9; }
  .room--a .room__card { grid-column: 8 / 13; margin-top: clamp(48px, 9vw, 150px); }
  .room--b .room__pic { grid-column: 5 / 11; }
  .room--b .room__pic--second { grid-column: 11 / 13; width: auto; justify-self: stretch; margin-top: 0; align-self: end; }
  .room--b .room__card { grid-column: 1 / 6; margin-top: clamp(32px, 5vw, 80px); }
  .room--c .room__pic { grid-column: 6 / 13; }
  .room--c .room__card { grid-column: 2 / 7; align-self: end; margin-bottom: clamp(-72px, -4vw, -24px); }

  .tabs { grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
  .tabs__list { grid-column: 1 / 6; }
  .tabs__pics { grid-column: 6 / 13; }

  .land__grid { grid-template-columns: repeat(12, 1fr); }
  .place--gole { grid-column: 1 / 8; }
  .place--sentieri { grid-column: 8 / 13; }
  .place--parco { grid-column: 1 / 5; }
  .place--godi { grid-column: 5 / 13; align-self: end; }
  .place--scanno { grid-column: 1 / 8; }
  .place--villalago { grid-column: 8 / 13; margin-top: clamp(48px, 7vw, 120px); }

  .ebike { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .ebike__pic { grid-column: 1 / 5; }
  .ebike__text { grid-column: 6 / 12; }

  .gal__row, .beach__row { gap: 12px; }
  .g--pair { gap: 12px; }

  .about__inner { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .about__pic { grid-column: 1 / 6; }
  .about__text { grid-column: 7 / 12; }

  .where__main { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .where__map { grid-column: 1 / 9; aspect-ratio: 16 / 10; }
  .where__pic { grid-column: 9 / 13; width: auto; justify-self: stretch; }
  .where__pic img { height: 100%; aspect-ratio: auto; }
  .where__facts { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .where__facts > div:nth-child(1) { grid-column: 1 / 5; }
  .where__facts > div:nth-child(2) { grid-column: 5 / 9; }
  .where__facts > div:nth-child(3) { grid-column: 9 / 13; }

  /* il calendario di Smoobu arriva a 1000 px: gli lasciamo la parte larga */
  .book__inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
  .book__info { display: grid; gap: 22px; align-content: start; grid-column: 1 / 5; position: sticky; top: calc(var(--bar-h) + 24px); }
  .book__engine { grid-column: 5 / 13; margin: 0; }

  .page-head { grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
  .page-head .kicker, .page-head h1 { grid-column: 1 / 9; }
  .page-head .lead { grid-column: 1 / 8; }
  .page-head__pic { grid-column: 1 / -1; }
  .page-head__pic img { aspect-ratio: 21 / 9; }
  .bp { grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 72px) var(--gap); align-items: start; }
  .bp__where { grid-column: 1 / 6; }
  .bp__guest { grid-column: 7 / 13; }
  .bp__list { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .bp__menu { grid-column: 1 / 8; }

  .foot__card { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .foot__msg { grid-column: 1 / 6; }
  .foot__addr { grid-column: 6 / 10; }
  .foot__logo { grid-column: 10 / 13; justify-self: end; width: 100%; max-width: 260px; }
  .foot__legal { grid-column: 1 / -1; }
  .lb__nav { bottom: auto; top: 50%; margin-top: -28px; }
  .lb__fig { padding-inline: 96px; }
}

/* ============ Animazioni ridotte ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .hero h1, .js .hero__side, .lb[open] { animation: none; }
  .hero__slide, .hero__slide img, .hero__slide figcaption, .tabs__pics figure, .place img, .g img, .btn, .dock, .dock__wa { transition: none; }
  .hero__slide img { transform: none; }
  .place:hover img, button.g:hover img { transform: none; }
}
