/* Montserrat e Playfair Display (SIL Open Font License 1.1), serviti dal sito: niente richieste a terzi */
@font-face {
  font-family: "Montserrat"; /* taste-skill-ignore */
  src: url("fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display"; /* taste-skill-ignore */
  src: url("fonts/playfair-display-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --header-h: 148px;
  --header-compact: 76px;
  --blue: #1875ab;
  --header-blue: #3873a6;
  --navy: #0d5a8a;
  --deep: #073d5c;
  --gold: #f5e082;
  /* Palette «Riviera d'inverno»: pietra e osso al posto del bianco (calde ma poco sature),
     blu notte per i blocchi forti */
  --sand: #f1f0ed;
  --sky: #dedad2;
  --soft: #e9e7e2;
  --mist: #dbe9ef;
  --white: #ffffff;
  --ink: #183b4d;
  --muted: #355263;
  --serif: "Playfair Display", Georgia, serif; /* taste-skill-ignore */
  --sans: "Montserrat", Arial, sans-serif; /* taste-skill-ignore */
  --shell: 1320px;
  /* Margine laterale unico per contenuti, hero e galleria a tutta larghezza;
     con viewport-fit=cover, in orizzontale non scende sotto la tacca dell'iPhone */
  --gutter: 56px;
  --gutter-safe: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--header-blue) var(--soft);
  scrollbar-width: thin;
}

body {
  margin: 0;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  background: var(--sand);
  font: 400 16px/1.68 var(--sans);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* hidden per Safari < 16, che non conosce clip */
  overflow-x: hidden;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
}

h1 {
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

p {
  max-width: 60ch;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  caret-color: var(--navy);
}

button,
select,
summary {
  cursor: pointer;
}

button {
  border: 0;
  background: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b68516;
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--deep);
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(var(--shell), calc(100% - 2 * var(--gutter-safe)));
  margin-inline: auto;
}

.section-space {
  padding-block: 104px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-library {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 8px;
  transition:
    background-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
  }
}

.button:active {
  transform: translateY(0);
}

.button-blue {
  background: var(--navy);
  color: var(--white);
}

.button-blue:hover {
  background: var(--deep);
}

.button-gold {
  background: var(--gold);
  color: var(--deep);
}

.button-gold:hover {
  background: #ebd36b;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: #7ea3b5;
  text-underline-offset: 6px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}

.text-link:hover {
  color: var(--deep);
  text-decoration-color: currentColor;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 600;
  border-radius: 6px;
  z-index: 100;
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease-out);
}

.skip:focus {
  transform: translateY(0);
}

.js-only {
  display: none;
}

.js .js-only {
  display: flex;
}

/* Top preview bar */
.preview-note {
  padding: 8px max(24px, env(safe-area-inset-right)) 8px max(24px, env(safe-area-inset-left));
  background: var(--deep);
  color: var(--white);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.preview-note span {
  color: #d6e7f0;
  margin-left: 14px;
}

[data-ui].review-toolbar {
  background: var(--sky);
  color: var(--ink);
  padding: 12px 16px;
}

[data-ui] .review-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

[data-ui] .review-toolbar-copy {
  font-size: 14px;
  line-height: 1.5;
}

[data-ui] .review-toolbar-copy strong {
  color: var(--navy);
  margin-right: 10px;
}

[data-ui] .review-sim-btn {
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  min-height: 44px;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

[data-ui] .review-sim-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--deep);
}

/* Fixed Editorial Header — Coastal Blue Bar. Logo pieno in cima alla pagina,
   versione compatta (.is-compact) solo durante lo scorrimento: il corpo pagina
   riserva sempre l'altezza piena, quindi il cambio non sposta il contenuto. */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  /* Pieno, senza sfocatura: dietro un fondo al 97% la sfocatura non si vede
     ma su telefono ricalcola lo sfondo a ogni fotogramma di scorrimento */
  background: var(--header-blue);
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.header a:focus-visible,
.header button:focus-visible {
  outline-color: var(--gold);
}

.header-inner {
  min-height: var(--header-h);
  padding-block: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 0.32s var(--ease-out);
}

.header.is-compact .header-inner {
  min-height: var(--header-compact);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 132px;
  width: auto;
  display: block;
  transition: height 0.32s var(--ease-out);
}

.header.is-compact .brand-logo {
  height: 60px;
}

/* Azioni rapide su telefono: WhatsApp diretto e richiesta, sempre a portata */
.header-quick {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.quick-whatsapp,
.quick-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s var(--ease-out);
}

.quick-whatsapp {
  width: 44px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.quick-request {
  display: none;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--deep);
}

.header.is-compact .quick-request {
  display: inline-flex;
}

.brand--footer {
  background: var(--header-blue);
  padding: 16px 22px;
  border-radius: 16px;
  justify-self: start;
  align-self: start;
}

.brand--footer .brand-logo {
  height: 128px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 24px;
  font-size: 16px;
  font-weight: 500;
}

.nav a {
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 6px;
  color: var(--white);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--deep);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 18px;
  min-height: 46px;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out);
}

.header-contact:hover {
  background: #ebd36b;
}

.menu-button {
  display: none !important;
}

