/* Marsala Holiday Homes — bozza v0.1
   Layout: testata fissa, hero tramonto sulle saline, sezioni a colonna con schede, piè di pagina legale.
   Nessun font o servizio esterno: niente dati inviati a terzi (GDPR). */
:root {
  --salt: #FBF6EC;      /* crema: sfondo pagina */
  --panel: #FFFFFF;
  --alt: #E6F4FF;       /* azzurrino: sezioni alternate */
  --ink: #0B2A5B;       /* blu notte del logo: testi e titoli */
  --muted: #4A6A88;
  --line: #E4DCCB;
  --lagoon: #1E6FB8;    /* blu del logo: link e pulsanti secondari */
  --lagoon-ink: #ffffff;
  --wine: #C2410C;      /* arancio bruciato: accenti testuali */
  --wine-soft: #FDEFD9;
  --cta: #C2410C;       /* pulsante principale */
  --cta-ink: #ffffff;
  --sun: #F2A81D;       /* oro del logo */
  --sky: #4FB3E8;
  --ok: #1d7a4a;
  --ph-bg: #fff6d6;
  --ph-ink: #7a5a00;
  --footer: #0B2A5B;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(11,42,91,.06), 0 8px 24px rgba(11,42,91,.08);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --salt: #081a33; --panel: #0f2442; --alt: #0c2140; --ink: #E8EEF6; --muted: #A3B6CB; --line: #1F3A5C;
  --lagoon: #4FB3E8; --lagoon-ink: #06203a; --wine: #F2A81D; --wine-soft: #33280f; --cta: #F2A81D; --cta-ink: #0B2A5B; --sun: #F2A81D; --sky: #4FB3E8; --ok: #5fcf93;
  --ph-bg: #3a3214; --ph-ink: #f3d77a; --footer: #06142a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --salt: #081a33; --panel: #0f2442; --alt: #0c2140; --ink: #E8EEF6; --muted: #A3B6CB; --line: #1F3A5C;
  --lagoon: #4FB3E8; --lagoon-ink: #06203a; --wine: #F2A81D; --wine-soft: #33280f; --cta: #F2A81D; --cta-ink: #0B2A5B; --sun: #F2A81D; --sky: #4FB3E8; --ok: #5fcf93;
  --ph-bg: #3a3214; --ph-ink: #f3d77a; --footer: #06142a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--salt); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); }
img { max-width: 100%; }
a { color: var(--lagoon); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; }
.wrap { max-width: 1100px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* lingua: mostra solo la lingua attiva */
html:not([data-lang="it"]) [data-l="it"], html:not([data-lang="en"]) [data-l="en"], html:not([data-lang="de"]) [data-l="de"], html:not([data-lang="fr"]) [data-l="fr"], html:not([data-lang="es"]) [data-l="es"] { display: none !important; }

/* segnaposto: informazioni ancora da inserire */
.ph { background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed currentColor; border-radius: 6px; padding: 0 6px; font-size: .92em; white-space: normal; }
.draft-bar { background: var(--ph-bg); color: var(--ph-ink); font-size: .85rem; text-align: center; padding-block: 6px; }

/* testata */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { width: 40px; height: 40px; flex: none; display: block; }
.logo b { font-family: var(--display); font-size: 1.15rem; line-height: 1.05; display: block; }
.logo small { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .93rem; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--salt); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: 6px; }
.lang button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--lagoon); color: var(--lagoon-ink); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
  .nav:not(.open) { display: none; }
  .nav a { padding: 10px 6px; }
  .lang { align-self: flex-start; margin: 6px 0 0; }
}

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, #1d5f6b 0%, #b56f6c 48%, #f2a877 78%, #f6d2a6 100%); }
.hero svg.scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 46%; }
.hero .wrap { position: relative; padding-block: 64px 120px; display: grid; gap: 18px; }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; opacity: .9; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); max-width: 14ch; text-shadow: 0 2px 18px rgba(20,30,40,.25); }
.hero h1 i { font-weight: 400; }
.hero p.lede { max-width: 48ch; font-size: 1.08rem; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; background: var(--cta); color: var(--cta-ink); text-decoration: none; }
.btn:hover { filter: brightness(1.07); }
.btn.light { background: rgba(255,255,255,.94); color: #0B2A5B; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* sezioni */
section.block { padding-block: 56px; }
section.alt { background: var(--alt); border-block: 1px solid var(--line); }
.head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 62ch; }
.head p { color: var(--muted); }
.kicker { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--wine); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
section.alt .card { background: var(--panel); }
.card p { color: var(--muted); }
.ic { width: 36px; height: 36px; border-radius: 10px; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; }

