/* =========================================================
   Casa Partenope — foglio di stile unico
   Palette mediterranea: terracotta (azioni), blu mare (testi forti),
   sabbia (sfondo), limone (accenti). Font: Playfair Display + Karla.
   ========================================================= */
/* Font ospitati nel sito (licenza SIL OFL 1.1): niente richieste a Google Fonts.
   Karla è un font variabile: un solo file per 400 e 700. Playfair Display solo 600. */
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/karla-latin.woff2) format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/karla-latin.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/playfair-display-600-latin.woff2) format('woff2'); }

:root {
  --c-bg: #FBF7F1;
  --c-surface: #FFFFFF;
  --c-tint: #F4ECE1;
  --c-tint-2: #FAEEE6;
  --c-ink: #1E2A33;
  --c-muted: #56616B;
  --c-line: #E6DCCF;
  --c-primary: #B4471F;
  --c-primary-hover: #95391A;
  --c-primary-soft: #F7DFD3;
  --c-sea: #14385C;
  --c-sea-deep: #0E2A45;
  --c-lemon: #F2C14E;
  --c-star: #D99A1E;
  --c-wa: #1C7C45;
  --c-wa-hover: #156337;
  --c-success: #2C7A4B;
  --c-success-soft: #E6F3EA;
  --c-error: #B42318;
  --c-error-soft: #FDECEA;
  --c-busy: #ECE8E2;
  --c-focus: #1F5E99;

  --f-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Karla', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 60, .06), 0 2px 8px rgba(20, 40, 60, .05);
  --shadow-md: 0 6px 24px rgba(20, 40, 60, .10);
  --shadow-lg: 0 18px 48px rgba(20, 40, 60, .18);

  --gutter: 20px;
  --section-y: 64px;
  --header-h: 60px;
  --bar-h: 72px;
  --ease: cubic-bezier(.23, 1, .32, 1);          /* ease-out forte (Emil Kowalski) */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);  /* fogli dal basso, stile iOS */
  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --section-y: 96px; --header-h: 72px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-bar { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-hover); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; color: var(--c-sea); line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--c-muted); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--c-sea); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--r-md);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 14px rgba(180, 71, 31, .25); }
.btn--primary:hover:not(:disabled) { background: var(--c-primary-hover); color: #fff; }
.btn--whatsapp { background: var(--c-wa); color: #fff; }
.btn--whatsapp:hover { background: var(--c-wa-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-sea); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-sea); color: var(--c-sea); }
.btn--light { background: #fff; color: var(--c-sea); }
.btn--light:hover { background: var(--c-tint); color: var(--c-sea); }
.btn .ico { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--c-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--c-sea); cursor: pointer; transition: background-color .15s;
}
.icon-btn:hover:not(:disabled) { background: var(--c-tint); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn--primary { background: var(--c-primary); color: #fff; }
.icon-btn--primary:hover:not(:disabled) { background: var(--c-primary-hover); }

/* ---------- barra demo + header ---------- */
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-sea-deep); color: #E9EEF3; font-size: 13px; font-weight: 400; padding: 6px 16px; text-align: center; line-height: 1.35;
}
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 247, 241, .94); border-bottom: 1px solid rgba(230, 220, 207, .8);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-sea); min-height: 44px; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.logo__text { display: flex; flex-direction: column; font-family: var(--f-head); font-weight: 600; font-size: 19px; line-height: 1.1; }
.logo__text small { font-family: var(--f-body); font-size: 13px; font-weight: 400; color: var(--c-muted); letter-spacing: .02em; margin-top: 2px; }
.main-nav { display: none; gap: 4px; }
.main-nav a { color: var(--c-ink); text-decoration: none; font-weight: 400; font-size: 15px; padding: 10px 12px; border-radius: var(--r-sm); transition: background-color .15s; }
.main-nav a:hover { background: var(--c-tint); color: var(--c-ink); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { display: none; }
.lang-switch { display: inline-flex; background: var(--c-tint); border-radius: var(--r-pill); padding: 3px; }
.lang-btn { min-width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--c-muted); cursor: pointer; transition: background-color .15s, color .15s; }
.lang-btn[aria-pressed="true"] { background: #fff; color: var(--c-sea); box-shadow: var(--shadow-sm); }
@media (min-width: 1000px) {
  .main-nav { display: flex; }
  .header__cta { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; display: flex; align-items: flex-end; min-height: clamp(560px, calc(100svh - var(--header-h) - 30px), 700px); overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(9, 24, 40, .10) 0%, rgba(9, 24, 40, .30) 35%, rgba(9, 24, 40, .86) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 62px); max-width: 15ch; line-height: 1.08; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero__sub { margin-top: 14px; font-size: 17px; line-height: 1.55; max-width: 560px; color: rgba(255, 255, 255, .94); }
.hero__ctas { display: grid; gap: 12px; margin-top: 24px; }
.hero__ctas .btn { width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 12px; }
.eyebrow .ico { width: 16px; height: 16px; }
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); padding: 6px 12px; border-radius: var(--r-pill); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); letter-spacing: .08em; }
.trust { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .95); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust strong { font-weight: 700; color: #fff; }
.trust .ico { width: 18px; height: 18px; color: var(--c-lemon); }
.trust .stars .ico { fill: var(--c-lemon); }
.trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .6); margin-right: 12px; }
.trust li:last-child { flex-basis: 100%; }
.trust li:last-child::before { display: none; }
@media (min-width: 560px) {
  .hero__ctas { grid-template-columns: auto auto; justify-content: start; }
  .trust li:last-child { flex-basis: auto; }
  .trust li:last-child::before { display: block; }
}
@media (min-width: 900px) {
  .hero { min-height: min(84vh, 760px); align-items: center; }
  .hero::after { background: linear-gradient(90deg, rgba(9, 24, 40, .80) 0%, rgba(9, 24, 40, .50) 45%, rgba(9, 24, 40, .05) 80%), linear-gradient(0deg, rgba(9, 24, 40, .35), transparent 40%); }
  .hero__content { padding-top: 64px; padding-bottom: 120px; }
  .hero__sub { font-size: 19px; }
}

