/* ==========================================================================
   TA Tech Nautica — design system della demo
   ========================================================================== */
:root {
  --bg: #FAFAF7;
  --bg-2: #F3F2EE;
  --bg-3: #ECEAE4;
  --card: #FFFFFF;
  --ink: #0D1117;
  --ink-2: #2A2F37;
  --muted: #69707D;
  --faint: #9AA0AA;
  --line: #E8E6E1;
  --line-2: #DCD9D2;
  --accent: #D01124;
  --accent-2: #B00E1F;
  --accent-tint: #FDEEEF;
  --deep: #0B1016;
  --deep-2: #141B23;
  --deep-line: rgba(255, 255, 255, .09);
  --ok: #13795B;
  --ok-tint: #E7F4EE;
  --warn: #A15C07;
  --warn-tint: #FDF3E3;
  --info: #2556C4;
  --info-tint: #EAF0FC;
  --sea: #12343B;

  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(13, 17, 23, .06);
  --sh-2: 0 1px 2px rgba(13, 17, 23, .04), 0 8px 24px -10px rgba(13, 17, 23, .14);
  --sh-3: 0 2px 6px rgba(13, 17, 23, .05), 0 28px 56px -20px rgba(13, 17, 23, .28);
  --sh-pop: 0 16px 48px -12px rgba(13, 17, 23, .28), 0 0 0 1px rgba(13, 17, 23, .06);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t1: 160ms;
  --t2: 260ms;
  --t3: 420ms;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --wrap: 1320px;
  --gutter: 28px;
  --header-h: 68px;
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 60px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 15px/1.55 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.022em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: rgba(208, 17, 36, .14); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.ink { color: var(--ink); }
.accent { color: var(--accent); }
.ok { color: var(--ok); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; align-items: center; gap: 12px; }
.row-sm { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.wrapflex { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.overline { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.divider-v { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Bottoni ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 12px;
  font-weight: 500; font-size: 14.5px; letter-spacing: -.005em; white-space: nowrap;
  background: var(--card); color: var(--ink); border: 1px solid var(--line-2);
  transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease), color var(--t1), transform var(--t1) var(--ease), box-shadow var(--t2) var(--ease);
  user-select: none; position: relative;
}
.btn:hover { border-color: #C9C5BC; background: #FDFDFC; }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #262C35; border-color: #262C35; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(208, 17, 36, .55); }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(13, 17, 23, .05); border-color: transparent; }
.btn-soft { background: var(--bg-2); border-color: transparent; }
.btn-soft:hover { background: var(--bg-3); border-color: transparent; }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(10px); }
.btn-light:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .35); }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { background: #F2F1ED; border-color: #F2F1ED; }
.btn-danger { color: var(--accent); }
.btn-sm { --h: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-xs { --h: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn .i { width: 17px; height: 17px; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) rgba(255, 255, 255, .25) rgba(255, 255, 255, .25);
  animation: spin .7s linear infinite;
}
.btn:not(.btn-accent):not(.btn-primary).is-loading::after { border-color: var(--ink) var(--ink) var(--line-2) var(--line-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link .i { transition: transform var(--t2) var(--ease); }
.link:hover .i { transform: translateX(3px); }
.link-u { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link-u:hover { text-decoration-color: var(--ink); }

/* ---------- Badge, pill, tag ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: -.003em; background: var(--bg-2); color: var(--ink-2); white-space: nowrap;
}
.tag .i { width: 13px; height: 13px; }
.tag-dark { background: rgba(13, 17, 23, .78); color: #fff; backdrop-filter: blur(8px); }
.tag-white { background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(8px); }
.tag-accent { background: var(--accent); color: #fff; }
.tag-accent-soft { background: var(--accent-tint); color: var(--accent-2); }
.tag-ok { background: var(--ok-tint); color: var(--ok); }
.tag-warn { background: var(--warn-tint); color: var(--warn); }
.tag-info { background: var(--info-tint); color: var(--info); }
.tag-line { background: transparent; border: 1px solid var(--line-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.pill-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; height: 26px; padding: 0 10px 0 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.pill-status.s-ok { background: var(--ok-tint); color: var(--ok); }
.pill-status.s-warn { background: var(--warn-tint); color: var(--warn); }
.pill-status.s-info { background: var(--info-tint); color: var(--info); }
.pill-status.s-accent { background: var(--accent-tint); color: var(--accent-2); }
.pill-status.s-ink { background: var(--ink); color: #fff; }
.pill-status.s-muted { background: var(--bg-2); color: var(--muted); }
.badge-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.verified { display: inline-flex; color: var(--ok); }
.verified .i { width: 16px; height: 16px; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 14.5px; transition: border-color var(--t1), box-shadow var(--t1);
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: #C9C5BC; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13, 17, 23, .07); }
.input.is-invalid { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(208, 17, 36, .08); }
.select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2369707D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.select option { color: var(--ink); background: #fff; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .i { position: absolute; left: 13px; color: var(--faint); pointer-events: none; }
.input-group > .i ~ .input { padding-left: 40px; }
.input-group .suffix { position: absolute; right: 12px; color: var(--muted); font-size: 13.5px; pointer-events: none; }
.input-group .input.has-suffix { padding-right: 44px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.45; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; flex: none; margin-top: 0;
  display: grid; place-items: center; transition: background var(--t1), border-color var(--t1);
}
.check .box svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(.6); transition: all var(--t1) var(--ease); }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(13, 17, 23, .15); }
.check .count { margin-left: auto; color: var(--faint); font-size: 13px; }
.check:hover .box { border-color: #B9B4AA; }
.radio .box { border-radius: 50%; }
.radio input:checked + .box { background: #fff; border: 6px solid var(--ink); }
.switch { position: relative; width: 40px; height: 24px; flex: none; display: inline-block; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background var(--t2) var(--ease); }
.switch .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--t2) var(--ease-out); }
.switch input:checked + .track { background: var(--ok); }
.switch.accent input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(13, 17, 23, .15); }
.seg { display: inline-flex; padding: 3px; background: var(--bg-2); border-radius: 12px; gap: 2px; position: relative; }
.seg button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color var(--t1), background var(--t1), box-shadow var(--t1); display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px rgba(13, 17, 23, .04); }
.seg.seg-block { display: flex; }
.seg.seg-block button { flex: 1; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: all var(--t1) var(--ease); white-space: nowrap;
}
.chip:hover { border-color: #B9B4AA; color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .i { width: 15px; height: 15px; }
.chip-x { height: 32px; padding: 0 8px 0 12px; background: var(--bg-2); border-color: transparent; }
.chip-x:hover { background: var(--bg-3); }
.chip-x .i { opacity: .6; }

/* ---------- Card, superfici ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15.5px; }
.card-body { padding: 22px; }
.surface { background: var(--bg-2); border-radius: var(--r); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); font-size: 14px; line-height: 1.5; }
.notice .i { margin-top: 2px; }
.notice-ok { background: var(--ok-tint); color: #0F5E47; }
.notice-warn { background: var(--warn-tint); color: #7A4505; }
.notice-info { background: var(--info-tint); color: #1D4398; }
.notice-accent { background: var(--accent-tint); color: #8E0C19; }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line-2); background: #fff; font-size: 11.5px; color: var(--muted); font-family: var(--font); }

/* ---------- Avatar e loghi ---------- */
.avatar { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; font-size: calc(var(--s) * .36); font-weight: 600; letter-spacing: .01em; background: var(--ink); }
.avatar-sm { --s: 28px; }
.avatar-lg { --s: 48px; }
.avatar-xl { --s: 72px; }
.dlogo { --s: 40px; width: var(--s); height: var(--s); border-radius: 11px; display: inline-grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: calc(var(--s) * .32); letter-spacing: .04em; background: var(--ink); position: relative; overflow: hidden; }
.dlogo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(255, 255, 255, .16), transparent 55%); }
.dlogo-sm { --s: 26px; border-radius: 7px; }
.dlogo-lg { --s: 56px; border-radius: 15px; }
.dlogo-xl { --s: 88px; border-radius: 22px; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.stars .i { width: 14px; height: 14px; color: #E2A33B; fill: #E2A33B; }

/* ==========================================================================
   Header pubblico
   ========================================================================== */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(250, 250, 247, .82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: background var(--t2), border-color var(--t2), color var(--t2); }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 24px; width: auto; }
.brand .brand-sep { width: 1px; height: 20px; background: var(--line-2); }
.brand .brand-name { font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.brand .brand-name span { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { height: 38px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background var(--t1), color var(--t1); }
.nav a:hover { background: rgba(13, 17, 23, .05); color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ''; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hdr-icon { position: relative; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-2); transition: background var(--t1); }
.hdr-icon:hover { background: rgba(13, 17, 23, .06); color: var(--ink); }
.hdr-icon .badge-count { position: absolute; top: 3px; right: 2px; box-shadow: 0 0 0 2px var(--bg); }
.hdr-user { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 4px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; transition: box-shadow var(--t1); }
.hdr-user:hover { box-shadow: var(--sh-2); }
.hdr-user .avatar { --s: 32px; }
.hdr-user .i { color: var(--muted); }
.hdr-burger { display: none; }

/* header trasparente sopra l'hero */
.hdr.on-hero:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.hdr.on-hero:not(.is-scrolled) .brand-name, .hdr.on-hero:not(.is-scrolled) .nav a, .hdr.on-hero:not(.is-scrolled) .hdr-icon { color: #fff; }
.hdr.on-hero:not(.is-scrolled) .brand-name span { color: rgba(255, 255, 255, .7); }
.hdr.on-hero:not(.is-scrolled) .brand-sep { background: rgba(255, 255, 255, .3); }
.hdr.on-hero:not(.is-scrolled) .nav a:hover, .hdr.on-hero:not(.is-scrolled) .hdr-icon:hover { background: rgba(255, 255, 255, .12); }
.hdr.on-hero:not(.is-scrolled) .hdr-user { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.hdr.on-hero:not(.is-scrolled) .hdr-user .i { color: rgba(255, 255, 255, .8); }
.hdr.on-hero:not(.is-scrolled) .btn-outline-hdr { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.hdr.on-hero:not(.is-scrolled) .hdr-icon .badge-count { box-shadow: none; }
.hdr .logo-light { display: none; }
.hdr.on-hero:not(.is-scrolled) .logo-dark { display: none; }
.hdr.on-hero:not(.is-scrolled) .logo-light { display: block; }
.has-hero main { margin-top: calc(var(--header-h) * -1); }

@media (max-width: 1080px) { .nav { display: none; } .hdr-burger { display: grid; } }
@media (max-width: 760px) {
  .brand img { height: 20px; }
  .brand .brand-name { font-size: 14px; }
  .hdr .wrap { gap: 12px; }
  .hdr-actions .hide-m { display: none; }
}

/* Popover (menu a tendina) */
.pop { position: fixed; z-index: 120; min-width: 240px; background: #fff; border-radius: 16px; box-shadow: var(--sh-pop); padding: 6px; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity var(--t1) var(--ease), transform var(--t2) var(--ease-out); }
.pop.is-open { opacity: 1; transform: none; }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); text-align: left; transition: background var(--t1); }
.pop-item:hover { background: var(--bg-2); color: var(--ink); }
.pop-item .i { color: var(--muted); }
.pop-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.pop-head { padding: 10px 10px 8px; }
.pop-title { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* Pannello notifiche */
.notif-pop { width: 380px; padding: 0; overflow: hidden; }
.notif-pop .np-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-pop .np-head h4 { font-size: 15px; }
.notif-list { max-height: 420px; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); transition: background var(--t1); position: relative; }
.notif:hover { background: var(--bg); }
.notif:last-child { border-bottom: 0; }
.notif .n-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); flex: none; }
.notif .n-ic.req { background: var(--accent-tint); color: var(--accent); }
.notif .n-ic.ok { background: var(--ok-tint); color: var(--ok); }
.notif .n-ic.warn { background: var(--warn-tint); color: var(--warn); }
.notif .n-ic.info { background: var(--info-tint); color: var(--info); }
.notif .n-t { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.notif .n-s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.notif .n-a { font-size: 12px; color: var(--faint); margin-top: 4px; }
.notif.unread::after { content: ''; position: absolute; right: 16px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.notif.unread .n-t { padding-right: 16px; }
.notif-pop .np-foot { padding: 10px; border-top: 1px solid var(--line); text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr { background: var(--deep); color: rgba(255, 255, 255, .62); margin-top: 120px; padding: 72px 0 32px; font-size: 14px; }
.ftr .ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.ftr h5 { color: #fff; font-size: 13.5px; font-weight: 500; margin-bottom: 16px; letter-spacing: -.005em; }
.ftr li + li { margin-top: 10px; }
.ftr a { transition: color var(--t1); }
.ftr a:hover { color: #fff; }
.ftr .ftr-brand img { height: 26px; }
.ftr .ftr-brand p { margin-top: 18px; max-width: 320px; line-height: 1.6; }
.ftr .ftr-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--deep-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.ftr .ftr-badges { display: flex; gap: 10px; margin-top: 22px; }
.ftr .ftr-badges span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--deep-line); color: rgba(255, 255, 255, .78); font-size: 12.5px; }
@media (max-width: 960px) { .ftr .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr .ftr-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ftr { margin-top: 72px; padding-top: 48px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   Barra mobile in basso (sezioni pubbliche)
   ========================================================================== */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--muted); position: relative; }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.is-active { color: var(--ink); }
  .tabbar a .badge-count { position: absolute; top: 2px; left: calc(50% + 6px); }
  body.no-tabbar .tabbar { display: none; }
}

/* ==========================================================================
   Pulsante e pannello DEMO
   ========================================================================== */
.demo-fab { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--deep); color: #fff; box-shadow: 0 12px 32px -10px rgba(11, 16, 22, .6); font-size: 13.5px; transition: transform var(--t2) var(--ease-out), box-shadow var(--t2); }
.demo-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(11, 16, 22, .7); }
.demo-fab .df-tag { height: 34px; padding: 0 11px; border-radius: 999px; background: var(--accent); display: inline-flex; align-items: center; font-weight: 600; font-size: 11.5px; letter-spacing: .08em; }
.demo-fab .df-role { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.demo-fab .df-role small { color: rgba(255, 255, 255, .55); font-size: 11px; }
.demo-fab .df-role b { font-weight: 500; }
.demo-fab .i { color: rgba(255, 255, 255, .6); width: 16px; height: 16px; }
@media (max-width: 760px) {
  .demo-fab { left: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); height: 40px; padding: 0 12px 0 5px; }
  .demo-fab .df-tag { height: 30px; }
  .demo-fab .df-role small { display: none; }
  body.no-tabbar .demo-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.app-layout .demo-fab { bottom: 16px; }
}
.demo-panel { position: fixed; left: 20px; bottom: 78px; z-index: 95; width: 400px; max-width: calc(100vw - 24px); max-height: calc(100vh - 110px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: var(--sh-pop); opacity: 0; transform: translateY(10px) scale(.98); transform-origin: bottom left; pointer-events: none; transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease-out); }
.demo-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.demo-panel .dp-head { padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.demo-panel .dp-head h4 { font-size: 16px; }
.demo-panel .dp-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.demo-panel .dp-sec { padding: 14px 12px; }
.demo-panel .dp-sec + .dp-sec { border-top: 1px solid var(--line); }
.demo-panel .dp-label { padding: 0 8px 8px; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.role-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 13px; text-align: left; transition: background var(--t1); }
.role-opt:hover { background: var(--bg); }
.role-opt.is-on { background: var(--bg-2); }
.role-opt .ro-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--ink); }
.role-opt.is-on .ro-ic { background: var(--ink); color: #fff; }
.role-opt .ro-t { font-size: 14px; font-weight: 500; color: var(--ink); }
.role-opt .ro-s { font-size: 12.5px; color: var(--muted); }
.role-opt .ro-check { margin-left: auto; color: var(--ink); opacity: 0; }
.role-opt.is-on .ro-check { opacity: 1; }
.scen { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; text-align: left; transition: background var(--t1); font-size: 13.5px; }
.scen:hover { background: var(--bg); }
.scen .sc-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.scen .i { margin-left: auto; color: var(--faint); }
@media (max-width: 760px) { .demo-panel { left: 12px; bottom: calc(124px + env(safe-area-inset-bottom)); } body.app-layout .demo-panel { bottom: 64px; } }

/* ==========================================================================
   Modale, drawer, toast
   ========================================================================== */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11, 16, 22, .46); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--t2) var(--ease); display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay.is-open { opacity: 1; }
.modal { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 48px); background: #fff; border-radius: 24px; box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden; transform: translateY(14px) scale(.97); opacity: 0; transition: transform var(--t3) var(--ease-out), opacity var(--t2) var(--ease); }
.overlay.is-open .modal { transform: none; opacity: 1; }
.modal.m-lg { max-width: 760px; }
.modal.m-xl { max-width: 980px; }
.modal.m-sm { max-width: 440px; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.modal-x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex: none; margin-top: -4px; margin-right: -6px; transition: background var(--t1); }
.modal-x:hover { background: var(--bg-2); color: var(--ink); }
.modal-body { padding: 22px 24px; overflow: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--bg); }
@media (max-width: 760px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: none !important; border-radius: 24px 24px 0 0; max-height: 92vh; transform: translateY(40px); }
  .modal::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .modal-head { padding-top: 26px; }
  .modal-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
.drawer-ov { position: fixed; inset: 0; z-index: 200; background: rgba(11, 16, 22, .4); opacity: 0; transition: opacity var(--t2); }
.drawer-ov.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 201; width: 520px; max-width: 100vw; background: #fff; box-shadow: var(--sh-3); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--t3) var(--ease-out); }
.drawer.d-left { right: auto; left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; }
.drawer .modal-body { flex: 1; }

.toasts { position: fixed; z-index: 300; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: 420px; padding: 13px 14px 13px 16px; border-radius: 16px; background: var(--deep); color: #fff; box-shadow: 0 18px 44px -12px rgba(11, 16, 22, .55); font-size: 14px; transform: translateY(16px) scale(.97); opacity: 0; transition: transform var(--t3) var(--ease-out), opacity var(--t2); }
.toast.is-in { transform: none; opacity: 1; }
.toast .t-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; }
.toast.t-ok .t-ic { background: rgba(19, 121, 91, .9); }
.toast.t-accent .t-ic { background: var(--accent); }
.toast .t-body { flex: 1; min-width: 0; line-height: 1.4; }
.toast .t-body small { display: block; color: rgba(255, 255, 255, .6); font-size: 12.5px; margin-top: 1px; }
.toast .t-act { color: #fff; font-weight: 500; font-size: 13px; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.toast .t-act:hover { background: rgba(255, 255, 255, .18); }
@media (max-width: 760px) { .toasts { left: 12px; right: 12px; top: 12px; bottom: auto; align-items: stretch; } .toast { min-width: 0; max-width: none; transform: translateY(-16px); } }

/* Tooltip */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 6px 9px; border-radius: 8px; background: var(--deep); color: #fff; font-size: 12px; font-weight: 400; line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--t1), transform var(--t1); z-index: 50; letter-spacing: 0; text-transform: none; }
[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Animazioni d'ingresso e skeleton
   ========================================================================== */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(208, 17, 36, .45); } 100% { box-shadow: 0 0 0 12px rgba(208, 17, 36, 0); } }
@keyframes heart { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.skel { background: linear-gradient(90deg, var(--bg-2) 0, #F8F7F4 50%, var(--bg-2) 100%); background-size: 800px 100%; animation: shimmer 1.2s linear infinite; border-radius: 10px; }
.fade-up { animation: fadeUp .5s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* Transizioni tra pagine (View Transitions API) */
::view-transition-old(root) { animation: 160ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
::view-transition-group(boat-photo) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
::view-transition-old(boat-photo), ::view-transition-new(boat-photo) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: hidden; }

/* ==========================================================================
   Sezioni comuni
   ========================================================================== */
.section { padding: 96px 0 0; }
.section-sm { padding-top: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; font-weight: 600; }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 560px; font-size: 16px; }
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.032em; }
.page-head p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .i { width: 14px; height: 14px; color: var(--faint); }
.empty { text-align: center; padding: 64px 24px; }
.empty .e-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--bg-2); display: grid; place-items: center; margin: 0 auto 18px; color: var(--ink); }
.empty .e-ic .i { width: 26px; height: 26px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); margin: 8px auto 20px; max-width: 420px; }
@media (max-width: 760px) { .section { padding-top: 64px; } .sec-head { margin-bottom: 22px; } .sec-head p { font-size: 15px; } }

/* ==========================================================================
   Card barca
   ========================================================================== */
.grid-boats { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 36px 24px; }
.grid-boats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-boats.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .grid-boats.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .grid-boats.cols-3, .grid-boats.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-boats, .grid-boats.cols-3, .grid-boats.cols-4 { grid-template-columns: 1fr; gap: 28px; } }
.bc { position: relative; min-width: 0; }
.bc-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--bg-2); isolation: isolate; }
.bc-track { position: absolute; inset: 0; display: flex; transition: transform .5s var(--ease-out); }
.bc-track img { width: 100%; height: 100%; object-fit: cover; flex: none; }
.bc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .22), transparent 28%, transparent 70%, rgba(0, 0, 0, .18)); pointer-events: none; opacity: .9; }
.bc:hover .bc-track img:first-child { transform: none; }
.bc-badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 64px); }
.bc-fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform var(--t1) var(--ease), background var(--t1); }
.bc-fav:hover { background: rgba(0, 0, 0, .18); }
.bc-fav .i { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
.bc-fav.is-on .i { fill: var(--accent); stroke: #fff; animation: heart .45s var(--ease-out); }
.bc-nav { position: absolute; top: 50%; z-index: 3; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-2); opacity: 0; transition: opacity var(--t1), transform var(--t1); }
.bc-nav .i { width: 16px; height: 16px; }
.bc-nav.prev { left: 10px; } .bc-nav.next { right: 10px; }
.bc-nav:hover { transform: scale(1.06); }
.bc:hover .bc-nav { opacity: 1; }
.bc-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 5px; opacity: 0; transition: opacity var(--t1); }
.bc:hover .bc-dots { opacity: 1; }
.bc-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background var(--t1), transform var(--t1); }
.bc-dots span.on { background: #fff; transform: scale(1.15); }
.bc-body { padding: 14px 2px 0; }
.bc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.bc-meta .bc-loc { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.bc-meta .bc-loc .i { width: 14px; height: 14px; }
.bc-title { font-size: 17px; font-weight: 600; letter-spacing: -.018em; margin-top: 4px; color: var(--ink); }
.bc-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.bc-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.bc-specs li { display: inline-flex; align-items: center; gap: 5px; }
.bc-specs .i { width: 14px; height: 14px; color: var(--faint); }
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.bc-price { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bc-price s { display: block; font-size: 12.5px; color: var(--faint); font-weight: 400; letter-spacing: 0; margin-top: 1px; }
.bc-price small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.bc-dealer { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); position: relative; z-index: 2; max-width: 50%; }
.bc-dealer span.truncate { max-width: 120px; }
.bc-cmp { position: absolute; z-index: 3; left: 10px; bottom: 10px; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity var(--t1); color: var(--ink); }
.bc-cmp .i { width: 14px; height: 14px; }
.bc:hover .bc-cmp, .bc-cmp.is-on { opacity: 1; }
.bc-cmp.is-on { background: var(--ink); color: #fff; }
@media (hover: none) { .bc-nav, .bc-dots { display: none; } .bc-cmp { display: none; } }

/* variante riga (vista elenco) */
.list-boats { display: flex; flex-direction: column; gap: 16px; }
.br { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow var(--t2), border-color var(--t2); }
.br:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.br .bc-media { border-radius: 0; aspect-ratio: auto; min-height: 230px; }
.br .br-body { padding: 20px 24px; display: flex; flex-direction: column; min-width: 0; }
.br .br-top { display: flex; justify-content: space-between; gap: 16px; }
.br .bc-title { font-size: 20px; margin-top: 2px; }
.br .br-desc { margin-top: 10px; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.br .br-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: auto; padding-top: 16px; }
.br .br-specs div small { display: block; font-size: 12px; color: var(--muted); }
.br .br-specs div b { font-weight: 500; color: var(--ink); font-size: 14px; }
.br .bc-price { font-size: 22px; text-align: right; }
@media (max-width: 860px) { .br { grid-template-columns: 1fr; } .br .bc-media { aspect-ratio: 16 / 10; min-height: 0; } .br .br-specs { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; min-height: min(860px, 100svh); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #0A2A2C; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.06); animation: heroZoom 24s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 14, 16, .55) 0%, rgba(5, 14, 16, .1) 26%, rgba(5, 14, 16, .2) 55%, rgba(5, 14, 16, .8) 100%), linear-gradient(90deg, rgba(5, 14, 16, .72) 0%, rgba(5, 14, 16, .42) 38%, rgba(5, 14, 16, 0) 68%); }
.hero h1, .hero-sub { text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 80px); padding-bottom: 56px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.hero-eyebrow .live { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.hero-eyebrow .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.hero h1 { margin-top: 22px; max-width: 880px; color: #fff; font-size: clamp(42px, 6.4vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.02em; }
.hero-sub { margin-top: 22px; max-width: 560px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.hero-stats { position: absolute; right: var(--gutter); bottom: 64px; display: flex; gap: 36px; }
.hero-stats div b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: #fff; }
.hero-stats div span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* barra di ricerca */
.sbar { margin-top: 36px; max-width: 1040px; background: #fff; border-radius: 22px; padding: 8px; display: flex; align-items: stretch; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); color: var(--ink); position: relative; }
.sbar-f { position: relative; flex: 1; min-width: 0; padding: 10px 18px; border-radius: 15px; cursor: pointer; transition: background var(--t1); display: flex; flex-direction: column; justify-content: center; }
.sbar-f:hover { background: var(--bg); }
.sbar-f + .sbar-f::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.sbar-f:hover::before, .sbar-f:hover + .sbar-f::before { opacity: 0; }
.sbar-f label { font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: .01em; cursor: pointer; }
.sbar-f .sbar-v { font-size: 14.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar-f .sbar-v.has { color: var(--ink); }
.sbar-f input { border: 0; outline: 0; padding: 0; margin-top: 2px; font-size: 14.5px; background: transparent; width: 100%; color: var(--ink); }
.sbar-f input::placeholder { color: var(--muted); }
.sbar-f.f-q { flex: 1.5; }
.sbar-go { flex: none; height: auto; min-height: 60px; padding: 0 26px; border-radius: 15px; font-size: 15px; }
.sbar-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; background: #fff; border-radius: 20px; box-shadow: var(--sh-pop); padding: 10px; min-width: 300px; color: var(--ink-2); animation: fadeUp .22s var(--ease-out); cursor: default; }
.sbar-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; font-size: 14.5px; transition: background var(--t1); }
.sbar-opt:hover, .sbar-opt.is-on { background: var(--bg-2); }
.sbar-opt img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.sbar-opt .so-t { font-weight: 500; color: var(--ink); }
.sbar-opt .so-s { font-size: 12.5px; color: var(--muted); }
.sbar-opt .ro-check { margin-left: auto; opacity: 0; }
.sbar-opt.is-on .ro-check { opacity: 1; }
.hero-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-chips .lbl { font-size: 13px; color: rgba(255, 255, 255, .7); margin-right: 4px; }
.hero-chips button { height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 13.5px; backdrop-filter: blur(10px); transition: background var(--t1), border-color var(--t1); display: inline-flex; align-items: center; gap: 6px; }
.hero-chips button:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .35); }
.hero-chips button .i { width: 14px; height: 14px; }
.ai-suggest { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.ai-suggest .i { width: 16px; height: 16px; color: #FFD27A; }
.ai-suggest button { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.ai-suggest button:hover { text-decoration-color: #fff; }
@media (max-width: 960px) {
  .hero-stats { display: none; }
  .sbar { flex-direction: column; border-radius: 20px; padding: 8px; }
  .sbar-f { padding: 12px 14px; }
  .sbar-f + .sbar-f::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
  .sbar-go { min-height: 52px; margin-top: 6px; }
  .sbar-pop { left: 8px; right: 8px; min-width: 0; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 36px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 16px; margin-top: 16px; }
  .sbar .sbar-f.f-hide-m { display: none; }
  .hero-chips .lbl { display: none; }
}

/* categorie */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease-out); }
.cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(5, 10, 14, .78)); }
.cat:hover img { transform: scale(1.06); }
.cat .cat-b { padding: 20px; width: 100%; }
.cat h3 { color: #fff; font-size: 19px; letter-spacing: -.02em; }
.cat p { font-size: 13px; color: rgba(255, 255, 255, .78); margin-top: 4px; }
.cat .cat-n { position: absolute; top: 16px; left: 16px; }
.cat .cat-go { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); display: grid; place-items: center; transform: rotate(-45deg); transition: transform var(--t2) var(--ease-out), background var(--t2); }
.cat:hover .cat-go { transform: none; background: #fff; color: var(--ink); }
@media (max-width: 1080px) { .cats { grid-template-columns: repeat(5, 240px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; } .cats::-webkit-scrollbar { display: none; } .cat { scroll-snap-align: start; } }
@media (max-width: 600px) { .cats { grid-template-columns: repeat(5, 70vw); } .cat { aspect-ratio: 4 / 5; } }

/* carosello orizzontale */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1180px) { .rail { grid-auto-columns: calc((100% - 48px) / 3); } }
@media (max-width: 860px) { .rail { grid-auto-columns: 46%; } }
@media (max-width: 600px) { .rail { grid-auto-columns: 84%; gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); } }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: #fff; transition: all var(--t1); }
.rail-ctrl button:hover { border-color: var(--ink); }
@media (max-width: 600px) { .rail-ctrl { display: none; } }

/* striscia fiducia */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > div { padding: 28px 28px 28px 0; display: flex; gap: 14px; }
.trust > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.trust .t-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.trust h4 { font-size: 15px; letter-spacing: -.01em; }
.trust p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } .trust > div:nth-child(3) { padding-left: 0; border-left: 0; } .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .trust { grid-template-columns: 1fr; } .trust > div { padding: 20px 0 !important; border-left: 0 !important; } .trust > div + div { border-top: 1px solid var(--line); } }

/* regioni */
.regions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.reg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.reg-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink); transition: padding var(--t2) var(--ease-out), color var(--t1); }
.reg-list a span { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.reg-list a:hover { padding-left: 6px; }
.reg-map { position: relative; border-radius: 28px; overflow: hidden; background: var(--bg-2); aspect-ratio: 1 / 1; }
@media (max-width: 960px) { .regions { grid-template-columns: 1fr; } .reg-map { aspect-ratio: 4 / 3; } }

/* sezione concessionari (scura) */
.dealer-cta { position: relative; border-radius: 32px; overflow: hidden; background: var(--deep); color: rgba(255, 255, 255, .72); padding: 72px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; isolation: isolate; }
.dealer-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 0% 0%, rgba(208, 17, 36, .2), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(18, 52, 59, .7), transparent 70%); }
.dealer-cta h2 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.035em; font-weight: 500; line-height: 1.05; }
.dealer-cta p.lead { margin-top: 18px; font-size: 16.5px; line-height: 1.6; }
.dealer-cta ul.feat { margin-top: 28px; display: grid; gap: 12px; }
.dealer-cta ul.feat li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, .86); }
.dealer-cta ul.feat .i { color: #fff; margin-top: 2px; background: rgba(255, 255, 255, .1); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.dealer-cta .mock { position: relative; border-radius: 20px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; color: var(--ink-2); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--ease-out); }
.dealer-cta:hover .mock { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
@media (max-width: 1080px) { .dealer-cta { grid-template-columns: 1fr; padding: 48px 32px; } .dealer-cta .mock { transform: none !important; } }
@media (max-width: 600px) { .dealer-cta { padding: 36px 20px; border-radius: 24px; margin: 0 calc(var(--gutter) * -1 + 8px); } }

/* recensioni / numeri */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers div b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.numbers div span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

/* ==========================================================================
   RICERCA
   ========================================================================== */
.search-top { position: sticky; top: var(--header-h); z-index: 40; background: rgba(250, 250, 247, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.search-top .wrap { display: flex; align-items: center; gap: 12px; height: 72px; }
.nlq { flex: 1; max-width: 640px; position: relative; display: flex; align-items: center; }
.nlq .i { position: absolute; left: 16px; color: var(--muted); }
.nlq input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; padding: 0 130px 0 46px; font-size: 15px; transition: border-color var(--t1), box-shadow var(--t1); }
.nlq input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13, 17, 23, .07); }
.nlq .nlq-ai { position: absolute; right: 6px; height: 36px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--bg-2); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.nlq .nlq-ai .i { position: static; width: 15px; height: 15px; color: var(--accent); }
.search-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding-top: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 72px + 20px); max-height: calc(100vh - var(--header-h) - 112px); overflow: auto; padding-right: 8px; margin-right: -8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
.fgroup { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-child { padding-top: 4px; }
.fgroup > h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.fgroup > h4 button { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.fgroup > h4 button:hover { color: var(--ink); }
.fgroup .check + .check { margin-top: 11px; }
.ftypes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ftype { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; text-align: left; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all var(--t1); }
.ftype img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; filter: saturate(.85); transition: filter var(--t1); }
.ftype span { padding: 0 2px 2px; display: flex; justify-content: space-between; }
.ftype span em { font-style: normal; color: var(--faint); font-weight: 400; }
.ftype:hover { border-color: #B9B4AA; }
.ftype.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.ftype.is-on img { filter: none; }
.histo { display: flex; align-items: flex-end; gap: 2px; height: 48px; margin: 0 9px; }
.histo span { flex: 1; background: var(--line-2); border-radius: 2px 2px 0 0; min-height: 2px; transition: background var(--t1), height var(--t2) var(--ease-out); }
.histo span.in { background: var(--ink); }
.range { position: relative; height: 28px; margin: 0 9px; }
.range .r-track { position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 3px; background: var(--line-2); }
.range .r-fill { position: absolute; top: 13px; height: 3px; border-radius: 3px; background: var(--ink); }
.range input { position: absolute; left: -9px; right: -9px; width: calc(100% + 18px); top: 0; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(13, 17, 23, .18); cursor: grab; transition: transform var(--t1); }
.range input::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); }
.range input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(13, 17, 23, .18); cursor: grab; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-moz-range-track { background: none; }
.range-vals { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 12px; }
.range-vals .input { height: 40px; font-size: 13.5px; padding: 0 10px; }
.range-vals .sep { color: var(--faint); }
.minis { display: flex; gap: 6px; flex-wrap: wrap; }
.minis button { height: 34px; min-width: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; background: #fff; transition: all var(--t1); }
.minis button:hover { border-color: #B9B4AA; }
.minis button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head h1 { font-size: 22px; letter-spacing: -.025em; }
.results-head h1 span { color: var(--muted); font-weight: 400; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center; }
.nl-understood { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, #FFF8EC, #FDF1F2); margin-bottom: 20px; font-size: 13.5px; animation: fadeUp .4s var(--ease-out); }
.nl-understood .i { color: var(--accent); }
.nl-understood b { font-weight: 600; color: var(--ink); }
.results-grid { transition: opacity var(--t2); }
.results-grid.is-loading { opacity: .35; }
.mfilters-btn { display: none; }
.save-search { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--deep); color: rgba(255, 255, 255, .75); margin-top: 48px; }
.save-search h4 { color: #fff; font-size: 16px; }
.save-search .ss-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; flex: none; }
@media (max-width: 1080px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .mfilters-btn { display: inline-flex; }
}
@media (max-width: 760px) {
  .search-top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nlq { max-width: none; flex-basis: 100%; }
  .nlq input { height: 46px; padding-right: 16px; }
  .nlq .nlq-ai { display: none; }
  .results-head h1 { font-size: 18px; }
  .save-search { flex-direction: column; align-items: flex-start; }
}
.mfilters { padding: 0 20px 20px; }

/* mappa */
.map-wrap { height: calc(100vh - var(--header-h) - 72px - 140px); min-height: 520px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #E9E7E1; position: relative; }
.map-wrap .leaflet-container { width: 100%; height: 100%; font-family: var(--font); background: #EFEDE7; }
.price-pin { background: #fff; color: var(--ink); font-weight: 600; font-size: 12.5px; padding: 0 10px; height: 28px; line-height: 28px; border-radius: 999px; box-shadow: 0 4px 12px -2px rgba(13, 17, 23, .3), 0 0 0 1px rgba(13, 17, 23, .08); white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; transition: transform var(--t1), background var(--t1), color var(--t1); font-variant-numeric: tabular-nums; }
.price-pin:hover, .price-pin.is-on { background: var(--ink); color: #fff; transform: translate(-50%, -50%) scale(1.08); z-index: 1000; }
.price-pin.cluster { background: var(--ink); color: #fff; }
.leaflet-div-icon.pin-wrap { background: none; border: 0; }
.leaflet-popup-content-wrapper { border-radius: 18px !important; padding: 0 !important; overflow: hidden; box-shadow: var(--sh-pop) !important; }
.leaflet-popup-content { margin: 0 !important; width: 260px !important; }
.leaflet-popup-tip { display: none; }
.map-card img { width: 100%; height: 150px; object-fit: cover; }
.map-card .mc-b { padding: 12px 14px 14px; }
.map-card .mc-b b { display: block; font-size: 15px; color: var(--ink); }
.map-card .mc-b span { font-size: 12.5px; color: var(--muted); }
.map-card .mc-b .bc-price { font-size: 16px; margin-top: 6px; }

/* ==========================================================================
   SCHEDA BARCA
   ========================================================================== */
.boat-head { padding: 22px 0 18px; }
.boat-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 14px; }
.boat-title h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.038em; font-weight: 600; line-height: 1.02; }
.boat-title .bt-sub { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 14.5px; }
.boat-title .bt-sub span { display: inline-flex; align-items: center; gap: 6px; }
.boat-title .bt-sub .i { width: 15px; height: 15px; }
.boat-actions { display: flex; gap: 8px; flex: none; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(620px, 62vh); min-height: 420px; border-radius: 26px; overflow: hidden; position: relative; }
.gallery button { position: relative; overflow: hidden; background: var(--bg-2); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter var(--t2); }
.gallery button:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery .g-main { grid-row: 1 / 3; }
.gallery .g-more { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.gallery .g-badges { position: absolute; left: 18px; top: 18px; z-index: 2; display: flex; gap: 8px; }
.mgallery { display: none; }
@media (max-width: 860px) {
  .gallery { display: none; }
  .mgallery { display: block; position: relative; margin: 0 calc(var(--gutter) * -1); }
  .mgallery .mg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mgallery .mg-track::-webkit-scrollbar { display: none; }
  .mgallery img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; }
  .mgallery .mg-count { position: absolute; right: 14px; bottom: 14px; }
  .mgallery .g-badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
  .boat-title { flex-direction: column; align-items: flex-start; }
}
.boat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; margin-top: 40px; align-items: start; }
@media (max-width: 1080px) { .boat-layout { grid-template-columns: 1fr; gap: 0; } }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.keyfacts > div { padding: 18px 20px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.keyfacts > div:nth-child(3n) { border-right: 0; }
.keyfacts > div:nth-last-child(-n+3) { border-bottom: 0; }
.keyfacts .kf-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.keyfacts small { display: block; font-size: 12.5px; color: var(--muted); }
.keyfacts b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 600px) { .keyfacts { grid-template-columns: 1fr 1fr; } .keyfacts > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; padding: 14px; } .keyfacts > div:nth-child(2n) { border-right: 0 !important; } .keyfacts > div:nth-last-child(-n+2) { border-bottom: 0 !important; } .keyfacts .kf-ic { display: none; } }
.bsec { padding: 44px 0; border-bottom: 1px solid var(--line); }
.bsec:last-child { border-bottom: 0; }
.bsec > h2 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 18px; }
.bdesc { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 720px; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.highlights div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.highlights .i { color: var(--ok); }
@media (max-width: 600px) { .highlights { grid-template-columns: 1fr; } }
.spec-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.spec-grid .sg-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-grid .sg-row span { color: var(--muted); }
.spec-grid .sg-row b { font-weight: 500; color: var(--ink); text-align: right; }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr; } }
.equip-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.equip-groups h4 { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.equip-groups li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--ink); }
.equip-groups li .i { width: 16px; height: 16px; color: var(--ok); }
@media (max-width: 600px) { .equip-groups { grid-template-columns: 1fr; } }
.engine-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.engine-card > div { background: #fff; padding: 18px; }
.engine-card small { display: block; font-size: 12.5px; color: var(--muted); }
.engine-card b { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 760px) { .engine-card { grid-template-columns: 1fr 1fr; } }
.loc-map { height: 320px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.loc-map .leaflet-container { height: 100%; font-family: var(--font); }

/* pannello prezzo */
.buybox { position: sticky; top: calc(var(--header-h) + 24px); }
.buybox .bb-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--sh-2); }
.buybox .bb-price { font-size: 36px; font-weight: 600; letter-spacing: -.035em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.buybox .bb-was { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.buybox .bb-was s { color: var(--faint); }
.buybox .bb-fin { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); font-size: 13.5px; transition: background var(--t1); width: 100%; text-align: left; }
.buybox .bb-fin:hover { background: var(--bg-3); }
.buybox .bb-fin b { color: var(--ink); font-weight: 600; }
.buybox .bb-ctas { display: grid; gap: 10px; margin-top: 20px; }
.buybox .bb-ctas-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buybox .bb-pdf { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 16px; border: 1px dashed var(--line-2); transition: border-color var(--t1), background var(--t1); width: 100%; text-align: left; }
.buybox .bb-pdf:hover { border-color: var(--ink); background: var(--bg); }
.buybox .bb-pdf .pdf-ic { width: 40px; height: 48px; border-radius: 7px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; position: relative; }
.buybox .bb-pdf b { display: block; font-size: 14px; color: var(--ink); font-weight: 500; }
.buybox .bb-pdf small { font-size: 12.5px; color: var(--muted); }
.buybox .bb-dealer { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.buybox .bb-trust { margin-top: 14px; display: grid; gap: 10px; font-size: 13px; color: var(--muted); padding: 0 6px; }
.buybox .bb-trust div { display: flex; gap: 10px; align-items: flex-start; }
.buybox .bb-trust .i { width: 16px; height: 16px; color: var(--ok); margin-top: 1px; }
.mbuy { display: none; }
@media (max-width: 1080px) {
  .buybox { position: static; margin-top: 32px; }
  .mbuy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; align-items: center; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform var(--t3) var(--ease-out); }
  .mbuy.is-in { transform: none; }
  .mbuy .mb-p { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
  .mbuy .mb-p small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
}
.decl-badge { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ok-tint); color: #0F5E47; font-size: 13.5px; line-height: 1.45; margin-top: 16px; }
.decl-badge .i { color: var(--ok); margin-top: 1px; }
.decl-badge b { color: #0A4A38; font-weight: 600; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 250; background: rgba(8, 10, 13, .97); color: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity var(--t2); }
.lb.is-open { opacity: 1; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.lb-top button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); }
.lb-top button:hover { background: rgba(255, 255, 255, .16); }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 80px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; animation: fadeIn .3s var(--ease); }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background var(--t1); }
.lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 16px; overflow-x: auto; }
.lb-thumbs button { width: 84px; height: 58px; border-radius: 8px; overflow: hidden; opacity: .45; flex: none; transition: opacity var(--t1), box-shadow var(--t1); }
.lb-thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .lb-stage { padding: 0; } .lb-nav { display: none; } .lb-thumbs button { width: 60px; height: 44px; } }