/* Hero diviso: testo su blu notte, a fianco la battana di San Mauro Mare a tutta altezza */
.hero {
  container-type: inline-size;
  display: grid;
  /* Prima schermata su computer: logo pieno, battana intera e tutta la barra di
     prenotazione (richiesta dell'utente, 20/10). L'hero lascia sotto di sé 96 px:
     la parte della barra che esce dall'hero più un po' d'aria.
     La battana occupa quasi tutta l'altezza della foto (vela all'8%, scafo al 94%):
     la colonna della foto non supera 1,45 volte l'altezza dell'hero, altrimenti
     il ritaglio taglierebbe vela o scafo (la foto è 1,49). */
  --hero-h: clamp(560px, calc(100vh - var(--header-h) - 96px), 960px);
  grid-template-columns: minmax(0, 1fr) min(54vw, calc(var(--hero-h) * 1.45));
  min-height: var(--hero-h);
  background: var(--deep);
  color: var(--white);
}

/* Il testo parte dallo stesso margine del logo: (larghezza hero − shell) / 2 */
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px 96px max(var(--gutter-safe), calc((100cqw - var(--shell)) / 2));
}

.hero h1 {
  color: var(--white);
}

.hero-lede {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.72;
  color: #dbe9f1;
  max-width: 50ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero .text-link {
  color: var(--white);
  text-decoration-color: rgba(245, 224, 130, 0.7);
}

.hero .text-link:hover {
  color: var(--gold);
}

.hero-facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 20px 40px;
}

.hero-facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--gold);
  margin-bottom: 4px;
}

.hero-facts span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: #c9dce7;
}

.hero-rating {
  display: block;
  border-radius: 8px;
  transition: color 0.2s var(--ease-out);
}

.hero-rating strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-rating:hover span {
  color: var(--white);
}

.star {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--gold);
  stroke: #b68516;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.hero-visual {
  position: relative;
  margin: 0;
  /* segue l'altezza della riga, fissata dall'hero */
  min-height: 0;
  overflow: hidden;
  background: var(--navy);
}

@keyframes photo-drift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.035) translate3d(-0.8%, -0.6%, 0);
  }
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 40%;
  animation: photo-drift 18s ease-in-out infinite alternate;
}

/* Crediti sulle foto del territorio (CC BY-SA): leggibili ma discreti */
.photo-credit {
  position: absolute;
  right: 14px;
  bottom: 72px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(7, 61, 92, 0.72);
  color: #e4f0f6;
  font-size: 14px;
  line-height: 1.4;
}

/* Nell'hero il credito sta in alto, sul cielo: in basso copriva la prua */
.hero .photo-credit {
  top: 14px;
  bottom: auto;
}

.photo-credit a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Barra del soggiorno a cavallo dell'hero, come una ricerca di prenotazione */
[data-ui].staybar {
  position: relative;
  z-index: 3;
  /* A cavallo dell'hero solo sull'acqua: con 48 px copriva lo scafo */
  margin-top: -24px;
  background: var(--white);
  color: var(--ink);
  padding: 14px 14px 14px 28px;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(7, 61, 92, 0.16);
}

[data-ui] .select-field {
  border-left: 1px solid rgba(13, 90, 138, 0.16);
  padding: 4px 8px 4px 16px;
  flex: 1;
  min-width: 0;
}

/* Spazio in proporzione alla voce più lunga di ogni elenco: «Bilocale vista mare»,
   «12 mesi, da verificare», «Settembre 2027», «4 o più persone» */
[data-ui] .select-field:nth-child(1) {
  flex: 1.15;
}

[data-ui] .select-field:nth-child(2) {
  flex: 1.3;
}

[data-ui] .select-field:nth-child(3) {
  flex: 0.95;
}

[data-ui] .select-field:nth-child(4) {
  flex: 1;
}

/* Il pulsante della barra dice «Richiedi» finché la barra è stretta */
[data-ui].staybar .cta-short {
  display: none;
}

@media (max-width: 1399px) {
  [data-ui].staybar .cta-full {
    display: none;
  }

  [data-ui].staybar .cta-short {
    display: inline;
  }
}

[data-ui] .select-field:first-child {
  border-left: 0;
  padding-left: 0;
}

[data-ui] .select-field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2px;
}

[data-ui] .select-field select,
[data-ui] .select-field input {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  color: var(--navy);
  border: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 24px 6px 0;
  min-height: 44px;
}

[data-ui] .select-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D5A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

[data-ui] .select-field input {
  padding-right: 0;
}

[data-ui] .select-field option {
  color: var(--ink);
  background: var(--white);
}

[data-ui].staybar .button {
  white-space: nowrap;
}

/* Intro Narrative Split */
.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.section-sub {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 44ch;
}

.large-copy {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.48;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 46ch;
}

.body-prose {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  max-width: 58ch;
}

.proofs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
}

.proof-card {
  background: transparent;
}

.proof-card .icon {
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
  width: 26px;
  height: 26px;
}

.proof-card strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}

.proof-card span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.58;
  display: block;
}

/* Rooms Showcase Section */
.rooms {
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}

.heading-note {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.68;
  max-width: 52ch;
  justify-self: end;
}

[data-ui].room-stage-ui {
  display: block;
}

[data-ui] .room-tabs {
  gap: 10px;
  margin-bottom: 14px;
  background: var(--sky);
  padding: 8px;
  border-radius: 12px;
}