/* ---------- box prenotazione ---------- */
.quick-book-wrap { position: relative; z-index: 5; margin-top: -28px; }
.quick-book {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: var(--c-surface); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--c-line);
}
.qb-field {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px;
  background: var(--c-bg); border: 1.5px solid var(--c-line); border-radius: var(--r-md); text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s; min-width: 0;
}
.qb-field:hover { border-color: var(--c-primary); }
.qb-field > .ico { color: var(--c-primary); }
.qb-field__text { display: flex; flex-direction: column; min-width: 0; }
.qb-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); line-height: 1.3; }
.qb-value { font-size: 16px; font-weight: 400; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.qb-value.is-set, .qb-field--guests .qb-value { color: var(--c-ink); font-weight: 700; }
.qb-field--guests { grid-column: 1 / -1; cursor: default; }
.qb-field--guests:hover { border-color: var(--c-line); }
.qb-field--guests .stepper { margin-left: auto; }
.qb-submit { grid-column: 1 / -1; min-height: 54px; font-size: 17px; }
.qb-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--c-muted); text-align: center; }
.qb-note .ico { width: 16px; height: 16px; color: var(--c-success); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-sea); cursor: pointer; transition: border-color .15s, background-color .15s; }
.stepper__btn:hover:not(:disabled) { border-color: var(--c-sea); }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper__btn .ico { width: 18px; height: 18px; }
.stepper__val { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }
@media (min-width: 900px) {
  .quick-book-wrap { margin-top: -64px; }
  .quick-book { grid-template-columns: 1fr 1fr 1.15fr auto; padding: 16px; gap: 12px; align-items: stretch; }
  .qb-field--guests { grid-column: auto; }
  .qb-submit { grid-column: auto; min-height: 60px; padding: 0 28px; }
}

/* ---------- sezioni ---------- */
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--c-tint); }
.section__head { max-width: 680px; margin-bottom: 32px; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section__lead { margin-top: 14px; font-size: 18px; color: var(--c-muted); max-width: 620px; }
.section__cta { display: flex; justify-content: center; margin-top: 36px; }
.section__cta .btn { width: 100%; }
@media (min-width: 560px) { .section__cta .btn { width: auto; } }
@media (min-width: 900px) { .section__head { margin-bottom: 48px; } }
#perche-diretto { padding-top: calc(var(--section-y) - 8px); }

/* vantaggi */
.benefits { display: grid; gap: 16px; }
.benefit { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; }
.benefit__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); margin-bottom: 16px; }
.benefit__icon .ico { width: 24px; height: 24px; }
.benefit h3 { font-size: 21px; margin-bottom: 8px; }
.benefit p { color: var(--c-muted); }
@media (min-width: 800px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 24px; } .benefit { padding: 28px; } }

.compare { margin: 28px auto 0; max-width: 560px; background: var(--c-surface); border: 1.5px dashed var(--c-primary); border-radius: var(--r-lg); padding: 20px 22px; }
.compare__title { font-weight: 700; color: var(--c-sea); margin-bottom: 10px; }
.compare__rows { display: grid; gap: 6px; }
.compare__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.compare__row--us { color: var(--c-ink); font-weight: 700; border-bottom: 0; }
.compare__price { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 700; color: var(--c-ink); }
.compare__price--old { text-decoration: line-through; color: var(--c-muted); font-weight: 400; font-size: 18px; }
.compare__row--us .compare__price { color: var(--c-primary); font-size: 24px; }
.compare__save { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; background: var(--c-success-soft); color: var(--c-success); border-radius: var(--r-sm); font-weight: 700; font-size: 15px; }
.compare__save .ico { width: 18px; height: 18px; }

