/* Layout: pagina a colonna singola con fascia "ombrellone" a righe come firma della Riviera; prenotazione in pannello dedicato */
:root {
  --salt: #f5f7f5;       /* sfondo: bianco sale */
  --paper: #ffffff;
  --ink: #14323a;        /* testo: blu abisso */
  --muted: #53686d;
  --sea: #1d6f86;        /* Adriatico */
  --sea-soft: #e1eef1;
  --pine: #2f5a47;       /* pineta */
  --sun: #f2b134;        /* ombrellone */
  --sun-ink: #3a2a05;
  --line: #d6e0e1;
  --busy: #e9d6d2;
  --busy-ink: #8a4a3e;
  --ok: #2f7a4f;
  --danger: #b3412f;
  --shadow: 0 10px 30px rgba(20, 50, 58, 0.08);

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 6vw, 4.2rem);
  --radius: 14px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --salt: #0e1d21; --paper: #13272c; --ink: #e6efef; --muted: #9fb3b6; --sea: #5bb3c9; --sea-soft: #173840;
    --pine: #8cc3a6; --line: #25414a; --busy: #3a2723; --busy-ink: #e0a597; --ok: #7fcf9d; --danger: #ef8a78;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --salt: #0e1d21; --paper: #13272c; --ink: #e6efef; --muted: #9fb3b6; --sea: #5bb3c9; --sea-soft: #173840;
  --pine: #8cc3a6; --line: #25414a; --busy: #3a2723; --busy-ink: #e0a597; --ok: #7fcf9d; --danger: #ef8a78;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--salt); color: var(--ink); font: 400 var(--step-0)/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--pine); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

/* Fascia a righe: il tessuto degli ombrelloni della Riviera */
.stripes { height: 14px; background: repeating-linear-gradient(90deg, var(--sun) 0 28px, var(--paper) 28px 56px); border-block: 1px solid var(--line); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--salt) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; }
.brand-mark { width: 30px; height: 18px; border-radius: 30px 30px 0 0; background: repeating-linear-gradient(90deg, var(--sun) 0 6px, var(--paper) 6px 12px); border: 1.5px solid var(--ink); border-bottom: 0; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--sea); }
@media (max-width: 760px) { .nav > a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 1rem var(--f-body); padding: 13px 22px; border-radius: 999px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--sun) 60%, #000); }
.btn-sun:hover { transform: translateY(-1px); }
.btn-sun:active { transform: translateY(2px); box-shadow: 0 2px 0 color-mix(in srgb, var(--sun) 60%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-art { position: absolute; inset: 0; background: url("img/hero.svg") center/cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--salt) 94%, transparent) 0%, color-mix(in srgb, var(--salt) 82%, transparent) 50%, transparent 85%); }
.hero .wrap { position: relative; padding-block: clamp(56px, 10vw, 120px); display: grid; gap: 22px; }
.hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 18ch; }
/* Titolo in due righe logiche: ogni riga va a capo solo al suo interno (niente "casa al / mare") */
.hero h1 .h1-line { display: block; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--sea); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.hero-facts span::before { content: "●"; color: var(--sun); margin-right: 8px; font-size: .7em; vertical-align: middle; }

section { padding-block: clamp(56px, 8vw, 96px); }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; }

/* Vantaggi prenotazione diretta */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.perk { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; }
.perk b { font-family: var(--f-display); font-size: 1.15rem; }
.perk p { color: var(--muted); font-size: .96rem; }
.perk-num { font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--sea); line-height: 1; }