[data-ui] .room-tabs button {
  flex: 1;
  padding: 14px 16px;
  text-align: left;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

[data-ui] .room-tabs button span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

[data-ui] .room-tabs button[aria-pressed="true"] {
  background: var(--white);
  color: var(--navy);
}

/* Gli stati hover dei selettori solo con il mouse: al tocco resterebbero
   accesi dopo aver deselezionato, come una mezza selezione */
@media (hover: hover) {
  [data-ui] .room-tabs button:hover:not([aria-pressed="true"]) {
    background: rgba(255, 255, 255, 0.55);
  }
}

[data-ui].needs-bar {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: 12px;
}

[data-ui] .needs-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

[data-ui] .needs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-ui] .need-chip {
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

@media (hover: hover) {
  [data-ui] .need-chip:hover:not([aria-pressed="true"]) {
    background: var(--sky);
  }
}

[data-ui] .need-chip[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

[data-ui] .room-stage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 520px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(13, 90, 138, 0.06);
}

[data-ui] .room-gallery {
  position: relative;
  min-width: 0;
  background: var(--sky);
  display: flex;
  flex-direction: column;
}

[data-ui] .room-gallery > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: opacity 0.25s var(--ease-out);
}

[data-ui] .gallery-expand {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 14px;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

[data-ui] .gallery-credit {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  background: rgba(7, 61, 92, 0.88);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
}

[data-ui] .room-detail {
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

[data-ui] .room-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}

[data-ui] .room-rate-badge {
  background: var(--gold);
  color: var(--deep);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

[data-ui] .room-detail h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
}

[data-ui] .room-detail #room-description {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.68;
}

[data-ui] .room-features {
  list-style: none;
  padding: 0;
  margin: 18px 0 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

[data-ui] .room-features li {
  background: var(--soft);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 6px;
}

[data-ui] .room-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  padding: 12px 16px;
  background: var(--soft);
  border-radius: 8px;
  width: 100%;
}

[data-ui] .room-advisor {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--sky);
  border-radius: 8px;
  width: 100%;
}

[data-ui] .room-advisor strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

[data-ui] .room-advisor p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

[data-ui] .advisor-switch-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  min-height: 40px;
}

[data-ui] .room-actions {
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-ui] .room-detail .room-choose {
  width: 100%;
  justify-content: space-between;
}

[data-ui] .small-muted {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  width: 100%;
}

.noscript-note {
  margin-top: 20px;
  font-size: 16px;
  color: var(--ink);
}

/* Uneven Photographs Editorial Spread (taste-skill v2 direction) */
.uneven-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: start;
}

.mosaic-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mosaic-wide {
  grid-column: span 7;
}

.mosaic-tall {
  grid-column: span 5;
  margin-top: 36px;
}

.mosaic-third {
  grid-column: span 4;
}

.mosaic-third:nth-child(4) {
  margin-top: 24px;
}

.mosaic-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sky);
}

.mosaic-wide .mosaic-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.mosaic-tall .mosaic-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.mosaic-third .mosaic-media img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .mosaic-item:hover .mosaic-media img {
    transform: scale(1.03);
  }

  .mosaic-zoom:hover {
    transform: scale(1.08);
  }
}

.mosaic-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  transition: transform 0.2s var(--ease-out);
}

.mosaic-item figcaption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.swipe-hint {
  display: none;
}

/* Tre motivi per restare: pannello foto | blu notte, la foto cambia con il motivo */
.days {
  background: var(--sand);
}

.days-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: var(--deep);
}

.day-picture {
  position: relative;
  min-height: 520px;
}

.day-picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease-out);
}

.day-picture-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(7, 61, 92, 0.82);
  color: var(--white);
  font-size: 14px;
  line-height: 1.45;
}

.day-copy {
  padding: 48px 52px;
  color: var(--white);
}

[data-ui].segmented {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

[data-ui].segmented button {
  padding: 10px 18px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

@media (hover: hover) {
  [data-ui].segmented button:hover:not([aria-pressed="true"]) {
    background: rgba(255, 255, 255, 0.2);
  }
}

[data-ui].segmented button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--deep);
}

#day-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.day-moment h3 {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 6px;
}

.day-moment p {
  font-size: 16px;
  color: #d3e4ee;
  line-height: 1.65;
}

.day-footnote {
  font-size: 14px;
  color: #b9d0de;
  margin-top: 28px;
  line-height: 1.6;
}

/* Guest Reviews: fascia scura sull'alba di San Mauro Mare, voti Google e parole degli ospiti */
.reviews {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.band-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

/* Velatura piena (niente sfumature): il testo resta leggibile su ogni punto della foto */
.reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 33, 52, 0.7);
}

.reviews .reviews-inner,
.reviews .band-credit {
  position: relative;
  z-index: 2;
}

.reviews h2 {
  color: var(--white);
}

.reviews .section-sub {
  color: #d3e4ee;
}

.band-credit {
  width: min(var(--shell), calc(100% - 2 * var(--gutter-safe)));
  margin: 48px auto 0;
  font-size: 14px;
  color: #b9d0de;
}

.band-credit a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 32px;
}

.rating {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  transition: color 0.2s var(--ease-out);
}

.rating strong {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}