/* camere */
.rooms { display: grid; gap: 20px; }
@media (min-width: 700px) { .rooms { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.room { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.room:hover { box-shadow: var(--shadow-md); }
.room__media { position: relative; aspect-ratio: 600 / 408; background: var(--c-tint); overflow: hidden; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .room:hover .room__media img { transform: scale(1.03); } }
.room__badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); color: var(--c-sea); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.room__badge .ico { width: 16px; height: 16px; }
.room__body { display: flex; flex-direction: column; gap: 14px; padding: 20px; flex: 1; }
.room__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.room__head h3 { font-size: 23px; padding-top: 4px; }
.room__price { text-align: right; line-height: 1.1; flex: none; display: grid; grid-template-columns: auto auto; column-gap: 4px; align-items: baseline; justify-items: end; }
.room__from { font-size: 14px; color: var(--c-muted); }
.room__price strong { font-family: var(--f-head); font-size: 28px; color: var(--c-ink); font-weight: 600; }
.room__unit { grid-column: 1 / -1; font-size: 14px; color: var(--c-muted); }
.room__portal { grid-column: 1 / -1; font-size: 13px; color: var(--c-muted); text-decoration: line-through; margin-top: 2px; }
.room__desc { color: var(--c-muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-pill); font-size: 14px; font-weight: 400; line-height: 1.3; }
.chips .ico { width: 15px; height: 15px; color: var(--c-success); }
.room .btn { margin-top: auto; }
@media (min-width: 900px) { .room__body { padding: 24px 28px 28px; } }

/* recensioni */
.score { display: flex; align-items: center; gap: 14px; }
.score__value { font-family: var(--f-head); font-size: 56px; line-height: 1; color: var(--c-sea); font-weight: 600; }
.score__meta { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--c-muted); }
.stars--row { display: inline-flex; gap: 2px; color: var(--c-star); }
.stars--row .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.stars--row .ico.is-empty { color: #DCD3C6; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); scrollbar-width: thin; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; margin: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; }
.review__top { display: flex; justify-content: space-between; align-items: center; }
.review__src { font-size: 13px; font-weight: 700; color: var(--c-muted); background: var(--c-bg); padding: 4px 10px; border-radius: var(--r-pill); }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption strong { display: block; line-height: 1.2; }
.review figcaption small { color: var(--c-muted); font-size: 14px; }
.review__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-sea); color: #fff; font-weight: 700; flex: none; }
.fineprint { margin-top: 8px; font-size: 13px; color: var(--c-muted); text-align: center; }
@media (min-width: 900px) {
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 24px; }
  .fineprint { margin-top: 16px; }
}

