/* =====================================================================
   B&B Il Nido · Riolunato (MO)
   Identità: castagno + zafferano su bianco neve, Literata + Manrope,
   motivo ad «arco» (come l'ingresso in pietra) e profili di montagna.
   ===================================================================== */

/* ------------------------------------------------------------- font (self-hosted) */
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/literata-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/literata-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(../fonts/literata-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(../fonts/literata-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --snow: #f7f9fa;          /* bianco neve: fondo */
  --ice: #e8eff3;           /* azzurro ghiaccio: fascia posizione */
  --ice-2: #d6e2e9;
  --cream: #fbf1dc;         /* panna allo zafferano: recensioni */
  --white: #ffffff;
  --ink: #23150e;           /* testo principale */
  --ink-2: #574538;         /* testo secondario (≈8:1 sul fondo) */
  --brown: #3b2116;         /* castagno: sezioni scure */
  --brown-2: #52301f;
  --brown-3: #2a170f;       /* piè di pagina */
  --sun: #f2b01e;           /* zafferano: pulsanti e accenti */
  --sun-deep: #dc9a08;
  --sun-pale: #fde7b0;
  --rust: #a8461f;          /* corsivi dei titoli (5:1 sul fondo) */
  --apricot: #e3875c;       /* facciata (decorativo) */
  --sky: #7fa7c4;
  --gold: #f4b400;          /* stelle Google */
  --bk: #003b95;            /* blu Booking.com per il badge del voto */
  --line: rgba(59, 33, 22, .15);
  --line-2: rgba(59, 33, 22, .08);
  --shadow-s: 0 1px 2px rgba(42, 23, 15, .06), 0 4px 14px rgba(42, 23, 15, .06);
  --shadow-m: 0 2px 6px rgba(42, 23, 15, .06), 0 18px 40px -14px rgba(42, 23, 15, .22);
  --shadow-l: 0 4px 12px rgba(42, 23, 15, .08), 0 40px 80px -26px rgba(42, 23, 15, .36);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --arch: 999px 999px 26px 26px;
  --serif: 'Literata', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: clamp(16px, 4.2vw, 44px);
  --hdr: 72px;
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--rust); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.sec { padding-block: clamp(72px, 9vw, 124px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-pale); flex: none; }
.eyebrow--c { justify-content: center; }
.eyebrow--sun { color: var(--sun); }
.eyebrow--sun::before { box-shadow: 0 0 0 3px rgba(242, 176, 30, .25); }
.h2 { font: 500 clamp(1.85rem, 1.2rem + 2.3vw, 3rem)/1.12 var(--serif); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.h2 em, .hero__title em, .end__title em { font-style: italic; font-weight: 500; color: var(--rust); }
.h2--sm { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
.h3 { font: 500 clamp(1.35rem, 1.1rem + .8vw, 1.7rem)/1.2 var(--serif); color: var(--ink); }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.62; color: var(--ink-2); }

/* ------------------------------------------------------------- pulsanti */
.btn {
  --bg: var(--sun); --fg: var(--brown-3); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 1.5px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1.2 var(--sans); letter-spacing: .005em; text-decoration: none; text-align: center;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--sun { box-shadow: 0 10px 24px -12px rgba(184, 120, 0, .9); }
.btn--sun:hover { --bg: #ffc23a; box-shadow: 0 14px 28px -12px rgba(184, 120, 0, .95); }
.btn--brown { --bg: var(--brown); --fg: #fff; }
.btn--brown:hover { --bg: var(--brown-2); }
.btn--line { --bg: transparent; --fg: var(--brown); --bd: rgba(59, 33, 22, .35); }
.btn--line:hover { --bg: var(--brown); --fg: #fff; --bd: var(--brown); }
.btn--light { --bg: #fff; --fg: var(--brown); box-shadow: var(--shadow-m); }
.btn--light:hover { --bg: var(--sun-pale); }
.btn--ghost { --bg: rgba(255, 255, 255, .1); --fg: #fff; --bd: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .2); --bd: #fff; }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: .9375rem; }

/* ------------------------------------------------------------- marchio */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); }
.brand__mark { width: 44px; height: 35px; flex: none; color: var(--brown); --nest: var(--sun); --weave: var(--brown); }
.brand__txt { display: grid; line-height: 1; }
.brand__name { font: 600 1.6rem/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.brand__sub { margin-top: 4px; font: 700 .6875rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.brand--light { color: #fff; }
.brand--light .brand__mark { color: #fff6e3; --weave: var(--brown-3); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: #d9c4ae; }

/* ------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); transition: background-color .3s, box-shadow .3s; }
.hdr.is-stuck { background: rgba(247, 249, 250, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line-2), 0 10px 30px -18px rgba(42, 23, 15, .3); }
.hdr__in { display: flex; align-items: center; gap: 14px; height: var(--hdr); }
.hdr__nav { display: none; gap: 2px; }
.hdr__nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--ink); transition: color .2s, background-color .2s; }
.hdr__nav a:hover { background: var(--sun-pale); color: var(--brown-3); }
.hdr__act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr__burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .7); }
.hdr__lines { display: grid; gap: 6px; width: 18px; }
.hdr__lines i { display: block; height: 2px; border-radius: 2px; background: var(--brown); transition: transform .3s var(--ease); }
.hdr__burger[aria-expanded="true"] .hdr__lines i:first-child { transform: translateY(4px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] .hdr__lines i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { border-top: 1px solid var(--line-2); background: rgba(247, 249, 250, .98); max-height: calc(100dvh - var(--hdr)); overflow-y: auto; }
.menu__in { display: grid; padding-block: 10px 22px; }
.menu__in a { padding: 14px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; font: 500 1.3rem/1.2 var(--serif); color: var(--ink); }
.menu__in a.menu__tel { display: inline-flex; align-items: center; gap: 10px; border: 0; margin-top: 8px; font: 700 1.05rem/1.2 var(--sans); color: var(--brown); }
.menu__tel svg { width: 18px; height: 18px; }
@media (max-width: 379px) { .brand__mark { width: 38px; height: 30px; } .brand__name { font-size: 1.4rem; } .hdr__act .btn--sm { padding-inline: 13px; } }
@media (max-width: 299px) { .hdr__act .btn--sm { display: none; } .brand__sub { display: none; } }
@media (min-width: 1080px) {
  .hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .hdr__nav { display: flex; }
  .hdr__nav--l { grid-column: 1; grid-row: 1; justify-self: start; }
  .brand { grid-column: 2; grid-row: 1; }
  .hdr__nav--r { grid-column: 3; grid-row: 1; justify-self: start; margin-left: 18px; }
  .hdr__act { grid-column: 3; grid-row: 1; justify-self: end; }
  .hdr__burger, .menu { display: none !important; }
}

/* ------------------------------------------------------------- hero: titolo centrato + trittico */
.hero { position: relative; padding-top: clamp(20px, 4vw, 52px); }
.hero__copy { max-width: 880px; text-align: center; }
.hero__title { font: 500 clamp(2.45rem, 1.3rem + 4.8vw, 5.1rem)/1.03 var(--serif); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.hero__title em { display: inline-block; }
.hero__lead { max-width: 640px; margin: 18px auto 0; font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); line-height: 1.62; color: var(--ink-2); }
.hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

.tri { position: relative; margin-top: clamp(30px, 5vw, 56px); }
.tri__ph { position: relative; margin: 0; overflow: hidden; background: var(--ice); box-shadow: var(--shadow-m); }
.tri__ph img { width: 100%; height: 100%; object-fit: cover; }
.tri__ph--c { aspect-ratio: 4 / 4.4; border-radius: var(--arch); box-shadow: var(--shadow-l); }
.tri__ph--l, .tri__ph--r { position: absolute; z-index: 1; width: 31%; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--snow); }
.tri__ph--l { left: calc(var(--gutter) - 6px); top: 34%; }
.tri__ph--r { right: calc(var(--gutter) - 6px); top: 12%; }
.tri__ph--c img { object-position: 50% 40%; }
@media (min-width: 700px) {
  .tri { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: clamp(14px, 2vw, 26px); }
  .tri__ph--l, .tri__ph--r { position: relative; inset: auto; width: auto; border: 0; aspect-ratio: 4 / 4.6; border-radius: var(--r-lg); }
  .tri__ph--l { margin-bottom: clamp(40px, 7vw, 90px); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; }
  .tri__ph--r { margin-bottom: clamp(70px, 11vw, 140px); border-radius: var(--r-lg) var(--r-lg) 120px var(--r-lg); }
  .tri__ph--c { aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------------- card premium */
.pwrap { position: relative; z-index: 2; margin-top: -58px; }
.pcard {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  max-width: 900px; margin-inline: auto; padding: 14px;
  border-radius: 26px; background: #fff;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-l);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.pcard:hover { box-shadow: 0 6px 16px rgba(42, 23, 15, .08), 0 48px 90px -30px rgba(42, 23, 15, .42); }
.pcard__ph { width: 64px; height: 76px; overflow: hidden; border-radius: 999px 999px 14px 14px; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--sun); }
.pcard__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__ph img { transform: scale(1.06); }
.pcard__name { font: 600 1.3rem/1.15 var(--serif); color: var(--ink); }
.pcard__loc { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.pcard__loc svg { width: 14px; height: 14px; margin-top: 3px; color: var(--rust); flex: none; }
.pcard__rates { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard__rate { display: grid; gap: 8px; align-content: start; padding: 12px 12px 10px; border-radius: 16px; background: var(--snow); border: 1px solid var(--line-2); min-width: 0; }
.pcard__logo { height: 18px; width: auto; max-width: 100%; }
.pcard__logo--g { height: 19px; }
.pcard__val { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--ink-2); }
.pcard__val strong { font: 800 1.25rem/1 var(--sans); color: var(--ink); }
.pcard__cnt { white-space: nowrap; }
.pcard__cta {
  grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 999px; background: var(--brown); color: #fff;
  font-weight: 700; text-decoration: none; transition: background-color .25s, color .25s;
}
.pcard__cta svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.pcard__cta:hover { background: var(--brown-2); }
.pcard__cta:hover svg { transform: translateY(2px); }
@media (max-width: 339px) { .pcard__rates { grid-template-columns: 1fr; } }
@media (min-width: 780px) {
  .pwrap { margin-top: -74px; }
  .pcard { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 18px; padding: 12px 12px 12px 14px; border-radius: 999px; max-width: 980px; }
  .pcard__loc { white-space: nowrap; }
  .pcard__ph { width: 58px; height: 68px; }
  .pcard__rates { grid-column: auto; display: flex; }
  .pcard__rate { padding: 9px 16px; border-radius: 18px; }
  .pcard__cta { grid-column: auto; }
}
@media (min-width: 780px) and (max-width: 1019px) {
  .pcard__loc { white-space: normal; }
  .pcard { grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 30px; }
  .pcard__cta { grid-column: 1 / -1; }
}
/* entrata animata della card */
.js .pcard { opacity: 0; transform: translateY(18px); }
.js .pcard .pcard__s { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .pcard.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s var(--ease); }
.js .pcard.is-in .pcard__s { opacity: 1; transform: none; }
.js .pcard.is-in .pcard__s:nth-child(2) { transition-delay: .12s; }
.js .pcard.is-in .pcard__rates .pcard__s:nth-child(1) { transition-delay: .22s; }
.js .pcard.is-in .pcard__rates .pcard__s:nth-child(2) { transition-delay: .3s; }
.js .pcard.is-in .pcard__cta { transition-delay: .4s; }

/* badge, stelle, barre */
.badge { display: inline-grid; place-items: center; min-width: 38px; height: 34px; padding: 0 7px; border-radius: 8px 8px 8px 0; background: var(--bk); color: #fff; font: 800 1.0625rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.badge--sm { min-width: 34px; height: 30px; font-size: .9375rem; }
.stars { --r: 1; position: relative; display: inline-block; flex: none; width: 90px; height: 16px;
  background: linear-gradient(90deg, var(--gold) calc(var(--r) * 100%), #dcd5cf 0);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M8.2.8l2.2 4.6 5 .6-3.7 3.4 1 5-4.5-2.5-4.4 2.5 1-5L1 6l5-.6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M8.2.8l2.2 4.6 5 .6-3.7 3.4 1 5-4.5-2.5-4.4 2.5 1-5L1 6l5-.6z'/%3E%3C/svg%3E");
  -webkit-mask-size: 18px 16px; mask-size: 18px 16px; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.meter { --r: .9; display: block; height: 6px; border-radius: 6px; background: #efe3cc; overflow: hidden; position: relative; }
.meter::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--r) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--sun), var(--rust)); }

/* ------------------------------------------------------------- reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--rd, 0ms), transform .8s var(--ease) var(--rd, 0ms); }
.js [data-reveal].is-in, .reveal-all [data-reveal] { opacity: 1; transform: none; }
.reveal-all .pcard, .reveal-all .pcard .pcard__s { opacity: 1 !important; transform: none !important; }

/* ------------------------------------------------------------- posizione: il sentiero */
.pos { position: relative; margin-top: clamp(64px, 9vw, 120px); padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 120px); background: var(--ice); }
.pos__ridge { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(40px, 6vw, 90px); color: var(--ice); }
.pos__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); }
.pos__copy .h2 { margin-bottom: 18px; }
.pos__copy .lead { margin-bottom: 14px; }
.pos__copy > p:not(.lead):not(.eyebrow) { color: var(--ink-2); }
.pos__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.pos__stats li { display: grid; gap: 4px; align-content: start; padding: 16px 14px; border-radius: 22px 22px 22px 6px; background: #fff; box-shadow: var(--shadow-s); }
.pos__stats strong { font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1 var(--serif); color: var(--brown); white-space: nowrap; }
.pos__stats span { font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 459px) { .pos__stats { grid-template-columns: 1fr; } .pos__stats li { grid-template-columns: 86px 1fr; align-items: center; } }

.trail { position: relative; padding: 26px 22px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-m); counter-reset: none; }
.trail::before { content: ''; position: absolute; left: 39px; top: 40px; bottom: 34px; border-left: 2px dashed var(--ice-2); }
.trail li { position: relative; }
.trail__grp { display: flex; align-items: center; gap: 10px; padding: 14px 0 8px; font: 700 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.trail__grp:first-child { padding-top: 0; }
.trail__grp svg { position: relative; z-index: 1; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--sun-pale); color: var(--brown); flex: none; }
.trail__it { display: grid; grid-template-columns: 74px 1fr; align-items: baseline; gap: 10px; padding: 7px 0 7px 50px; }
.trail__it::before { content: ''; position: absolute; left: 13px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.5px solid var(--sun-deep); }
.trail__t { font: 800 .9375rem/1.3 var(--sans); color: var(--brown); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trail__n { font-size: 1rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 379px) { .trail { padding-inline: 16px; } .trail::before { left: 33px; } .trail__it { grid-template-columns: 1fr; gap: 0; padding-left: 44px; } .trail__it::before { left: 8px; } }
@media (min-width: 960px) { .pos__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; } }

/* ------------------------------------------------------------- la suite */
.suite__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.suite__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 40px); }
.suite__head .h2 { margin-bottom: 16px; }

.car { --h: clamp(300px, 92vw, 420px); }
.car__track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car__track::-webkit-scrollbar { display: none; }
.car__track:focus-visible { outline-offset: 4px; }
.car__sl { flex: none; scroll-snap-align: start; margin: 0; }
.car__open { display: block; padding: 0; border: 0; background: var(--ice); border-radius: 22px; overflow: hidden; }
.car__sl img { height: var(--h); width: auto; max-width: min(86vw, 760px); object-fit: cover; transition: transform .8s var(--ease); }
.car__sl:first-child .car__open { border-radius: 120px 22px 22px 22px; }
.car__open:hover img { transform: scale(1.03); }
.car__sl figcaption { margin-top: 10px; font-size: .9375rem; color: var(--ink-2); max-width: min(86vw, 760px); }
.car__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.car__count { font: 700 .9375rem/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.car__nav { display: flex; gap: 8px; }
.car__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--brown); transition: background-color .2s, color .2s, border-color .2s, opacity .2s; }
.car__btn svg { width: 18px; height: 18px; }
.car__btn:hover:not(:disabled) { background: var(--brown); border-color: var(--brown); color: #fff; }
.car__btn:disabled { opacity: .4; cursor: default; }

.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-top: clamp(28px, 4vw, 40px); }
.feats li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); }
.feats svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--sun-pale); color: var(--brown); flex: none; }
.feats span { display: grid; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.feats strong { font-size: 1rem; color: var(--ink); }

.book__card { position: relative; padding: 24px 20px 20px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-l); border: 1px solid var(--line-2); overflow: hidden; }
.book__card::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--sun), var(--apricot), var(--rust)); }
.book__k { display: inline-flex; align-items: center; gap: 8px; font: 700 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.book__k svg { width: 30px; height: 24px; color: var(--brown); --nest: var(--sun); --weave: var(--brown); }
.book__title { margin: 8px 0 16px; font: 600 1.6rem/1.15 var(--serif); }
.stay { display: grid; gap: 12px; }
.stay__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stay__go { width: 100%; margin-top: 4px; }
.stay__msg { min-height: 0; font-size: .9375rem; font-weight: 600; color: #8f2a12; }
.stay__msg:empty { display: none; }
.book__perks { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.book__perks li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.book__perks svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--sun-pale); color: var(--brown); flex: none; }
.book__tel { margin-top: 14px; font-size: .9375rem; color: var(--ink-2); }
.book__tel a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brown); text-decoration: none; }
.book__tel a svg { width: 16px; height: 16px; }
@media (max-width: 339px) { .stay__row { grid-template-columns: 1fr; } }
@media (min-width: 1000px) {
  .suite__in { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .book { position: sticky; top: calc(var(--hdr) + 24px); }
  .car { --h: clamp(380px, 36vw, 470px); }
  .car__sl img { max-width: 100%; }
}

/* campi dei moduli */
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .875rem; color: var(--ink-2); }
.field > span svg { width: 14px; height: 14px; color: var(--rust); }
.field input, .field select { width: 100%; min-width: 0; min-height: 50px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 1rem; color: var(--ink); -webkit-appearance: none; appearance: none; }
.field input[type="date"] { display: block; line-height: 1.6; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%233b2116' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat; padding-right: 34px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--sun-deep); box-shadow: 0 0 0 3px rgba(242, 176, 30, .3); }

/* ------------------------------------------------------------- colazione (castagno) */
.cola { padding-block: clamp(72px, 9vw, 124px); background: var(--brown); color: #ead9c6; overflow: hidden; }
.cola__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.cola .h2 { color: #fff6e3; margin-bottom: 18px; }
.cola .h2 em { color: var(--sun); }
.cola .lead { color: #f1e3d2; margin-bottom: 14px; }
.cola__copy > p:not(.lead):not(.eyebrow) { color: #ead9c6; }
.cola__art { position: relative; padding: 0 12% 14% 0; }
.cola__big { overflow: hidden; border-radius: var(--arch); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); aspect-ratio: 4 / 4.2; }
.cola__big img, .cola__small img { width: 100%; height: 100%; object-fit: cover; }
.cola__small { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; border: 6px solid var(--brown); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8); }
.cola__tag { position: absolute; left: 16px; top: 18%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--sun); color: var(--brown-3); font: 800 .875rem/1 var(--sans); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.cola__tag svg { width: 20px; height: 20px; }
.cola__q { position: relative; margin-top: 28px; padding: 22px 22px 18px; border-radius: 22px 22px 22px 6px; background: rgba(255, 246, 227, .07); border: 1px solid rgba(255, 246, 227, .16); }
.cola__q > svg { width: 30px; height: 22px; color: var(--sun); margin-bottom: 10px; }
.cola__q blockquote p { font: 500 italic clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.35 var(--serif); color: #fff6e3; }
.cola__q figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: .875rem; color: #e0cbb4; }
.cola__q figcaption img { height: 14px; width: auto; padding: 4px 7px; box-sizing: content-box; border-radius: 6px; background: #fff; }
.cola__q figcaption span { flex-basis: 100%; font-style: italic; }
@media (min-width: 900px) { .cola__in { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); } }

/* ------------------------------------------------------------- esterni */
.out__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.out__head .h2 { margin-bottom: 16px; }
.out__trio { display: grid; gap: 16px; }
.out__ph { margin: 0; }
.out__open { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--ice); border-radius: var(--r-lg); box-shadow: var(--shadow-m); }
.out__open img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.out__open:hover img { transform: scale(1.04); }
.out__ph:nth-child(2) .out__open { border-radius: var(--arch); }
.out__ph figcaption { margin-top: 12px; text-align: center; font: 600 1.05rem/1.3 var(--serif); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(32px, 4vw, 48px); }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-s); font-weight: 600; font-size: .9375rem; color: var(--ink); }
.chips svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--sun-pale); color: var(--brown); flex: none; }
@media (max-width: 699px) {
  .out__trio { grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .out__trio::-webkit-scrollbar { display: none; }
  .out__ph { scroll-snap-align: start; }
}
@media (min-width: 700px) {
  .out__trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
  .out__ph:nth-child(2) { margin-top: -36px; }
  .out__ph:nth-child(1), .out__ph:nth-child(3) { margin-top: 36px; }
}

/* ------------------------------------------------------------- recensioni */
.rep { background: var(--cream); }
.rep__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.rep__side .h2 { margin-bottom: 22px; }
.avg { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avg__num { display: flex; align-items: baseline; gap: 2px; padding: 14px 18px; border-radius: 26px 26px 26px 6px; background: var(--brown); color: #fff6e3; font: 600 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.avg__num small { font: 700 1rem/1 var(--sans); color: #e0cbb4; }
.avg__lbl { max-width: 160px; font-weight: 600; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.portals { display: grid; gap: 8px; }
.portal { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo val" "bar cnt"; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-s); }
.portal__logo { grid-area: logo; height: 20px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.portal__logo--g { height: 21px; }
.portal__logo--ky { height: 18px; }
.portal__logo--am { height: 19px; }
.portal__val { grid-area: val; display: flex; align-items: baseline; justify-content: flex-end; gap: 3px; }
.portal__val strong { font: 800 1.45rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.portal__val .badge { align-self: center; }
.portal__of { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.portal .meter, .portal .stars { grid-area: bar; }
.portal .meter { width: 100%; }
.portal__cnt { grid-area: cnt; font-size: .875rem; color: var(--ink-2); white-space: nowrap; text-align: right; }
.rep__upd { margin-top: 14px; font-size: .875rem; color: var(--ink-2); }

.hl { padding: 24px 22px 20px; border-radius: var(--r-lg); background: var(--brown); color: #fff6e3; }
.hl__src { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font: 700 .8125rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #e0cbb4; }
.hl__src img { height: 16px; width: auto; padding: 4px 7px; box-sizing: content-box; background: #fff; border-radius: 6px; }
.hl__list { display: grid; gap: 16px; }
.hl__list li { display: grid; gap: 6px; padding-left: 16px; border-left: 3px solid var(--sun); }
.hl__list q { font: 500 clamp(1.15rem, 1.02rem + .6vw, 1.45rem)/1.38 var(--serif); color: #fff6e3; quotes: '“' '”'; }
.hl__list span { font-size: .875rem; color: #e0cbb4; }

.rvs { display: grid; gap: 14px; margin-top: 16px; }
.rv { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 18px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.rv.is-new { animation: rvIn .7s var(--ease) both; }
@keyframes rvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.rv__logo { height: 17px; width: auto; max-width: 60%; }
.rv__logo--google { height: 19px; }
.rv__logo--kayak { height: 16px; }
.rv__logo--amimir { height: 17px; }
.rv__score { display: inline-flex; align-items: baseline; gap: 1px; padding: 4px 9px; border-radius: 8px 8px 8px 0; background: var(--bk); color: #fff; font: 800 1rem/1.1 var(--sans); }
.rv__score small { font-size: .75rem; font-weight: 700; opacity: .85; }
.rv__verified { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.rv__verified svg { width: 14px; height: 14px; color: #1a7f4b; }
.rv__text { position: relative; flex: 1; }
.rv__text p { font-size: 1rem; line-height: 1.62; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv.is-open .rv__text p { -webkit-line-clamp: unset; display: block; }
.rv__more { align-self: flex-start; margin-top: -6px; padding: 4px 0; border: 0; background: none; color: var(--rust); font-weight: 700; font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
.rv__by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: .875rem; color: var(--ink-2); }
.rv__name { font-weight: 800; color: var(--ink); }
.rv__date::before, .rv__lang::before { content: '·'; margin-right: 10px; color: var(--sun-deep); }
@media (min-width: 1000px) {
  .rep__in { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
  .rep__stick { position: sticky; top: calc(var(--hdr) + 24px); }
}
@media (min-width: 700px) and (max-width: 999px) {
  .portals { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------- galleria completa */
.gal__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: clamp(26px, 4vw, 40px); }
.gal__head .h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9375rem; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.filter span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ice); font-size: .8125rem; color: var(--ink-2); }
.filter:hover { border-color: var(--brown); }
.filter[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.filter[aria-pressed="true"] span { background: var(--sun); color: var(--brown-3); }
.grid { columns: 2; column-gap: 10px; }
.grid li { break-inside: avoid; margin-bottom: 10px; }
.grid li.is-in { animation: rvIn .5s var(--ease) both; }
.grid button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--ice); }
.grid img { width: 100%; transition: transform .7s var(--ease); }
.grid button::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 2.5h4v4M6.5 13.5h-4v-4M13.5 2.5 9 7M2.5 13.5 7 9' fill='none' stroke='%233b2116' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease); }
.grid button:hover img { transform: scale(1.04); }
.grid button:hover::after, .grid button:focus-visible::after { opacity: 1; transform: none; }
@media (min-width: 700px) { .grid { columns: 3; column-gap: 14px; } .grid li { margin-bottom: 14px; } }
@media (min-width: 1100px) { .grid { columns: 4; } }

/* ------------------------------------------------------------- info + mappa */
.info { padding-bottom: clamp(72px, 9vw, 120px); }
.map { position: relative; height: clamp(280px, 40vw, 460px); overflow: hidden; background: var(--ice); }
.map__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.map::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 23, 15, .05), rgba(42, 23, 15, .35)); pointer-events: none; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map:has(iframe)::after { display: none; }
.map__btn { position: absolute; z-index: 1; left: 50%; top: 40%; transform: translate(-50%, -50%); white-space: nowrap; }
.map__btn:hover { transform: translate(-50%, calc(-50% - 1px)); }
.info__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); }
.addr { position: relative; z-index: 2; margin-top: -90px; padding: 26px 22px 22px; border-radius: 28px 28px 28px 8px; background: #fff; box-shadow: var(--shadow-l); }
.addr .h2 { margin-bottom: 10px; }
.addr > p:not(.eyebrow) { color: var(--ink-2); }
.addr__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.facts .h3 { margin-bottom: 18px; }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.facts__grid > div { padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); }
.facts__grid dt { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9375rem; color: var(--ink); }
.facts__grid dt svg { width: 22px; height: 22px; color: var(--rust); flex: none; }
.facts__grid dd { margin-top: 4px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.facts__codes { margin-top: 16px; font-size: .8125rem; color: var(--ink-2); letter-spacing: .02em; }
@media (min-width: 1000px) {
  .info__in { grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
  .addr { margin-top: -140px; }
  .facts { padding-top: 40px; }
}

/* ------------------------------------------------------------- CTA finale */
.end { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 168px); color: #fff; text-align: center; }
.end__bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.end::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42, 23, 15, .55), rgba(42, 23, 15, .78)); }
.end__in { max-width: 820px; }
.end__mark { width: 70px; height: 56px; margin: 0 auto 18px; color: #fff6e3; --nest: var(--sun); --weave: var(--brown-3); }
.end__title { font: 500 clamp(2rem, 1.3rem + 3vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.end__title em { color: var(--sun); }
.end__lead { max-width: 560px; margin: 18px auto 0; font-size: clamp(1.04rem, 1rem + .3vw, 1.18rem); color: #f6eadb; }
.end__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }

/* ------------------------------------------------------------- footer */
.ftr { padding-top: clamp(52px, 6vw, 76px); background: var(--brown-3); color: #e0cbb4; }
.ftr__in { display: grid; gap: 34px; }
.ftr__brand > p:last-child { max-width: 300px; margin-top: 14px; }
.ftr__h { margin-bottom: 12px; font: 800 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.ftr__col p { margin-bottom: 8px; }
.ftr__col a { display: inline-flex; align-items: center; gap: 8px; color: #f6eadb; text-decoration: none; }
.ftr__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr__col a svg { width: 16px; height: 16px; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-block: 20px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 246, 227, .14); font-size: .875rem; color: #cdb59c; }
@media (min-width: 760px) { .ftr__in { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (max-width: 999px) { .ftr__base { padding-bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------------------- barra rapida mobile */
.qbar { position: fixed; z-index: 35; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -14px rgba(42, 23, 15, .5), 0 0 0 1px var(--line-2); transform: translateY(150%); transition: transform .45s var(--ease); }
.qbar.is-on { transform: none; }
.qbar__rep { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; font-size: .875rem; color: var(--ink-2); }
.qbar__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qbar__short { display: none; }
@media (max-width: 419px) { .qbar__long { display: none; } .qbar__short { display: inline; } }
@media (min-width: 1000px) { .qbar { display: none; } }

/* ------------------------------------------------------------- dialog prenota */
.sheet { width: 100%; max-width: 100%; max-height: 100%; margin: auto 0 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.sheet::backdrop { background: rgba(42, 23, 15, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.sheet.is-open::backdrop { opacity: 1; }
.sheet__in { position: relative; max-height: 92dvh; overflow-y: auto; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--snow); box-shadow: var(--shadow-l); transform: translateY(100%); transition: transform .35s var(--ease); }
.sheet.is-open .sheet__in { transform: none; }
.sheet__x { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow-s); }
.sheet__x svg { width: 16px; height: 16px; }
.sheet__title { font: 600 1.7rem/1.15 var(--serif); margin-bottom: 18px; padding-right: 48px; }
.sheet__form { display: grid; gap: 12px; }
.sheet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet__sum { min-height: 1.5em; padding: 12px 14px; border-radius: 14px; background: var(--ice); font-size: .9375rem; color: var(--ink-2); }
.sheet__sum strong { color: var(--ink); }
.sheet__sum.is-err { background: #fbe7e1; color: #8f2a12; }
.sheet__direct { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); }
.sheet__lbl { font-weight: 700; font-size: .9375rem; margin-bottom: 10px; }
.sheet__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet__btns .btn { flex: 1 1 auto; min-height: 46px; }
.btn--booking { --bg: #fff; --fg: var(--ink); --bd: var(--line); gap: 10px; flex-wrap: wrap; box-shadow: none; }
.btn--booking img { height: 18px; width: auto; }
.btn--booking:hover { --bd: var(--bk); }
.sheet__fine { font-size: .8125rem; color: var(--ink-2); text-align: center; }
@media (max-width: 339px) { .sheet__row { grid-template-columns: 1fr; } }
@media (min-width: 640px) {
  .sheet { max-width: 520px; margin: auto; }
  .sheet__in { border-radius: 28px; padding: 30px 30px 26px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
  .sheet.is-open .sheet__in { transform: none; opacity: 1; }
}

/* ------------------------------------------------------------- lightbox */
.lb { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(27, 15, 9, .96); color: #fff; opacity: 0; transition: opacity .3s; overflow: hidden; }
.lb.is-open { opacity: 1; }
.lb::backdrop { background: transparent; }
.lb__fig { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; gap: 14px; padding: calc(64px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
.lb__fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; transition: opacity .18s, transform .18s; }
.lb__fig img.is-swap { opacity: 0; transform: scale(.985); }
.lb__cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; max-width: 760px; text-align: center; font-size: .96875rem; color: #f3e6d6; }
.lb__count { color: #cdb59c; font-variant-numeric: tabular-nums; }
.lb__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s; }
.lb__btn:hover { background: rgba(255, 255, 255, .22); }
.lb__btn svg { width: 18px; height: 18px; }
.lb__btn--x { right: 14px; top: calc(12px + env(safe-area-inset-top)); }
.lb__btn--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__btn--next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) {
  .lb__btn--prev, .lb__btn--next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; }
  .lb__fig { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------- dispositivi touch e movimento ridotto */
@media (hover: none) {
  .btn:hover, .btn--sun:hover { transform: none; }
  .car__open:hover img, .out__open:hover img, .grid button:hover img, .pcard:hover .pcard__ph img { transform: none; }
  .grid button::after { opacity: 1; transform: none; width: 30px; height: 30px; background-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .pcard, .js .pcard .pcard__s { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- ritocchi telefoni stretti */
@media (max-width: 479px) { .eyebrow__x { display: none; } }