.rating span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(245, 224, 130, 0.7);
  text-underline-offset: 5px;
}

.rating:hover span {
  text-decoration-color: currentColor;
}

.reviews-source {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #b9d0de;
  max-width: 44ch;
}

.quotes {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.quote blockquote {
  margin: 0;
}

.quote p {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  color: var(--white);
  max-width: 40ch;
}

.quote figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

/* Territory & Distances Section */
.seaside {
  background: var(--navy);
  color: var(--white);
  padding-block: 0 96px;
}

.coast-band {
  position: relative;
  margin: 0 0 80px;
}

.coast-band img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 60%;
}

.coast-band .photo-credit {
  bottom: 14px;
}

.seaside-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.seaside h2 {
  color: var(--white);
}

.seaside-lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.72;
  color: #e4f0f6;
}

.seaside-link {
  color: var(--gold);
  text-decoration-color: rgba(245, 224, 130, 0.55);
  margin-top: 24px;
}

.seaside-link:hover {
  color: var(--white);
}

.territory-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.territory-card {
  background: transparent;
  padding: 8px 0;
}

.territory-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.08;
  color: var(--gold);
  margin-bottom: 10px;
}

.territory-card span {
  display: block;
  font-size: 16px;
  line-height: 1.55;
  color: #e4f0f6;
}

/* Interactive Coastal Radial Diagram ([data-ui]) */
[data-ui].territory-radar {
  margin-top: 44px;
  padding: 28px 32px;
  background: rgba(13, 90, 138, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}

[data-ui] .radar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

[data-ui] .radar-header h3 {
  font-size: 20px;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 4px;
}

[data-ui] .radar-header p {
  font-size: 14px;
  color: #d6e7f0;
  line-height: 1.5;
}

[data-ui] .radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #e4f0f6;
}

[data-ui] .radar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

[data-ui] .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

[data-ui] .legend-dot--walk {
  background: var(--gold);
}

[data-ui] .legend-dot--train {
  background: #7bc4e8;
}

[data-ui] .legend-dot--hub {
  background: var(--white);
}

[data-ui] .radar-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Su telefono il diagramma diventerebbe illeggibile: stesse distanze, in elenco */
[data-ui] .distance-list {
  display: none;
  margin: 0;
}

[data-ui] .distance-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
}

[data-ui] .distance-list > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

[data-ui] .distance-list dt {
  font-size: 16px;
  color: #e4f0f6;
}

[data-ui] .distance-list dd {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* Services & Radical Transparency Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.services-present,
.services-agree {
  padding: 36px;
  border-radius: 16px;
}

.services-present {
  background: var(--white);
}

.services-agree {
  background: var(--soft);
}

.services-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.65;
}

.present-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.present-list li {
  display: block;
  padding: 4px 0;
  background: transparent;
}

.present-list strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 4px;
}

.present-list span {
  display: block;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}

/* Modalità revisione: i punti da confermare con la proprietà, evidenziati in giallo */
.is-review [data-review-note]::after {
  content: attr(data-review-note);
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--deep);
  font-size: 14px;
  font-weight: 600;
}

.menu-ledger {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-ledger > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  font-size: 16px;
}

.menu-ledger dt {
  font-weight: 600;
  color: var(--navy);
}

.menu-ledger dd {
  color: var(--ink);
  text-align: right;
}

/* Duration Formulas Section */
.formulas {
  background: var(--soft);
}

.formula-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.04fr 0.96fr 1.12fr;
  gap: 28px;
  align-items: stretch;
}

.formula {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: transparent;
  border-radius: 14px;
}

.formula-annual {
  background: var(--navy);
  color: var(--white);
  padding: 32px 28px;
}

.formula h3 {
  font-size: 44px;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 12px;
}

.formula-annual h3 {
  color: var(--gold);
}

.formula-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.formula-annual .formula-subtitle {
  color: var(--white);
}

.formula p:not(.formula-subtitle):not(.formula-rate) {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 20px;
}

.formula-annual p:not(.formula-subtitle):not(.formula-rate) {
  color: #e2eff5;
}

.formula-rate {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  background: var(--sky);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.formula-annual .formula-rate {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold);
}

.formula-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  margin-top: auto;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: #7ea3b5;
  text-underline-offset: 6px;
}

.formula-annual .formula-link {
  color: var(--gold);
  text-decoration-color: rgba(245, 224, 130, 0.55);
}

/* Honest Cost Comparison Simulator ([data-ui], hidden until VSL.pricesConfirmed) */
[data-ui].cost-comparison {
  margin-top: 40px;
  padding: 32px;
  background: var(--white);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

[data-ui] .calc-intro h3 {
  font-size: 20px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 8px;
}

[data-ui] .calc-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

[data-ui] .calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

[data-ui] .calc-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

[data-ui] .calc-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #9ab6c5;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: var(--soft);
}

[data-ui] .calc-result {
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--sky);
}

[data-ui] .calc-result[data-delta="saving"] {
  background: var(--sky);
}

[data-ui] .calc-result[data-delta="higher"] {
  background: var(--soft);
}

[data-ui] .calc-result-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

[data-ui] .calc-result-value {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep);
  margin-bottom: 6px;
}

[data-ui] .calc-result-detail {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 72px;
  align-items: start;
}