/* case */
.homes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.home { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.photo { aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); background: repeating-linear-gradient(135deg, var(--salt) 0 14px, color-mix(in srgb, var(--line) 60%, var(--salt)) 14px 28px); font-size: .9rem; padding: 12px; }
.home .body { padding: 20px; display: grid; gap: 10px; }
.badge { justify-self: start; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--wine-soft); color: var(--wine); }
.badge.soon { background: color-mix(in srgb, var(--lagoon) 15%, transparent); color: var(--lagoon); }

/* scheda casa */
.detail { display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 8px; grid-template-columns: 2fr 1fr; }
.gallery .photo:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 260px; }
.gallery .photo { aspect-ratio: 4 / 3; border-radius: 10px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
.spec small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.list { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--muted); }
.codes { font-size: .85rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 4px; }

/* tabelle */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.note { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* modulo */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
form { display: grid; gap: 14px; }
.row2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr 1fr; } .row3 .f:first-child { grid-column: 1 / -1; } }
.f { display: grid; gap: 4px; min-width: 0; }
.f label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--salt); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: inherit; }
.f textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; }
.err { color: var(--wine); min-height: 1.2em; font-size: .9rem; }
.ok-box { border: 1px solid var(--ok); color: var(--ok); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.info-box { border-left: 4px solid var(--lagoon); background: color-mix(in srgb, var(--lagoon) 8%, var(--panel)); border-radius: 0 12px 12px 0; padding: 14px 16px; display: grid; gap: 6px; }

/* faq */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 8px; color: var(--muted); }

