/* ─────────────────────────────────────────────────────────
   LOTVAULT — Design system
   Estetica "vault": bianco pulito, inchiostro, ottone.
   Micro-animazioni discrete (fade/slide/pulse, sempre con
   prefers-reduced-motion off), contrasto alto.
   v2 "vault arricchito" — 2026-10
   ───────────────────────────────────────────────────────── */

:root {
  --ink: #14161a;
  --ink-2: #3d434d;
  --muted: #6b7280;
  --line: #e6e4df;
  --line-strong: #d5d2ca;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --bg-sunk: #f3f1ec;
  --brass: #a9762a;
  --brass-dark: #8a5f1e;
  --brass-soft: #f6efe3;
  --ok: #1f7a46;
  --ok-soft: #eaf5ef;
  --err: #b3261e;
  --err-soft: #fbeceb;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 8px 24px -12px rgba(20, 22, 26, .12);
  --shadow-hover: 0 2px 4px rgba(20, 22, 26, .06), 0 16px 36px -16px rgba(20, 22, 26, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.6rem, 1rem + 2.2vw, 2.5rem); font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.sub { color: var(--muted); max-width: 62ch; }

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}
.brand-text { font-size: 1.02rem; }
.brand-text span { color: var(--brass); }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 520; color: var(--ink-2);
}
.nav a:hover { background: var(--bg-sunk); color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; }

.auth { margin-left: auto; }
.badge-demo {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--brass-soft); color: var(--brass-dark);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid #e8d9bf;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: .9rem; font-weight: 580; line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--bg-sunk); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(20,22,26,.08); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--bg-sunk); }
.btn.icon { padding: 9px 12px; font-size: 1rem; min-width: 40px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { color: var(--brass-dark); font-weight: 600; font-size: .9rem; }

/* ── Hero ───────────────────────────────────────────── */
.view { padding: 32px 0 56px; }
.hero {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center;
  padding: 28px 0 44px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brass-dark); margin-bottom: 12px;
}
.hero h1 { max-width: 20ch; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 54ch; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.hero-stats {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 8px 4px; display: grid;
}
.stat-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.stat-row:last-child { border-bottom: 0; }
.stat-row .val { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-row .lbl { color: var(--muted); font-size: .84rem; font-weight: 500; }

/* ── Sections ───────────────────────────────────────── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin: 0 0 20px; flex-wrap: wrap;
}
.section-head h1, .section-head h2 { margin-bottom: 2px; }

/* ── Grid + Card ────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h3 { font-size: 1.02rem; margin: 2px 0; }
.card .desc {
  color: var(--muted); font-size: .88rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { color: var(--muted); font-size: .82rem; }
.card .price { font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.card .price small { font-weight: 500; color: var(--muted); font-size: .72rem; margin-left: 2px; }

.cat {
  font-size: .74rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2);
}

.tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.tag.fixed { background: var(--bg-sunk); color: var(--ink-2); border: 1px solid var(--line-strong); }
.tag.auction { background: var(--brass-soft); color: var(--brass-dark); border: 1px solid #e8d9bf; }
.tag.live { background: var(--err-soft); color: var(--err); border: 1px solid #f0cfcc; }

/* ── Marketplace layout ─────────────────────────────── */
.marketplace-layout { display: grid; grid-template-columns: 264px 1fr; gap: 28px; align-items: start; }
.filters {
  position: sticky; top: 82px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 20px;
}
.filter-block { display: flex; flex-direction: column; gap: 8px; }
.filter-block .k { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }

input, select {
  font-family: inherit; font-size: .9rem; color: var(--ink);
  padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
input[type=range] { padding: 0; border: 0; accent-color: var(--brass); }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }

.range-row { display: flex; align-items: center; gap: 8px; }
.range-row span { color: var(--muted); }
.field-inline { display: flex; align-items: center; gap: 8px; }
.field-inline .k { font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.field-inline select { width: auto; }

/* Chips filtro */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  cursor: pointer; user-select: none;
  padding: 6px 11px; border-radius: 999px; font-size: .82rem; font-weight: 520;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2);
}
.chip:hover { border-color: var(--brass); color: var(--brass-dark); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { opacity: .6; margin-left: 5px; font-size: .74rem; }

.results-col { min-width: 0; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; min-height: 24px; }

.view-toggle { display: flex; align-items: center; gap: 10px; }

/* ── Empty / loading ────────────────────────────────── */
.empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-soft);
}
.skeleton-line { height: 34px; background: var(--bg-sunk); border-radius: 6px; margin: 6px 14px; }

