/* =========================================================
   Sell&Sail — stile
   Mobile first. Blu notte #0b0754 come colore di marca,
   usato per la barra in alto, l'hero e poche sezioni.
   Il gradiente sole (#ffde59 → #ff914d) è il solo accento:
   logo, "Salpa", azioni principali, avanzamento.
   ========================================================= */

/* Font ospitati sul nostro server: nessun collegamento a Google Fonts (GDPR).
   Mettete i file in assets/fonts, vedi assets/fonts/LEGGIMI.txt. Se mancano si usano i font di sistema. */
@font-face { font-family: "Karla"; src: url("../fonts/Karla-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/Karla-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/Karla-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/Karla-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Garet"; src: url("../fonts/Garet-Book.woff2") format("woff2"), url("../fonts/Garet-Book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Garet"; src: url("../fonts/Garet-Heavy.woff2") format("woff2"), url("../fonts/Garet-Heavy.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --navy: #0b0754;
  --navy-2: #1d1870;
  --navy-3: #3a358c;
  --navy-tint: #ecebf8;
  --bg: #f4f6fb;
  --paper: #ffffff;
  --ink: #17153d;
  --muted: #5c6085;
  --line: #e0e3ef;
  --line-2: #cdd1e2;
  --sun-1: #ffde59;
  --sun-2: #ff914d;
  --sun: linear-gradient(90deg, #ffde59, #ff914d);
  --sun-ink: #3a1d00;
  --ok: #17784e;
  --ok-bg: #e4f4ec;
  --err: #b3302f;
  --err-bg: #fbe9e8;

  --f-display: "Garet", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;

  --lift: 0 1px 2px rgba(11, 7, 84, .06), 0 10px 30px -18px rgba(11, 7, 84, .35);
  --head-h: 58px;
  --tab-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 18px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2rem, 7.4vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 4.6vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.grad-text { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: 14px; }
.stack-sm { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }

/* ---------------- Logo ---------------- */
.logo { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; color: #fff; text-decoration: none; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo .amp { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding: 0 .03em; }

/* ---------------- Barra in alto ---------------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; }
.topbar__in { height: var(--head-h); display: flex; align-items: center; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.topnav { display: none; gap: 4px; margin-left: 18px; }
.topnav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: #d8d6f3; font-weight: 600; position: relative; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topnav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:hover { background: rgba(127, 127, 160, .14); }
.account-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.account-link.is-logged { border-color: transparent; padding: 3px 10px 3px 3px; background: rgba(255, 255, 255, .08); }
.account-link .account-name { display: none; }
.topbar .sell-cta { display: none; }

/* ---------------- Tab bar (esperienza app su mobile) ---------------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 45; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .72rem; font-weight: 700; color: var(--muted); text-decoration: none; position: relative; }
.tabbar a[aria-current="page"] { color: var(--navy); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--navy); }
.tabbar .tab-sell span:first-child { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -22px; border-radius: 16px; background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 18px -8px rgba(255, 145, 77, .9); border: 3px solid #fff; }
.tabbar .tab-sell[aria-current="page"]::before { display: none; }
.dot-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sun-2); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.topnav .dot-badge { top: 0; left: auto; right: -2px; }

/* ---------------- Bottoni ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 20px -12px rgba(255, 145, 77, .95); }
.btn--sun:hover { box-shadow: 0 10px 24px -10px rgba(255, 145, 77, 1); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-3); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------------- Form ---------------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field .hint { font-size: .86rem; color: var(--muted); }
.opt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: #fff;
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230b0754' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 7, 84, .1); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; }
.input-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.err-msg { color: var(--err); font-size: .88rem; font-weight: 600; }
.form-error { background: var(--err-bg); color: var(--err); padding: 10px 14px; border-radius: var(--r-md); font-weight: 600; }

/* Segmenti sì/no e scelte */
.seg { display: inline-flex; background: var(--navy-tint); padding: 4px; border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--muted); }
.seg input:checked + label { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11, 7, 84, .15); }
.seg input:focus-visible + label { outline: 3px solid var(--sun-2); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; margin-top: 1px; }

/* Chip */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"], .chip.is-on, .chip-input input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-input { position: relative; }
.chip-input input { position: absolute; opacity: 0; }
.chip-input span { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; }
.chip-input input:focus-visible + span { outline: 3px solid var(--sun-2); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--navy-tint); color: var(--navy); }
.badge--glass { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); }
.badge--sold { position: absolute; left: 10px; bottom: 10px; background: var(--navy); color: #fff; }
.badge--sun { background: var(--sun); color: var(--sun-ink); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }

/* ---------------- Avatar ---------------- */
.avatar { width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: calc(var(--s) * .38); color: var(--navy); flex: none; }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid #fff; margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }

/* ---------------- Hero (home) ---------------- */
.hero { background: var(--navy); color: #fff; position: relative; padding: 26px 0 86px; overflow: hidden; }
.hero__motto { font-family: var(--f-display); font-weight: 800; color: #fff; font-size: clamp(2.7rem, 12vw, 5.4rem); letter-spacing: -.035em; line-height: .98; margin: 0 0 18px; }
.hero__motto span { display: block; }
.hero__h1 { font-family: var(--f-body); font-weight: 700; color: #fff; font-size: clamp(1.1rem, 3.6vw, 1.4rem); line-height: 1.35; margin: 0 0 8px; max-width: 34ch; letter-spacing: 0; }
.hero .lead { color: #cfcdee; font-size: 1.08rem; }
.hero__note { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: #e8e6ff; background: rgba(255, 255, 255, .08); padding: 6px 12px 6px 8px; border-radius: 999px; margin-bottom: 18px; text-decoration: none; }
.hero__note b { background: var(--sun); color: var(--sun-ink); border-radius: 999px; padding: 2px 8px; font-size: .78rem; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; width: 100%; }
.hero__sun { position: absolute; right: -60px; top: 40px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); opacity: .95; }
.hero__sun::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(transparent 55%, var(--navy) 55%, var(--navy) 60%, transparent 60%, transparent 68%, var(--navy) 68%, var(--navy) 74%, transparent 74%, transparent 82%, var(--navy) 82%); }
.hero__content { position: relative; z-index: 1; }

.searchbox { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: 14px; display: grid; gap: 10px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); margin-top: 26px; max-width: 880px; }
.searchbox .input, .searchbox .select { border-color: var(--line); background-color: var(--bg); }

/* ---------------- Sezioni ---------------- */
.section { padding: 44px 0; }
.section--tight { padding: 26px 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #dcdaf6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.section__head .link { white-space: nowrap; }

/* Tipologie (scorrimento orizzontale) */
.types { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
.types::-webkit-scrollbar { display: none; }
.type { scroll-snap-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 12px; text-decoration: none; display: grid; gap: 8px; align-content: start; }
.type:hover { border-color: var(--navy); }
.type .boat-art { border-radius: 10px; aspect-ratio: 4 / 3; }
.type b { font-size: .9rem; line-height: 1.2; }
.type small { color: var(--muted); font-weight: 600; }

/* Blocco "umiltà" */
.humble { display: grid; gap: 22px; }
.humble__letter { background: #fff; border-radius: var(--r-xl); padding: 24px; border: 1.5px solid var(--line); position: relative; }
.humble__letter p { font-size: 1.06rem; }
.humble__sign { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.progress { height: 12px; border-radius: 999px; background: var(--navy-tint); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--sun); border-radius: inherit; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.milestone { display: grid; gap: 10px; background: var(--navy); color: #dcdaf6; border-radius: var(--r-xl); padding: 24px; }
.milestone h3 { color: #fff; font-size: 1.3rem; margin: 0; }
.milestone .progress { background: rgba(255, 255, 255, .15); }
.milestone strong { color: #fff; }

/* Come funziona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; }
.steps h4 { margin: 4px 0 2px; font-size: 1.02rem; }
.how__col > h3 { font-size: 1.25rem; margin-bottom: 16px; }
.steps p { margin: 0; color: var(--muted); }
.how { display: grid; gap: 26px; }
.how__col { background: #fff; border-radius: var(--r-xl); padding: 24px; border: 1.5px solid var(--line); }

/* Perché noi */
.why { display: grid; gap: 0; border-top: 1.5px solid var(--line); }
.why__item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1.5px solid var(--line); }
.why__item .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-tint); color: var(--navy); }
.why__item h3 { margin: 2px 0 4px; }
.why__item p { margin: 0; color: var(--muted); }

/* Consulente */
.advisor { display: grid; gap: 18px; align-items: center; }
.advisor__card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-xl); padding: 20px; }
.advisor__card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.advisor__card li { display: flex; gap: 10px; align-items: flex-start; }
.advisor__card li .i { color: var(--sun-1); flex: none; margin-top: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--r-lg); border: 1.5px solid var(--line); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--navy); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 16px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

.seo-text { columns: 1; color: var(--muted); font-size: .96rem; }
.seo-text h2 { color: var(--navy); }
.seo-text h3 { color: var(--ink); font-size: 1rem; margin-top: 1.2em; }

/* ---------------- Card annuncio ---------------- */
.grid-listings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lcard { position: relative; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.lcard:hover { border-color: var(--line-2); box-shadow: var(--lift); }
.lcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--navy-tint); }
.lcard__media img, .lcard__media .boat-art { width: 100%; height: 100%; object-fit: cover; }
.lcard__body { padding: 10px 12px 14px; display: grid; gap: 3px; }
.lcard__price { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: .98rem; margin: 0; }
.lcard__title { font-family: var(--f-body); font-weight: 700; font-size: 1.04rem; line-height: 1.3; margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__title a { text-decoration: none; }
.lcard__title a::after { content: ""; position: absolute; inset: 0; }
.lcard__specs { margin: 0; font-size: .84rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.lcard__specs > span { white-space: nowrap; }
.lcard__specs > span + span::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.lcard__loc { margin: 2px 0 0; font-size: .82rem; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.lcard.is-sold .lcard__media { filter: grayscale(.6); }
.fav-btn { position: absolute; right: 8px; top: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.fav-btn.is-on { color: var(--sun-2); }
.fav-btn.is-on .i { fill: currentColor; }
.fav-btn:active { transform: scale(.9); }

.empty { text-align: center; padding: 34px 20px; background: #fff; border-radius: var(--r-xl); border: 1.5px dashed var(--line-2); display: grid; gap: 10px; justify-items: center; }
.empty .boat-art { width: 180px; border-radius: 14px; }
.empty h3 { margin: 6px 0 0; }
.empty p { margin: 0; color: var(--muted); max-width: 42ch; }

/* ---------------- Pagina annunci ---------------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 0 14px; }
.page-head h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 6px; }
.page-head p { margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.results-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 16px 0 12px; }
#rcount { flex: 1; white-space: nowrap; }
.results-bar .select { width: auto; min-height: 40px; padding-block: 6px; font-weight: 700; font-size: .92rem; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.active-filters .chip { padding: 6px 8px 6px 12px; font-size: .84rem; background: var(--navy-tint); border-color: transparent; }
.search-inline { display: flex; gap: 8px; margin-top: 14px; }
.search-inline .input { background: var(--bg); border-color: var(--line); }
.layout-search { display: block; }
.filters { display: none; }
.filters-form { display: grid; gap: 18px; }
.filters-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters-form legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.filter-btn { position: relative; }
.filter-btn .count { position: absolute; top: -4px; right: -4px; background: var(--sun-2); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; }
.sheet .filters-form { padding-bottom: 80px; }
.sheet-actions { position: sticky; bottom: calc(-1 * 18px); background: #fff; padding: 12px 0 18px; margin-top: 10px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

/* ---------------- Pagina annuncio ---------------- */
.gallery { position: relative; background: var(--navy); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; max-height: 70vh; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > * { flex: 0 0 100%; scroll-snap-align: center; width: 100%; height: 100%; object-fit: cover; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(11, 7, 84, .75); color: #fff; font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .92); color: var(--navy); display: none; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 10px; }
.gallery__top .icon-btn { background: rgba(255, 255, 255, .94); color: var(--navy); }
.gallery__top .fav-btn { position: static; }
.thumbs { display: none; }

.listing { display: grid; gap: 16px; padding-top: 16px; }
.listing__main { display: grid; gap: 16px; }
.listing__side { display: grid; gap: 16px; align-content: start; }
.panel { background: #fff; border-radius: var(--r-xl); padding: 20px; border: 1px solid var(--line); }
.panel h2 { font-size: 1.2rem; margin-bottom: 12px; }
.l-title h1 { font-size: clamp(1.4rem, 5.4vw, 2rem); margin-bottom: 8px; }
.l-price { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; color: var(--navy); margin: 0; }
.l-price small { font-family: var(--f-body); font-size: .9rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.l-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.l-meta span { display: inline-flex; align-items: center; gap: 5px; }
.keyspecs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.keyspec { background: var(--bg); border-radius: var(--r-md); padding: 12px; display: grid; gap: 2px; }
.keyspec .i { color: var(--navy-3); margin-bottom: 4px; }
.keyspec small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.keyspec b { font-size: 1rem; }
.desc { white-space: pre-line; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--muted); width: 48%; padding-right: 12px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-group { font-family: var(--f-display); font-size: .95rem; color: var(--navy); margin: 18px 0 2px; }
.spec-group:first-child { margin-top: 0; }
.tick-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tick-list li { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.tick-list .i { color: var(--ok); }

.seller { display: grid; gap: 14px; }
.seller__top { display: flex; gap: 12px; align-items: center; }
.seller__top h3 { margin: 0; font-family: var(--f-body); font-size: 1.05rem; color: var(--ink); }
.seller__top a { text-decoration: none; }
.seller__top p { margin: 0; font-size: .86rem; color: var(--muted); }
.interested { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--bg); border-radius: var(--r-md); font-size: .92rem; }

.advisor-box { background: var(--navy); color: #d8d6f3; border-radius: var(--r-xl); padding: 20px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.advisor-box h2 { color: #fff; font-size: 1.2rem; margin: 0; }
.advisor-box p { margin: 0; }
.advisor-box::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--sun); opacity: .9; }
.advisor-box > * { position: relative; z-index: 1; }

.owner-panel { background: var(--navy-tint); border: 0; }
.owner-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 10px 0 14px; }
.owner-stats b { display: block; font-family: var(--f-display); font-size: 1.4rem; color: var(--navy); }
.owner-stats small { color: var(--muted); font-weight: 600; }

.actionbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter); display: flex; gap: 8px; }
.actionbar .btn { flex: 1; min-height: 46px; padding: 0 12px; }
.has-actionbar { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 70px); }

.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; background: #fff7e0; color: #6b4a00; border-radius: var(--r-md); padding: 10px 14px; }
.demo-note .i { flex: none; margin-top: 2px; }

/* ---------------- Vendi (wizard) ---------------- */
.wizard { max-width: 760px; margin: 0 auto; padding: 16px var(--gutter) 110px; }
.wizard__top { position: sticky; top: var(--head-h); z-index: 30; background: var(--bg); padding: 12px 0 10px; }
.wizard__meta { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); margin: 6px 0 6px; }
.step > .muted { margin-bottom: 20px; }
.step .panel + .panel { margin-top: 14px; }
.step .panel { display: grid; gap: 16px; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; }
.type-opt span { display: grid; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 10px; cursor: pointer; font-weight: 700; font-size: .92rem; line-height: 1.2; height: 100%; }
.type-opt .boat-art { border-radius: 10px; aspect-ratio: 16 / 10; }
.type-opt input:checked + span { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 7, 84, .12); }
.type-opt input:focus-visible + span { outline: 3px solid var(--sun-2); }
.cat-live { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--navy-tint); }
.cat-live b { font-family: var(--f-display); color: var(--navy); font-size: 1.1rem; }
.cat-live p { margin: 0; font-size: .9rem; color: var(--muted); }
.cat-live .ic { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); flex: none; }
.license-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: #fff7e0; color: #6b4a00; font-size: .92rem; }
.sub-q { padding: 14px; border-left: 3px solid var(--sun-2); background: var(--bg); border-radius: 0 var(--r-md) var(--r-md) 0; display: grid; gap: 14px; }
.yn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.yn-row:last-child { border-bottom: 0; }
.yn-row .label { font-weight: 700; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--navy-tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(11, 7, 84, .8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo .cover { position: absolute; left: 6px; bottom: 6px; }
.photo-add { aspect-ratio: 1; border-radius: var(--r-md); border: 2px dashed var(--line-2); display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; cursor: pointer; color: var(--navy); font-weight: 700; font-size: .85rem; background: #fff; }
.photo-add:hover { border-color: var(--navy); }
.photo-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.wizard-actions { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter); }
.wizard-actions__in { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; }
.wizard-actions .btn { flex: 1; }
.wizard-actions .btn--ghost { flex: 0 0 auto; }
.preview-card { max-width: 340px; }

/* ---------------- Autocompletamento ---------------- */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--lift); max-height: 280px; overflow: auto; }
.ac-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.ac-list li:hover, .ac-list li.active { background: var(--navy-tint); }
.ac-list mark { background: none; color: var(--navy); font-weight: 800; }
.ac-list .ac-other { color: var(--navy-3); font-weight: 700; border-top: 1px solid var(--line); margin-top: 4px; }

/* ---------------- Sheet / modale ---------------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; }
.sheet-bg { position: absolute; inset: 0; background: rgba(11, 7, 84, .45); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 8px 18px 18px; transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); padding-bottom: calc(18px + var(--safe-b)); }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 8px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: -8px; background: #fff; padding: 6px 0; z-index: 2; }
.sheet__head h2 { font-size: 1.25rem; margin: 0; }
.sheet__body { display: grid; gap: 14px; }

/* ---------------- Toast ---------------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 84px); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--r-md); font-weight: 600; box-shadow: var(--lift); animation: toastIn .2s ease; }
.toast--err { background: var(--err); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------------- Celebrazione ---------------- */
.celebrate { position: fixed; inset: 0; z-index: 95; background: rgba(11, 7, 84, .82); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .25s; }
.celebrate.open { opacity: 1; }
.celebrate__card { background: #fff; border-radius: var(--r-xl); padding: 0 22px 22px; max-width: 420px; width: 100%; text-align: center; overflow: hidden; transform: scale(.94); transition: transform .35s cubic-bezier(.2, 1.3, .4, 1); }
.celebrate.open .celebrate__card { transform: none; }
.celebrate__sea { position: relative; height: 130px; margin: 0 -22px 12px; background: linear-gradient(#fdefd2, #fff6dc); overflow: hidden; }
.celebrate__boat { position: absolute; width: 96px; bottom: 16px; left: -110px; animation: sailIn 2.2s cubic-bezier(.3, .7, .3, 1) .2s forwards, bob 2.4s ease-in-out 2.4s infinite; }
.celebrate__waves { max-width: none; position: absolute; left: 0; bottom: 0; width: 200%; height: 30px; animation: waves 6s linear infinite; }
@keyframes sailIn { to { left: calc(50% - 48px); } }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes waves { to { transform: translateX(-50%); } }
.celebrate__big { font-family: var(--f-display); font-weight: 800; font-size: 4.2rem; line-height: 1; margin: 0; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.celebrate h2 { margin: 6px 0 8px; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 9px; height: 14px; background: var(--c); border-radius: 2px; transform: rotate(var(--r)); animation: fall 2.6s cubic-bezier(.3, .5, .5, 1) var(--d) forwards; }
@keyframes fall { to { top: 110vh; transform: rotate(calc(var(--r) + 540deg)); } }

/* ---------------- Chat ---------------- */
.chat { display: grid; grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--head-h) - var(--tab-h) - var(--safe-b)); background: #fff; }
.chat__list { overflow: auto; border-right: 1px solid var(--line); }
.chat__list h1 { font-size: 1.5rem; padding: 18px var(--gutter) 6px; margin: 0; }
.thread-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px var(--gutter); text-decoration: none; border-bottom: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.thread-item:hover, .thread-item.is-active { background: var(--bg); }
.thread-item__img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; position: relative; }
.thread-item__img img, .thread-item__img .boat-art { width: 100%; height: 100%; object-fit: cover; }
.thread-item__img .avatar { position: absolute; right: -2px; bottom: -2px; border: 2px solid #fff; }
.thread-item b { display: block; font-size: .95rem; }
.thread-item p { margin: 0; font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item .t { font-size: .78rem; color: var(--muted); text-align: right; display: grid; gap: 4px; justify-items: end; }
.thread-item .n { background: var(--sun-2); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.thread-item.is-unread b, .thread-item.is-unread p { color: var(--ink); font-weight: 800; }
.chat__pane { min-width: 0; display: none; grid-template-rows: auto auto 1fr auto; min-height: 0; }
.chat.show-pane .chat__list { display: none; }
.chat.show-pane .chat__pane { display: grid; }
.pane-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pane-head a { text-decoration: none; }
.pane-head b { display: block; }
.pane-head small { color: var(--muted); }
.pane-listing { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: var(--bg); text-decoration: none; border-bottom: 1px solid var(--line); }
.pane-listing__img { width: 52px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; }
.pane-listing__img img, .pane-listing__img .boat-art { width: 100%; height: 100%; object-fit: cover; }
.pane-listing b { font-size: .9rem; display: block; }
.pane-listing span { font-size: .85rem; color: var(--navy); font-weight: 800; }
.msgs { overflow: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 18px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-line; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--navy); color: #fff; border-color: var(--navy); }
.msg time { display: block; font-size: .72rem; opacity: .65; margin-top: 2px; text-align: right; }
.msg-day { align-self: center; font-size: .78rem; color: var(--muted); font-weight: 700; margin: 8px 0; }
.msg-system { align-self: center; font-size: .85rem; color: var(--muted); background: #fff; border-radius: 999px; padding: 6px 12px; text-align: center; }
.offer { align-self: flex-start; background: #fff; border: 2px solid transparent; background-clip: padding-box; border-radius: 18px; padding: 14px; min-width: 220px; position: relative; }
.offer::before { content: ""; position: absolute; inset: -2px; border-radius: 20px; background: var(--sun); z-index: -1; }
.offer.mine { align-self: flex-end; }
.offer small { color: var(--muted); font-weight: 700; }
.offer b { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--navy); }
.offer .row { margin-top: 8px; }
.msgs-wrap { position: relative; isolation: isolate; min-height: 0; display: grid; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; background: #fff; }
.quick::-webkit-scrollbar { display: none; }
.quick .chip { font-size: .84rem; padding: 6px 12px; }
.composer { display: flex; gap: 8px; padding: 10px 12px; background: #fff; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; border-radius: 22px; padding: 11px 16px; border: 1.5px solid var(--line-2); }
.composer textarea:focus { outline: none; border-color: var(--navy); }
.composer .icon-btn { width: 44px; height: 44px; flex: none; }
.composer .send { background: var(--navy); color: #fff; }
.composer .send:hover { background: var(--navy-2); }
.composer .offer-btn { background: var(--navy-tint); color: var(--navy); }
.chat-empty { display: grid; place-items: center; text-align: center; padding: 40px 20px; color: var(--muted); align-content: center; gap: 10px; }

/* ---------------- Profilo ---------------- */
.profile-head { background: var(--navy); color: #dcdaf6; padding: 24px 0 26px; }
.profile-head__in { display: grid; gap: 14px; }
.profile-head h1 { color: #fff; font-size: clamp(1.5rem, 6vw, 2.2rem); margin: 0; }
.profile-head .avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.profile-stats { display: flex; gap: 22px; }
.profile-stats b { display: block; color: #fff; font-family: var(--f-display); font-size: 1.3rem; }
.profile-stats small { font-weight: 600; }
.member-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); padding: 5px 12px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: #fff; }
.member-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); display: inline-block; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: #fff; }
.tabs button { background: none; border: 0; padding: 14px 16px; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--navy); }
.people { display: grid; gap: 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); text-decoration: none; }
.person b { display: block; }
.person small { color: var(--muted); }

/* ---------------- Accedi ---------------- */
.auth { max-width: 460px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.auth__card { background: #fff; border-radius: var(--r-xl); padding: 22px; border: 1px solid var(--line); }
.auth h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.auth .seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.auth .seg label { text-align: center; }
.auth form { display: grid; gap: 14px; }
.social-login { display: grid; gap: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .86rem; font-weight: 700; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------- Footer ---------------- */
.footer { background: var(--navy); color: #bdbbe3; padding: 40px 0 24px; font-size: .92rem; }
.footer a { color: #dcdaf6; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer h2 { color: #fff; font-size: .98rem; margin-bottom: 10px; font-family: var(--f-body); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .motto { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; color: #fff; margin: 12px 0 6px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------------- Tablet e desktop ---------------- */
@media (min-width: 620px) {
  :root { --gutter: 24px; }
  .grid-listings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .photos { grid-template-columns: repeat(4, 1fr); }
  .searchbox { grid-template-columns: 1.1fr 1.4fr 1fr auto; align-items: center; padding: 10px; border-radius: 999px; }
  .searchbox .input, .searchbox .select { border-radius: 999px; }
  .keyspecs { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
  .how { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .topbar .sell-cta { display: inline-flex; }
  .topbar .search-mobile { display: none; }
  .account-link .account-name { display: inline; }
  .toasts { bottom: 28px; }
  .actionbar, .wizard-actions { bottom: 0; }
  .has-actionbar { padding-bottom: 0; }
  .actionbar { display: none; }
  .hero { padding: 56px 0 120px; }
  .hero__sun { right: 8%; top: 70px; width: 300px; height: 300px; }
  .hero__wave { height: 80px; }
  .section { padding: 72px 0; }
  .types { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; }
  .grid-listings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .humble { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .why { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .advisor { grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .seo-text { columns: 2; column-gap: 48px; }
  .seo-text h2 { column-span: all; }

  .layout-search { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
  .filters { display: block; position: sticky; top: calc(var(--head-h) + 16px); max-height: calc(100vh - var(--head-h) - 32px); overflow: auto; background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); padding: 20px; }
  .filter-btn { display: none; }
  .layout-search .grid-listings { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .listing { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-top: 24px; }
  .listing__side { position: sticky; top: calc(var(--head-h) + 16px); }
  .gallery { border-radius: var(--r-xl); overflow: hidden; }
  .gallery__nav { display: grid; }
  .thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
  .thumbs button { width: 84px; height: 62px; border-radius: 8px; overflow: hidden; padding: 0; border: 2px solid transparent; cursor: pointer; flex: none; background: none; }
  .thumbs button[aria-current="true"] { border-color: var(--navy); }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; }

  .wizard { padding-bottom: 60px; }
  .wizard-actions { position: static; background: none; border: 0; padding: 20px 0 0; }
  .wizard-actions__in { max-width: none; }

  .chat { grid-template-columns: 360px minmax(0, 1fr); height: calc(100dvh - var(--head-h)); max-width: var(--max); margin: 0 auto; border-inline: 1px solid var(--line); }
  .chat__pane, .chat.show-pane .chat__pane { display: grid; }
  .chat.show-pane .chat__list { display: block; }
  .pane-head .back { display: none; }

  .profile-head__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); border-radius: var(--r-xl); transform: translate(-50%, -46%); opacity: 0; transition: transform .22s, opacity .22s; }
  .sheet--wide { width: min(720px, 94vw); }
  .sheet-wrap.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet__grip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .celebrate__boat { left: calc(50% - 48px); }
}
.msgs-wrap { overflow: hidden; }
.chat__pane > * { min-width: 0; }

/* ---------------- Pagine legali ---------------- */
.legal { max-width: 820px; padding-top: 18px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 4px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { max-width: 72ch; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal a:not(.btn) { color: var(--navy-3); font-weight: 600; }
.legal section { scroll-margin-top: calc(var(--head-h) + 12px); }
.legal__intro { margin: 18px 0; }
.legal__toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px; }
.legal__toc h2 { font-size: 1rem; margin: 0 0 8px; }
.legal__toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
.legal__card p { margin: 0; }
.legal__back { margin-top: 32px; }
.table-wrap { overflow-x: auto; }
.legal__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; font-size: .95rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal__table thead th { background: var(--navy-tint); color: var(--navy); }
.todo { background: #fff1b8; color: #6b4a00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.footer__legal { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.btn--danger { background: transparent; color: var(--err); box-shadow: inset 0 0 0 1.5px #e7b8b7; }

/* ---------------- Aggiornamenti v2 ---------------- */
/* Vendi: niente menu in basso, la barra azioni prende il suo posto */
body[data-page="vendi"] { padding-bottom: 0; }
body[data-page="vendi"] .tabbar { display: none; }
body[data-page="vendi"] .wizard-actions { bottom: 0; padding-bottom: calc(10px + var(--safe-b)); }
.tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* Vista una o due barche per riga (mobile) */
.view-toggle { display: inline-grid; color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.view-toggle[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
@media (max-width: 619px) {
  .grid-listings--one { grid-template-columns: 1fr; gap: 16px; }
  .grid-listings--one .lcard__title { font-size: 1.15rem; }
  .grid-listings--one .lcard__price { font-size: 1.1rem; }
  .grid-listings--one .lcard__body { padding: 12px 16px 16px; }
}
@media (min-width: 620px) { .view-toggle { display: none; } }
.lcard__dealer { margin: 2px 0 0; font-size: .8rem; font-weight: 700; color: var(--navy-3); display: flex; gap: 4px; align-items: center; }
.badge--dealer { background: #e5f0fb; color: #1b4f86; }

/* Pulsanti che cambiano stato (Segui / Segui già, Condividi numero) */
.btn--toggle { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--toggle[aria-pressed="true"] { background: var(--navy-tint); color: var(--navy-3); box-shadow: none; font-weight: 700; }
.btn--toggle-dark { background: var(--sun); color: var(--sun-ink); box-shadow: none; }
.btn--toggle-dark[aria-pressed="true"] { background: rgba(255,255,255,.12); color: #fff; }
.btn--danger-solid { background: var(--err); color: #fff; }
.btn--danger-solid:hover { background: #972524; }

/* Caricamenti */
.btn.is-loading, .icon-btn.is-loading, .avatar-edit.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > *, .icon-btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after, .icon-btn.is-loading::after, .avatar-edit.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--navy) transparent var(--navy) transparent; animation: spin .8s linear infinite; }
.btn--navy.is-loading::after, .send.is-loading::after, .btn--danger-solid.is-loading::after { border-color: #fff transparent #fff transparent; }
.avatar-edit.is-loading::after { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-color: #fff transparent #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader { display: grid; justify-items: center; gap: 6px; padding: 48px 20px; color: var(--muted); text-align: center; }
.loader__boat { width: 76px; animation: bob 1.6s ease-in-out infinite; }
.loader__waves { width: 120px; height: 10px; background: radial-gradient(circle at 10px -4px, transparent 9px, var(--navy) 10px) 0 0 / 20px 10px repeat-x; animation: wavemove 1s linear infinite; }
@keyframes wavemove { to { background-position: 20px 0; } }
.loader p { margin: 6px 0 0; font-weight: 600; }
.skel { background: linear-gradient(90deg, #eceef6 25%, #f6f7fb 50%, #eceef6 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel--line { display: block; height: 12px; border-radius: 6px; margin: 4px 0; }
.lcard--skel { pointer-events: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Avatar con foto */
img.avatar { object-fit: cover; background: var(--navy-tint); }
.avatar-edit { position: relative; width: max-content; border-radius: 50%; }
.avatar-edit__btn { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; cursor: pointer; border: 3px solid var(--navy); }

/* Annuncio */
.gallery__track img { cursor: zoom-in; }
.gallery__full { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--navy); }
.owner-bar { background: var(--navy-tint); border-radius: var(--r-xl); padding: 16px 18px; }
.owner-bar h2 { font-size: 1.1rem; margin: 0; }
.owner-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-panel { display: grid; gap: 14px; }
.share-panel h2 { margin-bottom: 4px; }
.share-preview { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 14px; box-shadow: var(--lift); }
.done-box { display: flex; gap: 14px; align-items: flex-start; }
.done-box__ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }

/* Profilo: modifica ed elimina dalla lista */
.own-card { display: flex; flex-direction: column; gap: 8px; }
.own-card .lcard { flex: 1; }
.own-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.own-card__actions .btn { padding: 0 8px; }

/* Foto a schermo intero */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 3, 30, .96); opacity: 0; transition: opacity .2s; }
.lightbox.open { opacity: 1; }
.lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox figure { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 56px 12px calc(56px + var(--safe-b)); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; color: #fff; background: rgba(255,255,255,.12); width: 46px; height: 46px; }
.lightbox__count { position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(255,255,255,.12); width: 52px; height: 52px; display: none; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
@media (min-width: 900px) { .lightbox__nav { display: grid; } }

/* Chat: foto e numero */
.msg--img { padding: 4px; background: #fff; }
.msg--img button { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.msg--img img { max-width: min(240px, 60vw); max-height: 300px; border-radius: 14px; object-fit: cover; }
.msg--img time { padding: 0 6px 2px; }
.msg--phone { display: grid; gap: 4px; }
.msg--phone small { opacity: .75; font-weight: 700; }
.msg--phone a { font-weight: 800; font-size: 1.1rem; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.attach-btn { color: var(--navy); background: var(--navy-tint); cursor: pointer; }
.pane-head .btn--toggle { flex: none; }
@media (max-width: 420px) { .hide-xs { display: none; } }
.own-card { min-width: 0; }
.own-card__actions .btn { min-width: 0; min-height: 38px; font-size: .86rem; gap: 4px; }
@media (max-width: 520px) { .own-card__actions .btn .i { display: none; } .own-card__actions { gap: 4px; } }
.results-bar { gap: 8px; }
.results-bar .filter-btn, .results-bar .view-toggle { flex: none; }
.results-bar .view-toggle { width: 40px; height: 40px; }
#rcount { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.results-bar .select { flex: none; max-width: 38%; padding-left: 12px; padding-right: 32px; background-position: right 8px center; }

/* ---------------- Aggiornamenti v3 ---------------- */
/* iPhone con il sito aggiunto alla schermata Home: niente sovrapposizioni con ora, batteria e rete */
:root { --safe-t: env(safe-area-inset-top, 0px); }
.topbar { padding-top: var(--safe-t); }
html { scroll-padding-top: calc(var(--head-h) + var(--safe-t) + 12px); }
.wizard__top { top: calc(var(--head-h) + var(--safe-t)); }
.chat { height: calc(100dvh - var(--head-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); }
@media (min-width: 900px) {
  .filters, .listing__side { top: calc(var(--head-h) + var(--safe-t) + 16px); }
  .chat { height: calc(100dvh - var(--head-h) - var(--safe-t)); }
}

/* Segno "Tra i più visti" */
.badge--hot { background: rgba(255,255,255,.95); color: #9a4a00; }
.badge--hot .i { color: #ff914d; }

/* Filtri: i principali sempre visibili, gli altri a tendina */
.more-filters { border-top: 1px solid var(--line); padding-top: 14px; }
.more-filters summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(45deg); margin-right: 4px; transition: transform .2s; }
.more-filters[open] summary::after { transform: rotate(-135deg); }
.more-filters summary .count-dot { margin-left: auto; margin-right: 10px; background: var(--sun-2); color: #fff; border-radius: 9px; min-width: 20px; height: 20px; font-size: .75rem; display: grid; place-items: center; padding: 0 6px; }
.more-filters__body { display: grid; gap: 18px; margin-top: 16px; }

/* Aggiungi alla schermata Home */
.app-cards { display: grid; gap: 12px; }
.app-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 18px 20px; display: grid; gap: 10px; position: relative; }
.app-card h3 { margin: 0; display: flex; gap: 10px; align-items: center; }
.app-card ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.app-card ol b { color: var(--ink); }
.app-card .inline-ic { display: inline-grid; vertical-align: -5px; color: var(--navy); }
.app-card__close { position: absolute; top: 8px; right: 8px; }
.app-intro { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-intro img { width: 52px; height: 52px; border-radius: 14px; }
.app-intro h2 { margin: 0 0 2px; font-size: 1.3rem; }
.app-intro p { margin: 0; }
@media (min-width: 900px) { .app-cards { grid-template-columns: 1fr 1fr; } }

/* WhatsApp nel footer */
.help-wa { display: inline-flex; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 12px 16px; text-decoration: none !important; margin-top: 4px; }
.help-wa:hover { background: rgba(255,255,255,.14); }
.help-wa__ic { width: 42px; height: 42px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.help-wa b { color: #fff; }

/* Foto a schermo intero: anche le verticali restano dentro lo schermo */
.lightbox figure { display: flex; align-items: center; justify-content: center; height: 100%; box-sizing: border-box; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: 100%; }

/* Fotografie nell'inserimento */
.photo .warn { position: absolute; left: 6px; top: 6px; right: 40px; font-size: .7rem; line-height: 1.2; }
.photo-note { font-size: .88rem; }
.sold-sep { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 800; color: var(--muted); }

/* ---------------- Aggiornamenti v4 ---------------- */
/* Mostra/nascondi password */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--navy); }

/* Elimina bozza, sempre visibile in alto nel modulo */
.wizard__tools { display: flex; justify-content: flex-end; margin-top: 8px; }
.wz-discard { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #e7b8b7; background: #fff; color: var(--err); font-weight: 700; font-size: .86rem; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.wz-discard:hover { background: var(--err-bg); }

/* Importazione */
.import-box { background: #fff; border: 1.5px dashed var(--line-2); border-radius: var(--r-xl); padding: 16px 18px; display: grid; gap: 12px; margin: 0 0 18px; }
.import-box__t { font-size: 1.08rem; margin: 0 0 4px; }
.import-box__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.import-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-weight: 800; font-size: .8rem; font-family: Arial, sans-serif; }
.import-ic--fb { background: #1877f2; color: #fff; }
.import-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.import-done { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-bg); color: #0f5a39; border-radius: var(--r-md); padding: 12px 14px; margin: 6px 0 10px; }
.import-done .i { flex: none; margin-top: 2px; }

/* Comune scelto */
.loc-chosen { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--navy-tint); border-radius: var(--r-md); padding: 10px 12px; font-size: .92rem; }
.ac-list .ac-empty { color: var(--muted); cursor: default; }
.ac-list .ac-empty:hover { background: none; }
input:disabled { background: var(--bg) !important; color: var(--muted); cursor: not-allowed; }
[tabindex="-1"]:focus:not(:focus-visible), h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* ---------------- Aggiornamenti v5 ---------------- */
/* Importazione: una riga compatta in cima al modulo */
.import-box { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; border-style: solid; border-width: 1px; border-color: var(--line); padding: 10px 12px; margin: 0 0 16px; border-radius: var(--r-lg); }
.import-box__t { font-size: .92rem; color: var(--muted); }
.import-box__t b { color: var(--navy); }
.import-box__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.imp-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: .88rem; color: var(--ink); cursor: pointer; }
.imp-btn:hover { border-color: var(--navy); }
.imp-btn img { height: 18px; width: auto; max-width: 70px; display: block; }

/* Cuore su tutte le card, un po' più piccolo */
.fav-btn { width: 32px; height: 32px; right: 7px; top: 7px; }
.fav-btn .i { width: 17px; height: 17px; }

/* ---------------- Aggiornamenti v6 ---------------- */
/* Esci dal modulo */
.wizard__exit { margin-bottom: 8px; }
.wz-exit { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--navy); text-decoration: none; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); }
.wz-exit:hover { border-color: var(--navy); }

/* Badge Barca d'epoca */
.badge--epoca { background: #f3dfc4; color: #6b3d12; }
.badge--glass.badge--epoca { background: rgba(243, 223, 196, .96); }

/* Home: annunci in scorrimento orizzontale */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; }
.carousel > * { scroll-snap-align: start; }
.carousel .empty { min-width: 260px; }
.carousel__all { display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: #fff; text-decoration: none; color: var(--navy); padding: 20px; }
.carousel__all span { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; color: var(--sun-ink); }
.carousel__all small { color: var(--muted); }
@media (min-width: 620px) { .carousel { grid-auto-columns: 38%; } }
@media (min-width: 900px) { .carousel { grid-auto-columns: calc((100% - 36px) / 4); margin-inline: 0; padding-inline: 0; } }

/* Home: servizi */
.services-cta { display: grid; gap: 16px; align-items: center; }
.services-cta p { margin: 0; max-width: 60ch; }
@media (min-width: 900px) { .services-cta { grid-template-columns: 1fr auto; } }

/* Chat: dentro una conversazione niente menu in basso, indietro più grande */
body.in-chat { padding-bottom: 0; }
body.in-chat .tabbar { display: none; }
body.in-chat .chat { height: calc(100dvh - var(--head-h) - var(--safe-t)); }
.pane-head .back { width: 52px; height: 52px; margin-left: -6px; color: var(--navy); }

/* Trasporto e servizi */
.transport { display: grid; gap: 10px; }
.transport h2 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 1.15rem; }
.tr-card { display: grid; gap: 10px; background: var(--bg); border-radius: var(--r-md); padding: 12px; }
.tr-prices { display: flex; gap: 14px; flex-wrap: wrap; }
.tr-prices span { display: grid; }
.tr-prices small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.serv-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.serv-list { display: grid; gap: 12px; }
.serv-card { display: grid; gap: 10px; }
.serv-card .spec-table th { width: 60%; }
.spec-table tr.is-hl th, .spec-table tr.is-hl td { color: var(--navy); font-weight: 800; }
.serv-for { border-radius: var(--r-md); margin-bottom: 14px; border: 1px solid var(--line); }
.serv-for small { display: block; }
@media (min-width: 900px) { .serv-list { grid-template-columns: 1fr 1fr; } }

/* Importazione */
.imp-photos { cursor: pointer; }
.import-pc { font-size: .9rem; border-top: 1px solid var(--line); padding-top: 12px; }
.import-pc summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.import-pc .import-steps { margin-top: 10px; }
.bm-link { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-decoration: none; cursor: grab; }

/* Area di gestione */
.admin h1 { font-size: 1.6rem; }
.admin h2 { font-size: 1.15rem; }
.admin-tabs .wrap, .admin-tabs { flex-wrap: nowrap; }
.admin-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; padding: 14px 16px; }
.admin-row > div:first-child { min-width: 0; flex: 1 1 260px; }
.admin-row.is-done { opacity: .6; }
.admin-row a { color: var(--navy-3); }
.admin-json { font-size: .78rem; background: var(--bg); border-radius: 8px; padding: 8px; margin: 8px 0 0; white-space: pre-wrap; max-height: 120px; overflow: auto; }
.admin-art { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex: none; display: block; }
.admin-art img, .admin-art svg { width: 100%; height: 100%; object-fit: cover; }
.admin-art--big { width: 160px; height: 120px; margin-top: 8px; }
.admin-line { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; }
.admin-line--attr { grid-template-columns: 1.4fr 1fr .9fr auto auto 1fr auto; }
@media (max-width: 700px) { .admin-line--attr { grid-template-columns: 1fr 1fr; } }

/* ---------------- Aggiornamenti v7 ---------------- */
/* Home: gli annunci che scorrono lasciano aria a sinistra */
.carousel { scroll-padding-inline: var(--gutter); }
@media (min-width: 900px) { .carousel { scroll-padding-inline: 0; } }

/* Accesso con Google, Apple, Facebook */
.social-login { display: grid; gap: 8px; margin-bottom: 4px; }
.soc-btn { justify-content: center; gap: 10px; }
.soc-btn img { height: 20px; width: auto; }

/* Fasce dei trasportatori */
.band-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) auto; gap: 8px; align-items: end; padding: 10px; background: var(--bg); border-radius: var(--r-md); }
.band-row .field { gap: 4px; }
.band-row .icon-btn { align-self: center; }

/* ---------------- Aggiornamenti v8 ---------------- */
/* Home: anche le categorie che scorrono lasciano aria a sinistra */
.types { scroll-padding-inline: var(--gutter); }
@media (min-width: 900px) { .types { scroll-padding-inline: 0; } }
.services-home .services-cta p { color: var(--muted); }

/* Ricerca: il "+" della barra in basso resta nella riga */
body[data-page="annunci"] .tabbar .tab-sell span:first-child { width: 38px; height: 30px; margin-top: 0; border-radius: 10px; border: 0; box-shadow: none; }

/* Pagine dei risultati */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 6px; }
.pager span { color: var(--muted); }
.pager span b { color: var(--navy); }
.page-intro { max-width: 70ch; margin: 14px auto 0; text-align: center; font-size: .95rem; }

/* Dotazioni in gruppi */
.dot-groups { display: grid; gap: 8px; }
.dot-group { border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; }
.dot-group summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 800; color: var(--navy); }
.dot-group summary::-webkit-details-marker { display: none; }
.dot-group summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(45deg); margin-left: 10px; transition: transform .2s; }
.dot-group[open] summary::after { transform: rotate(-135deg); }
.dot-n { margin-left: auto; background: var(--sun); color: var(--sun-ink); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .78rem; padding: 0 7px; }
.dot-n:empty { display: none; }
.dot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 4px 14px 14px; }
.dot-list .check { font-weight: 600; font-size: .95rem; }
@media (max-width: 380px) { .dot-list { grid-template-columns: 1fr; } }

/* Foto nel foglio di importazione */
.imp-grid { grid-template-columns: repeat(3, 1fr); }
.cover-btn { border: 0; cursor: pointer; position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.92); color: var(--navy); }

/* Stime del trasporto */
.tr-estimate { margin: 0; display: grid; gap: 2px; background: #fff7e0; border-radius: var(--r-md); padding: 10px 12px; }
.tr-estimate small { color: #6b4a00; font-weight: 600; }
.tr-estimate b { font-family: var(--f-display); font-size: 1.35rem; color: var(--navy); }
.stima-box { display: grid; gap: 12px; margin-bottom: 14px; }
.stima-t { margin: 0; font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.stima-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.tariffe summary { cursor: pointer; font-weight: 700; color: var(--navy-3); font-size: .92rem; }
.admin-bar { background: #fff1d6; }
.g-official { display: flex; justify-content: center; min-height: 44px; }

/* ---------------- Aggiornamenti v9 ---------------- */
/* Sezioni dei servizi */
.serv-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 12px; }
.serv-nav a { white-space: nowrap; text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--ink); background: #fff; }
.serv-nav a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.soon .boat-art { width: 220px; border-radius: 16px; }

/* Ricerca: salva ricerca in alto */
.save-search-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; margin-bottom: 12px; }

/* Esperienze */
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .exp-grid { grid-template-columns: repeat(3, 1fr); } }
.boat-list { display: grid; gap: 10px; }
.boat-opt { position: relative; display: block; }
.boat-opt input { position: absolute; opacity: 0; }
.boat-opt__in { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 10px; cursor: pointer; }
.boat-opt input:checked + .boat-opt__in { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 7, 84, .12); }
.boat-opt input:focus-visible + .boat-opt__in { outline: 3px solid var(--sun-2); }
.boat-opt__img { width: 110px; height: 82px; border-radius: 10px; overflow: hidden; }
.boat-opt__img img, .boat-opt__img svg { width: 100%; height: 100%; object-fit: cover; }
.boat-opt__txt { display: grid; gap: 3px; align-content: start; }
.boat-opt__prices { color: var(--navy); }
.booking h2 { font-size: 1.2rem; margin: 0 0 6px; }
.bk-total { background: var(--bg); border-radius: var(--r-md); padding: 12px; display: grid; gap: 6px; }
.bk-sum { border-top: 1px solid var(--line); padding-top: 8px; font-family: var(--f-display); color: var(--navy); }
.bk-sum b { font-size: 1.3rem; }
.booking-card { display: grid; gap: 10px; margin-bottom: 12px; }
.booking-card.is-focus { box-shadow: 0 0 0 3px var(--sun-2); }
.booking-grid { display: flex; gap: 18px; flex-wrap: wrap; }
.booking-grid span { display: grid; }
.booking-grid small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.extra-line { grid-template-columns: 1.6fr 1fr 1fr auto; }
.dur-line { grid-template-columns: 1.6fr .8fr 1fr auto; }
@media (max-width: 520px) { .extra-line, .dur-line { grid-template-columns: 1fr 1fr; } }

/* ---------------- Aggiornamenti v10 ---------------- */
/* Data e ora: aspetto nativo, così il calendario si apre su tutti i telefoni */
.input[type=date], .input[type=time] { -webkit-appearance: auto; appearance: auto; min-height: 48px; line-height: 1.2; }
/* Home: "Che barca cerchi?" scorre in orizzontale anche su computer */
@media (min-width: 900px) {
  .types { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 50px) / 6); overflow-x: auto; scrollbar-width: thin; padding-bottom: 12px; }
}
/* Annuncio: il "+" della barra in basso resta nella riga, come nella ricerca */
body[data-page="annuncio"] .tabbar .tab-sell span:first-child { width: 38px; height: 30px; margin-top: 0; border-radius: 10px; border: 0; box-shadow: none; }
.serv-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* Società delle esperienze */
.company-head { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.company-head h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
.company-head h1 a { text-decoration: none; }
.exp-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; background: #fff; border: 1px solid var(--line); }
.exp-logo--ph { display: grid; place-items: center; color: var(--navy); background: var(--navy-tint); }
.exp-logo--sm { width: 48px; height: 48px; border-radius: 12px; }
.exp-logo--card { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--lift); }
.company-gallery { margin-bottom: 16px; }
.logo-ed { display: flex; gap: 14px; align-items: center; }
.logo-ed__img { width: 80px; height: 80px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--navy-tint); color: var(--navy); flex: none; }
.logo-ed__img img { width: 100%; height: 100%; object-fit: cover; }
.orari-ed { display: grid; gap: 8px; }
.orari-row { display: grid; grid-template-columns: minmax(120px, 1fr) 1fr auto 1fr; gap: 8px; align-items: center; }
.orari-row .input { min-height: 42px; padding: 8px 10px; }
.orari-row .input:disabled { opacity: .45; }
.orari td { font-weight: 700; }

/* Area di gestione */
.admin-group { margin-bottom: 26px; }
.admin-group > h2 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.admin-sub { font-size: .95rem; color: var(--muted); margin: 12px 0 8px; font-family: var(--f-body); }
.admin-seg { flex-wrap: wrap; }
.orari-row .input { min-width: 0; width: 100%; }
@media (max-width: 560px) {
  .orari-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .orari-row .check { grid-column: 1 / -1; }
}
.company-head p .i { display: inline-block; vertical-align: -2px; }

/* ---------------- Aggiornamenti v11 ---------------- */
/* Data scrivibile o dal calendario */
.date-field { position: relative; display: flex; gap: 6px; align-items: center; }
.date-field .input { flex: 1; min-width: 0; }
.date-btn { flex: none; border: 1.5px solid var(--line-2); background: #fff; border-radius: var(--r-md); width: 48px; height: 48px; }
.date-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Profilo in alto a destra: una pillola con foto e nome */
.account-link.is-logged { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.account-link.is-logged:hover { background: rgba(255,255,255,.2); }
.account-link.is-logged .account-name { display: inline; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .9rem; }
.account-link.is-logged .i { opacity: .8; }

/* "Home" nelle briciole di pane: un vero pulsante, con la casetta */
.crumbs > a:first-child { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); color: var(--navy); font-weight: 800; text-decoration: none; }
.crumbs > a:first-child::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E") center / contain no-repeat; }
.crumbs > a:first-child:hover { border-color: var(--navy); }
.crumbs { align-items: center; }
.crumbs [aria-current="page"] { font-weight: 800; color: var(--navy); }

/* Messaggi: barra con "Home / Messaggi" (su computer) */
.msg-head { display: none; }
@media (min-width: 900px) {
  .msg-head { display: block; padding-top: 12px; padding-bottom: 10px; }
  .chat { height: calc(100dvh - var(--head-h) - var(--safe-t) - 58px); }
}

/* Home: blocco servizi in blu */
.services-home .services-cta p { color: #dcdaf6; }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); }

/* Esperienze: filtri */
.exp-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.exp-filters .ef-dove, .exp-filters .ef-data { grid-column: 1 / -1; }
@media (min-width: 900px) { .exp-filters { grid-template-columns: 2fr 1fr 1fr 1fr 1.6fr; } .exp-filters .ef-dove, .exp-filters .ef-data { grid-column: auto; } }
.op-cta { margin-top: 22px; background: var(--navy-tint); border-radius: var(--r-lg); padding: 14px 16px; font-size: .95rem; }

/* ---------------- Aggiornamenti v12 ---------------- */
.serv-title-row { display: flex; gap: 10px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.serv-title-row h1 { margin: 0; }
.raccolta { max-width: 560px; margin: 10px auto; }
.serv-photos { display: flex; gap: 6px; overflow-x: auto; }
.serv-photos img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; cursor: zoom-in; flex: none; }
.serv-offers { display: grid; gap: 8px; }
.serv-offer { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: var(--r-md); padding: 8px; }
.serv-offer img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
/* Esperienze: la foto profilo della società nella card, intera */
.exp-card .lcard__media.is-logo { background: #fff; display: grid; place-items: center; }
.exp-card .lcard__media.is-logo img { object-fit: contain; width: 70%; height: 70%; position: static; }
/* Esperienze: su telefono i filtri si aprono con il pulsante */
.ef-toggle { margin-top: 12px; }
@media (max-width: 899px) { .exp-filters { display: none; } .exp-filters.is-open { display: grid; } }
@media (min-width: 900px) { .ef-toggle { display: none; } }
/* Home: "Altri filtri" nella ricerca */
.searchbox__more { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--navy); font-weight: 800; font-size: .92rem; padding: 4px 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.searchbox__more .i { color: var(--navy); }

/* Filtri: categoria a tendina con più scelte */
.multi-select { position: relative; }
.multi-select > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 48px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.multi-select > summary::-webkit-details-marker { display: none; }
.multi-select > summary span { overflow: hidden; text-overflow: ellipsis; }
.multi-select__list { display: grid; gap: 8px; margin-top: 6px; padding: 12px; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-md); max-height: 300px; overflow-y: auto; box-shadow: var(--lift); }

/* Su telefono si naviga con il menu in basso: niente "Home / …" */
@media (max-width: 899px) { .crumbs { display: none; } }

/* Il "+" di Vendi sporge solo in home; nelle altre pagine resta nella riga */
body:not([data-page="home"]) .tabbar .tab-sell span:first-child { width: 38px; height: 30px; margin-top: 0; border-radius: 10px; border: 0; box-shadow: none; }
.admin-line--attr { background: var(--bg); padding: 10px; border-radius: var(--r-md); }

/* ---------------- Aggiornamenti v13: home a tutto schermo ---------------- */
/* La parte alta riempie lo schermo: testo e ricerca ben incorniciati, freccia per scendere */
.hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--head-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); padding: 14px 0 92px; }
.hero__content { display: grid; gap: 16px; align-items: center; }
.hero__text { min-width: 0; }
.searchbox { grid-template-columns: 1fr !important; border-radius: var(--r-xl) !important; padding: 16px !important; gap: 10px; margin-top: 0; max-width: 460px; width: 100%; }
.searchbox .input, .searchbox .select { border-radius: var(--r-md) !important; }
.searchbox .field { gap: 4px; }
.searchbox .field label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.searchbox__t { margin: 0 0 2px; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.searchbox__more { padding-top: 0; }

/* Su telefono: solo il motto e una riga di testo, così la ricerca si vede per intero */
@media (max-width: 899px) {
  .hero__note, .hero .lead { display: none; }
  .hero__motto { font-size: clamp(2.2rem, 10.5vw, 3.1rem); margin-bottom: 8px; }
  .hero__motto span { display: inline; margin-right: .22em; }
  .hero__h1 { font-size: .98rem; font-weight: 600; color: #dcdaf6; margin: 0; }
  .hero__sun { width: 150px; height: 150px; top: 10px; right: -50px; }
  .searchbox { padding: 14px !important; gap: 8px; }
  .searchbox .field label { display: none; }
  .searchbox__t { font-size: 1.05rem; }
}
/* Su computer: testo a sinistra, ricerca in verticale a destra, tutto in un solo schermo */
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - var(--head-h) - var(--safe-t)); padding: 30px 0 110px; }
  .hero__content { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; }
  .hero__motto { font-size: clamp(3.6rem, 6.4vw, 5.6rem); }
  .hero__sun { right: auto; left: 44%; top: 60px; width: 260px; height: 260px; opacity: .9; }
  .searchbox { justify-self: end; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
}
@media (min-width: 900px) and (max-height: 760px) {
  .hero__motto { font-size: 3.4rem; }
  .hero__note { margin-bottom: 10px; }
}

/* Frecce per scorrere tra le sezioni (e per tornare su) */
.jump { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); border: 1.5px solid var(--line-2); box-shadow: var(--lift); text-decoration: none; transition: transform .2s; }
.jump:hover { transform: translateY(2px); }
.jump--hero { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 2; background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: none; animation: galleggia 2.4s ease-in-out infinite; }
.jump--hero:hover { background: rgba(255, 255, 255, .24); }
.jump--sm { width: 34px; height: 34px; box-shadow: none; }
.jump-row { display: flex; justify-content: center; margin-top: 14px; }
@keyframes galleggia { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .jump--hero { animation: none; } }

/* Menu in alto su computer: Annunci, Messaggi e Servizi sono pulsanti con il contorno bianco */
@media (min-width: 900px) {
  .topnav a { border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 6px 16px; color: #fff; text-decoration: none; }
  .topnav a:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
  .topnav a[aria-current="page"] { background: #fff; color: var(--navy); border-color: #fff; }
}
@media (max-width: 899px) { .hero__motto span { display: inline-block; } }

/* ---------------- Aggiornamenti v14 ---------------- */
/* Menu in alto su computer: pulsanti bianchi con la scritta blu */
@media (min-width: 900px) {
  .topnav a { background: #fff; color: var(--navy); border: 1.5px solid #fff; font-weight: 800; }
  .topnav a:hover { background: #eef0fb; border-color: #eef0fb; color: var(--navy); }
  .topnav a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: inset 0 -3px 0 var(--sun-2); }
}
/* Frecce in su: centrate, in cima alla sezione, subito sotto la freccia in giù */
.jump-row--up { margin: 0 0 10px; }
.home-latest .jump-row:not(.jump-row--up) { margin-top: 18px; }
/* Telefono: la frase tra la ricerca e la freccia */
.hero__lead-m { margin: 2px 0 0; color: #cfcdee; font-size: .95rem; text-align: center; }
@media (min-width: 900px) { .hero__lead-m { display: none; } }
/* Computer: il sole più grande e più a destra, in parte nascosto dal box di ricerca */
@media (min-width: 900px) {
  .hero__sun { left: auto; right: calc(max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) + 250px); top: 50%; transform: translateY(-62%); width: 400px; height: 400px; }
}
/* Telefoni bassi (es. iPhone SE): tutto un po' più compatto, così la freccia resta in vista */
@media (max-width: 899px) and (max-height: 700px) {
  .hero { padding: 6px 0 80px; }
  .hero__motto { font-size: 2rem; margin-bottom: 4px; }
  .hero__h1 { font-size: .88rem; line-height: 1.3; }
  .hero__content { gap: 10px; }
  .searchbox { padding: 12px !important; gap: 6px; }
  .searchbox__t { font-size: .98rem; }
  .searchbox .input, .searchbox .select { min-height: 44px; }
  .hero__lead-m { font-size: .84rem; }
  .jump--hero { bottom: 36px; width: 42px; height: 42px; }
}
/* Computer: il sole esce dal lato destro del box di ricerca */
@media (min-width: 900px) {
  .hero__sun { right: calc(max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) - 150px); width: 420px; height: 420px; transform: translateY(-58%); }
}
/* Computer: sole più piccolo, sempre in uscita dal lato destro della ricerca */
@media (min-width: 900px) {
  .hero__sun { width: 300px; height: 300px; right: calc(max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) - 110px); transform: translateY(-62%); }
}
@media (min-width: 900px) {
  .hero__sun { right: calc(max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) - 200px); }
}

/* ---------------- Aggiornamenti v15 ---------------- */
/* Telefono: il testo sotto il motto gira intorno al sole (al massimo 3 righe; l'ultima, sotto il cerchio, è più lunga) */
.hero__sun-m { display: none; }
@media (max-width: 899px) {
  .hero__sun { display: none; }
  .hero__motto { position: relative; z-index: 1; }
  .hero__sun-m { display: block; float: right; width: 128px; height: 128px; margin: -58px -34px 2px 8px; border-radius: 50%; background: var(--sun); position: relative; shape-outside: circle(50%); shape-margin: 10px; }
  .hero__sun-m::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(transparent 55%, var(--navy) 55%, var(--navy) 60%, transparent 60%, transparent 68%, var(--navy) 68%, var(--navy) 74%, transparent 74%, transparent 82%, var(--navy) 82%); }
  .hero__h1 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.38; }
  .hero__text::after { content: ""; display: block; clear: both; }
}
@media (max-width: 899px) {
  /* il sole sta accanto a "Salpa" e scende accanto alla prima riga del testo */
  .hero__motto .hero__sun-m { display: block; float: right; width: 112px; height: 112px; margin: -22px -30px 0 10px; z-index: 0; }
  .hero__motto span:not(.hero__sun-m) { position: relative; z-index: 1; }
  .hero__h1 { margin-top: 4px; }
}
@media (max-width: 899px) {
  .hero__motto .hero__sun-m { width: 100px; height: 100px; margin: -50px -26px 0 8px; }
}
@media (max-width: 899px) { .hero__h1 { max-width: none; } }
/* il taglio a 3 righe impediva al testo di girare intorno al sole: ci pensa la home, riducendo un po' il carattere se serve */
@media (max-width: 899px) { .hero__h1 { display: block; overflow: visible; -webkit-line-clamp: unset; } }

/* ---------------- Comparatore ---------------- */
.searchbox__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.searchbox__help { font-size: .86rem; font-weight: 800; color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.title-row h1 { margin: 0; }
.cmp-btn .i { color: var(--sun-2); }
.cmp-title { font-size: clamp(1.6rem, 6vw, 2.3rem); margin: 6px 0 6px; }
.cmp-sub { max-width: 62ch; }
.cmp-form { max-width: 720px; }
.seg--wrap { flex-wrap: wrap; height: auto; }
.seg--wrap label { flex: 1 1 auto; }
.cmp-sum { margin: 10px 0 16px; }
.cmp-sum h2 { margin: 0 0 6px; font-size: 1.15rem; }
.cmp-sum p { margin: 6px 0; }
.cmp-grid { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.cmp-card { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; position: relative; }
.cmp-card.is-best { box-shadow: 0 0 0 3px var(--sun-2); }
.cmp-best { position: absolute; top: 10px; left: 10px; z-index: 1; }
.cmp-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
.cmp-media img, .cmp-media svg { width: 100%; height: 100%; object-fit: cover; }
.cmp-name { font-size: 1.08rem; margin: 4px 0 0; }
.cmp-name a { text-decoration: none; }
.cmp-price { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.cmp-score { display: flex; gap: 10px; align-items: center; }
.cmp-score .progress { flex: 1; }
.cmp-card h3 { font-size: .92rem; margin: 8px 0 0; color: var(--navy); }
.cmp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.cmp-list li { padding-left: 24px; position: relative; }
.cmp-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.cmp-list--pro li::before { content: "+"; color: #1d7a4e; }
.cmp-list--con li::before { content: "–"; color: #b25b00; }
.cmp-list--info li::before { content: "i"; color: var(--navy-3); font-family: Georgia, serif; font-style: italic; }
.cmp-q { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .93rem; }
.cmp-note { margin-top: 16px; max-width: 70ch; }
@media (min-width: 900px) { .cmp-grid { grid-auto-flow: row; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* ---------------- Recensioni ---------------- */
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.stars i { width: var(--s); height: var(--s); background: #d9dbe8; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.stars i.on { background: #f5a623; }
.stars i.half { background: linear-gradient(90deg, #f5a623 50%, #d9dbe8 50%); }
:root { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E"); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; }
.rating b { color: var(--navy); }
.rating small { color: var(--muted); }
.rating-link { text-decoration: none; display: inline-block; margin-top: 2px; }
.rating-head { background: rgba(255,255,255,.95); border: 0; border-radius: 999px; padding: 4px 10px; margin: 6px 0 2px; cursor: pointer; }
/* Scelta delle stelle */
.star-pick { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.star-pick input { position: absolute; opacity: 0; }
.star-pick label { width: 44px; height: 44px; cursor: pointer; background: #d9dbe8; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; transition: transform .12s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { background: #f5a623; }
.star-pick input:focus-visible + label { outline: 3px solid var(--sun-2); outline-offset: 2px; }
.star-pick label:active { transform: scale(.9); }
.star-txt { text-align: center; margin: 0; min-height: 1.2em; }
/* In chat */
.msg-review { display: flex; gap: 12px; align-items: flex-start; background: #fff7e0; border: 1px solid #f3dfa8; border-radius: var(--r-lg); padding: 12px 14px; margin: 10px auto; max-width: 440px; }
.msg-review__ic { font-size: 1.6rem; line-height: 1; color: #f5a623; }
.msg-review p { margin: 4px 0 8px; font-size: .93rem; }
/* A chi l'hai venduta */
.buyer-opt { display: block; }
.buyer-opt input { position: absolute; opacity: 0; }
.buyer-opt > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: #fff; }
.buyer-opt input:checked + span { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,7,84,.1); }
.buyer-opt input:focus-visible + span { outline: 3px solid var(--sun-2); }
/* Elenco nel profilo */
.reviews { display: grid; gap: 10px; max-width: 760px; }
.reviews__avg { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }

/* Servizi in raccolta: il riquadro al centro, come nelle esperienze */
.serv-list .raccolta, .serv-list > .empty { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 560px; }

/* ---------------- Blog ---------------- */
.blog-art { width: 100%; height: 100%; display: block; }
.blog-head h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); max-width: 26ch; }
.blog-filter { margin-top: 14px; }
.blog-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: var(--lift); transform: translateY(-2px); }
.blog-card[hidden] { display: none; }
.blog-card__art { display: block; aspect-ratio: 400 / 210; }
.blog-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card__t { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.blog-card__t a { text-decoration: none; color: var(--navy); }
.blog-card__t a::after { content: ""; position: absolute; inset: 0; }
.blog-card { position: relative; }
.blog-card .muted { margin: 0; }
.blog-card__meta { margin-top: auto !important; }
.blog-cat { align-self: flex-start; }
.blog-cat--acquisto { background: #e3f3ea; color: #1d6b45; }
.blog-cat--vendita { background: #fff1d6; color: #8a5a00; }
.blog-cat--manutenzione { background: #e6e9fb; color: #2d2a8a; }
.blog-cat--servizi { background: #fde7e1; color: #9a3a1c; }
/* Articolo */
.post { max-width: 760px; padding-top: 18px; padding-bottom: 30px; }
.post__head h1 { font-size: clamp(1.7rem, 6.4vw, 2.5rem); line-height: 1.15; margin: 10px 0; }
.post__lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 10px; }
.post__meta { color: var(--muted); font-size: .92rem; margin: 0; }
.post__author { font-weight: 800; color: var(--navy); }
.post__art { margin: 18px 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 400 / 210; }
.post__key { background: var(--navy-tint); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 8px; }
.post__key h2 { font-size: 1.05rem; margin: 0 0 6px; }
.post__key ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.post__body { font-size: 1.06rem; line-height: 1.7; color: var(--ink); }
.post__body h2 { font-size: 1.4rem; margin: 30px 0 10px; line-height: 1.25; }
.post__body h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.post__body p { margin: 0 0 14px; }
.post__body ul, .post__body ol { margin: 0 0 16px; padding-left: 1.25em; display: grid; gap: 8px; }
.post__cta { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: 20px; margin: 28px 0 18px; }
.post__cta h2 { color: #fff; margin: 0 0 6px; font-size: 1.3rem; }
.post__cta p { color: #dcdaf6; margin: 0 0 14px; }
.post__cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.post__autore { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 16px; }
.post-related { padding-bottom: 50px; }
.post-related h2 { font-size: 1.3rem; }
/* La guida tra gli annunci */
.lcard--guide { border: 1.5px dashed #f3c27a; background: #fffaf0; }
.lcard--guide .lcard__body { display: flex; flex-direction: column; gap: 8px; }

/* Telefono: in home niente frecce su e giù */
@media (max-width: 899px) { .jump, .jump-row { display: none !important; } .hero { padding-bottom: 64px; } }

/* ---------------- Vetrine dei rivenditori ---------------- */
/* finché non sono pronti i colori del rivenditore, la testata Sell&Sail non si vede */
body[data-page="vetrina"]:not(.vetrina-pronta) .topbar__in, body[data-page="vetrina"]:not(.vetrina-pronta) footer.footer { visibility: hidden; }
body.in-vetrina .topbar { background: var(--dealer-bg); color: var(--dealer-ink); }
body.in-vetrina .tabbar { display: none; }
body.in-vetrina { padding-bottom: 0; }
.dealer-logo { display: flex; align-items: center; gap: 10px; color: var(--dealer-ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; min-width: 0; }
.dealer-logo img { height: 38px; width: auto; max-width: 140px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.dealer-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dealer-nav { margin-left: auto; display: flex; gap: 6px; }
.dealer-nav a { color: var(--dealer-ink); text-decoration: none; font-weight: 700; font-size: .92rem; padding: 6px 10px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .92; }
@media (max-width: 560px) { .dealer-nav a:not(:first-child) { display: none; } }
body.in-vetrina footer.footer { background: var(--dealer-bg); color: var(--dealer-ink); padding: 26px 0 30px; }
.dealer-foot p { margin: 0 0 10px; }
.dealer-foot a { color: inherit; }
.logo--sm { font-size: 1.05rem; display: inline; color: inherit; text-decoration: none; font-weight: 800; }
.logo--sm .amp { color: #ffb24f; }
.v-hero { background: var(--dealer-bg); background-image: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)), var(--cover, none); background-size: cover; background-position: center; color: #fff; padding: 42px 0 46px; }
.v-hero__in { display: grid; gap: 10px; justify-items: start; }
.v-hero h1 { color: #fff; font-size: clamp(1.9rem, 7vw, 3rem); margin: 0; }
.v-hero__logo { height: 72px; width: auto; max-width: 220px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; }
.v-hero__slogan { font-size: 1.1rem; margin: 0; opacity: .95; }
.v-hero__cta { margin-top: 8px; }
.v-sec { padding-top: 26px; }
.v-sec h2 { font-size: 1.4rem; }
.v-filters { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 900px) { .v-filters { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.v-contacts { display: grid; gap: 10px; }
.v-contact { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--navy); text-decoration: none; }
.v-orari { border-top: 1px solid var(--line); padding-top: 10px; }
.vetrina { padding-bottom: 40px; }
/* Personalizzazione */
.color-in { display: flex; gap: 8px; align-items: center; }
.color-in input[type=color] { width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; flex: none; }
.vg-thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--navy-tint); display: grid; place-items: center; overflow: hidden; color: var(--navy); }
.vg-thumb--wide { width: 110px; }
.vg-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.vg-preview { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 14px 0; box-shadow: var(--lift); }
.vg-prev__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.vg-prev__bar img { height: 28px; background: #fff; border-radius: 6px; padding: 2px; }
.vg-prev__body { min-height: 120px; display: grid; gap: 10px; align-content: center; justify-items: start; padding: 18px; background-size: cover; background-position: center; }
.vg-prev__btn { padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
/* Vetrina: senza copertina la testata usa solo il colore del rivenditore, con il testo leggibile sopra */
.v-hero { background: var(--dealer-bg); color: var(--dealer-ink); }
.v-hero h1 { color: inherit; }
.v-hero[style*="--cover"] { background-image: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)), var(--cover); color: #fff; }
.dealer-foot .btn--light { color: #17153d; background: #fff; }
/* Vetrina: in alto la presentazione del rivenditore */
.v-hero__desc { max-width: 62ch; font-size: 1.02rem; line-height: 1.6; opacity: .96; }
.v-hero__desc .desc { margin: 4px 0 0; color: inherit; }
.v-hero__desc.is-long:not(.is-open) { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.v-more { background: none; border: 0; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; }
.dealer-nav a:not(:first-child) { display: inline-block; }
/* Vetrina: senza menu in basso la barra "Numero / Richiesta" sta sul fondo dello schermo */
body.in-vetrina .actionbar { bottom: 0; padding-bottom: calc(10px + var(--safe-b)); }
/* Caricamento con il logo del rivenditore */
.loader--logo { display: grid; justify-items: center; gap: 12px; }
.loader__logo { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--lift); animation: respiro 1.4s ease-in-out infinite; }
@keyframes respiro { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .loader__logo { animation: none; } }