/* piè di pagina */
footer { background: var(--footer); color: #d6e2ef; padding-block: 36px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
footer a { color: #ffffff; }
.foot-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
footer h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
footer .ph { color: #f3d77a; background: transparent; }
.legal-line { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: #a9bdd3; }

/* pagine legali */
.doc { padding-block: 40px 64px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.updated { color: var(--muted); font-size: .9rem; }

/* foto */
img.cover { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; max-width: 100%; }
.gallery .shot { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; display: block; }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.gallery .shot:first-child { grid-row: span 2; }
.gallery .shot:first-child img { aspect-ratio: auto; min-height: 260px; }
dialog#lightbox { border: 0; padding: 0; background: #06142a; max-width: min(96vw, 1100px); max-height: 92vh; border-radius: 14px; overflow: hidden; }
dialog#lightbox::backdrop { background: rgba(4, 12, 14, .85); }
#lb-img { display: block; max-width: min(96vw, 1100px); max-height: 84vh; margin: auto; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.88); color: #0B2A5B; width: 42px; height: 42px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { color: #cfe0de; text-align: center; font-size: .85rem; margin: 0; padding: 8px; }

/* hero con foto */
.hero { background: #0B2A5B; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,91,.66) 0%, rgba(11,42,91,.28) 60%, rgba(11,42,91,.05) 100%); }
.hero .wrap { z-index: 1; padding-block: 88px 96px; }
@media (max-width: 600px) { .hero::after { background: linear-gradient(180deg, rgba(11,42,91,.58), rgba(11,42,91,.38)); } }
/* schede con foto */
.pic-card { padding: 0 0 18px; overflow: hidden; }
.pic-card > img, .pic-card > .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; max-width: 100%; }
.pic-card > h3, .pic-card > p { padding-inline: 18px; }

/* oro del logo come filo conduttore */
.kicker::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--sun); vertical-align: middle; margin-right: 8px; }
.foot-logo { width: 48px; height: 48px; display: block; margin-bottom: 8px; }

/* mappa delle case (schematica, disegnata in SVG: nessun servizio esterno) */
.map-card { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.map-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
@media (max-width: 700px) { .map-grid { grid-template-columns: 1fr; } .map-box { max-width: 340px; margin-inline: auto; width: 100%; } }
.map-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.smap { display: block; width: 100%; height: auto; }
.smap .sea { fill: #CFE8F7; }
.smap .land, .smap .land ellipse { fill: #F6EEDC; stroke: #D9C9A6; stroke-width: 2; }
.smap .sea-l { fill: #4A84B5; font: italic 22px var(--display); }
.smap .sea-l.small { font-size: 16px; }
.smap .dot { fill: #4FB3E8; stroke: #0B2A5B; stroke-width: 3; }
.smap .pl { fill: #0B2A5B; font: 600 19px var(--body); paint-order: stroke; stroke: #F6EEDC; stroke-width: 5px; }
.smap .zone-halo { fill: rgba(194,65,12,.18); stroke: none; }
.smap .zone-core { fill: rgba(194,65,12,.55); stroke: #C2410C; stroke-width: 3; }
.smap .zone-l { fill: #C2410C; font: 700 20px var(--body); paint-order: stroke; stroke: #F6EEDC; stroke-width: 5px; }
.smap .zone:hover .zone-core, .smap .zone:focus .zone-core { fill: rgba(194,65,12,.8); }
.smap .scale line { stroke: #0B2A5B; stroke-width: 4; }
.smap .scale text { fill: #0B2A5B; font: 600 17px var(--body); }
.map-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.map-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--salt); }
.map-item:hover { border-color: var(--wine); }
.map-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.map-item b { display: block; font-family: var(--display); }
.map-item span span, .map-item > span > span { color: var(--muted); font-size: .88rem; }
.map-item.soon { opacity: .85; }
.soon-dot { width: 72px; height: 72px; border-radius: 8px; flex: none; background: repeating-linear-gradient(135deg, var(--salt) 0 10px, var(--line) 10px 20px); }

.season { display: block; color: var(--muted); font-size: .88rem; }
td b { font-weight: 700; }

/* v0.15: homepage e pagina casa */
.hero-home .wrap { padding-block: 110px 120px; }
.hero-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .88rem; backdrop-filter: blur(4px); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.home .facts { color: var(--muted); font-size: .92rem; margin: 0; }
.home .price-from { margin: 0; font-size: 1.05rem; }
.home .price-from b { font-family: var(--display); font-size: 1.35rem; }
.home .btn.ghost { justify-self: start; }
.tours { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tour { display: grid; gap: 4px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.tour b { font-family: var(--display); font-size: 1.08rem; }
.tour span { color: var(--muted); font-size: .92rem; }
.tour::after { content: "GetYourGuide ↗"; font-size: .78rem; font-weight: 700; color: var(--lagoon); margin-top: 4px; }
.tour:hover { border-color: var(--wine); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--sun); display: grid; gap: 18px; max-width: 70ch; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--salt); border: 3px solid var(--wine); }
.timeline b { font-family: var(--display); color: var(--wine); font-size: 1.05rem; }
.timeline span { color: var(--ink); }
.monuments { margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); max-width: 70ch; }
.monuments b { color: var(--ink); }
.back { font-weight: 600; text-decoration: none; }
.h1-house { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.am-group { margin: 10px 0 2px; font-weight: 600; }
#legal-note { margin: 16px auto 0; }

[hidden] { display: none !important; }

/* v0.16 */
h2.h-sub { font-size: 1.2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.home .price-from .extra { display: block; font-size: .85rem; color: var(--muted); }
.map-item span span { overflow-wrap: anywhere; }

/* v0.18 — homepage più leggera: esperienze, mappa Google, punti di forza */
.hero-chips li { padding: 0; }
.hero-chips a { display: block; color: #fff; text-decoration: none; padding: 6px 13px; border-radius: 999px; }
.hero-chips a:hover { background: rgba(255,255,255,.18); }

.exps { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .exps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .exps { grid-template-columns: 1fr; } }
.exp { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); box-shadow: var(--shadow); }
.exp img, .exp .exp-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.exp:hover img, a.exp:hover .exp-art { transform: scale(1.04); }
.exp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,20,42,.85) 0%, rgba(6,20,42,.25) 55%, rgba(6,20,42,0) 75%); }
.exp-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px; display: grid; gap: 4px; }
.exp-txt b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.exp-txt span { font-size: .92rem; line-height: 1.4; opacity: .92; }
.exp-txt .exp-cta { font-size: .8rem; font-weight: 700; color: var(--sun); opacity: 1; margin-top: 2px; }
.exp-txt .exp-cta::after { content: " ↗"; }
/* illustrazioni disegnate in casa (nessuna foto esterna) */
.exp-1 { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath d='M250 40 Q300 30 330 70 L290 95 Q270 60 250 40Z' fill='%23F2A81D'/%3E%3Cpath d='M300 92 L215 215' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3Cpath d='M262 52 L215 215' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3Cpath d='M195 222 l40 -4 l-2 5 l-40 4Z' fill='%23fff'/%3E%3Ccircle cx='214' cy='204' r='5' fill='%230B2A5B'/%3E%3Cpath d='M214 209 l0 12' stroke='%230B2A5B' stroke-width='4'/%3E%3C/svg%3E") center 30% / cover no-repeat,
  linear-gradient(180deg, #4FB3E8 0%, #9fd8f3 55%, #1E6FB8 56%, #0B2A5B 100%); }
.exp-5 { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Ccircle cx='300' cy='70' r='28' fill='%23F2A81D'/%3E%3Cpath d='M40 175 Q110 120 170 160 Q210 140 250 175Z' fill='%230B2A5B' opacity='.75'/%3E%3Cpath d='M270 180 Q320 150 370 180Z' fill='%230B2A5B' opacity='.6'/%3E%3Cpath d='M150 205 l50 0 l-8 10 l-36 0Z' fill='%23fff'/%3E%3Cpath d='M174 205 l0 -30 l16 26Z' fill='%23fff'/%3E%3C/svg%3E") center 30% / cover no-repeat,
  linear-gradient(180deg, #e9f6ff 0%, #4FB3E8 58%, #1E6FB8 59%, #0B2A5B 100%); }

.why-strip { padding-block: 26px; border-block: 1px solid var(--line); }
.whys { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .whys { grid-template-columns: 1fr; } }
.whys li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--sun); }
.whys b { font-family: var(--display); font-size: 1.1rem; }
.whys span { color: var(--muted); font-size: .92rem; }

.gmap { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; display: grid;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 30%, var(--panel)), color-mix(in srgb, var(--lagoon) 18%, var(--panel))); }
.gmap-consent { align-self: center; padding: 22px; display: grid; gap: 10px; justify-items: start; }
.gmap-consent b { font-family: var(--display); font-size: 1.3rem; }
.gmap-consent p { margin: 0; font-size: .9rem; color: var(--muted); }
.gmap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-grid:has(.gmap) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 700px) { .map-grid:has(.gmap) { grid-template-columns: 1fr; } }
.map-side .btn.ghost { justify-self: start; }
.timeline span { font-size: .95rem; }

/* v0.19 — ricerca stile Booking, calendario, stelle */
.search-band { margin-top: -38px; position: relative; z-index: 5; }
.search { position: relative; display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto; gap: 6px; align-items: end; background: var(--panel); border: 3px solid var(--sun); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
@media (max-width: 800px) { .search { grid-template-columns: 1fr 1fr; } .search .sf:first-child { grid-column: 1 / -1; } .s-go { grid-column: 1 / -1; justify-content: center; } }
@media (max-width: 420px) { .search { grid-template-columns: 1fr; } }
.sf { display: grid; gap: 2px; min-width: 0; }
.sf label, .sf .lbl { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-left: 4px; }
.sf select, .sfield { width: 100%; min-height: 46px; font: inherit; text-align: left; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-go { min-height: 46px; }
.pop { position: absolute; top: calc(100% + 8px); z-index: 20; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(6,20,42,.22); padding: 14px; }
.pop.cal { left: 0; right: 0; max-width: 680px; margin-inline: auto; }
.pop.guests { right: 0; width: min(320px, 100%); display: grid; gap: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-hint { font-size: .9rem; color: var(--muted); text-align: center; }
.cal-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.cal-arrow:disabled { opacity: .35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .cal-months { grid-template-columns: 1fr; } }
.cal-month > b { display: block; text-align: center; text-transform: capitalize; font-family: var(--display); margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-grid .wd { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0; }
.day { aspect-ratio: 1; min-height: 36px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; border-radius: 8px; cursor: pointer; }
.day:hover:not(:disabled) { background: color-mix(in srgb, var(--lagoon) 14%, transparent); }
.day:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); cursor: default; }
.day.mid { background: color-mix(in srgb, var(--lagoon) 16%, transparent); border-radius: 0; }
.day.start, .day.end { background: var(--lagoon); color: var(--lagoon-ink); font-weight: 700; }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--lagoon); text-decoration: underline; cursor: pointer; }
.stepper { display: grid; grid-template-columns: 1fr 38px 28px 38px; align-items: center; gap: 6px; }
.stepper b { text-align: center; }
.step { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--lagoon); background: transparent; color: var(--lagoon); font-size: 1.2rem; cursor: pointer; }
.step:disabled { opacity: .3; cursor: default; }
.search-sum { margin: 8px 0 0; font-weight: 600; }
.home .warn { margin: 0; color: var(--cta); font-weight: 600; }
.home .btn:not(.ghost) { justify-self: start; }
.stars { margin: 0; font-size: .92rem; }
.stars a { color: var(--ink); text-decoration: none; }
.stars a:hover { text-decoration: underline; }
.stars .st { color: var(--sun); letter-spacing: 1px; }
.rev-box { display: grid; gap: 2px; }
.rev-box small { font-size: .78rem; }
.hint { margin: 0; }
.home .codes { margin: 0; font-size: .74rem; color: var(--muted); letter-spacing: .01em; }

/* ---- Chat ospite–proprietario (v0.23) ---- */
.chat-page { padding-block: 32px 48px; display: grid; gap: 16px; }
.chat-page h1 { margin: 0; }
.ch-sum { font-weight: 700; margin: 0; }
.ch-contacts { border: 1px solid var(--ok); border-radius: var(--r); padding: 14px 16px; background: var(--panel); }
.ch-contacts p { margin: 4px 0 0; overflow-wrap: anywhere; }
.ch-safe { margin: 0; }
.ch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ch-msg { max-width: 86%; padding: 10px 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.ch-msg p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-me { justify-self: end; background: color-mix(in srgb, var(--lagoon) 12%, var(--panel)); }
.ch-other { justify-self: start; }
.ch-staff { justify-self: center; max-width: 100%; background: var(--wine-soft); }
.ch-who { font-size: .8rem; color: var(--muted); }
.ch-empty { color: var(--muted); }
.ch-form { display: grid; gap: 8px; }
.ch-form label { font-weight: 700; }
.ch-form textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); box-sizing: border-box; }
.ch-form .btn { justify-self: start; }
/* pagina riservata */
.adm { padding-block: 28px 48px; }
.adm-login { max-width: 420px; display: grid; gap: 10px; margin-inline: auto; }
.adm-login input { width: 100%; box-sizing: border-box; }
.adm-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.adm-bar h1 { margin: 0; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
@media (max-width: 800px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-item { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.adm-item small { color: var(--muted); }
.adm-item.flag { border-color: var(--wine); }
.adm-item.on { outline: 2px solid var(--lagoon); }
.adm-detail { display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.adm-detail h2 { margin: 0; }
.adm-detail p { margin: 0; overflow-wrap: anywhere; }
.adm-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .adm-people { grid-template-columns: 1fr; } }
.adm-warn { color: var(--wine); font-weight: 700; }
.adm-flag { border-color: var(--wine); border-width: 2px; }
.adm-orig { font-size: .85rem; color: var(--wine); }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Mappa schematica v0.24: zone delle case, trasporti, riquadro Sicilia ---- */
.map-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .map-grid { grid-template-columns: 1fr; } .map-box { max-width: 520px; margin-inline: auto; width: 100%; } }
.map-box { border-radius: 16px; box-shadow: var(--shadow); background: var(--alt); }
.smap .sea { fill: #CFE8F7; }
.smap .wave { fill: none; stroke: #B5DAF0; stroke-width: 2; }
.smap .land, .smap .land ellipse { fill: #F8F1E1; stroke: #D9C9A6; stroke-width: 2.5; }
.smap .road { fill: none; stroke: #E4D4AE; stroke-width: 6; stroke-linecap: round; }
.smap .ferry { fill: none; stroke: #4A84B5; stroke-width: 2.5; stroke-dasharray: 8 8; }
.smap .sea-l { fill: #3E78AA; font: italic 24px var(--display); letter-spacing: .02em; }
.smap .sea-l.small { font-size: 17px; }
.smap .dot { fill: #fff; stroke: #0B2A5B; stroke-width: 3.5; }
.smap .pl { fill: #0B2A5B; font: 650 19px var(--body); paint-order: stroke; stroke: #F8F1E1; stroke-width: 6px; stroke-linejoin: round; }
.smap .air-bg, .smap .port-bg { fill: #0B2A5B; }
.smap .ico-plane { fill: #fff; }
.smap .ico-anchor { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.smap .arrow { fill: none; stroke: #0B2A5B; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.smap .off-l { fill: #0B2A5B; font: 700 18px var(--body); paint-order: stroke; stroke: #F8F1E1; stroke-width: 6px; }
.smap .off-s { fill: #4A6A88; font: 600 16px var(--body); paint-order: stroke; stroke: #F8F1E1; stroke-width: 6px; }
.smap .comp-bg { fill: #fff; stroke: #D9C9A6; stroke-width: 2; }
.smap .comp-n { fill: #C2410C; }
.smap .comp-l { fill: #0B2A5B; font: 700 12px var(--body); }
.smap .scale line { stroke: #0B2A5B; stroke-width: 4; }
.smap .scale text { fill: #0B2A5B; font: 650 17px var(--body); }
.smap .halo-in { stop-color: #C2410C; stop-opacity: .38; }
.smap .halo-out { stop-color: #C2410C; stop-opacity: 0; }
.smap .zone { cursor: pointer; outline: none; }
.smap .zone-halo { fill: url(#halo); stroke: #C2410C; stroke-width: 2; stroke-dasharray: 6 6; stroke-opacity: .55; }
.smap .zone-pin { fill: #C2410C; stroke: #fff; stroke-width: 4; }
.smap .zone-n { fill: #fff; font: 800 20px var(--body); }
.smap .zone.soon .zone-pin { fill: #fff; stroke: #C2410C; stroke-dasharray: 5 4; }
.smap .zone.soon .zone-n { fill: #C2410C; }
.smap .zone:hover .zone-pin, .smap .zone:focus-visible .zone-pin, .smap .zone.on .zone-pin { stroke: #F2A81D; stroke-width: 6; }
@media (prefers-reduced-motion: no-preference) { .smap .zone-halo { animation: zone-pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes zone-pulse { 50% { transform: scale(1.12); stroke-opacity: .25; } }
.smap .inset-bg { fill: #fff; stroke: #D9C9A6; stroke-width: 2; }
.smap .inset-land { fill: #F8F1E1; stroke: #B9A77F; stroke-width: 1.5; stroke-linejoin: round; }
.smap .inset-frame { fill: rgba(194,65,12,.15); stroke: #C2410C; stroke-width: 2; }
.smap .inset-air { fill: #0B2A5B; }
.smap .inset-l { fill: #0B2A5B; font: 700 11px var(--body); }
.smap .inset-cap { fill: #4A6A88; font: italic 13px var(--display); }
.map-head { display: grid; gap: 4px; }
.map-head b { font-family: var(--display); font-size: 1.35rem; }
.map-head p { margin: 0; }
.map-list { display: grid; gap: 10px; }
.map-item { align-items: flex-start; transition: border-color .15s, box-shadow .15s; }
.map-item.on, .map-item:focus-visible { border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.map-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wine); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.map-item.soon .map-num { background: var(--panel); color: var(--wine); border: 2px dashed var(--wine); }
.dist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dist span { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; padding: 3px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.dist .ph { padding: 0 4px; }
.hubs { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 12px; background: var(--alt); }
.hubs li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.hubs b { font-variant-numeric: tabular-nums; }
.hub-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--ink) center / 16px no-repeat; }
.hub-ic.air { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -10 28 24'%3E%3Cpath fill='%23fff' d='M-11 2 L-2 0 L3 -9 L6 -9 L4 0 L11 1 L13 -3 L15 -3 L14 2 L15 7 L13 7 L11 3 L4 4 L6 13 L3 13 L-2 4 L-11 2 Z'/%3E%3C/svg%3E"); }
.hub-ic.port { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0 -9 v18 M-7 -3 h14 M-8 3 q8 9 16 0' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.map-note { margin: 0; font-size: .82rem; }
.gmap-more summary { cursor: pointer; color: var(--lagoon); font-weight: 600; }
.gmap-more .gmap { margin-top: 10px; min-height: 260px; }
.dist-box { margin-top: 10px; }
.no-fit { grid-column: 1 / -1; padding: 22px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--panel); display: grid; gap: 8px; }
.no-fit b { font-family: var(--display); font-size: 1.2rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hub-ic { background-color: #0B2A5B; } }
.dist b { font-family: var(--body); font-weight: 700; display: inline; }