/* ── Dettaglio lotto ────────────────────────────────── */
.detail { max-width: 940px; }
.detail-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.meta-line { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .88rem; font-weight: 560; margin-bottom: 18px; }
.backlink:hover { color: var(--brass-dark); }

.panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.panel h3 { margin-bottom: 12px; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 10px 20px; font-size: .92rem; }
.kv .k { color: var(--muted); font-weight: 500; }
.kv strong { font-variant-numeric: tabular-nums; }

.transparency { height: 8px; background: var(--bg-sunk); border-radius: 999px; overflow: hidden; margin: 4px 0 10px; }
.transparency span { display: block; height: 100%; background: var(--brass); border-radius: 999px; }

.bids { list-style: none; padding: 0; margin: 12px 0; }
.bids li {
  display: flex; justify-content: space-between; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: .92rem;
}
.bids li:last-child { border-bottom: 0; }
.bids li .amount { font-weight: 700; font-variant-numeric: tabular-nums; }

.bidform { display: flex; gap: 10px; margin-top: 8px; }
.bidform input { flex: 1; }

.msg { font-size: .88rem; margin-top: 10px; }
.msg.ok { color: var(--ok); background: var(--ok-soft); padding: 9px 12px; border-radius: 8px; border: 1px solid #cfe8da; }
.msg.err { color: var(--err); background: var(--err-soft); padding: 9px 12px; border-radius: 8px; border: 1px solid #f0cfcc; }

/* ── Dashboard ──────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
}
.kpi .n { font-size: 1.85rem; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .84rem; }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .88rem; }
.bar-row .lbl { color: var(--ink-2); }
.bar-row .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 6px; background: var(--bg-sunk); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brass); border-radius: 999px; }

.rows { display: flex; flex-direction: column; }
.row-item { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item .t { font-size: .9rem; font-weight: 520; }
.row-item .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-item .s { color: var(--muted); font-size: .8rem; }

/* ── Footer ─────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; }
.foot-inner { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 30px 20px; align-items: start; }
.foot-brand .brand-text { font-weight: 800; letter-spacing: .04em; }
.foot-brand .brand-text span { color: var(--brass); }
.legal { max-width: 72ch; }

/* ── Toast ──────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-size: .9rem; font-weight: 520; box-shadow: 0 12px 32px -8px rgba(0,0,0,.35);
  z-index: 100; max-width: 90vw;
}
.toast.err { background: var(--err); }

/* ── Live asta (SSE) ─────────────────────────────────── */
.live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.live-head h3 { margin: 0; }
.live-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brass-dark); letter-spacing: .2px; }