/* Appartamenti */
.apts { display: grid; gap: 40px; }
.apt { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .apt { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 4 / 3; max-width: 100%; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; background: var(--sea-soft); }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.03); }
.apt-body { display: grid; gap: 16px; min-width: 0; }
.apt-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--sea-soft); color: var(--ink); font-size: .88rem; font-weight: 600; }
.features { columns: 2; column-gap: 20px; padding: 0; margin: 0; list-style: none; font-size: .95rem; }
.features li { break-inside: avoid; padding-left: 20px; position: relative; margin-bottom: 4px; }
.features li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--pine); }
.apt-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.apt-price strong { font-family: var(--f-display); font-size: var(--step-2); }
.apt-price span { color: var(--muted); }
.cin { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Stagioni */
.seasons { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.seasons th, .seasons td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.seasons th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Prenotazione */
.booking { background: var(--paper); border-block: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 920px) { .book-grid { grid-template-columns: 1fr; } }
.apt-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.apt-switch button { font: 700 .95rem var(--f-body); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.apt-switch button[aria-pressed="true"] { background: var(--ink); color: var(--salt); border-color: var(--ink); }

.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--salt); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.cal-head button[disabled] { opacity: .35; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 600px) { .cal-months { grid-template-columns: 1fr; } .cal-months .month:nth-child(2) { display: none; } }
.month h4 { margin: 0 0 8px; font-family: var(--f-display); font-size: 1.05rem; text-transform: capitalize; text-align: center; }
.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.dow span { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.day { aspect-ratio: 1; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); font: 600 .9rem var(--f-body); cursor: pointer; font-variant-numeric: tabular-nums; position: relative; }
.day:hover:not([disabled]) { outline: 2px solid var(--sea); outline-offset: -2px; }
.day.empty { background: transparent; cursor: default; }
.day.past { background: transparent; color: var(--muted); opacity: .45; cursor: default; }
.day.busy { background: var(--busy); color: var(--busy-ink); text-decoration: line-through; cursor: not-allowed; }
.day.busy.checkout-ok { cursor: pointer; text-decoration: none; background: linear-gradient(135deg, var(--paper) 50%, var(--busy) 50%); }
.day.in-range { background: var(--sea-soft); border-radius: 0; }
.day.sel { background: var(--sea); color: #fff; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal-status { margin-top: 8px; font-size: .85rem; color: var(--muted); min-height: 1.3em; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--salt); display: grid; gap: 16px; box-shadow: var(--shadow); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-box { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.date-box small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.date-box b { font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row2, .dates { grid-template-columns: 1fr; } }
.breakdown { display: grid; gap: 6px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown .total { border-top: 1px dashed var(--line); padding-top: 8px; font-weight: 800; font-size: 1.1rem; }
.pay-mode { display: grid; gap: 8px; }
.pay-mode label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--paper); }
.pay-mode label:has(input:checked) { border-color: var(--sea); }
.pay-mode span { display: grid; }
.pay-mode small { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; }
.msg { padding: 12px 14px; border-radius: 10px; font-size: .92rem; }
.msg.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.msg.info { background: var(--sea-soft); color: var(--ink); }
.secure { font-size: .82rem; color: var(--muted); text-align: center; }
.hint { color: var(--muted); font-size: .95rem; }

/* Zona */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }
.distances { list-style: none; margin: 0; padding: 0; display: grid; }
.distances li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.distances b { color: var(--sea); white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.faq summary .faq-q { display: inline; font: inherit; color: inherit; margin: 0; letter-spacing: inherit; text-transform: none; }
.faq details p { padding-bottom: 14px; color: var(--muted); }

/* Contatti + footer */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); display: grid; gap: 6px; min-width: 0; }
.contact-card small { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card a { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
footer { background: var(--ink); color: var(--salt); padding-block: 40px; font-size: .9rem; }
footer .wrap { display: grid; gap: 14px; }
footer a { color: var(--salt); }
footer .legal { opacity: .75; font-size: .82rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8, 20, 24, .92); display: grid; place-items: center; z-index: 50; padding: 20px; }
.lightbox img { max-height: 86vh; border-radius: 10px; }
.lightbox button { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; background: #fff; color: #14323a; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; }

/* Pagine testuali */
.doc { max-width: 760px; margin-inline: auto; padding: 56px 20px; display: grid; gap: 16px; }
.doc h1 { font-size: var(--step-3); }
.doc h2 { font-size: var(--step-1); margin-top: 16px; }
.doc ul { margin: 0; padding-left: 20px; }
.demo-banner { background: var(--sun); color: var(--sun-ink); text-align: center; font-weight: 700; font-size: .88rem; padding: 8px 16px; }
@media (max-width: 700px) {
  .hero-art::after { background: linear-gradient(180deg, color-mix(in srgb, var(--salt) 92%, transparent) 0%, color-mix(in srgb, var(--salt) 86%, transparent) 70%, color-mix(in srgb, var(--salt) 40%, transparent) 100%); }
}

/* ===== v2: lingue, pagine appartamento, metodi di pagamento ===== */
.nav { flex-wrap: wrap; justify-content: flex-end; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.langs a { font-size: .78rem; font-weight: 800; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.langs a[aria-current="true"] { background: var(--ink); color: var(--salt); }
@media (max-width: 760px) { .nav a:not(.btn):not([data-lang]) { display: none; } }
.lang-banner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 9px 16px; background: var(--sea); color: #fff; font-size: .92rem; font-weight: 600; }
.lang-banner a { color: #fff; font-weight: 800; }
.lang-banner button { background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 1rem; }
.lang-banner[hidden] { display: none; }

.hero { padding: 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.stack { display: grid; gap: 12px; }

/* Schede appartamento in home */
.apt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.apt-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.apt-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sea-soft); max-width: 100%; }
.apt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.apt-card:hover .apt-card-img img { transform: scale(1.03); }
.apt-card-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.apt-card h3 { font-size: var(--step-2); }
.apt-card h3 a { color: var(--ink); text-decoration: none; }
.apt-card-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.score { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.score b { background: var(--sea); color: #fff; padding: 3px 8px; border-radius: 8px 8px 8px 0; font-variant-numeric: tabular-nums; }

/* Pagina appartamento */
.apt-page > .wrap:first-child { padding-top: 24px; }
.back { display: inline-block; font-weight: 700; text-decoration: none; margin-bottom: 14px; }
.apt-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.apt-head h1 { font-size: var(--step-4); font-weight: 800; }
.mosaic { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 16 / 7; max-width: 100%; border-radius: var(--radius); overflow: hidden; }
.mosaic button[data-lb] { padding: 0; border: 0; cursor: zoom-in; background: var(--sea-soft); overflow: hidden; min-height: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mosaic button:hover img { transform: scale(1.03); }
.mosaic button:first-child { grid-row: span 2; }
.mosaic.m3 { grid-template-columns: 2fr 1fr; }
.mosaic.m1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mosaic.m2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.mosaic.m2 button:first-child, .mosaic.m1 button:first-child { grid-row: auto; }
.mosaic .mosaic-all { position: absolute; right: 12px; bottom: 12px; background: var(--paper); cursor: pointer; }
@media (max-width: 700px) {
  .mosaic, .mosaic.m3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .mosaic button[data-lb] { aspect-ratio: 4 / 3; }
  .mosaic button:first-child { grid-column: span 2; grid-row: auto; }
  .mosaic button[data-lb]:nth-child(n+4) { display: none; }
}
.apt-layout { display: grid; gap: 0; }
.apt-main { max-width: 760px; }
.apt-main section { padding-block: 28px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.apt-main h2 { font-size: var(--step-2); }
.apt-main section:last-child { border-bottom: 0; }

.cal-legend .lg-free { background: var(--paper); border: 1px solid var(--line); }
.cal-legend .lg-busy { background: var(--busy); }
.cal-legend .lg-sel { background: var(--sea); }
.cal-head { justify-content: space-between; }

/* Metodi di pagamento */
.pm { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-top: 18px; }
.panel .pm { margin-top: 0; }
.pm > span:first-child { margin-right: 4px; }
.pm-badge { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; font-size: .78rem; }
.pm-paypal { color: #1e5bb8; }
.pm-satispay { color: #e53a2f; }
:root[data-theme="dark"] .pm-paypal, :root[data-theme="dark"] .pm-satispay { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-paypal, :root:not([data-theme="light"]) .pm-satispay { color: var(--ink); } }

/* Barra prenotazione fissa su mobile */
.book-bar { display: none; }
@media (max-width: 920px) {
  .book-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transition: transform .2s ease; }
  .book-bar b { font-family: var(--f-display); font-size: 1.2rem; }
  .book-bar small { color: var(--muted); }
  .book-bar.off { transform: translateY(110%); }
  .apt-page { padding-bottom: 70px; }
  /* Spazio sotto il piè di pagina: la barra fissa non deve coprire gli ultimi link */
  body:has(.book-bar) footer { padding-bottom: calc(40px + 72px + env(safe-area-inset-bottom, 0px)); }
}

/* Lightbox v2 */
.lb-bar { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.lightbox .lb-bar button { position: static; }
.lightbox > button { display: none; }
.nav { flex-shrink: 0; }
.brand { min-width: 0; }
@media (max-width: 480px) {
  .brand { font-size: 1rem; gap: 8px; }
  .langs a { padding: 5px 7px; }
  .top .wrap { gap: 10px; }
}
.apt-layout { grid-template-columns: minmax(0, 1fr); }
.apt-main { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.features li { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 560px) { .features { columns: 1; } }
@media (max-width: 480px) { .seasons { font-size: .84rem; } .seasons th, .seasons td { padding: 8px 4px; } .seasons th { letter-spacing: .02em; } }
.lightbox { background: rgba(8, 20, 24, .97); } body:has(.lightbox) .book-bar { display: none; }
.doc { grid-template-columns: minmax(0, 1fr); } .doc h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }

/* ===== v3: palette "Mare e sole", foto grandi, onde ===== */
:root {
  --salt: #fbf6ec;      /* sabbia chiara */
  --paper: #ffffff;
  --ink: #0b3c5d;       /* blu profondo */
  --muted: #4c6275;
  --sea: #0e7c8c;       /* turchese (testo) */
  --sea-bright: #19a7b8;
  --sea-soft: #dff3f5;
  --pine: #0e7c8c;
  --sun: #f28c28;       /* arancio ombrellone */
  --sun-ink: #2a1400;
  --sun-soft: #fde9d4;
  --line: #eadfca;
  --busy: #f7dcd4;
  --busy-ink: #9a3f2c;
  --shadow: 0 14px 34px rgba(11, 60, 93, 0.12);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --salt: #0a2233; --paper: #0f2e43; --ink: #eaf3f6; --muted: #a6bccb; --sea: #4fd1df; --sea-bright: #4fd1df; --sea-soft: #133f55;
    --pine: #4fd1df; --sun-soft: #3a2a18; --line: #1f4a63; --busy: #40241f; --busy-ink: #f0a896;
  }
}
:root[data-theme="dark"] {
  --salt: #0a2233; --paper: #0f2e43; --ink: #eaf3f6; --muted: #a6bccb; --sea: #4fd1df; --sea-bright: #4fd1df; --sea-soft: #133f55;
  --pine: #4fd1df; --sun-soft: #3a2a18; --line: #1f4a63; --busy: #40241f; --busy-ink: #f0a896;
}
.eyebrow { color: var(--sea); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--sun); }
.sec-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
.stripes { height: 12px; background: repeating-linear-gradient(90deg, var(--sea-bright) 0 28px, #fff 28px 56px); border: 0; }
.brand-mark { background: repeating-linear-gradient(90deg, var(--sun) 0 6px, #fff 6px 12px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 4px 0 #c46a12; }
.btn-sun:active { box-shadow: 0 2px 0 #c46a12; }

/* Hero con foto a tutta larghezza */
.hero-photo { min-height: min(82vh, 760px); display: grid; align-items: center; color: #fff; }
.hero-photo .hero-art { position: absolute; inset: 0; background: none; }
.hero-photo .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-photo .hero-art::after { background: linear-gradient(100deg, rgba(8, 44, 70, .92) 0%, rgba(11, 60, 93, .72) 42%, rgba(11, 60, 93, .15) 80%); }
.hero-photo .wrap { padding-block: clamp(70px, 12vw, 140px) clamp(90px, 12vw, 150px); }
.hero-photo .eyebrow { color: #ffd39c; }
.hero-photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-photo h1 em { color: #7fe6f0; }
.hero-photo .lead { color: rgba(255,255,255,.92); }
.hero-photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,.18); }
.hero-photo .hero-facts { color: #fff; }
.hero-photo .hero-facts span { background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.hero-photo .hero-facts span::before { color: #ffd39c; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); fill: var(--salt); }
@media (max-width: 700px) {
  .hero-photo { min-height: 88vh; }
  .hero-photo .hero-art::after { background: linear-gradient(180deg, rgba(8, 44, 70, .88) 0%, rgba(11, 60, 93, .62) 55%, rgba(11, 60, 93, .3) 100%); }
}

/* Schede appartamento */
.apt-card { border: 0; box-shadow: var(--shadow); border-radius: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.apt-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(11, 60, 93, .18); }
.apt-card-img { aspect-ratio: 3 / 2; }
.apt-card-body { border-top: 5px solid var(--sea-bright); }
.apt-card:nth-child(2) .apt-card-body { border-top-color: var(--sun); }
.chip { background: var(--sea-soft); }
.score b { background: var(--ink); }

/* Galleria fotografica in home */
.photo-band { padding-top: 0; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 17vw, 210px); gap: 12px; }
.pg { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--sea-soft); }
.pg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pg:hover img { transform: scale(1.06); }
.pg span { position: absolute; left: 10px; bottom: 10px; background: rgba(11, 60, 93, .82); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pg-big { grid-column: span 2; grid-row: span 2; }
.pg-tall { grid-row: span 2; }
@media (max-width: 700px) {
  .pgrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .pg-big { grid-column: span 2; grid-row: span 2; }
  .pg-tall { grid-row: span 2; }
}

/* Vantaggi a colori */
.perk { border: 0; box-shadow: var(--shadow); border-top: 5px solid var(--sea-bright); }
.perk:nth-child(2) { border-top-color: var(--sun); }
.perk:nth-child(2) .perk-num { color: #c8620c; }
.perk:nth-child(3) { border-top-color: var(--ink); }
.perk:nth-child(3) .perk-num { color: var(--ink); }
:root[data-theme="dark"] .perk:nth-child(2) .perk-num { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .perk:nth-child(2) .perk-num { color: var(--sun); } }

/* Zona: fascia blu mare */
.band-sea { background: linear-gradient(135deg, #0b3c5d 0%, #0e5f7e 60%, #127f95 100%); color: #fff; border: 0; position: relative; }
.band-sea .eyebrow { color: #7fe6f0; }
.band-sea h2 { color: #fff; }
.band-sea .lead { color: rgba(255,255,255,.85); }
.band-sea .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.band-sea .distances li { border-color: rgba(255,255,255,.18); }
.band-sea .distances b { color: #ffd39c; }

/* FAQ e contatti */
.faq details { border: 0; box-shadow: 0 4px 14px rgba(11, 60, 93, .07); }
.faq details[open] { border-left: 4px solid var(--sea-bright); }
.faq summary::marker { color: var(--sun); }
.contact-card { border: 0; box-shadow: var(--shadow); }
.contact-card:first-child { background: linear-gradient(135deg, #e6f8ea, var(--paper)); }
footer { background: #082c46; color: #fff; }
footer a { color: #fff; }
:root[data-theme="dark"] .contact-card:first-child { background: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-card:first-child { background: var(--paper); } }

/* Pagina appartamento */
.apt-page { background: linear-gradient(180deg, var(--sea-soft) 0, var(--salt) 420px); }
.mosaic { box-shadow: var(--shadow); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--salt); }
.day.sel { background: var(--sea-bright); }
.cal-legend .lg-sel { background: var(--sea-bright); }
.mosaic .btn.mosaic-all { background: #fff; color: #0b3c5d; border-color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
/* WhatsApp e telefono nascosto */
.wa-icon { width: 1.25em; height: 1.25em; flex: none; }
.wa-btn { display: inline-flex; align-items: center; gap: 10px; align-self: start; justify-self: start; background: #25d366; color: #073b1c !important; text-decoration: none; font-weight: 800; padding: 11px 18px; border-radius: 999px; box-shadow: 0 4px 0 #1a9e4b; overflow-wrap: normal !important; }
.wa-btn:hover { background: #2fe072; }
.wa-btn .wa-icon { width: 26px; height: 26px; }
.contact-card .btn.js-tel { justify-self: start; }
.tel-link { font-size: 1.15rem; }
.hero-cta .js-wa .wa-icon { color: #25d366; }

/* ===== Contatti v2: tre schede ordinate ===== */
.contact3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .contact3 { grid-template-columns: 1fr; } }
.c-card { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: 30px 24px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.c-card h3 { font-size: 1.2rem; margin-top: 6px; }
.c-card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.c-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.c-ico svg { width: 30px; height: 30px; }
.c-wa .c-ico { background: #25d366; }
.c-tel .c-ico { background: var(--ink); }
.c-mail .c-ico { background: var(--sun); }
:root[data-theme="dark"] .c-tel .c-ico { background: #1d6f86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-tel .c-ico { background: #1d6f86; } }
.c-btn { margin-top: auto; width: 100%; max-width: 280px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font: 700 1rem var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .15s ease, background .15s ease; }
.c-btn:hover { border-color: var(--sea-bright); }
.c-btn-wa { background: #25d366; border-color: #25d366; color: #063b1b; }
.c-btn-wa:hover { background: #2fe072; border-color: #2fe072; }
.c-btn.tel-link { border-color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ===== La zona v2: mappa e distanze con icone ===== */
.zone-sec { overflow: hidden; }
.zone-sec::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 211, 156, .18), transparent 70%); pointer-events: none; }
.zone-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; margin-bottom: 36px; }
@media (max-width: 860px) { .zone-top { grid-template-columns: 1fr; } }
.map-card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); border: 4px solid rgba(255, 255, 255, .9); background: #f3e6c9; }
.map-art { width: 100%; height: 100%; display: block; }
.map-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; background: linear-gradient(0deg, rgba(8, 44, 70, .85), transparent); }
.map-over small { color: rgba(255, 255, 255, .85); font-size: .78rem; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.dist-hi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .dist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dist-hi { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .dist-grid { grid-template-columns: 1fr; } }
.d-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s ease, transform .2s ease; min-width: 0; }
.d-tile:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.d-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 230, 240, .16); color: #7fe6f0; }
.d-ico svg { width: 22px; height: 22px; }
.d-txt { display: grid; min-width: 0; flex: 1; }
.d-name { font-weight: 700; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.d-time { font-size: .8rem; color: rgba(255, 255, 255, .72); }
.d-m { flex: none; color: #ffd39c; font-family: var(--f-display); font-size: 1rem; white-space: nowrap; }
.d-big { padding: 20px; background: #fff; color: #0b3c5d; border: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.d-big:hover { background: #fff; }
.d-big .d-ico { width: 52px; height: 52px; background: #fde9d4; color: #e07a14; }
.d-big .d-ico svg { width: 26px; height: 26px; }
.d-big .d-name { font-size: 1.05rem; }
.d-big .d-time { color: #4c6275; font-size: .88rem; }
.d-big .d-m { color: #0e7c8c; font-size: 1.5rem; }
.d-tile:not(.d-big) .d-time b { color: #ffd39c; font-weight: 800; }
.d-tile:not(.d-big) { padding: 14px; }
@media (max-width: 480px) { .dist-grid { grid-template-columns: 1fr 1fr; } .d-tile:not(.d-big) { flex-direction: column; align-items: flex-start; gap: 8px; } }
.map-card { aspect-ratio: auto; display: flex; flex-direction: column; }
.map-art { aspect-ratio: 4 / 3; height: auto; }
.map-over { position: static; background: #082c46; padding: 14px 18px; }
.map-card.on { aspect-ratio: 4 / 3; }

.breakdown .tax-note { font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }

/* SEO: sottotitolo nell'H1 della pagina appartamento e link alle guide */
.apt-head h1 .h1-sub { display: block; font-size: var(--step-0, 1rem); font-weight: 600; opacity: .75; margin-top: 6px; letter-spacing: 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.guide-links b { margin-right: 6px; }
.guide .back { font-weight: 600; }
.guide ul li { margin-bottom: 6px; }