/* modale richiesta: successo */
.req-boat { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg-2); }
.req-boat img { width: 84px; height: 62px; border-radius: 10px; object-fit: cover; }
.req-boat b { display: block; color: var(--ink); font-size: 15px; }
.req-boat span { font-size: 13px; color: var(--muted); }
.req-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.req-type { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; text-align: left; transition: all var(--t1); background: #fff; }
.req-type .i { color: var(--muted); }
.req-type:hover { border-color: #B9B4AA; }
.req-type.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.req-type.is-on .i { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.success { text-align: center; padding: 12px 6px 4px; }
.success .s-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto; animation: pop .55s var(--ease-out) both; box-shadow: 0 0 0 10px var(--ok-tint); }
.success .s-ic .i { width: 34px; height: 34px; stroke-width: 2.5; }
.success h3 { margin-top: 22px; font-size: 22px; letter-spacing: -.025em; }
.success p { color: var(--muted); margin-top: 8px; }
.flow { margin: 26px 0 6px; text-align: left; display: grid; gap: 0; }
.flow-step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; opacity: .25; transition: opacity .4s var(--ease); }
.flow-step.done { opacity: 1; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.flow-step:last-child::before { display: none; }
.flow-step .fs-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; flex: none; transition: background var(--t2), color var(--t2); }
.flow-step.done .fs-ic { background: var(--ink); color: #fff; }
.flow-step .fs-ic .i { width: 16px; height: 16px; }
.flow-step b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.flow-step span { font-size: 13px; color: var(--muted); }
.demo-hint { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px dashed #E7B2B8; background: #FFF8F8; text-align: left; margin-top: 20px; width: 100%; transition: background var(--t1); }
.demo-hint:hover { background: var(--accent-tint); }
.demo-hint .dh-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; background: var(--accent); color: #fff; flex: none; }
.demo-hint b { display: block; font-size: 14px; color: var(--ink); font-weight: 500; }
.demo-hint span { font-size: 12.5px; color: var(--muted); }
.demo-hint .i { margin-left: auto; color: var(--accent); }

/* confronto */
.cmp-bar { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 20px; background: #fff; box-shadow: var(--sh-pop); transition: transform var(--t3) var(--ease-out); }
.cmp-bar.is-in { transform: translate(-50%, 0); }
.cmp-bar .cb-thumbs { display: flex; gap: 6px; }
.cmp-bar .cb-thumbs img, .cmp-bar .cb-thumbs span { width: 46px; height: 34px; border-radius: 8px; object-fit: cover; }
.cmp-bar .cb-thumbs span { border: 1.5px dashed var(--line-2); }
@media (max-width: 760px) { .cmp-bar { bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; right: 12px; transform: translateY(160%); } .cmp-bar.is-in { transform: none; } }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14.5px; }
.cmp-table th { width: 200px; color: var(--muted); font-weight: 400; font-size: 13.5px; }
.cmp-table td b { color: var(--ink); font-weight: 500; }
.cmp-table td.best b { color: var(--ok); }
.cmp-table thead td { border-bottom: 0; }
.cmp-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.cmp-head h3 { font-size: 17px; margin-top: 12px; }
.cmp-scroll { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.cmp-scroll table { min-width: 760px; }

/* concessionari */
.dealer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .dealer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dealer-grid { grid-template-columns: 1fr; } }
.dcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: box-shadow var(--t2), transform var(--t2) var(--ease-out); }
.dcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.dcard .dc-cover { height: 150px; position: relative; }
.dcard .dc-cover img { width: 100%; height: 100%; object-fit: cover; }
.dcard .dc-b { padding: 0 22px 22px; }
.dcard .dlogo { margin-top: -28px; box-shadow: 0 0 0 4px #fff; position: relative; }
.dcard h3 { font-size: 18px; margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.dcard h3 a::after { content: ''; position: absolute; inset: 0; }
.dcard .dc-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.dcard .dc-foot { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.dealer-hero { position: relative; height: 320px; border-radius: 0 0 32px 32px; overflow: hidden; }
.dealer-hero img { width: 100%; height: 100%; object-fit: cover; }
.dealer-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45)); }
.dealer-id { position: relative; z-index: 2; margin-top: -64px; display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.dealer-id .dlogo { box-shadow: 0 0 0 6px var(--bg); }
.dealer-id h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; }
.dealer-info { display: grid; grid-template-columns: 1fr 360px; gap: 48px; margin-top: 32px; }
@media (max-width: 960px) { .dealer-info { grid-template-columns: 1fr; } }

/* login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-media { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.auth-media::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(5, 12, 16, .35), rgba(5, 12, 16, .7)); }
.auth-media > * { position: relative; z-index: 1; }
.auth-media blockquote { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; max-width: 520px; color: #fff; font-weight: 500; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 32px; letter-spacing: -.035em; }
.role-cards { display: grid; gap: 10px; }
.role-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; text-align: left; transition: all var(--t2) var(--ease-out); width: 100%; }
.role-card:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--sh-2); }
.role-card .rc-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); flex: none; }
.role-card b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.role-card span { font-size: 12.5px; color: var(--muted); }
.role-card .i-go { margin-left: auto; color: var(--faint); transition: transform var(--t2), color var(--t2); }
.role-card:hover .i-go { transform: translateX(3px); color: var(--ink); }
.or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 12.5px; margin: 24px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-media { display: none; } }

/* pagina vendi / piani */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.pop { background: var(--deep); color: rgba(255, 255, 255, .72); border-color: var(--deep); }
.plan.pop h3, .plan.pop .p-price b { color: #fff; }
.plan h3 { font-size: 20px; }
.plan .p-price { margin-top: 18px; font-size: 14px; }
.plan .p-price b { font-size: 46px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); }
.plan ul { margin: 22px 0 28px; display: grid; gap: 12px; font-size: 14.5px; }
.plan ul li { display: flex; gap: 10px; }
.plan ul .i { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.plan.pop ul .i { color: #6EE7B7; }
.plan .btn { margin-top: auto; }
.plan .p-badge { position: absolute; top: 22px; right: 22px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: st; }
.steps > div { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.steps .st-n { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 600; color: var(--ink); font-size: 14px; }
.steps h4 { margin-top: 18px; font-size: 16px; }
.steps p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   APP SHELL (concessionario / amministratore)
   ========================================================================== */
body.app-layout { background: #F6F5F1; }
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #FBFBF9; border-right: 1px solid var(--line); padding: 18px 14px; overflow: auto; }
.side .brand { padding: 4px 8px 18px; }
.side .brand img { height: 22px; }
.org { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin-bottom: 18px; text-align: left; width: 100%; transition: box-shadow var(--t1); }
.org:hover { box-shadow: var(--sh-1); }
.org b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.org span { font-size: 12px; color: var(--muted); }
.side-nav { display: grid; gap: 2px; }
.side-nav .sn-label { padding: 16px 10px 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.side-nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background var(--t1), color var(--t1); position: relative; }
.side-nav a .i { color: var(--muted); transition: color var(--t1); }
.side-nav a:hover { background: rgba(13, 17, 23, .045); color: var(--ink); }
.side-nav a.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.side-nav a.is-active .i { color: var(--ink); }
.side-nav a .badge-count { margin-left: auto; }
.side-nav a .lock { margin-left: auto; width: 15px; height: 15px; color: var(--faint); }
.side-nav a.is-locked { color: var(--faint); }
.side-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; transition: background var(--t1); width: 100%; text-align: left; }
.side-user:hover { background: rgba(13, 17, 23, .045); }
.side-user b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.side-user span { display: block; font-size: 12px; color: var(--muted); }
.side-promo { padding: 16px; border-radius: 16px; background: var(--deep); color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.5; }
.side-promo b { color: #fff; display: block; font-size: 14px; margin-bottom: 4px; }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: rgba(246, 245, 241, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .tb-search { flex: 1; max-width: 420px; position: relative; }
.topbar .tb-search .i { position: absolute; left: 13px; top: 50%; margin-top: -9px; color: var(--faint); }
.topbar .tb-search input { width: 100%; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: #fff; padding: 0 60px 0 40px; font-size: 14px; }
.topbar .tb-search input:focus { outline: 0; border-color: var(--ink); }
.topbar .tb-search .kbd { position: absolute; right: 10px; top: 50%; margin-top: -10px; }
.topbar .tb-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar .hdr-icon .badge-count { box-shadow: 0 0 0 2px #F6F5F1; }
.topbar .tb-burger { display: none; }
.app-content { padding: 32px; max-width: 1440px; width: 100%; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.app-head h1 { font-size: 28px; letter-spacing: -.032em; }
.app-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.app-head .ah-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 150; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform var(--t3) var(--ease-out); box-shadow: var(--sh-3); }
  .side.is-open { transform: none; }
  .topbar .tb-burger { display: grid; }
  .side-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(11, 16, 22, .35); opacity: 0; pointer-events: none; transition: opacity var(--t2); }
  .side-scrim.is-open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar .tb-search { display: none; }
  .app-content { padding: 20px 14px 96px; }
  .app-head h1 { font-size: 24px; }
}

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; position: relative; overflow: hidden; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .k-label { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .k-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink); }
.kpi .k-ic .i { width: 17px; height: 17px; }
.kpi .k-val { font-size: 32px; font-weight: 600; letter-spacing: -.035em; color: var(--ink); margin-top: 14px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .k-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12.5px; color: var(--ok); }
.delta.down { color: var(--accent); }
.delta .i { width: 14px; height: 14px; }
.kpi .k-spark { position: absolute; right: 16px; bottom: 16px; width: 96px; height: 34px; }
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kpis { gap: 10px; } .kpi { padding: 16px; } .kpi .k-val { font-size: 26px; } .kpi .k-spark { display: none; } }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 1180px) { .dash-grid, .dash-grid-3 { grid-template-columns: 1fr; } }
.chart { width: 100%; height: 260px; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11.5px; fill: var(--faint); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-tip { position: absolute; pointer-events: none; z-index: 10; background: var(--deep); color: #fff; border-radius: 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.5; opacity: 0; transform: translate(-50%, -110%); transition: opacity var(--t1); white-space: nowrap; }
.chart-tip.is-on { opacity: 1; }
.chart-tip b { font-weight: 600; }

/* tabelle */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FCFCFA; position: sticky; top: 0; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t1); }
.tbl tbody tr:hover { background: #FCFBF8; }
.tbl tbody tr.is-hl { animation: rowhl 2.4s var(--ease); }
@keyframes rowhl { 0%, 40% { background: #FFF6E0; } 100% { background: transparent; } }
.tbl .t-boat { display: flex; align-items: center; gap: 14px; min-width: 260px; }
.tbl .t-boat img { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-2); }
.tbl .t-boat b { display: block; color: var(--ink); font-weight: 500; font-size: 14.5px; }
.tbl .t-boat span { font-size: 12.5px; color: var(--muted); }
.tbl .t-actions { display: flex; gap: 4px; justify-content: flex-end; }
.tbl .t-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--muted); transition: background var(--t1), color var(--t1); }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn.is-on { color: #D99A1E; }
.icon-btn.is-on .i { fill: #F2B53A; stroke: #D99A1E; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs-line { display: flex; gap: 22px; border-bottom: 1px solid var(--line); padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs-line::-webkit-scrollbar { display: none; }
.tabs-line button { height: 48px; font-size: 14px; font-weight: 500; color: var(--muted); position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tabs-line button:hover { color: var(--ink); }
.tabs-line button.is-on { color: var(--ink); }
.tabs-line button.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.tabs-line button .cnt { font-size: 12px; color: var(--faint); font-weight: 500; }
.mobile-cards { display: none; }
@media (max-width: 860px) {
  .tbl-wrap.mc { display: none; }
  .mobile-cards { display: grid; gap: 1px; background: var(--line); }
  .mobile-cards > * { background: #fff; padding: 14px 16px; }
}

/* liste semplici */
.list-plain > * { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.list-plain > *:last-child { border-bottom: 0; }
.list-plain a:hover, .list-plain button:hover { background: #FCFBF8; }
.list-plain .lp-t { font-size: 14px; color: var(--ink); font-weight: 500; }
.list-plain .lp-s { font-size: 12.5px; color: var(--muted); }

/* inbox richieste */
.inbox { display: grid; grid-template-columns: 380px 1fr; height: calc(100vh - 68px - 32px - 88px - 32px); min-height: 560px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inbox-list .il-scroll { overflow: auto; flex: 1; }
.ireq { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; position: relative; transition: background var(--t1); }
.ireq:hover { background: #FCFBF8; }
.ireq.is-on { background: var(--bg-2); }
.ireq.unread::before { content: ''; position: absolute; left: 6px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ireq.unread .ir-name { font-weight: 600; }
.ireq.is-new { animation: newreq 2.6s var(--ease); }
@keyframes newreq { 0%, 30% { background: #FFF2D6; } 100% { background: transparent; } }
.ireq .ir-name { font-size: 14px; color: var(--ink); font-weight: 500; }
.ireq .ir-boat { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.ireq .ir-msg { font-size: 13px; color: var(--ink-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.ireq .ir-time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.ireq img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.inbox-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.id-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.id-body { flex: 1; overflow: auto; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 86%; padding: 14px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; }
.bubble small { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }
.bubble.client { background: var(--bg-2); border-top-left-radius: 6px; color: var(--ink); }
.bubble.dealer { align-self: flex-end; background: var(--ink); color: #fff; border-top-right-radius: 6px; }
.bubble.dealer small { color: rgba(255, 255, 255, .55); }
.bubble.system { align-self: center; background: transparent; color: var(--muted); font-size: 12.5px; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.reply { border-top: 1px solid var(--line); padding: 14px 18px; }
.reply textarea { width: 100%; border: 0; resize: none; min-height: 64px; outline: 0; font-size: 14.5px; line-height: 1.5; }
.reply .rp-tpl { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.reply .rp-tpl button { height: 28px; padding: 0 10px; border-radius: 999px; background: var(--bg-2); font-size: 12.5px; color: var(--ink-2); }
.reply .rp-tpl button:hover { background: var(--bg-3); }
.side-info { display: grid; gap: 16px; }
.side-info .si-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.side-info .si-card h5 { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.side-info dl { margin: 0; display: grid; gap: 10px; font-size: 13.5px; }
.side-info dt { color: var(--muted); font-size: 12px; }
.side-info dd { margin: 0; color: var(--ink); word-break: break-word; }
.timeline { display: grid; gap: 0; }
.timeline .tl { display: flex; gap: 12px; padding-bottom: 14px; position: relative; font-size: 13px; }
.timeline .tl::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline .tl:last-child::before { display: none; }
.timeline .tl i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); margin-top: 4px; flex: none; position: relative; z-index: 1; }
.timeline .tl.on i { background: var(--ink); }
.timeline .tl b { display: block; color: var(--ink); font-weight: 500; }
.timeline .tl span { color: var(--muted); font-size: 12px; }
@media (max-width: 1280px) { .id-body { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .inbox { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .inbox.show-detail .inbox-list { display: none; }
  .inbox:not(.show-detail) .inbox-detail { display: none; }
  .id-body { padding: 18px; }
}

/* editor annuncio */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 1180px) { .editor { grid-template-columns: 1fr; } .editor-preview { display: none; } }
.stepper { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper button { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: left; transition: all var(--t1); }
.stepper button .st-n { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); flex: none; transition: all var(--t2); }
.stepper button b { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.stepper button small { font-size: 12px; color: var(--muted); }
.stepper button.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stepper button.is-on .st-n { background: var(--ink); color: #fff; }
.stepper button.is-done .st-n { background: var(--ok); color: #fff; }
.ed-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.ed-card .ed-b { padding: 28px; }
.ed-card .ed-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--line); background: #FCFCFA; border-radius: 0 0 22px 22px; }
.ed-card h2 { font-size: 20px; letter-spacing: -.02em; }
.ed-card .ed-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.fg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fg-2 { grid-template-columns: repeat(2, 1fr); }
.fg-4 { grid-template-columns: repeat(4, 1fr); }
.fg .full { grid-column: 1 / -1; }
.fg .span2 { grid-column: span 2; }
@media (max-width: 760px) { .fg, .fg-2, .fg-4 { grid-template-columns: 1fr 1fr; } .fg .span2 { grid-column: 1 / -1; } .ed-card .ed-b { padding: 20px; } .ed-card .ed-f { padding: 14px 20px; } }
.ed-section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
.ed-section h3 { font-size: 15px; margin-bottom: 14px; }
.cat-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat-pick button { border-radius: 16px; border: 1px solid var(--line-2); padding: 8px 8px 12px; text-align: left; font-size: 13.5px; font-weight: 500; transition: all var(--t1); background: #fff; }
.cat-pick button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.cat-pick button:hover { border-color: #B9B4AA; }
.cat-pick button.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 760px) { .cat-pick { grid-template-columns: repeat(2, 1fr); } }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 20px; padding: 36px 24px; text-align: center; transition: all var(--t2); background: #FCFCFA; }
.dropzone.is-over { border-color: var(--ink); background: var(--bg-2); }
.dropzone .dz-ic { width: 56px; height: 56px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 14px; color: var(--ink); }
.photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.ph { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--bg-2); cursor: grab; transition: transform var(--t2) var(--ease-out), box-shadow var(--t2), opacity var(--t2); animation: fadeUp .35s var(--ease-out) both; }
.ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ph.is-drag { opacity: .4; }
.ph.is-target { box-shadow: 0 0 0 2px var(--ink); transform: scale(.97); }
.ph .ph-cover { position: absolute; left: 8px; top: 8px; }
.ph .ph-act { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity var(--t1); }
.ph:hover .ph-act { opacity: 1; }
.ph .ph-act button { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: var(--ink); }
.ph .ph-act .i { width: 15px; height: 15px; }
.ph .ph-grip { position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 8px; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity var(--t1); }
.ph:hover .ph-grip { opacity: 1; }
.ph .ph-grip .i { width: 14px; height: 14px; }
.ph .ph-load { position: absolute; inset: 0; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
@media (max-width: 760px) { .photos-grid { grid-template-columns: repeat(2, 1fr); } .ph .ph-act { opacity: 1; } }
.eq-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
@media (max-width: 760px) { .eq-pick { grid-template-columns: 1fr; } }
.ai-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: linear-gradient(90deg, #FFF4E5, #FDECEE); color: var(--ink); font-size: 13px; font-weight: 500; border: 1px solid #F4D9C8; transition: transform var(--t1); }
.ai-btn:hover { transform: translateY(-1px); }
.ai-btn .i { width: 15px; height: 15px; color: var(--accent); }
.typing::after { content: '▍'; animation: blink 1s steps(1) infinite; margin-left: 1px; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.price-box { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row .pr-t { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.price-row .pr-s { font-size: 13px; color: var(--muted); margin-top: 2px; max-width: 520px; }
.comm-panel { padding: 0 20px 20px; display: grid; gap: 16px; animation: fadeUp .35s var(--ease-out); }
.breakdown { border-radius: 14px; background: var(--bg-2); padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown div span { color: var(--muted); }
.breakdown div b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.breakdown .bd-total { padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line-2); }
.breakdown .bd-total b { font-size: 18px; font-weight: 600; }
.decl-ok { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--ok-tint); font-size: 13.5px; color: #0F5E47; }
.decl-ok .i { color: var(--ok); }
.decl-ok b { color: #0A4A38; }
.decl-ok button { margin-left: auto; font-size: 13px; font-weight: 500; color: #0F5E47; text-decoration: underline; text-underline-offset: 3px; }
.decl-doc { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #FCFCFA; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); max-height: 200px; overflow: auto; }
.decl-doc h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.sign-pad { border: 1px solid var(--line-2); border-radius: 14px; background: #fff; position: relative; height: 92px; display: flex; align-items: flex-end; padding: 0 16px 12px; }
.sign-pad input { border: 0; outline: 0; width: 100%; font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--ink); background: transparent; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.sign-pad span { position: absolute; left: 16px; top: 10px; font-size: 11.5px; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.editor-preview { position: sticky; top: 92px; }
.editor-preview .ep-label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.editor-preview .ep-label .dot { color: var(--ok); animation: pulse-ok 2s infinite; }
@keyframes pulse-ok { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.checklist { display: grid; gap: 8px; margin-top: 20px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.checklist div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.checklist div .i { width: 18px; height: 18px; color: var(--line-2); }
.checklist div.ok { color: var(--ink); }
.checklist div.ok .i { color: var(--ok); }
.meter { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 6px; transition: width .5s var(--ease-out); }

/* permessi */
.perm-tbl td:not(:first-child), .perm-tbl th:not(:first-child) { text-align: center; width: 160px; }
.locked-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); font-size: 13.5px; color: var(--muted); }
.locked-note .i { color: var(--ink); }
.gate { max-width: 520px; margin: 80px auto; text-align: center; }
.gate .g-ic { width: 72px; height: 72px; border-radius: 22px; background: var(--bg-2); display: grid; place-items: center; margin: 0 auto 22px; color: var(--ink); }
.gate h1 { font-size: 26px; letter-spacing: -.03em; }
.gate p { color: var(--muted); margin: 10px 0 24px; }

/* verifica concessionario */
.verify-list { display: grid; gap: 10px; }
.verify-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.verify-item .vi-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.verify-item.ok .vi-ic { background: var(--ok-tint); color: var(--ok); }
.verify-item.wait .vi-ic { background: var(--warn-tint); color: var(--warn); }
.verify-item.no .vi-ic { background: var(--accent-tint); color: var(--accent); }
.verify-item small { display: block; color: var(--muted); font-size: 12.5px; }

/* account utente */
.acc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; padding-top: 12px; }
.acc-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background var(--t1); }
.acc-nav a .i { color: var(--muted); }
.acc-nav a:hover { background: rgba(13, 17, 23, .045); }
.acc-nav a.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.acc-nav a .badge-count { margin-left: auto; }
.acc-user { display: flex; align-items: center; gap: 14px; padding: 4px 4px 22px; }
.acc-user b { display: block; color: var(--ink); font-size: 16px; }
.acc-user span { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .acc-layout { grid-template-columns: 1fr; gap: 20px; } .acc-nav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; } .acc-nav a { flex: none; } .acc-user { display: none; } }
.req-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.req-card + .req-card { margin-top: 16px; }
.req-card .rc-head { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.req-card .rc-head img { width: 88px; height: 64px; border-radius: 12px; object-fit: cover; }
.req-card .rc-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.req-progress { display: flex; align-items: center; gap: 0; padding: 14px 20px; border-top: 1px solid var(--line); background: #FCFCFA; font-size: 12.5px; color: var(--muted); overflow-x: auto; }
.req-progress div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.req-progress div::after { content: ''; width: 28px; height: 1px; background: var(--line-2); margin: 0 10px; }
.req-progress div:last-child::after { display: none; }
.req-progress div.on { color: var(--ink); font-weight: 500; }
.req-progress div .dot { color: var(--line-2); }
.req-progress div.on .dot { color: var(--ok); }
.ss-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ss-item + .ss-item { margin-top: 12px; }
.ss-item .ss-i { width: 44px; height: 44px; border-radius: 13px; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--ink); }

/* scheda tecnica (stampa / PDF) */
body.print-layout { background: #E9E7E2; }
.sheet-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sheet { width: 210mm; min-height: 297mm; margin: 24px auto; background: #fff; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .25); padding: 14mm 14mm 12mm; color: var(--ink-2); font-size: 10.5pt; position: relative; display: flex; flex-direction: column; }
.sheet + .sheet { margin-top: 0; }
.sheet .sh-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6mm; border-bottom: 1px solid var(--line); }
.sheet .sh-top img { height: 7mm; }
.sheet .sh-top .sh-ref { text-align: right; font-size: 8.5pt; color: var(--muted); line-height: 1.5; }
.sheet h1 { font-size: 26pt; letter-spacing: -.035em; margin-top: 7mm; line-height: 1; }
.sheet .sh-sub { color: var(--muted); margin-top: 2.5mm; font-size: 10.5pt; }
.sheet .sh-hero { margin-top: 6mm; display: grid; grid-template-columns: 2fr 1fr; gap: 2.5mm; height: 92mm; }
.sheet .sh-hero img { width: 100%; height: 100%; object-fit: cover; border-radius: 3mm; }
.sheet .sh-hero .sh-col { display: grid; grid-template-rows: 1fr 1fr; gap: 2.5mm; min-height: 0; }
.sheet .sh-price { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6mm; padding: 5mm 6mm; border-radius: 3mm; background: var(--bg-2); }
.sheet .sh-price b { font-size: 22pt; letter-spacing: -.03em; color: var(--ink); }
.sheet .sh-kf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 6mm; border: 1px solid var(--line); border-radius: 3mm; }
.sheet .sh-kf div { padding: 3.5mm; border-right: 1px solid var(--line); }
.sheet .sh-kf div:last-child { border-right: 0; }
.sheet .sh-kf small { display: block; font-size: 7.5pt; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sheet .sh-kf b { display: block; font-size: 11pt; margin-top: 1mm; color: var(--ink); }
.sheet h2 { font-size: 11pt; letter-spacing: .06em; text-transform: uppercase; margin: 8mm 0 3mm; color: var(--ink); }
.sheet .sh-desc { line-height: 1.6; }
.sheet .sh-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10mm; }
.sheet .sh-specs div { display: flex; justify-content: space-between; padding: 2.2mm 0; border-bottom: 1px solid var(--line); font-size: 9.5pt; }
.sheet .sh-specs div span { color: var(--muted); }
.sheet .sh-specs div b { font-weight: 500; color: var(--ink); }
.sheet .sh-eq { columns: 3; column-gap: 8mm; font-size: 9.5pt; }
.sheet .sh-eq li { padding: 1.2mm 0; break-inside: avoid; }
.sheet .sh-eq li::before { content: '✓'; color: var(--ok); margin-right: 2mm; font-weight: 700; }
.sheet .sh-foot { margin-top: auto; padding-top: 6mm; display: flex; justify-content: space-between; align-items: flex-end; gap: 10mm; border-top: 1px solid var(--line); font-size: 8.5pt; color: var(--muted); }
.sheet .sh-dealer { display: flex; align-items: center; gap: 4mm; }
.sheet .sh-dealer b { display: block; color: var(--ink); font-size: 11pt; }
.sheet .sh-qr { width: 22mm; height: 22mm; }
.sheet .sh-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm; margin-top: 4mm; }
.sheet .sh-gal img { width: 100%; height: 58mm; object-fit: cover; border-radius: 3mm; }
.sheet .sh-decl { margin-top: 5mm; padding: 3.5mm 4.5mm; border-radius: 3mm; background: var(--ok-tint); color: #0F5E47; font-size: 9pt; }
@page { size: A4; margin: 0; }
@media print {
  body.print-layout { background: #fff; }
  .sheet-bar, .demo-fab, .demo-panel, .toasts { display: none !important; }
  .sheet { margin: 0; box-shadow: none; width: 210mm; height: 297mm; min-height: 0; page-break-after: always; overflow: hidden; }
  .sheet:last-child { page-break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media screen and (max-width: 860px) {
  .sheet-wrap { overflow-x: auto; }
  .sheet { margin: 12px; transform-origin: top left; }
}

/* calcolatore leasing */
.calc-out { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--deep); color: rgba(255, 255, 255, .7); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-out b { display: block; color: #fff; font-size: 28px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-out small { font-size: 12.5px; }
.slider { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--line-2); outline: none; margin: 14px 0 6px; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(13, 17, 23, .2); cursor: grab; }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(13, 17, 23, .2); cursor: grab; }

/* email anteprima */
.email-prev { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #F4F3EF; }
.email-prev .ep-meta { padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; display: grid; gap: 4px; }
.email-prev .ep-meta span { color: var(--muted); display: inline-block; width: 52px; }
.email-prev .ep-body { padding: 24px; }
.email-prev .ep-card { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.email-prev .ep-card .ep-h { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.email-prev .ep-card .ep-h img { height: 18px; }
.email-prev .ep-card .ep-c { padding: 22px; font-size: 14px; line-height: 1.6; }
.email-prev .ep-card .ep-c h3 { font-size: 18px; margin-bottom: 10px; }
.email-prev .ep-card .ep-boat { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg-2); margin: 14px 0; }
.email-prev .ep-card .ep-boat img { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; }
.email-prev .ep-card table { width: 100%; font-size: 13.5px; border-collapse: collapse; margin: 10px 0 16px; }
.email-prev .ep-card td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.email-prev .ep-card td:first-child { color: var(--muted); width: 120px; }

/* mini mockup dashboard nella home */
.mock-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFBF9; }
.mock-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 340px; }
.mock-side { border-right: 1px solid var(--line); padding: 12px 8px; display: grid; gap: 3px; align-content: start; background: #FBFBF9; }
.mock-side span { height: 26px; border-radius: 7px; display: flex; align-items: center; gap: 7px; padding: 0 8px; font-size: 11px; color: var(--muted); }
.mock-side span.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.mock-side .i { width: 13px; height: 13px; }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mock-kpis small { font-size: 10px; color: var(--muted); display: block; }
.mock-kpis b { font-size: 18px; color: var(--ink); letter-spacing: -.03em; }
.mock-req { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; }
.mock-req img { width: 34px; height: 26px; border-radius: 6px; object-fit: cover; }
.mock-req b { display: block; color: var(--ink); font-weight: 500; }
.mock-req span { color: var(--muted); font-size: 10.5px; }
.mock-req .tag { margin-left: auto; height: 20px; font-size: 10.5px; }
.mock-float { position: absolute; right: -18px; top: 70px; width: 250px; background: #fff; border-radius: 14px; box-shadow: var(--sh-pop); padding: 12px; display: flex; gap: 10px; align-items: center; font-size: 12px; animation: floaty 5s ease-in-out infinite; }
.mock-float .n-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.mock-float b { display: block; color: var(--ink); font-weight: 500; font-size: 12.5px; }
.mock-float span { color: var(--muted); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 600px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } .mock-float { right: 8px; top: auto; bottom: 12px; width: 220px; } }

/* command palette */
.cmdk { position: fixed; inset: 0; z-index: 260; background: rgba(11, 16, 22, .4); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; opacity: 0; transition: opacity var(--t1); }
.cmdk.is-open { opacity: 1; }
.cmdk-box { width: 640px; max-width: calc(100vw - 24px); background: #fff; border-radius: 20px; box-shadow: var(--sh-3); overflow: hidden; transform: scale(.97); transition: transform var(--t2) var(--ease-out); }
.cmdk.is-open .cmdk-box { transform: none; }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-in input { flex: 1; height: 58px; border: 0; outline: 0; font-size: 16px; }
.cmdk-res { max-height: 420px; overflow: auto; padding: 8px; }
.cmdk-res .cr { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; width: 100%; text-align: left; font-size: 14px; }
.cmdk-res .cr.is-on, .cmdk-res .cr:hover { background: var(--bg-2); }
.cmdk-res .cr img { width: 48px; height: 36px; border-radius: 8px; object-fit: cover; }
.cmdk-res .cr b { display: block; font-weight: 500; color: var(--ink); }
.cmdk-res .cr span { font-size: 12.5px; color: var(--muted); }
.cmdk-res .cr .cr-r { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: #FCFCFA; }

/* utilità aggiuntive */
@media (max-width: 760px) { .hide-m { display: none !important; } .viewseg span { display: none; } }
@media (min-width: 761px) { .only-m { display: none !important; } }
.btn[data-fav].is-on .i { fill: var(--accent); color: var(--accent); }
.btn[data-cmp].is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* correzioni strutturali */
.shell > .side-scrim { display: none; }
@media (max-width: 1080px) { .shell > .side-scrim { display: block; } }
.cmp-bar:not(.is-in) { visibility: hidden; transition: transform var(--t3) var(--ease-out), visibility 0s linear var(--t3); }
@media (max-width: 600px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .search-top .nlq { order: -1; }
  .search-top .mfilters-btn { flex: 1; }
  .search-top .wrap { gap: 8px; }
  .demo-fab { height: 38px; padding: 0 10px 0 4px; gap: 6px; }
  .demo-fab .df-role { display: none; }
  .demo-fab .df-tag { height: 30px; padding: 0 10px; }
}
.bubble.system { display: block; text-align: center; max-width: 100%; }
.bubble.system .i { margin-right: 4px; vertical-align: -3px; }
.card-head { flex-wrap: wrap; }
.seg button { white-space: nowrap; }
.tb-brand { display: none; }
.tb-brand img { height: 20px; width: auto; }
@media (max-width: 1080px) { .tb-brand { display: block; } }
@media (min-width: 1081px) { body.app-layout .demo-fab { left: 284px; } body.app-layout .demo-panel { left: 284px; } }

/* vista mappa della ricerca: elenco + mappa 3D */
.is-mapmode .search-layout { grid-template-columns: 1fr; }
.is-mapmode .filters { display: none; }
.is-mapmode .mfilters-btn { display: inline-flex; }
.mapview { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; height: calc(100vh - var(--header-h) - 72px - 150px); min-height: 560px; }
.mv-list { overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 6px 2px 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
.mv-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color var(--t1), box-shadow var(--t2); flex: none; }
.mv-item:hover, .mv-item.is-on { border-color: var(--ink); box-shadow: var(--sh-2); }
.mv-img img { width: 132px; height: 100px; object-fit: cover; border-radius: 11px; background: var(--bg-2); }
.mv-b { display: flex; flex-direction: column; min-width: 0; padding: 2px 2px 0 0; }
.mv-k { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-t { font-weight: 600; color: var(--ink); font-size: 15px; letter-spacing: -.015em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-s { font-size: 12.5px; color: var(--muted); }
.mv-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.mv-f b { font-size: 16px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mv-locate { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: background var(--t1), color var(--t1); }
.mv-locate:hover { background: var(--bg-2); color: var(--ink); }
.mv-map { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #EEECE6; }
.mv-canvas { position: absolute; inset: 0; }
.home-map { position: relative; height: min(640px, 72vh); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #EEECE6; }
.loc-map { height: 440px; }
@media (max-width: 860px) {
  .mapview { display: block; position: relative; height: calc(100svh - 400px); min-height: 400px; }
  .mv-map { position: absolute; inset: 0; border-radius: 18px; }
  .mv-list { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 12px; gap: 10px; scrollbar-width: none; }
  .mv-list::-webkit-scrollbar { display: none; }
  .mv-item { flex: 0 0 84%; scroll-snap-align: center; grid-template-columns: 96px minmax(0, 1fr); box-shadow: var(--sh-3); }
  .mv-img img { width: 96px; height: 84px; }
  .mapview .m3-ctrls { bottom: 128px; }
  .home-map { height: 72vh; border-radius: 20px; }
}