.faq-intro .text-link {
  margin-top: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-list details {
  background: transparent;
  padding: 0;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.faq-list summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.22s var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.72;
  padding: 14px 20px 18px;
  max-width: 62ch;
}

/* Contact & Live WhatsApp Request Composer */
.contact {
  background: var(--soft);
}

.contact-heading {
  margin-bottom: 48px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.request-form {
  min-width: 0;
}

.request-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 36px;
  min-width: 0;
}

.request-form legend {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.full-field {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.field label span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.field input,
.field select,
.field textarea {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--white);
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #9ab6c5;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D5A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input[type="month"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.5em;
}

.field textarea {
  resize: vertical;
  min-height: 104px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  font-size: 16px;
}

.field-help {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.form-privacy {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.form-privacy a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-submit {
  margin-top: 24px;
}

/* Sticky WhatsApp Summary Card ([data-ui]) */
[data-ui].request-summary {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 48px rgba(7, 61, 92, 0.18);
}

[data-ui] .summary-head {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #d6e7f0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

[data-ui] .summary-head > .icon {
  color: var(--gold);
}

[data-ui].request-summary h3 {
  font-size: 24px;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 24px;
}

[data-ui] .summary-data {
  margin: 0 0 24px;
}

[data-ui] .summary-data > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 0;
  font-size: 16px;
}

[data-ui] .summary-data dt {
  color: #d6e7f0;
}

[data-ui] .summary-data dd {
  text-align: right;
  font-weight: 600;
  color: var(--white);
}

.js [data-ui] .message-preview {
  display: block;
  margin-bottom: 20px;
}

[data-ui] .message-preview summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  padding: 10px 0;
  min-height: 44px;
}

[data-ui] .message-preview .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease-out);
}

[data-ui] .message-preview[open] .icon {
  transform: rotate(45deg);
}

[data-ui] .message-preview p {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
}

[data-ui].request-summary > .button {
  width: 100%;
}

[data-ui] .summary-note {
  text-align: center;
  font-size: 14px;
  color: #d6e7f0;
  margin-top: 14px;
  line-height: 1.55;
}

[data-ui] .summary-phone {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #d6e7f0;
}

[data-ui] .summary-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
}

[data-ui] .summary-mail {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

[data-ui] .summary-mail a {
  text-decoration: underline;
  text-decoration-color: rgba(245, 224, 130, 0.55);
  text-underline-offset: 5px;
}

/* Footer */
.footer {
  padding: 64px 0 max(40px, env(safe-area-inset-bottom));
  background: var(--sand);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-claim {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--navy);
}

.footer-top > div {
  font-size: 16px;
  color: var(--ink);
}

.footer-top > div > strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 44px;
  font-weight: 500;
  color: var(--navy);
}

.footer-links .icon {
  width: 18px;
  height: 18px;
}

.footer-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: 40px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-codes > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.footer-codes dt {
  font-weight: 600;
  color: var(--navy);
}

.footer-codes dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.footer-codes dd span {
  white-space: nowrap;
}

.footer-credits {
  margin-top: 16px;
  max-width: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-credits a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}

.footer-bottom > span {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.footer-bottom p {
  max-width: 68ch;
  line-height: 1.6;
}

/* Native Lightbox Dialog */
.photo-dialog {
  border: 0;
  padding: 0;
  width: min(1000px, calc(100% - 32px));
  max-height: 90vh;
  max-height: 90dvh;
  overscroll-behavior: contain;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(7, 61, 92, 0.35); /* taste-skill-ignore */
}

.photo-dialog::backdrop {
  background: rgba(7, 61, 92, 0.82);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.dialog-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky);
  color: var(--navy);
  border-radius: 50%;
}

.photo-dialog > img {
  width: 100%;
  max-height: 66vh;
  max-height: 66dvh;
  object-fit: contain;
  background: var(--soft);
}

.photo-dialog > p {
  font-size: 16px;
  padding: 16px 20px;
  color: var(--ink);
}

body.dialog-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Menu: con il logo pieno (132 px, scelta del 17/10) le cinque voci e «Componi richiesta»
   stanno su una riga solo da 1400 px. Fra 1240 e 1399 px il menu si compatta; sotto i
   1240 px diventa a tendina come sul tablet. Prima le voci andavano a capo a 1280-1366 px. */
@media (min-width: 1240px) and (max-width: 1399px) {
  .nav {
    gap: 4px;
    margin-right: 16px;
    font-size: 15px;
  }

  .nav a {
    padding: 8px;
  }

  .header-contact {
    padding: 10px 14px;
  }
}

@media (max-width: 1239px) {
  .header-contact {
    margin-left: auto;
  }

  .menu-button {
    display: flex !important;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
  }

  .menu-button span {
    height: 2px;
    width: 20px;
    background: var(--white);
    transition: transform 0.2s var(--ease-out);
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* il margine del menu orizzontale accorciava la tendina di 24 px a destra */
    margin: 0;
    background: var(--white);
    padding: 16px var(--gutter-safe) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 18px 36px rgba(13, 90, 138, 0.12); /* taste-skill-ignore */
    /* Il 100% qui è l'altezza dell'intestazione: il menu finisce al bordo dello
       schermo e scorre, anche col telefono in orizzontale */
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    color: var(--navy);
  }

  .nav a:hover {
    background: var(--soft);
    color: var(--deep);
  }
}