/* posizione */
.location { display: grid; gap: 32px; align-items: start; }
.distances { list-style: none; margin-top: 24px; background: var(--c-surface); border-radius: var(--r-lg); border: 1px solid var(--c-line); padding: 6px 18px; }
.distances li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--c-line); }
.distances li:last-child { border-bottom: 0; }
.distances__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-tint); color: var(--c-sea); }
.distances__icon .ico { width: 18px; height: 18px; }
.distances__place { font-weight: 400; line-height: 1.3; }
.distances__time { font-size: 14px; color: var(--c-muted); text-align: right; white-space: nowrap; }
.distances__time strong { color: var(--c-ink); font-size: 16px; }
.map-card { display: block; position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #DCEBF3; text-decoration: none; }
.map-card img { width: 100%; height: auto; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .map-card:hover img { transform: scale(1.02); } }
.map-card__cta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; background: #fff; color: var(--c-sea); font-weight: 700; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.map-card__cta .ico { width: 18px; height: 18px; color: var(--c-primary); }
@media (min-width: 900px) {
  .location { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .map-card__cta { left: auto; right: 16px; bottom: 16px; }
}

/* FAQ */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; color: var(--c-sea); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { transition: transform .2s var(--ease); color: var(--c-primary); }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__answer { padding: 0 32px 20px 0; color: var(--c-muted); }
.faq__more { margin-top: 24px; text-align: center; color: var(--c-muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }

/* CTA finale */
.final-cta { background: var(--c-sea); color: #fff; padding: 56px 0; background-image: radial-gradient(circle at 85% 20%, rgba(242, 193, 78, .18), transparent 45%); }
.final-cta__inner { display: grid; gap: 24px; }
.final-cta h2 { color: #fff; }
.final-cta p { margin-top: 10px; color: rgba(255, 255, 255, .88); font-size: 18px; max-width: 560px; }
.final-cta__btns { display: grid; gap: 12px; }
.final-cta :focus-visible { outline-color: var(--c-lemon); }
@media (min-width: 560px) { .final-cta__btns { grid-template-columns: auto auto; justify-content: start; } }
@media (min-width: 900px) { .final-cta { padding: 72px 0; } .final-cta__inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }

/* footer */
.site-footer { background: var(--c-sea-deep); color: #D5DEE7; font-size: 15px; padding: 48px 0 24px; }
.site-footer a, .site-footer .link-btn { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer .link-btn:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: var(--c-lemon); }
.footer__grid { display: grid; gap: 28px; }
.footer__brand { font-family: var(--f-head); font-size: 22px; color: #fff; margin-bottom: 8px; }
.footer__title { font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.footer__list { list-style: none; display: grid; }
.footer__list a, .footer__list .link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; text-decoration: none; }
.footer__list .ico { width: 18px; height: 18px; color: var(--c-lemon); }
.footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #AEBCCA; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; } }

/* ---------- barra fissa mobile ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  min-height: var(--bar-h); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px rgba(20, 40, 60, .10);
  transform: translateY(110%); transition: transform .28s var(--ease);
}
.sticky-bar.is-on { transform: translateY(0); }
.sticky-bar__price { font-size: 14px; color: var(--c-muted); line-height: 1.2; }
.sticky-bar__price strong { display: inline; font-size: 20px; color: var(--c-ink); font-family: var(--f-head); }
.sticky-bar__wa { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--c-wa); color: #fff; }
.sticky-bar__wa:hover { background: var(--c-wa-hover); color: #fff; }
.sticky-bar__wa .ico { width: 24px; height: 24px; }
.sticky-bar__cta { min-height: 52px; padding: 0 28px; font-size: 17px; }
@media (min-width: 900px) { .sticky-bar { display: none; } }

/* ---------- chat ---------- */
.chat-launcher {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--c-sea); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: bottom .28s var(--ease), transform .15s var(--ease), background-color .15s;
  opacity: 0; pointer-events: none;
}
.chat-launcher.is-ready { opacity: 1; pointer-events: auto; }
.chat-launcher:hover { background: var(--c-sea-deep); }
.chat-launcher:active { transform: scale(.96); }
.chat-launcher .ico { width: 24px; height: 24px; }
.chat-launcher__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.has-bar .chat-launcher { bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); }
body.chat-open .chat-launcher { opacity: 0; pointer-events: none; }
@media (min-width: 900px) {
  .chat-launcher { right: 24px; bottom: 24px; width: auto; padding: 0 20px 0 16px; border-radius: var(--r-pill); }
  .chat-launcher__label { position: static; width: auto; height: auto; clip: auto; font-weight: 700; }
  body.has-bar .chat-launcher { bottom: 24px; }
}
.chat {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: min(78dvh, 640px);
  display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(16px); opacity: 0; transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.chat.is-open { transform: none; opacity: 1; }
@media (min-width: 900px) {
  .chat { left: auto; right: 24px; bottom: 24px; width: 390px; height: min(600px, calc(100vh - 120px)); border-radius: var(--r-lg); border: 1px solid var(--c-line); }
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--c-line); }
.chat__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--f-head); font-weight: 600; flex: none; }
.chat__title { font-weight: 700; color: var(--c-sea); line-height: 1.25; }
.chat__status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2FA35E; box-shadow: 0 0 0 3px rgba(47, 163, 94, .18); }
.chat__close { margin-left: auto; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--c-bg); overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 88%; animation: msgIn .22s var(--ease); }
.msg--user { align-self: flex-end; align-items: flex-end; }
.msg__bubble { padding: 10px 14px; border-radius: 16px; white-space: pre-line; font-size: 15px; line-height: 1.5; }
.msg--bot .msg__bubble { background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 6px; }
.msg--user .msg__bubble { background: var(--c-sea); color: #fff; border-bottom-right-radius: 6px; }
.msg__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg--typing .msg__bubble { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); animation: typing 1s infinite ease-in-out; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat__chips { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; border-top: 1px solid var(--c-line); scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--c-line); background: #fff; font-weight: 700; font-size: 14px; color: var(--c-sea); cursor: pointer; transition: border-color .15s, background-color .15s; }
.chip-btn:hover { border-color: var(--c-sea); }
.chat__form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); }
.chat__form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-pill); font: inherit; font-size: 16px; background: var(--c-bg); }
.chat__form input:focus { outline: none; border-color: var(--c-focus); box-shadow: 0 0 0 3px rgba(31, 94, 153, .2); }
.chat__form .icon-btn { width: 46px; height: 46px; }

/* ---------- flusso prenotazione ---------- */
.flow { position: fixed; inset: 0; z-index: 100; display: flex; align-items: stretch; justify-content: center; }
.flow[hidden] { display: none; }
.flow__backdrop { position: absolute; inset: 0; background: rgba(10, 25, 40, .55); opacity: 0; transition: opacity .22s var(--ease); }
.flow__panel {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--c-bg);
  transform: translateY(24px); opacity: 0; transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.flow.is-open .flow__backdrop { opacity: 1; }