/* ── Ordini / escrow ─────────────────────────────────── */
.order-card { cursor: pointer; }
.order-card:hover { border-color: var(--line-strong); }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 14px 6px; }
.order-actions .btn { padding: 8px 14px; font-size: .86rem; }
.order-events { margin: 6px 14px 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.order-events .oev { font-size: .82rem; padding: 3px 0; color: var(--ink); }
.order-events .omuted { color: var(--ink-soft); margin-right: 6px; }
.rows .row.tot { border-top: 1px solid var(--line-strong); font-weight: 600; }

/* ── Blocco B: trasparenza/fiducia (voci 58/75/77/79) ── */
.tag.badge-verified { background: #e6f2e9; color: #1f6b3a; border: 1px solid #bfe0c8; }
.spec.spec-tech { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.spec-head { margin: 0 0 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.spec.spec-tech > div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec.spec-tech > div:last-child { border-bottom: 0; }
.spec.spec-tech .k { color: var(--ink-soft); }
.photos-label { margin: 10px 14px 4px; }
.order-gallery { margin: 0 14px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.order-gallery .photo { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-sunk); }
.order-gallery .photo img { display: block; width: 100%; height: 96px; object-fit: cover; }
.order-gallery .photo figcaption { padding: 4px 6px; }
.modal { position: fixed; inset: 0; background: rgba(20,18,14,.42); display: grid; place-items: center; z-index: 90; padding: 18px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; max-width: 520px; width: 100%; max-height: 86vh; overflow: auto; padding: 20px 22px; position: relative; }
.modal-box h3 { margin: 0 0 10px; }
.modal-x { position: absolute; top: 8px; right: 10px; border: none; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .marketplace-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: .84rem; }
  .foot-inner { grid-template-columns: 1fr; gap: 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv .k { margin-top: 8px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .topbar-inner { gap: 12px; }
}

/* ── 5·6 · i18n + media venditore + asta live video ─────── */
.lang-pick select { appearance: none; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); border-radius: 6px; padding: 4px 8px; font-size: .8rem; cursor: pointer; }
.thumb-video { position: relative; }
.thumb-video video { display: block; width: 100%; height: 84px; object-fit: cover; border-radius: 6px; background: #000; }
.thumb-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; font-size: 1.3rem; text-shadow: 0 1px 4px rgba(0,0,0,.7); pointer-events: none; }
.lot-videos { display: grid; gap: 10px; margin: 12px 0; }
.lot-video { width: 100%; max-height: 420px; background: #000; border: 1px solid var(--line); border-radius: 8px; }
.ai-panel { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 14px 0; background: var(--bg-sunk); }
.ai-panel .live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ai-panel h3 { margin: 0; font-size: .95rem; }
#aiOut { white-space: pre-wrap; line-height: 1.5; }
.panel .live-head { display: flex; justify-content: space-between; align-items: center; }
.live-dot { color: #c0392b; font-size: .8rem; animation: lvPulse 1.6s ease-in-out infinite; }
.live-video { width: 100%; background: #000; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }


/* ═════════════════════════════════════════════════════════
   v2 — VAULT ARRICCHITO (2026-10)
   Override + classi mancanti + micro-animazioni.
   Palette invariata: bianco / inchiostro / ottone.
   ═════════════════════════════════════════════════════════ */

:root {
  --brass-glow: rgba(169,118,42,.18);
  --shadow-soft: 0 1px 2px rgba(20,22,26,.05), 0 10px 30px -12px rgba(20,22,26,.12);
  --shadow-lift: 0 2px 6px rgba(20,22,26,.06), 0 22px 44px -16px rgba(20,22,26,.22);
}@keyframes lvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lvUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lvShimmer { from { background-position: -220px 0; } to { background-position: 280px 0; } }
@keyframes lvPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes lvGrow { from { transform: scaleX(0); opacity: .4; } to { transform: scaleX(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── v2 · Hero arricchito ─────────────────────────── */
.hero {
  position: relative;
  padding: 64px 0 56px; margin-bottom: 48px;
  background:
    radial-gradient(900px 340px at 8% -30%, rgba(169,118,42,.07), transparent 60%),
    radial-gradient(760px 300px at 96% 0%, rgba(63,86,120,.05), transparent 62%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 88%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(20,22,26,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,22,26,.028) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(700px 320px at 18% 18%, #000, transparent 74%);
  mask-image: radial-gradient(700px 320px at 18% 18%, #000, transparent 74%);
}
.hero > * { position: relative; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border: 1px solid #e8d9bf; border-radius: 999px;
  background: var(--brass-soft); color: var(--brass-dark);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(169,118,42,.16);
}
.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.05rem);
  letter-spacing: -.03em; margin: 14px 0 0;
}.hero h1::after {
  content: ""; display: block; width: 74px; height: 3px; margin-top: 18px;
  background: linear-gradient(90deg, var(--brass), rgba(169,118,42,0));
  border-radius: 2px;
}
.lead { font-size: 1.08rem; margin: 14px 0 0; max-width: 56ch; }
.hero-actions { margin-top: 26px; }
.hero-stats {
  position: relative; overflow: hidden;
  padding: 0; grid-gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  animation: lvUp .55s .1s ease-out backwards;
}
.hero-stats::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 30%, rgba(169,118,42,.06) 46%, transparent 62%);
  background-size: 700px 100%;
  animation: lvSweep 7s linear infinite;
}
@keyframes lvSweep { from { background-position: -700px 0; } to { background-position: 700px 0; } }
.hero-stats .stat {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.hero-stats .stat:last-child { border-bottom: 0; }
.hero-stats .stat strong {
  display: block; font-size: 1.9rem; font-weight: 750;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.hero .demo-note { margin-top: 10px; }

/* ── v2 · Ingresso sezioni + cards lift ───────────── */
.panel, .kpi, .auth-card, .lot-detail { animation: lvUp .45s ease-out backwards; }
.grid .card { animation: lvUp .45s ease-out backwards; }
.grid .card:nth-child(2) { animation-delay: .04s; }
.grid .card:nth-child(3) { animation-delay: .08s; }
.grid .card:nth-child(3n) { animation-delay: .08s; }
.grid .card:nth-child(3n+1):nth-child(n+4) { animation-delay: .12s; }
.card {
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--brass); }
.card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .price { transition: color .2s ease; }
.card:hover .price { color: var(--brass-dark); }

/* ── v2 · Tag/badge premium ───────────────────────── */
.tag.badge-premium {
  background: linear-gradient(120deg, #fdf6e7, #f0dfba);
  color: #7a5514; border-color: #e6cf9a;
}
.tag.neutral { background: var(--bg-sunk); color: var(--muted); border: 1px solid var(--line-strong); }
.tag.ok-badge, .tag.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #cfe8d9; }
.tag.warn { background: #fdf3e4; color: #9a6212; border: 1px solid #eed9b3; }

/* ── v2 · Skeleton shimmer ────────────────────────── */
.skeleton-line {
  background: linear-gradient(90deg, var(--bg-sunk) 25%, #ffffff 45%, var(--bg-sunk) 65%);
  background-size: 480px 100%;
  animation: lvShimmer 1.4s linear infinite;
}
.skeleton-line, .skeleton { will-change: background-position; }

/* ── v2 · Form & campi: focus visibile ────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field .k, .field-inline .k { font-size: .78rem; font-weight: 600; color: var(--muted); }
input, select, textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-glow);
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) {
  border-color: var(--line-strong);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.wide { grid-template-columns: 1fr; }
.form-foot { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.form-foot a, .link { color: var(--brass-dark); font-weight: 600; text-decoration: none; }
.form-foot a:hover, .link:hover { text-decoration: underline; }
.form-msg.err-line, .err-line { color: var(--err); }
.err-line, .warn-line, .ok-line { font-size: .9rem; min-height: 1.2em; }
.warn-line { color: #9a6212; }
.ok-line { color: var(--ok); font-weight: 600; }
.line { opacity: .35; }
.warn { color: #9a6212; }
.danger { color: var(--err); }

/* ── v2 · Auth + account ──────────────────────────── */
.auth-card {
  max-width: 420px; margin: 44px auto; padding: 30px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.auth-card.wide { max-width: 640px; }
.auth-card h1, .auth-card h2 { margin-top: 0; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }
.admin-only, .auth-only { border-left: 3px solid var(--brass); padding-left: 14px; }
.auth-area { display: flex; }

/* ── v2 · Wizard ──────────────────────────────────── */
.wizard { display: grid; gap: 18px; }
.wizard-body { display: grid; gap: 6px; }
.wstep[hidden] { display: none; }
.steps {
  display: flex; gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; flex-wrap: wrap;
  counter-reset: stp;
}
.steps li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--muted); font-size: .85rem; font-weight: 560;
  transition: all .25s ease;
}
.steps li span {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; font-size: .74rem; font-weight: 700;
  background: var(--bg-sunk); border: 1px solid var(--line-strong); color: var(--muted);
  transition: all .25s ease;
}
.steps li.active {
  background: var(--ink); border-color: var(--ink); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20,22,26,.22);
}
.steps li.active span { background: var(--brass); border-color: var(--brass); color: #fff; }
.steps li.done { color: var(--ok); border-color: #cfe8d9; background: var(--ok-soft); }
.steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done span::before { content: "✓"; font-size: .7rem; }
.steps li.done > span { font-size: 0; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.fs { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 4px; margin: 0 0 14px; }
.fs legend { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }/* ── v2 · Dettaglio lotto ─────────────────────────── */
.lot-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .lot-detail { grid-template-columns: 1fr; } }
.lot-main { min-width: 0; }
.lot-side { position: sticky; top: 84px; display: grid; gap: 12px; }
.lot-head h1 { margin: 0 0 4px; font-size: 1.6rem; letter-spacing: -.02em; }
.lot-head .meta-line, .lot-head .meta { color: var(--muted); font-size: .88rem; }
.lot-gal { display: grid; gap: 10px; }
.lot-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.lot-gallery img {
  width: 100%; height: 92px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lot-gallery img:hover { transform: scale(1.04); box-shadow: var(--shadow-soft); }
.lot-gallery img.main, .lot-gallery img:only-child { grid-column: 1 / -1; height: 320px; cursor: default; }
.lot-desc { color: var(--ink-2); line-height: 1.65; white-space: pre-line; }
.lot-desc-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-dark); margin: 18px 0 8px; }

/* ── v2 · Transparenza + barre dashboard ──────────── */
.transp {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; color: var(--brass-dark);
  background: var(--brass-soft); border: 1px solid #e8d9bf;
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.transp::before { content: "◆"; font-size: .62rem; color: var(--brass); }
.bar-l { color: var(--ink-2); font-size: .8rem; min-width: 90px; text-align: right; }
.bar-n {
  color: var(--ink-2); font-size: .8rem; font-weight: 640;
  font-variant-numeric: tabular-nums; min-width: 48px; text-align: right;
}

/* ── v2 · Thumbs uploader + drop ──────────────────── */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.thumb { position: relative; }
.thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); display: block; }
.thumb-del {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: #fff;
  color: var(--err); font-size: .78rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.thumb-del:hover { transform: scale(1.12); box-shadow: 0 2px 8px rgba(179,38,30,.25); border-color: var(--err); }
.drop {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: var(--bg-soft); transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.drop.over { border-color: var(--brass); background: var(--brass-soft); transform: scale(1.01); }
.uploader { display: grid; gap: 8px; }/* ── v2 · User menu ───────────────────────────────── */
.user-area { position: relative; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brass), var(--brass-dark));
  color: #fff; font-size: .72rem; font-weight: 700;
  display: inline-grid; place-items: center; letter-spacing: .02em;
}
.user-name { font-weight: 600; font-size: .86rem; }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 190px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px -14px rgba(20,22,26,.28);
  animation: lvUp .18s ease-out;
}
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px;
  color: var(--ink); font-size: .88rem; text-decoration: none;
  background: none; border: 0; cursor: pointer;
  transition: background-color .12s ease;
}
.user-menu a:hover, .user-menu button:hover { background: var(--bg-sunk); }

/* ── v2 · Big price + review + status ─────────────── */
.big-price { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-price small { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.review { display: grid; gap: 10px; }
.status-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); transition: box-shadow .2s ease, border-color .2s ease; }
.status-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }

/* ── v2 · Feature band (home) ─────────────────────── */
.feature-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 8px; }
@media (max-width: 900px) { .feature-band { grid-template-columns: 1fr; } }
.feature {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--brass); }
.feature .ic { font-size: 1.3rem; }
.feature h3 { font-size: .98rem; margin: 8px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.back { color: var(--muted); font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.back:hover { color: var(--brass-dark); }
.compact { max-width: 560px; }
.spacer { flex: 1; }
.row-l { display: flex; align-items: center; gap: 10px; }
.row-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.vat-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--bg-soft); margin: 10px 0; }
.vat-result { font-size: .86rem; }
.vat-result.ok { color: var(--ok); font-weight: 600; }
.vat-result.err { color: var(--err); font-weight: 600; }
.draft-state { color: #9a6212; background: #fdf3e4; border: 1px solid #eed9b3; border-radius: 8px; padding: 8px 12px; font-size: .82rem; font-weight: 600; }
.mini { font-size: .78rem; color: var(--muted); }
.unwatch { opacity: .55; }/* ── v2 · Footer, toast fluido, nav ───────────────── */
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 30px 0 40px; background: var(--bg-soft); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { font-weight: 750; letter-spacing: .02em; }
.foot-brand em { color: var(--brass-dark); font-style: normal; }
.legal { color: var(--muted); font-size: .8rem; }

.toast {
  transition: opacity .3s ease, transform .3s ease;
  display: block;
}
.toast[hidden] { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.toast:not([hidden]) { opacity: 1; transform: translate(-50%, 0); animation: lvUp .3s ease-out; }
.toast.err { background: var(--err); }

.nav a { transition: background-color .15s ease, color .15s ease; }
.nav a.active { position: relative; }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -14px; height: 2px;
  background: var(--brass); border-radius: 2px;
}
.brand { letter-spacing: -.01em; }
.brand em, .brand b { color: var(--brass-dark); }

/* ── v2 · Tabulari, scroll, selection ─────────────── */
::selection { background: rgba(169,118,42,.22); }
table.rows td, .num { font-variant-numeric: tabular-nums; }
.kpi .k { display: block; }

/* ── v2 · Hero tags ───────────────────────────────── */
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags span {
  font-size: .78rem; font-weight: 550; color: var(--ink-2);
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; box-shadow: 0 1px 2px rgba(20,22,26,.04);
}
.hero-tags span:hover { border-color: var(--brass); color: var(--brass-dark); }

/* ── v2 · Ingresso card stagger (via JS: --d) ─────── */
.grid-cards .card, #lotList .card { animation: lvUp .45s ease-out backwards; }
.grid-cards .card:nth-child(1), #lotList .card:nth-child(1) { animation-delay: .03s; }
.grid-cards .card:nth-child(2), #lotList .card:nth-child(2) { animation-delay: .07s; }
.grid-cards .card:nth-child(3), #lotList .card:nth-child(3) { animation-delay: .11s; }
.grid-cards .card:nth-child(4), #lotList .card:nth-child(4) { animation-delay: .15s; }
.grid-cards .card:nth-child(5), #lotList .card:nth-child(5) { animation-delay: .19s; }
.grid-cards .card:nth-child(6), #lotList .card:nth-child(6) { animation-delay: .23s; }

/* ── v2 · Reduced motion: tutto statico ──────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── v2 · tag in chiusura/live: respiro ──────────── */
.tag.warn, .tag.live { animation: lvPulse 1.8s ease-in-out infinite; }

/* ── v2 · Dashboard barre (markup reale: bar/bar-l/bar-t/bar-f) ── */
.bar { display: grid; grid-template-columns: 150px 1fr 56px; gap: 12px; align-items: center; padding: 10px 0; }
.bar-l { font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-t {
  display: block; height: 8px; background: var(--bg-sunk); border-radius: 999px; overflow: hidden;
}
.bar-f {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brass), #c99b52);
  border-radius: 999px;
  transition: width .9s cubic-bezier(.22,1,.36,1);
}
.bar:hover .bar-f { filter: brightness(1.08); }

/* ── v2 · Card interna (card-top/title/meta/foot/bottom) ── */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-title { font-weight: 650; line-height: 1.3; }
.card-meta { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.card-bottom { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.card-bottom .big-price { margin: 0; }

/* ── v2 · Form wrapper, user-btn, vat-check ───────── */
.form { display: flex; flex-direction: column; gap: 4px; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 4px 8px; border-radius: 8px; transition: background-color .15s ease; }
.user-btn:hover { background: var(--bg-sunk); }
.vat-check { white-space: nowrap; }

/* ═════════════════════════════════════════════════════════
   FINE v2
   ═════════════════════════════════════════════════════════ */