/* Tablet Breakpoint (768px - 1080px) */
@media (max-width: 1080px) {
  :root {
    --gutter: 32px;
  }

  .section-space {
    padding-block: 84px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3,
  .formula h3,
  .territory-card strong {
    font-size: 22px;
  }

  :root {
    --header-h: 132px;
    --header-compact: 72px;
  }

  .brand-logo {
    height: 116px;
  }

  .header.is-compact .brand-logo {
    height: 52px;
  }

  .brand--footer .brand-logo {
    height: 116px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
  }

  .hero-copy {
    padding: 56px 32px 80px var(--gutter-safe);
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .days-inner {
    grid-template-columns: 1fr;
  }

  .day-picture {
    min-height: 360px;
  }

  .coast-band img {
    height: 280px;
  }

  [data-ui].staybar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  [data-ui] .staybar-intro {
    grid-column: 1 / -1;
  }

  [data-ui] .select-field {
    border-left: 0;
    padding-left: 0;
  }

  [data-ui].staybar .button {
    grid-column: 1 / -1;
  }

  .intro,
  .reviews-inner,
  .seaside-inner,
  .services-grid,
  .faq-section,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }

  .heading-note {
    justify-self: start;
  }

  [data-ui].needs-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  [data-ui] .room-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  [data-ui] .room-tabs button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  [data-ui] .room-stage {
    grid-template-columns: 1fr;
  }

  [data-ui] .room-gallery > img {
    min-height: 360px;
    max-height: 400px;
  }

  [data-ui] .radar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mosaic-wide,
  .mosaic-tall {
    grid-column: span 6;
    margin-top: 0;
  }

  .mosaic-third {
    grid-column: span 4;
    margin-top: 0 !important;
  }

  .mosaic-wide .mosaic-media img,
  .mosaic-tall .mosaic-media img {
    height: 340px;
  }

  .mosaic-third .mosaic-media img {
    height: 240px;
  }

  .formula-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  [data-ui].cost-comparison {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  [data-ui].request-summary {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* Smartphone Breakpoint: iPhone & Android (320px - 680px) */
@media (max-width: 680px) {
  :root {
    --header-h: 112px;
    --header-compact: 64px;
    --gutter: 20px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .section-space {
    padding-block: 60px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  h3,
  .formula h3,
  .territory-card strong,
  .large-copy {
    font-size: 20px;
  }

  .preview-note span {
    display: none;
  }

  [data-ui] .review-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  [data-ui] .review-toggle-btn {
    justify-content: center;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-logo {
    height: 96px;
  }

  .header.is-compact .brand-logo {
    height: 48px;
  }

  .brand--footer .brand-logo {
    height: 104px;
  }

  .header-contact {
    display: none;
  }

  .header-quick {
    display: flex;
  }

  .button {
    padding: 14px 18px;
  }

  .menu-button {
    display: flex !important;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
  }

  .menu-button span {
    height: 2px;
    width: 20px;
    background: var(--white);
    transition: transform 0.2s var(--ease-out);
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 18px 36px rgba(13, 90, 138, 0.14); /* taste-skill-ignore */
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    color: var(--navy);
  }

  .nav a:hover {
    background: var(--soft);
    color: var(--deep);
  }

  /* Hero su telefono: prima la battana, poi titolo e testo su blu notte */
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-visual {
    order: -1;
    min-height: 240px;
  }

  /* In alto sulla foto: in basso finirebbe subito sopra il titolo, come un'etichetta */
  .hero .photo-credit,
  .coast-band .photo-credit {
    top: 10px;
    right: 10px;
    bottom: auto;
  }

  /* Su telefono il credito resta su una riga: autore e licenza, senza il titolo */
  .credit-what {
    display: none;
  }

  .hero-copy {
    padding: 28px var(--gutter-safe) 40px;
  }

  .hero-lede {
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
  }

  .hero-facts strong {
    font-size: 20px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .day-picture {
    min-height: 220px;
  }

  .day-copy {
    padding: 28px 22px 32px;
  }

  [data-ui].segmented {
    margin-bottom: 24px;
  }

  .coast-band {
    margin-bottom: 48px;
  }

  .coast-band img {
    height: 170px;
  }

  .band-credit {
    margin-top: 32px;
  }

  /* Galleria: una fila da sfogliare col pollice invece di cinque foto in colonna.
     Esce dal margine di quanto vale il margine stesso: un valore fisso sbordava
     di 4 px sotto i 380 px e faceva scorrere di lato tutta la pagina. */
  [data-ui].uneven-grid {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter-safe));
    padding: 0 var(--gutter-safe) 4px;
    scroll-padding-inline: var(--gutter-safe);
  }

  [data-ui].uneven-grid::-webkit-scrollbar {
    display: none;
  }

  [data-ui].uneven-grid > .mosaic-item {
    flex: 0 0 84%;
    margin-top: 0 !important;
    scroll-snap-align: start;
  }

  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
  }

  .swipe-hint .icon {
    width: 18px;
    height: 18px;
  }

  .quotes {
    gap: 28px;
  }

  .quote p {
    font-size: 20px;
  }

  .ratings {
    margin-top: 24px;
  }

  .rating strong {
    font-size: 30px;
  }

  [data-ui] .radar-legend,
  [data-ui] .radar-svg {
    display: none;
  }

  [data-ui] .distance-list {
    display: block;
  }

  /* Su telefono: niente doppioni. La barra di configurazione ripete il modulo
     (e «Richiedi» resta fisso in alto); i tre numeri del territorio sono già
     nell'elenco delle distanze. */
  .js [data-ui].staybar,
  .territory-matrix {
    display: none;
  }

  [data-ui].territory-radar {
    margin-top: 28px;
  }

  .ratings {
    gap: 16px 28px;
  }

  [data-ui] .need-chip {
    flex: 0 1 auto;
  }

  .present-list {
    gap: 12px;
    margin-top: 20px;
  }

  .menu-ledger {
    gap: 6px;
    margin-top: 20px;
  }

  .menu-ledger > div {
    padding: 10px 14px;
  }

  /* Durate come elenco in grande: titolo, sottotitolo, azione */
  .formula-grid {
    gap: 4px;
  }

  .formula {
    padding: 16px 0;
  }

  .formula-annual {
    margin-top: 12px;
    padding: 22px 20px;
  }

  .formula:not(.formula-annual) p:not(.formula-subtitle):not(.formula-rate) {
    display: none;
  }

  .formula-subtitle {
    margin-bottom: 4px;
  }

  .request-form fieldset {
    margin-bottom: 24px;
  }

  .form-grid {
    gap: 14px;
  }

  .form-submit {
    width: 100%;
  }

  [data-ui].staybar {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
  }

  [data-ui].staybar .button {
    width: 100%;
  }

  .proofs,
  .territory-matrix,
  .formula-grid,
  .form-grid,
  [data-ui] .calc-controls {
    grid-template-columns: 1fr;
  }

  [data-ui].needs-bar {
    padding: 16px;
  }

  [data-ui] .needs-chips {
    width: 100%;
  }

  [data-ui] .need-chip {
    flex: 1 1 auto;
    justify-content: center;
  }

  [data-ui] .room-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Contenuto in alto: se un sottotitolo va a capo, i titoli della riga restano allineati */
  [data-ui] .room-tabs button {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px;
    min-height: 48px;
  }

  [data-ui] .room-gallery > img {
    min-height: 240px;
    max-height: 260px;
  }

  [data-ui] .gallery-expand {
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    min-height: 40px;
  }

  [data-ui] .gallery-credit {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
  }

  [data-ui] .room-detail {
    padding: 24px;
  }

  [data-ui].territory-radar {
    padding: 20px 16px;
  }

  [data-ui].cost-comparison {
    padding: 24px 20px;
  }

  [data-ui].segmented {
    max-width: 100%;
  }

  [data-ui].segmented button {
    min-height: 46px;
    padding: 12px 10px;
  }

  .mosaic-wide .mosaic-media img,
  .mosaic-tall .mosaic-media img,
  .mosaic-third .mosaic-media img {
    height: 240px;
  }

  .services-present,
  .services-agree {
    padding: 24px;
  }

  .menu-ledger > div {
    flex-direction: column;
    gap: 4px;
  }

  .menu-ledger dd {
    text-align: left;
  }

  [data-ui].request-summary {
    padding: 24px 20px;
  }

  .footer {
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom > span {
    white-space: normal;
  }

  .photo-dialog {
    width: calc(100% - 24px);
    max-height: 88vh;
    max-height: 88dvh;
  }

  .dialog-top {
    padding: 12px 16px;
  }

  .photo-dialog > p {
    padding: 14px 16px;
  }

  html:not(.js) .nav {
    display: flex;
    position: static;
    padding: 0;
    box-shadow: none; /* taste-skill-ignore */
  }

  html:not(.js) .header-inner {
    height: auto;
    min-height: 112px;
    flex-wrap: wrap;
    padding-block: 14px;
  }
}

/* Compact Smartphones: Android 360px, iPhone SE/Mini 375px & 320px */
@media (max-width: 380px) {
  :root {
    --gutter: 16px;
  }

  .brand-logo {
    height: 84px;
  }

  .header.is-compact .brand-logo {
    height: 44px;
  }

  .header.is-compact .quick-whatsapp {
    display: none;
  }

  .brand--footer .brand-logo {
    height: 92px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  h3,
  .formula h3,
  .territory-card strong,
  .large-copy {
    font-size: 19px;
  }
}

/* Schede degli appartamenti in colonna singola solo sui 320 px: a 360-375 px
   restano due per riga, altrimenti il selettore supera una schermata e mezza */
@media (max-width: 340px) {
  [data-ui] .room-tabs {
    grid-template-columns: 1fr;
  }
}

/* Telefono in orizzontale: largo come un tablet (568-932 px) ma alto 320-430 px.
   I breakpoint per larghezza gli davano il layout da tablet, con intestazione da
   132 px (un terzo dello schermo) e un hero più alto dello schermo. Qui
   l'intestazione è sempre compatta e i blocchi fotografici si abbassano.
   Il logo pieno in cima (scelta del 17/10) resta in verticale, su tablet e desktop. */
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-h: 64px;
    --header-compact: 64px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .header .brand-logo,
  .header.is-compact .brand-logo {
    height: 48px;
  }

  .section-space {
    padding-block: 56px;
  }

  h1 {
    font-size: 34px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding-block: 32px 40px;
  }

  /* Conta solo sotto i 600 px, con l'hero impilato: una fascia bassa lascia
     il titolo nella prima schermata. Su due colonne la foto segue il testo. */
  .hero-visual {
    min-height: 120px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }

  /* Come in verticale: la barra ripete il modulo, «Componi richiesta» resta in alto */
  .js [data-ui].staybar {
    display: none;
  }

  [data-ui] .room-gallery > img {
    min-height: 240px;
    max-height: 280px;
  }

  .mosaic-wide .mosaic-media img,
  .mosaic-tall .mosaic-media img {
    height: 260px;
  }

  .mosaic-third .mosaic-media img {
    height: 220px;
  }

  .day-picture {
    min-height: 240px;
  }

  .coast-band {
    margin-bottom: 48px;
  }

  .coast-band img {
    height: 200px;
  }

  .photo-dialog > img {
    max-height: 58vh;
    max-height: 58dvh;
  }
}

/* Da 600 px in su l'hero orizzontale va su due colonne: impilata, la foto spingeva
   il titolo fuori dalla prima schermata. Più stretto (iPhone SE di prima
   generazione, 568 px) la colonna del testo spezzerebbe il titolo in quattro righe. */
@media (max-height: 520px) and (orientation: landscape) and (min-width: 600px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: 0;
  }
}

/* Computer e tablet in orizzontale con schermo basso (portatili 1366×768 e 1280×720,
   iPad in orizzontale): con l'intestazione piena (132-148 px, scelta del 17/10)
   un hero da 640 px spingeva lo scafo della battana sotto la prima schermata.
   L'hero si ferma al bordo dello schermo e il testo si compatta. */
@media (min-width: 1000px) and (max-height: 820px) {
  /* su computer l'altezza resta quella che lascia spazio alla barra (vedi .hero) */
  .hero {
    --hero-h: max(340px, calc(100vh - var(--header-h) - 96px));
  }

  .hero-copy {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: clamp(44px, 4.2vw, 56px);
  }

  .hero-lede {
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 24px;
    margin-top: 24px;
  }
}

/* Tablet in orizzontale (1000-1080 px): la barra di prenotazione è su due righe e
   non può stare nella prima schermata; l'hero arriva al bordo con la barca intera */
@media (min-width: 1000px) and (max-width: 1080px) and (max-height: 820px) {
  .hero {
    min-height: max(480px, calc(100vh - var(--header-h)));
    min-height: max(480px, calc(100svh - var(--header-h)));
  }

  .hero-visual {
    min-height: 0;
  }
}

/* Portatili molto bassi (fino a 700 px utili, es. 1366×768 col browser): i tre numeri
   dell'hero si ripetono più sotto, quindi qui escono per far stare barca e barra */
@media (min-width: 1081px) and (max-height: 700px) {
  .hero-facts {
    display: none;
  }

  .hero-copy {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  /* barra più bassa e sovrapposta di 16 px: con un hero sotto i 400 px quella da
     24 px arrivava a sfiorare lo scafo */
  [data-ui].staybar {
    margin-top: -16px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* Il caso limite: 1280×720 con browser e barra di Windows lascia circa 590 px */
@media (min-width: 1081px) and (max-height: 620px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero-actions {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .header,
  .preview-note,
  .review-toolbar,
  .staybar,
  .needs-bar,
  .header-quick,
  .photo-open,
  .gallery-expand,
  .mosaic-zoom,
  .room-tabs,
  .segmented {
    display: none !important;
  }

  body {
    padding-top: 0;
  }

  .shell {
    width: 100%;
  }

  .section-space {
    padding-block: 32px;
  }
}

/* Avviso cookie (25/10/2026). Su telefono è un pannello in basso; da 1000 px è un
   riquadro a sinistra che consent.js mette sopra la barra del soggiorno, così logo,
   battana e barra restano interi nella prima schermata. Sotto l'intestazione (100). */
.cookie-note {
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px max(20px, env(safe-area-inset-left))
    calc(16px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--soft);
  box-shadow: 0 -10px 30px rgba(7, 61, 92, 0.16);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-note[hidden] {
  display: none;
}

.cookie-note-text {
  max-width: 64ch;
  margin: 0 0 12px;
}

.cookie-note-text a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-note-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 420px;
}

/* «Rifiuta» e «Accetta» hanno la stessa misura e lo stesso peso */
.cookie-btn {
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  font: 600 15px/1.2 var(--sans);
  cursor: pointer;
}

.cookie-btn-reject {
  background: var(--white);
  color: var(--navy);
}

.cookie-btn-accept {
  background: var(--navy);
  color: var(--white);
}

.cookie-btn:focus-visible,
.cookie-note-text a:focus-visible,
.footer-cookie:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.cookie-note.is-floating {
  left: var(--cookie-left, 24px);
  right: auto;
  bottom: var(--cookie-bottom, 24px);
  width: 380px;
  padding: 16px 18px;
  border: 1px solid var(--soft);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(7, 61, 92, 0.28);
}

.footer-cookie {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 16px/1.68 var(--sans);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

@media print {
  .cookie-note {
    display: none !important;
  }
}