.flow.is-open .flow__panel { transform: none; opacity: 1; }
@media (min-width: 760px) {
  .flow { align-items: center; padding: 24px; }
  .flow__panel { max-width: 820px; height: auto; max-height: min(92vh, 900px); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
}
.flow__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 8px 8px calc(8px); padding-top: calc(8px + env(safe-area-inset-top)); background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.flow__titles { text-align: center; min-width: 0; }
.flow__title { font-family: var(--f-head); font-weight: 600; color: var(--c-sea); font-size: 17px; line-height: 1.3; }
.steps { list-style: none; display: flex; justify-content: center; gap: 6px; margin-top: 6px; counter-reset: step; }
.steps li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-muted); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c-busy); color: var(--c-muted); font-size: 11px; transition: background-color .2s, color .2s; }
.steps li + li { padding-left: 6px; border-left: 0; }
.steps li.is-current { color: var(--c-ink); }
.steps li.is-current::before { background: var(--c-primary); color: #fff; }
.steps li.is-done::before { background: var(--c-success); color: #fff; content: "✓"; }
.steps li span { display: none; }
.steps li.is-current span { display: inline; }
@media (min-width: 480px) { .steps li span { display: inline; } .steps { gap: 14px; } }
.flow__body { flex: 1; overflow-y: auto; padding: 20px var(--gutter) 24px; overscroll-behavior: contain; }
.flow__body:focus { outline: none; }
@media (min-width: 760px) { .flow__body { padding: 28px 36px 32px; } }
.flow__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--c-surface); border-top: 1px solid var(--c-line); }
.flow__foot:empty { display: none; }
.flow__foot .btn--lg { flex: 1 1 100%; }
.flow-foot__sum { font-size: 15px; color: var(--c-ink); font-weight: 400; }
.flow-foot__sum strong { font-size: 20px; }
@media (min-width: 560px) { .flow__foot .btn--lg { flex: 0 0 auto; } .flow__foot .btn--block { flex: 1 1 100%; } }
@media (min-width: 760px) { .flow__foot { padding: 14px 36px; } }
.flow-h { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 8px; }
.flow-h:focus { outline: none; }
.flow-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--c-muted); margin-bottom: 16px; }
.flow-sub .ico { width: 18px; height: 18px; color: var(--c-primary); }
.flow-sub .link-btn { min-height: 32px; }
.flow-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 14px; background: var(--c-primary-soft); border-radius: var(--r-md); font-weight: 400; margin: 8px 0 12px; }
.flow-note .ico { width: 18px; height: 18px; color: var(--c-primary); }
.flow-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #FFF6E0; border: 1px solid #F0D79A; border-radius: var(--r-md); margin-bottom: 16px; }
.flow-alert .ico { color: #9A6B00; margin-top: 2px; }
.flow-empty { padding: 16px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); margin-bottom: 16px; display: grid; gap: 6px; }

.guests-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); margin: 12px 0 16px; }
.guests-row__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.guests-row__label .ico { color: var(--c-primary); }
.cal-hint { font-weight: 700; color: var(--c-sea); margin-bottom: 4px; min-height: 1.6em; }
.cal-nav { display: flex; justify-content: space-between; margin: 0 -6px -44px; position: relative; z-index: 1; pointer-events: none; }
.cal-nav .icon-btn { pointer-events: auto; }
.cal-wrap { display: grid; gap: 24px; }
.cal-wrap--two { grid-template-columns: 1fr 1fr; gap: 32px; }
.cal__month { text-align: center; font-family: var(--f-head); font-size: 19px; font-weight: 600; color: var(--c-sea); height: 44px; line-height: 44px; text-transform: capitalize; margin-bottom: 6px; }
.cal__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; }
.cal__wd { text-align: center; font-size: 13px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; padding-bottom: 6px; }
.day {
  position: relative; height: 46px; border: 0; background: transparent; font-weight: 700; font-size: 16px; color: var(--c-ink);
  cursor: pointer; border-radius: 0; transition: background-color .12s, color .12s; font-variant-numeric: tabular-nums;
}
.day::before { content: ""; position: absolute; inset: 2px; border-radius: 12px; transition: background-color .12s, box-shadow .12s; z-index: -1; }
.day { z-index: 0; }
.day:hover:not(:disabled)::before { background: var(--c-tint); }
.day:disabled { color: #B8BEC4; cursor: not-allowed; font-weight: 400; }
.day.is-busy { color: #8E969E; text-decoration: line-through; text-decoration-thickness: 1.5px; font-weight: 400; }
.day.is-busy::before { background: var(--c-busy); }
.day.is-checkout-ok { text-decoration: none; color: var(--c-ink); font-weight: 700; }
.day.is-range { background: var(--c-primary-soft); }
.day.is-range::before { background: transparent; }
.day.is-start, .day.is-end { color: #fff; background: linear-gradient(90deg, transparent 50%, var(--c-primary-soft) 50%); }
.day.is-end { background: linear-gradient(90deg, var(--c-primary-soft) 50%, transparent 50%); }
.day.is-start.is-end, .day.is-start:not(:has(~ .is-end)):not(:has(~ .is-range)) { background: transparent; }
.day.is-start::before, .day.is-end::before { background: var(--c-primary); box-shadow: 0 4px 12px rgba(180, 71, 31, .3); }
.day.is-today:not(.is-start):not(.is-end)::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--c-primary); }
.day:focus-visible { outline-offset: -2px; border-radius: 12px; }
.cal__pad { height: 46px; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; color: var(--c-muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--c-line); }
.sw--free { background: #fff; }
.sw--busy { background: var(--c-busy); }
.sw--sel { background: var(--c-primary); border-color: var(--c-primary); }

.offers { display: grid; gap: 16px; }
.offer { position: relative; background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 14px; }
.offer.is-chosen { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.offer.is-off { background: transparent; border-style: dashed; padding: 12px 16px; }
.offer.is-off img { filter: grayscale(.8); opacity: .6; }
.offer__flag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-primary); color: #fff; font-size: 13px; font-weight: 700; }
.offer__flag .ico { width: 15px; height: 15px; }
.offer__top { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.offer__top img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); }
.offer.is-off .offer__top img { width: 64px; height: 48px; }
.offer.is-off .offer__top { grid-template-columns: 64px 1fr; }
.offer__name { font-size: 20px; }
.offer__meta { font-size: 14px; color: var(--c-muted); }
.offer__perks { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-success); font-weight: 700; margin-top: 4px; line-height: 1.3; }
.offer__perks .ico { width: 16px; height: 16px; }
.offer__status { font-size: 14px; font-weight: 700; color: var(--c-muted); margin-top: 2px; }
.offer__save { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--c-success-soft); color: var(--c-success); border-radius: var(--r-sm); font-weight: 700; font-size: 14px; line-height: 1.35; }
.offer__save .ico { width: 16px; height: 16px; }
.price-lines { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.price-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price-lines dt { min-width: 0; }
.price-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-lines dd s { font-weight: 400; margin-right: 4px; }
.price-lines__note { display: block; font-size: 13px; line-height: 1.35; }
.price-lines__total { border-top: 1px solid var(--c-line); padding-top: 8px; margin-top: 2px; font-size: 18px; }
.price-lines__total dt { font-weight: 700; }
.price-lines__total dd { font-size: 22px; color: var(--c-sea); }
@media (min-width: 760px) {
  .offer { grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 20px; }
  .offer__flag, .offer__top { grid-column: 1 / -1; }
  .offer__top { grid-template-columns: 120px 1fr; }
  .offer__top img { width: 120px; height: 84px; }
  .price-lines { grid-column: 1 / -1; }
  .offer__save { align-self: center; }
  .offer.is-off { grid-template-columns: 1fr; }
}

.mini-sum { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); margin: 12px 0 14px; }
.mini-sum img { width: 72px; height: 56px; object-fit: cover; border-radius: var(--r-sm); }
.mini-sum__name { font-weight: 700; color: var(--c-sea); line-height: 1.3; }
.mini-sum__meta, .mini-sum__total { font-size: 14px; color: var(--c-muted); line-height: 1.4; }
.mini-sum__total strong { color: var(--c-ink); font-size: 16px; }
.mini-sum .link-btn { align-self: start; min-height: 32px; font-size: 14px; }

