:root {
  --ink: #1c1d21;
  --ink-2: #4a4d55;
  --muted: #6b6f78;
  --line: #e3e4e8;
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --sea: #1a4fd6;
  --sea-dark: #0f2a4a;
  --sea-soft: #e8eefc;
  --sand: #efe6d6;
  --danger: #c3283b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 24, 40, .12);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, .22);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.55; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------------- NAV ---------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; color: #fff; transition: background .25s, color .25s, box-shadow .25s; }
.nav.solid { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 400; letter-spacing: 0; font-size: 1.6rem; line-height: 1; }
.logo svg { width: 28px; height: 28px; }
.nav.solid .logo { color: var(--sea); }
.logo-dark { color: var(--sea); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover { background: rgba(255,255,255,.18); }
.nav.solid .nav-links a:hover { background: var(--bg-soft); }
.nav-ig { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: .9rem; padding: 8px 14px; border: 1px solid currentColor; border-radius: 999px; opacity: .95; }
.nav-ig svg { width: 18px; height: 18px; }
.nav.solid .nav-ig { border-color: var(--line); }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; padding-bottom: 120px; }
.hero-bg { position: absolute; inset: -4%; background-size: cover; background-position: center 55%; transform: scale(1.02); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.08) translateY(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(8,20,40,.55) 0%, rgba(8,20,40,0) 22%, rgba(8,20,40,0) 45%, rgba(8,20,40,.72) 100%); }
.hero-content { position: relative; max-width: 1160px; width: 100%; margin: 0 auto; padding: 0 24px 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 600; margin: 0 0 10px; opacity: .92; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .95; margin: 0; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.hero-tagline { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 14px 0 0; max-width: 36ch; opacity: .95; }

.searchbar { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(820px, calc(100% - 32px)); display: flex; align-items: center; background: #fff; color: var(--ink); border-radius: 999px; box-shadow: var(--shadow-lg); padding: 8px 8px 8px 0; z-index: 2; }
.sb-field { flex: 1; text-align: left; padding: 10px 28px; border-radius: 999px; display: flex; flex-direction: column; min-width: 0; transition: background .15s; }
.sb-field:hover, .sb-field.active { background: var(--bg-soft); }
.sb-label { font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.sb-value { font-size: .95rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-value.filled { color: var(--ink); font-weight: 500; }
.sb-sep { width: 1px; height: 32px; background: var(--line); }
.sb-go { display: inline-flex; align-items: center; gap: 8px; background: var(--sea); color: #fff; height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 600; transition: background .2s, transform .1s; }
.sb-go:hover { background: #1440b4; }
.sb-go:active { transform: scale(.97); }
.sb-go svg { width: 18px; height: 18px; }

.scroll-cue { position: absolute; right: 32px; bottom: 56px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.8); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------------- LISTING ---------------- */
.title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 48px 0 24px; }
.listing-title { font-size: 1.9rem; font-weight: 600; margin: 0; letter-spacing: -.02em; }
.listing-sub { margin: 4px 0 0; color: var(--ink-2); }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; font-weight: 500; text-decoration: underline; }
.ghost-btn:hover { background: var(--bg-soft); }
.ghost-btn svg { width: 18px; height: 18px; }

/* ---------- Galleria sotto il titolo ---------- */
.gallery-wrap { position: relative; margin-bottom: 32px; }
.gallery { display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; height: 440px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery button { padding: 0; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s, transform .4s; }
.gallery button:hover img { filter: brightness(.88); }
.gallery button:first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 480px; }
.gallery.n1 button:first-child { grid-row: auto; }
.gallery.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery.n2 button:first-child { grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.n4 button:nth-child(2) { grid-column: span 2; }
.show-all { position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ink); border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.show-all:hover { background: var(--bg-soft); }
.show-all svg { width: 16px; height: 16px; }
.g-count { display: none; }

/* ---------- Tutte le foto ---------- */
.photos-modal { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: #fff; }
.photos-modal::backdrop { background: #fff; }
.pm-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; padding: 14px 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.pm-grid { max-width: 860px; margin: 0 auto; padding: 24px 24px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-grid button { padding: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.pm-grid button:nth-child(3n+1) { grid-column: 1 / -1; }
.pm-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pm-grid button:nth-child(3n+1) img { aspect-ratio: 16 / 10; }

/* ---------- Visore ---------- */
.viewer { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: #111; color: #fff; }
.viewer::backdrop { background: #111; }
.viewer[open] { display: grid; grid-template-columns: 80px 1fr 80px; grid-template-rows: auto 1fr; align-items: center; }
.vw-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: .95rem; }
.vw-btn { color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.vw-btn:hover { background: rgba(255,255,255,.12); }
.viewer img { grid-column: 2; max-width: 100%; max-height: calc(100dvh - 90px); margin: 0 auto; object-fit: contain; align-self: center; }
.vw-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 1.8rem; line-height: 1; justify-self: center; }
.vw-nav:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.vw-nav:disabled { opacity: .2; cursor: default; }

/* ---------- Menu utente ---------- */
.user-menu { position: relative; }
.um-btn { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.12); backdrop-filter: blur(6px); transition: box-shadow .2s; }
.nav.solid .um-btn { border-color: var(--line); background: #fff; }
.um-btn:hover { box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.um-btn > svg { width: 18px; height: 18px; }
.um-avatar { width: 32px; height: 32px; border-radius: 50%; background: #6b6f78; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.um-avatar svg { width: 20px; height: 20px; }
.um-avatar.in { background: var(--sea); }
.um-avatar.admin { background: var(--ink); }
.um-drop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 70; }
.um-drop button, .um-drop a { display: block; width: 100%; text-align: left; padding: 11px 18px; font-size: .95rem; text-decoration: none; color: var(--ink); }
.um-drop button:hover, .um-drop a:hover { background: var(--bg-soft); }
.um-drop .strong { font-weight: 600; }
.um-drop hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.um-drop .um-who { padding: 8px 18px 10px; font-size: .85rem; color: var(--muted); }
.um-drop .um-who strong { display: block; color: var(--ink); font-size: .95rem; }

/* ---------- Account / prenotazioni ospite ---------- */
.acc-welcome { font-size: 1.3rem; margin: 4px 0 18px; }
.acc-grid { grid-template-columns: 1fr; }
.acc-switch { text-align: center; font-size: .92rem; margin: 16px 0 0; }
.acc-switch button { font-weight: 700; text-decoration: underline; }
.acc-note { text-align: center; margin: 6px 0 0; }
.foot-login { font-size: inherit; font-weight: 500; padding: 0; color: inherit; }
.trip { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trip:last-child { border-bottom: 0; }
.trip img { width: 72px; height: 60px; object-fit: cover; border-radius: 8px; }
.trip strong { display: block; }
.trip .muted { font-size: .88rem; }
.st { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.st-ok { background: #e4f4ea; color: #1d7a4a; }
.st-warn { background: #fdf1dc; color: #a8620a; }
.st-bad { background: #fbe7ea; color: #c3283b; }
.trips-empty { text-align: center; padding: 20px 0 8px; color: var(--muted); }


.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; align-items: start; }
.block { padding: 32px 0; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: 8px; }
.block:last-child { border-bottom: 0; }
.section-title { font-size: 1.4rem; font-weight: 600; margin: 0 0 20px; letter-spacing: -.01em; }
.host-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.host-row h3 { margin: 0; font-size: 1.35rem; font-weight: 600; }
.host-row p { margin: 4px 0 0; }
.host-badge { flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--sea), var(--sea-dark)); color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .04em; }

.highlights { display: grid; gap: 24px; }
.hl { display: grid; grid-template-columns: 32px 1fr; gap: 20px; align-items: start; }
.hl svg { width: 28px; height: 28px; color: var(--ink); }
.hl strong { display: block; font-weight: 600; }
.hl span { color: var(--muted); font-size: .95rem; }

.description p { margin: 0 0 14px; color: var(--ink-2); font-size: 1.02rem; }
.direct-badge { display: flex; gap: 14px; align-items: center; background: var(--sea-soft); border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.direct-badge svg { width: 30px; height: 30px; color: var(--sea); flex: none; }
.direct-badge strong { display: block; }
.direct-badge span { color: var(--ink-2); font-size: .92rem; }

.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.room { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.room svg { width: 30px; height: 30px; margin-bottom: 12px; }
.room strong { display: block; }
.room span { color: var(--muted); font-size: .92rem; }

.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.amenities li { display: flex; align-items: center; gap: 16px; }
.amenities svg { width: 24px; height: 24px; flex: none; }

.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.season { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.season .s-name { font-weight: 600; }
.season .s-dates { color: var(--muted); font-size: .85rem; }
.season .s-price { margin-top: 8px; font-size: 1.15rem; font-weight: 600; }
.season .s-price span { font-size: .85rem; font-weight: 400; color: var(--muted); }
.season .s-min { font-size: .8rem; color: var(--muted); }

.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.rules h4 { margin: 0 0 10px; font-size: 1rem; }
.rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }

/* ---------------- CALENDAR ---------------- */
.cal { display: grid; grid-template-columns: repeat(var(--months, 2), 1fr); gap: 40px; position: relative; }
.cal-month h5 { text-align: center; margin: 4px 0 16px; font-size: 1rem; font-weight: 600; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 600; padding-bottom: 8px; }
.cal-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: .9rem; font-weight: 500; }
.cal-day button { width: 100%; height: 100%; max-width: 46px; max-height: 46px; border-radius: 50%; border: 1.5px solid transparent; position: relative; z-index: 1; }
.cal-day button:hover:not(:disabled) { border-color: var(--ink); }
.cal-day button:disabled { color: #b8bac0; cursor: default; }
.cal-day.busy button:disabled { text-decoration: line-through; }
.cal-day.in-range::before { content: ''; position: absolute; inset: 2px 0; background: var(--bg-soft); }
.cal-day.start::before { content: ''; position: absolute; inset: 2px 0 2px 50%; background: var(--bg-soft); }
.cal-day.end::before { content: ''; position: absolute; inset: 2px 50% 2px 0; background: var(--bg-soft); }
.cal-day.start.end::before { display: none; }
.cal-day.start button, .cal-day.end button { background: var(--ink); color: #fff; }
.cal-day.today button { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cal-day.checkout-only button { color: var(--ink-2); }
.cal-nav { position: absolute; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.cal-nav:hover:not(:disabled) { background: var(--bg-soft); }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-nav.prev { left: 0; }
.cal-nav.next { right: 0; }
.cal-nav svg { width: 16px; height: 16px; }
.inline-cal { margin-top: 20px; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.lg-busy { width: 14px; height: 2px; background: #b8bac0; display: inline-block; }
.link-btn { text-decoration: underline; font-weight: 600; font-size: .92rem; padding: 6px 8px; border-radius: 8px; }
.link-btn:hover { background: var(--bg-soft); }

/* ---------------- BOOKING CARD ---------------- */
.sidebar { position: sticky; top: 96px; display: grid; gap: 16px; padding-top: 8px; }
.book-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); background: #fff; }
.bc-price { font-size: 1.05rem; margin-bottom: 20px; }
.bc-price strong { font-size: 1.45rem; font-weight: 600; }
.bc-box { border: 1px solid #b8bac0; border-radius: 10px; overflow: hidden; }
.bc-dates { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #b8bac0; }
.bc-dates .bc-field + .bc-field { border-left: 1px solid #b8bac0; }
.bc-field { display: flex; flex-direction: column; text-align: left; padding: 10px 14px; width: 100%; position: relative; }
.bc-field:hover { background: var(--bg-soft); }
.bc-label { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.bc-val { font-size: .92rem; color: var(--muted); }
.bc-val.filled { color: var(--ink); }
.bc-guests svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
.cta { width: 100%; margin-top: 16px; height: 50px; border-radius: 10px; font-weight: 600; font-size: 1rem; color: #fff; background: linear-gradient(90deg, #1a4fd6, #2b6af0); transition: filter .2s, transform .1s; }
.cta:hover { filter: brightness(1.07); }
.cta:active { transform: scale(.99); }
.cta:disabled { filter: grayscale(.6) opacity(.6); cursor: default; }
.cta-sm { width: auto; margin: 0; padding: 0 26px; height: 46px; }
.bc-note { text-align: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.bc-breakdown { margin-top: 18px; display: grid; gap: 10px; }
.bc-breakdown:empty { display: none; }
.bc-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.bc-row span:first-child { text-decoration: underline; text-decoration-color: #c9cbd1; }
.bc-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line); }
.bc-error { color: var(--danger); font-size: .9rem; margin: 10px 0 0; min-height: 0; }
.bc-error:empty { display: none; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.contact-card:empty { display: none; }
.contact-card a { font-weight: 600; }

/* ---------------- LOCATION ---------------- */
.location { background: var(--bg-soft); padding: 64px 0; margin-top: 48px; }
.location .section-title { margin-bottom: 6px; }
.loc-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin-top: 24px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.nearby { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nearby li span:last-child { color: var(--muted); white-space: nowrap; }

.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 6px 0 0; }

/* ---------------- POPOVER ---------------- */
.popover { position: absolute; z-index: 60; background: #fff; color: var(--ink); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 24px 28px 18px; width: min(720px, calc(100vw - 32px)); }
.popover.guests { width: 340px; }
.pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pop-head strong { font-size: 1.1rem; }
.pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; }
.icon-btn:hover { background: var(--bg-soft); }
.dark-btn { background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 10px; font-weight: 600; }
.scrim { position: fixed; inset: 0; z-index: 55; background: transparent; }

.stepper-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.stepper-row + .stepper-row { border-top: 1px solid var(--line); }
.stepper-row small { display: block; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #b8bac0; display: grid; place-items: center; font-size: 1.1rem; color: var(--ink-2); }
.stepper button:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 18px; text-align: center; }

/* ---------------- MODAL ---------------- */
.modal { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(0,0,0,.45); }
.modal-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; text-align: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal-body { padding: 20px 24px 24px; }
.modal-body h4 { margin: 22px 0 12px; }
.summary { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.summary img { width: 96px; height: 80px; object-fit: cover; border-radius: 10px; }
.summary .s-title { font-weight: 600; }
.summary .s-lines { font-size: .9rem; color: var(--ink-2); }
.summary .s-break { grid-column: 1 / -1; display: grid; gap: 8px; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { width: 100%; min-width: 0; font: inherit; font-weight: 400; font-size: 1rem; border: 1px solid #b8bac0; border-radius: 10px; padding: 12px 14px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: transparent; }
.form-grid label:nth-child(3) { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; }
.success { text-align: center; padding: 40px 28px 28px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sea); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 12px; }
.success h3 { font-size: 1.5rem; margin: 6px 0 16px; }
.success p { margin: 4px 0; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 80; transition: transform .3s, opacity .3s; font-size: .92rem; opacity: 0; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.mobile-bar { display: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; padding-top: 0; }
  .loc-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-ig { margin-left: auto; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .nav-ig span { display: none; }
  .nav-ig { padding: 8px; border: 0; }
  .hero { padding-bottom: 210px; }
  .hero-content { padding: 0 16px 24px; }
  .searchbar { flex-wrap: wrap; border-radius: 22px; padding: 8px; bottom: 24px; gap: 4px; }
  .sb-field { flex: 1 1 calc(50% - 4px); padding: 10px 14px; border-radius: 14px; background: var(--bg-soft); }
  .sb-sep { display: none; }
  .sb-guests { flex-basis: calc(50% - 4px); }
  .sb-go { flex: 1 1 calc(50% - 4px); justify-content: center; border-radius: 14px; height: auto; align-self: stretch; }
  .scroll-cue { display: none; }
  .title-row { padding-top: 32px; }
  .listing-title { font-size: 1.55rem; }
  .gallery-wrap { margin: 0 -16px 24px; }
  .gallery, .gallery.n1, .gallery.n2, .gallery.n3, .gallery.n4 { display: flex; height: 280px; border-radius: 0; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button { flex: 0 0 100%; scroll-snap-align: start; }
  .show-all { display: none; }
  .g-count { display: block; position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; pointer-events: none; }
  .pm-grid { padding: 12px 12px 40px; grid-template-columns: 1fr; }
  .viewer[open] { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .viewer img { grid-column: 1; grid-row: 2; }
  .vw-nav { grid-row: 3; position: absolute; bottom: 24px; }
  .vw-nav.prev { left: 24px; } .vw-nav.next { right: 24px; }
  .um-btn { padding: 4px 4px 4px 10px; gap: 8px; }
  .um-avatar { width: 30px; height: 30px; }
  .amenities { grid-template-columns: 1fr; }
  .cal { --months: 1 !important; }
  .cal-month ~ .cal-month { display: none; }
  .popover { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; border-radius: 24px 24px 0 0; padding: 20px 20px calc(16px + env(safe-area-inset-bottom)); max-height: 88svh; overflow: auto; }
  .popover.guests { width: 100%; }
  .scrim { background: rgba(0,0,0,.4); }
  .form-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; position: fixed; inset: auto 0 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; transform: translateY(110%); transition: transform .25s; }
  .mobile-bar.show { transform: none; }
  .mobile-bar .link-btn { padding: 0; font-size: .85rem; }
  .footer { padding-bottom: 110px; }
  .location { padding: 44px 0; }
  .map, .map iframe { min-height: 280px; }
}

/* ---------- Contatti ---------- */
.contact-card { display: grid; gap: 10px; }
.contact-card .cc-title { font-weight: 600; font-size: 1rem; }
.cc-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 10px; font-weight: 600; text-decoration: none !important; border: 1px solid var(--line); color: var(--ink); transition: background .2s, transform .15s; }
.cc-btn:hover { background: var(--bg-soft); transform: translateY(-1px); }
.cc-btn svg { width: 20px; height: 20px; }
.cc-wa { background: #25d366; border-color: #25d366; color: #fff; }
.cc-wa:hover { background: #1ebe5b; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-also { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 2px; }
.cc-lines { font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.brand-ico { width: 18px; height: 18px; border-radius: 4px; display: inline-grid; place-items: center; color: #fff; font: 700 .72rem/1 var(--sans); }
.ico-airbnb { background: #ff385c; }
.ico-booking { background: #003580; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 44; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(37,211,102,.35), 0 2px 8px rgba(0,0,0,.15); transition: transform .2s; animation: waIn .6s 1.6s both cubic-bezier(.2,.8,.2,1.2); }
.wa-float:hover { transform: translateY(-2px) scale(1.03); }
.wa-float svg { width: 26px; height: 26px; }
@keyframes waIn { from { opacity: 0; transform: translateY(30px) scale(.8); } }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: background .2s, transform .2s; }
.social a:hover { background: var(--bg-soft); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------- Metodi di pagamento ---------- */
.pay-methods { display: grid; gap: 8px; margin-bottom: 12px; }
.pay-opt { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt:hover { border-color: #b8bac0; }
.pay-opt.sel { border-color: var(--ink); background: var(--bg-soft); }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .pi { font-size: 1.3rem; text-align: center; }
.pay-opt strong { display: block; font-size: .95rem; }
.pay-opt small { color: var(--muted); font-size: .82rem; }
.pay-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8bac0; position: relative; }
.pay-opt.sel .radio { border-color: var(--ink); }
.pay-opt.sel .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.pay-opt:focus-within { outline: 2px solid var(--sea); outline-offset: 2px; }
.bank-box { text-align: left; background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; margin: 14px 0 18px; font-size: .92rem; }
.bank-box h5 { margin: 0 0 8px; font-size: .95rem; }
.bank-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.bank-box .mono { font-family: ui-monospace, Menlo, monospace; }
.bank-box p { margin: 8px 0 0; font-size: .84rem; color: var(--muted); }

/* ---------- Animazioni ---------- */
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(8px); animation: chIn .9s cubic-bezier(.2,.7,.1,1) forwards; animation-delay: calc(.25s + var(--i) * .045s); }
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero .eyebrow { animation: eyebrowIn 1.2s .1s cubic-bezier(.2,.7,.1,1) both; }
@keyframes eyebrowIn { from { opacity: 0; letter-spacing: .6em; } }
.hero-tagline { animation: fadeUp .9s .95s cubic-bezier(.2,.7,.1,1) both; }
.searchbar { animation: barIn .9s 1.15s cubic-bezier(.2,.7,.1,1) both; }
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 30px); } }
.nav-inner { animation: fadeDown .8s .05s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } }
.hero-tagline .tw { border-right: 2px solid rgba(255,255,255,.8); }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.1,1), transform .8s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--d, 0) * 80ms); }
[data-reveal].in { opacity: 1; transform: none; }
.section-title { position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--sea), #6fa2ff); transition: width 1s .25s cubic-bezier(.2,.7,.1,1); }
.section-title.in::after, .in .section-title::after { width: 44px; }
.listing-title .accent { background: linear-gradient(90deg, var(--sea), #2b6af0, var(--sea)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .ch, .hero .eyebrow, .hero-tagline, .searchbar, .nav-inner, .wa-float { animation: none !important; opacity: 1 !important; filter: none !important; transform: none; }
  .searchbar { transform: translateX(-50%); }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .listing-title .accent { animation: none; }
}
@media (max-width: 720px) {
  .logo { font-size: 1.4rem; }
  .wa-float { bottom: 88px; right: 14px; padding: 12px; animation: none; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .3s; }
  body.scrolled .wa-float { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float span { display: none; }
}