.bform { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--c-ink);
  background: #fff; border: 1.5px solid #CFC4B5; border-radius: var(--r-md); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-focus); box-shadow: 0 0 0 3px rgba(31, 94, 153, .2); }
.field.is-invalid input { border-color: var(--c-error); background: var(--c-error-soft); }
.field.is-valid input { border-color: var(--c-success); }
.field__err { display: flex; gap: 6px; color: var(--c-error); font-size: 14px; font-weight: 400; }
.field__err::before { content: "!"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c-error); color: #fff; font-size: 13px; font-weight: 700; margin-top: 1px; }
.field__err[hidden] { display: none; }
.field--check { grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; padding: 12px 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.field--check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; accent-color: var(--c-primary); cursor: pointer; }
.field--check label { font-weight: 400; font-size: 15px; line-height: 1.5; cursor: pointer; }
.field--check .field__err { grid-column: 2; }
.field--check.is-invalid { border-color: var(--c-error); background: var(--c-error-soft); }
.form-summary { padding: 10px 14px; border-radius: var(--r-md); background: var(--c-error-soft); color: var(--c-error); font-weight: 700; }
.form-summary[hidden] { display: none; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 560px; margin: 0 auto; }
.done__check svg { width: 72px; height: 72px; }
.done__check circle { fill: var(--c-success-soft); stroke: var(--c-success); stroke-width: 2.5; }
.done__check path { fill: none; stroke: var(--c-success); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { margin: 0; }
.done__email { display: inline-flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); background: var(--c-success-soft); color: var(--c-success); font-weight: 700; text-align: left; }
.done__email .ico { margin-top: 2px; }
.done__card { width: 100%; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 18px; text-align: left; display: grid; gap: 12px; }
.done__code { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed var(--c-line); }
.done__code span { color: var(--c-muted); font-size: 14px; }
.done__code strong { font-size: 20px; letter-spacing: .08em; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.done__list { margin: 0; display: grid; gap: 8px; }
.done__list > div { display: flex; justify-content: space-between; gap: 16px; }
.done__list dt { color: var(--c-muted); }
.done__list dd { margin: 0; font-weight: 700; text-align: right; text-transform: capitalize; }
.done__total { border-top: 1px solid var(--c-line); padding-top: 8px; }
.done__total dd { font-size: 20px; color: var(--c-sea); }
.done__next-title { font-size: 20px; justify-self: start; }
.done__next { list-style: none; counter-reset: n; display: grid; gap: 10px; text-align: left; width: 100%; }
.done__next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.done__next li::before { content: counter(n); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-tint); color: var(--c-sea); font-weight: 700; font-size: 14px; }
.done__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.done__btns .btn { padding: 0 12px; }

/* ---------- cookie + toast ---------- */
.cookie {
  position: fixed; z-index: 95; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; gap: 12px; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  font-size: 15px; line-height: 1.5; animation: msgIn .3s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .cookie { left: 24px; right: auto; bottom: 24px; max-width: 460px; } }
.toast {
  position: fixed; z-index: 200; left: 50%; top: 16px; transform: translate(-50%, -140%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-md); background: var(--c-sea-deep); color: #fff; font-weight: 400; font-size: 15px;
  box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }
.noscript { padding: 16px; background: #FFF6E0; text-align: center; }

/* ---------- animazioni di ingresso (leggere) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.rooms .reveal:nth-child(2), .reviews .reveal:nth-child(2) { transition-delay: .06s; }
.rooms .reveal:nth-child(3), .reviews .reveal:nth-child(3) { transition-delay: .12s; }
.rooms .reveal:nth-child(4) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- pagine legali ---------- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--c-ink); max-width: 70ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal .note { padding: 12px 16px; background: #FFF6E0; border: 1px solid #F0D79A; border-radius: var(--r-md); margin: 16px 0 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }

/* foto colazione + confronto prezzi */
.compare-wrap { display: grid; gap: 16px; margin-top: 28px; align-items: stretch; }
.compare-wrap__img { width: 100%; aspect-ratio: 600 / 408; object-fit: cover; border-radius: var(--r-lg); }
.compare-wrap .compare { margin: 0; max-width: none; align-self: center; }
@media (min-width: 800px) { .compare-wrap { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; } .compare-wrap__img { height: 100%; } .compare { padding: 28px; } }

/* ---------- rifiniture dopo il primo collaudo ---------- */
@media (max-width: 419px) { .qb-field:not(.qb-field--guests) > .ico { display: none; } .qb-field { padding: 8px 12px; } }
@media (max-width: 799px) {
  .benefit { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; }
  .benefit__icon { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .benefit h3 { font-size: 19px; margin-bottom: 4px; }
  .benefit p { font-size: 16px; }
  .hero__sub { font-size: 16px; }
}
@media (min-width: 900px) { .hero { min-height: min(78vh, 700px); } .hero__content { padding-bottom: 104px; } }
.cookie { font-size: 14px; padding: 14px; gap: 10px; }
.cookie .btn--sm { min-height: 44px; }
body.cookie-open .chat-launcher { opacity: 0; pointer-events: none; }
.distances__time { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-size: 13px; }
@media (max-width: 559px) { .qb-note { justify-content: flex-start; text-align: left; align-items: flex-start; } .qb-note .ico { margin-top: 3px; } }
.hours-line { display: block; }
.toast:not(.is-on) { visibility: hidden; }
.toast { transition: transform .3s var(--ease), visibility 0s linear .3s; }
.toast.is-on { transition: transform .3s var(--ease), visibility 0s; }
.flow-lead { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin-bottom: 18px; border-radius: var(--r-md); background: var(--c-success-soft); color: var(--c-success); font-weight: 700; font-size: 15px; line-height: 1.45; }
.flow-lead .ico { margin-top: 1px; }
.done { grid-template-columns: minmax(0, 1fr); }
.done > * { max-width: 100%; }
.done__btns { grid-template-columns: 1fr; }
.done__btns .btn { white-space: normal; text-align: center; }
@media (min-width: 480px) { .done__btns { grid-template-columns: 1fr 1fr; } }
.done__email { overflow-wrap: anywhere; }
.toast { top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 160%); }
.toast.is-on { transform: translate(-50%, 0); }
body.has-bar .toast { bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); }
.day.is-end, .day.is-start { text-decoration: none; font-weight: 700; }
.footer__bottom a { text-decoration: underline; }
/* utilità (niente stili inline: la Content-Security-Policy li blocca) */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mt-20 { margin-top: 20px; }
.footer__bottom--plain { margin-top: 0; border-top: 0; padding-top: 0; }

/* =========================================================
   Secondo giro: micro-animazioni (principi di Emil Kowalski)
   Solo transform e opacity, curve ease-out forti, uscite più rapide delle entrate.
   ========================================================= */
.btn, .icon-btn, .stepper__btn, .chip-btn, .qb-field, .filter, .lang-btn, .day { transition-property: background-color, color, border-color, box-shadow, transform; transition-duration: .16s; transition-timing-function: var(--ease); }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled), .stepper__btn:active:not(:disabled), .chip-btn:active, .qb-field:active, .sticky-bar__wa:active, .lang-btn:active { transform: scale(.97); }
.sticky-bar__wa { transition: transform .16s var(--ease), background-color .16s; }

/* chat: su mobile sale dal basso come un foglio, su desktop nasce dal pulsante (in basso a destra) */
.chat { transform: translateY(100%); opacity: 1; transition: transform .2s var(--ease-drawer); }
.chat.is-open { transform: none; transition: transform .32s var(--ease-drawer); }
@media (min-width: 900px) {
  .chat { transform-origin: bottom right; transform: scale(.96) translateY(8px); opacity: 0; transition: transform .15s var(--ease), opacity .15s var(--ease); }
  .chat.is-open { transform: none; opacity: 1; transition: transform .22s var(--ease), opacity .18s var(--ease); }
}

/* flusso: il pannello entra in 280 ms, esce in 180 ms */
.flow__panel { transition: transform .18s var(--ease), opacity .16s var(--ease); }
.flow.is-open .flow__panel { transition: transform .28s var(--ease), opacity .22s var(--ease); }
/* passaggi della prenotazione: breve scivolata nella direzione del percorso */
@keyframes stepFwd { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.flow__body.step-in-fwd { animation: stepFwd .2s var(--ease); }
.flow__body.step-in-back { animation: stepBack .2s var(--ease); }
.steps li::before { transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.steps li.is-current::before { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .chat, .chat.is-open { transform: none !important; }
  .flow__body.step-in-fwd, .flow__body.step-in-back { animation: none; }
  .btn:active:not(:disabled), .icon-btn:active:not(:disabled) { transform: none; }
}

/* ---------- nuovi elementi del secondo giro ---------- */
.hero__reassure { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 700; color: #fff; }
.hero__reassure .ico { width: 18px; height: 18px; color: var(--c-lemon); }

.chat__notice { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 8px 16px; background: var(--c-tint); font-size: 13px; line-height: 1.4; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.chat__notice .ico { width: 16px; height: 16px; color: var(--c-sea); }
.chat__notice span { flex: 1 1 200px; }
.chat__notice .link-btn { font-size: 14px; }

.field__hint { font-size: 14px; color: var(--c-muted); margin-top: -2px; }
.field__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; color: var(--c-sea); font-weight: 700; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flow-foot__save { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-success-soft); color: var(--c-success); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.flow-foot__note { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--c-muted); text-align: center; }
.flow-foot__note .ico { width: 15px; height: 15px; color: var(--c-success); }
.flow-empty .btn { justify-self: start; margin-top: 6px; }

/* banner cookie: Rifiuta e Accetta con lo stesso peso visivo, X = rifiuto */
.cookie { padding-right: 52px; }
.cookie__x { position: absolute; top: 4px; right: 4px; }
.cookie__title { font-weight: 700; color: var(--c-sea); font-size: 15px; }
.cookie__text { margin-top: -4px; }
.btn--choice { background: var(--c-sea); color: #fff; border-color: var(--c-sea); }
.btn--choice:hover:not(:disabled) { background: var(--c-sea-deep); color: #fff; }
.cookie__custom { justify-self: start; min-height: 32px; font-size: 14px; }
.cookie__prefs { display: grid; gap: 8px; }
.cookie__opt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); cursor: pointer; }
.cookie__opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-sea); }
.cookie__opt strong { display: block; font-size: 14px; }
.cookie__opt small { display: block; font-size: 13px; color: var(--c-muted); line-height: 1.4; }
.cookie.is-custom .cookie__btns { grid-template-columns: 1fr 1fr; }
body.cookie-open .sticky-bar { transform: translateY(110%); }
.compare-wrap__pic { display: block; }
.compare-wrap__pic img { width: 100%; height: 100%; aspect-ratio: 600 / 408; object-fit: cover; border-radius: var(--r-lg); }
@media (min-width: 800px) { .compare-wrap__pic { height: 100%; } }

/* ---------- correzioni richieste (giro 2b) ---------- */
/* banner cookie: stessi margini a sinistra e a destra; lo spazio per la X è riservato solo al titolo */
.cookie { padding: 16px; }
.cookie__title { padding-right: 44px; min-height: 32px; display: flex; align-items: center; }
.cookie__x { top: 8px; right: 8px; }
.cookie__btns { width: 100%; }
/* hero su mobile: il contenuto detta l'altezza, niente vuoto sopra il badge */
@media (max-width: 899px) {
  .hero { min-height: 0; }
  .hero__content { padding-top: 28px; padding-bottom: 52px; }
}
.hero__reassure { align-items: flex-start; } .hero__reassure .ico { margin-top: 3px; }

/* Rifiniture portfolio */
/* Da telefono e tablet il pulsante della chat copriva testi e pulsanti: si apre da "Chiedi all'assistente" nelle domande frequenti. */
@media (max-width: 900px) { .chat-launcher { display: none !important; } }
/* Entrata leggera della hero, una volta sola. */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: heroIn 640ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .hero__content > *:nth-child(2) { animation-delay: 60ms; }
  .hero__content > *:nth-child(3) { animation-delay: 110ms; }
  .hero__content > *:nth-child(4) { animation-delay: 150ms; }
  .hero__content > *:nth-child(n+5) { animation-delay: 190ms; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } }
