/* ============================================================
   Passaparola — Design System
   Minimal & moderno · bianco + blu (brand) + giallo (accento)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,700;1,800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* base */
  --paper:        #FFFFFF;
  --paper-dim:    #F2F5FA;
  --paper-deep:   #E6ECF5;
  --blue-tint:    #EAF1FC;

  /* ink / text */
  --ink:          #16203A;
  --ink-soft:     #384360;
  --ink-muted:    #697088;
  --muted:        #697088;

  /* brand — calibrato dal logo storico (giallo · azzurro · blu · rosso) */
  --brand:        #143C8E;   /* blu profondo: titoli, sezioni scure, primario */
  --brand-dark:   #0F2E6E;
  --blue:         #1E5FD0;   /* blu vivo: link, accenti interattivi */
  --cyan:         #2FA4DD;   /* azzurro: accenti decorativi ("passa") */
  --yellow:       #FFC61A;   /* giallo brand: CTA, accenti */
  --yellow-soft:  #FFE7A0;
  --red:          #E23B2C;   /* rosso brand: tocchi (conto vendita, saldi) */

  /* lines */
  --line:         #E2E7F0;
  --line-strong:  #CFD7E6;

  /* alias di compatibilità (vecchi nomi → palette Passaparola) */
  --cobalt:       var(--blue);
  --gold:         var(--yellow);
  --gold-soft:    var(--yellow-soft);
  --sale:         var(--red);
  --brass:        var(--blue);
  --brass-light:  var(--yellow);
  --char:         var(--brand);
  --char-soft:    var(--brand-dark);
  --green:        var(--blue);

  --shadow-sm: 0 1px 2px rgba(20,30,50,.05), 0 2px 8px rgba(20,30,50,.05);
  --shadow-md: 0 10px 34px rgba(20,30,50,.10), 0 2px 8px rgba(20,30,50,.05);
  --shadow-lg: 0 26px 64px rgba(20,30,50,.18);

  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }
::selection { background: var(--cobalt); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.font-serif { font-family: 'Playfair Display', Georgia, serif; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px)  { .container { padding-inline: 32px; } }
@media (min-width: 1024px) { .container { padding-inline: 48px; } }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cobalt); }
.eyebrow--light { color: var(--gold); }
.rule { height: 1px; background: var(--line); border: 0; }
.display { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  padding: 14px 26px; border-radius: 4px; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--cobalt); }
.btn-gold { background: var(--gold); color: var(--brand); }
.btn-gold:hover { background: #eca811; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--gold); color: var(--brand); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; background: #fff; color: var(--brand); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.link-ul { position: relative; font-weight: 500; }
.link-ul::after { content:""; position:absolute; left:0; bottom:-3px; height:1.5px; width:100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.link-ul:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Header ---------- */
.topbar { background: var(--brand); color: #fff; font-size: 12px; letter-spacing: .04em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%); border-bottom: 1px solid var(--line); transition: box-shadow .4s var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-row {
  height: 78px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  transition: height .4s var(--ease);
}
.site-header.scrolled .nav-row { height: 66px; }
.nav-col-left  { display:flex; align-items:center; justify-content:flex-start; }
.nav-col-center { display:flex; align-items:center; justify-content:center; gap:36px; }
.nav-col-right { display:flex; align-items:center; justify-content:flex-end; gap:2px; }

/* brand lockup: grammofono + wordmark */
.brand-lockup { display:inline-flex; align-items:center; gap:11px; }
.brand-mark { flex-shrink:0; height:48px; width:auto; background:var(--yellow); border-radius:8px; padding:4px 14px 4px 6px; display:flex; align-items:center; gap:8px; transition: transform .5s var(--ease), background 0.75s ease, box-shadow 0.75s ease; }
.brand-gram { width:38px; height:38px; object-fit:contain; display:block; flex-shrink:0; border-radius:6px; box-shadow:0 1px 4px rgba(0,0,0,.12); }
.brand-lockup:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.wordmark { display:inline-flex; flex-direction:column; line-height:1; }
.wordmark .wm-main { font-family:'Inter',sans-serif; font-weight:800; font-size:25px; letter-spacing:-0.02em; line-height:1; font-style:italic; }
.wordmark small { font-family:'Inter',sans-serif; font-weight:700; font-size:8.5px; letter-spacing:.16em; text-transform:uppercase; margin-top:4px; transition: color 0.65s ease, text-shadow 0.65s ease; }
/* wave animation on wordmark letters */
@keyframes wm-bounce { 0%,100%{transform:translateY(0)} 40%{transform:translateY(-7px)} 72%{transform:translateY(1.5px)} }
.wm-l { display:inline-block; transition: color 0.65s ease, text-shadow 0.65s ease; }
.wm-main.wm-anim .wm-l { animation: wm-bounce .42s ease both; }

/* nav + mega menu */
.nav-item { position: relative; }
.nav-link { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; color: var(--ink-soft); position: relative; padding: 8px 0; display:inline-flex; align-items:center; gap:5px; transition: color .25s var(--ease); cursor: pointer; }
.nav-link:hover, .nav-link.active, .nav-item:hover .nav-link { color: var(--brand); }
.nav-link::after { content:""; position:absolute; left:0; bottom:2px; height:2px; width:100%; background: var(--gold); transform: scaleX(0); transform-origin:center; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-link.active::after, .nav-item:hover .nav-link::after { transform: scaleX(1); }
.nav-caret { transition: transform .3s var(--ease); }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

.mega-panel {
  position: absolute; top: 100%; left: 0; transform: translateY(10px);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  border-radius: 8px; padding: 24px 26px; min-width: 440px;
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 55;
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.mega-panel--right { left: auto; right: 0; }
.mega-panel--wide { min-width: 660px; }
.mega-panel::before { content:""; position:absolute; top:-12px; left:0; right:0; height:12px; } /* bridge */
.nav-item:hover > .mega-panel, .nav-item:focus-within > .mega-panel { opacity:1; visibility:visible; transform: translateY(0); pointer-events:auto; }

.mega-title { font-size: 11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.mega-link { display:flex; align-items:center; gap:10px; padding:6px 0; font-size:14px; color: var(--ink-soft); transition: color .2s var(--ease), padding-left .2s var(--ease); }
.mega-link:hover { color: var(--brand); padding-left: 4px; }
.mega-link svg { color: var(--cobalt); flex-shrink:0; opacity:.85; }
.mega-foot { margin-top: 16px; padding-top:14px; border-top:1px solid var(--line); }

.icon-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; cursor:pointer; color:var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease); border:0; background:transparent; }
.icon-btn:hover { background: var(--paper-dim); color: var(--brand); }

/* Old pill toggle (kept for mobile overlay) */
.lang-toggle { display:inline-flex; align-items:center; border:1px solid var(--line-strong); border-radius:999px; overflow:hidden; font-size:12px; font-weight:700; }
.lang-toggle button { background:transparent; border:0; padding:6px 11px; cursor:pointer; color:var(--ink-muted); transition: background-color .25s, color .25s; }
.lang-toggle button.active { background: var(--brand); color:#fff; }

/* Globe language dropdown */
.lang-menu { position:relative; }
.lang-globe-btn { gap:3px; }
.lang-code-badge { font-size:10px; font-weight:800; letter-spacing:.04em; line-height:1; pointer-events:none; }
.lang-dropdown {
  position:absolute; top:calc(100% + 6px); right:0;
  background:var(--paper); border:1px solid var(--line); border-radius:10px;
  box-shadow:var(--shadow-md); padding:6px; min-width:148px;
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index:60;
}
.lang-dropdown.open { opacity:1; visibility:visible; transform:translateY(0); }
.lang-opt {
  display:flex; align-items:center; gap:9px; width:100%;
  background:none; border:0; cursor:pointer; padding:8px 10px;
  border-radius:7px; font-size:13px; font-weight:600; color:var(--ink-soft);
  transition: background-color .18s, color .18s;
}
.lang-opt:hover { background:var(--paper-dim); color:var(--brand); }
.lang-opt.active { color:var(--brand); }

/* Expandable search bar */
.search-wrap { display:inline-flex; align-items:center; position:relative; }
.header-search-input {
  width:0; opacity:0; pointer-events:none;
  border:1.5px solid transparent; background:transparent; color:var(--ink);
  border-radius:999px; padding:0; font-size:13.5px; font-family:inherit;
  outline:none; box-shadow:none;
  transition: width .32s var(--ease), opacity .28s ease, padding .28s ease, border-color .28s ease, background .28s ease;
}
.search-wrap.open .header-search-input {
  width:200px; opacity:1; pointer-events:auto;
  padding:8px 16px; margin-right:4px;
  border-color: var(--line);
  background: var(--paper);
}
.search-wrap.open .header-search-input:focus {
  border-color: var(--ink-soft);
}
.search-icon-btn { flex-shrink:0; }
[data-theme="dark"] .search-wrap.open .header-search-input { background: var(--paper-dim); }

.cart-count { position:absolute; top:3px; right:1px; min-width:18px; height:18px; padding:0 5px; background: var(--gold); color: var(--brand); border-radius:999px; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; line-height:1; transform: scale(0); transition: transform .3s var(--ease); }
.cart-count.show { transform: scale(1); }

/* mobile overlay + accordion */
.menu-overlay { position: fixed; inset: 0; z-index: 60; background: var(--paper); display:flex; flex-direction:column; transform: translateX(100%); transition: transform .45s var(--ease); overflow-y:auto; }
.menu-overlay.open { transform: translateX(0); }
.m-acc-head { display:flex; align-items:center; justify-content:space-between; width:100%; background:none; border:0; cursor:pointer; padding:16px 0; font-family:'Playfair Display',serif; font-size:26px; color: var(--brand); border-bottom:1px solid var(--line); }
.m-acc-head svg { transition: transform .3s var(--ease); }
.m-acc-head.open svg { transform: rotate(180deg); }
.m-acc-body { max-height:0; overflow:hidden; transition: max-height .4s var(--ease); }
.m-acc-body.open { max-height: 520px; }
.m-acc-body a { display:block; padding:9px 0 9px 4px; font-size:16px; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(110% 80% at 85% 0%, var(--blue-tint), transparent 60%), linear-gradient(180deg, #fff 0%, var(--paper-dim) 100%); overflow: hidden; }
.hero-accent { color: var(--gold); }
.drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) rotate(0); } to { transform: translate3d(0,-12px,0) rotate(2deg); } }

/* ---------- Plate (segnaposto foto) ---------- */
.plate { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-dim); display:flex; align-items:center; justify-content:center; }
.plate::after { content:""; position:absolute; inset:0; background: radial-gradient(75% 65% at 50% 38%, rgba(255,255,255,.5), transparent 70%); pointer-events:none; }
.plate--antiquariato { background: linear-gradient(160deg, #EEF2F8, #DFE7F2); }
.plate--modernariato { background: linear-gradient(160deg, #FCF1D6, #F6E2AE); }
.plate--design       { background: linear-gradient(160deg, #EDF0F4, #DCE2EA); }
.plate--oggettistica { background: linear-gradient(160deg, #E9EFF7, #D6E0EE); }
.plate-glyph { width: 52%; max-width: 200px; color: var(--brand); opacity: .62; transition: transform .8s var(--ease), opacity .5s var(--ease); position: relative; z-index:1; }
.plate-tag { position:absolute; top:13px; left:13px; z-index:2; font-size:10.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--brand); background: rgba(255,255,255,.78); backdrop-filter: blur(3px); padding:5px 9px; border-radius:3px; }
.plate-no { position:absolute; bottom:13px; left:13px; z-index:2; font-family:'Playfair Display',serif; font-style:italic; font-size:13px; color: var(--ink-muted); }
.plate-photo-note { position:absolute; bottom:13px; right:13px; z-index:2; font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; color: var(--ink-muted); opacity:.7; }
.zoom:hover .plate-glyph { transform: scale(1.07) rotate(-1deg); opacity:.8; }

/* ---------- Product card ---------- */
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow:hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-body { padding: 16px 17px 18px; }
.card-title { font-family:'Playfair Display',serif; font-size: 18px; font-weight:500; line-height:1.22; color: var(--ink); }
.price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand); }
.badge-unique { display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--cobalt); }

.icon-fab { position:absolute; z-index:3; width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background: rgba(255,255,255,.94); color: var(--brand); cursor:pointer; display:flex; align-items:center; justify-content:center; transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s, color .25s; }
.add-fab { top:12px; right:12px; opacity:0; transform: translateY(-6px); }
.card:hover .add-fab, .add-fab:focus-visible { opacity:1; transform: translateY(0); }
.add-fab:hover { background: var(--gold); color: var(--brand); border-color: var(--gold); }
.wish-fab { top:12px; left:12px; opacity:0; transform: translateY(-6px); }
.card:hover .wish-fab, .wish-fab:focus-visible { opacity:1; transform: translateY(0); }
.wish-fab:hover { color: var(--sale); }
.wish-fab.is-active { color: var(--sale); opacity:1; transform:none; }
.wish-fab.is-active svg { fill: var(--sale); }

/* ---------- Category tiles (home) ---------- */
.cat-tile { position: relative; overflow:hidden; border-radius: 12px; display:flex; align-items:flex-end; min-height: 220px; padding: 22px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-tile .cat-glyph { position:absolute; right:-6px; top:-6px; width:48%; max-width:180px; opacity:.5; transition: transform .7s var(--ease); }
.cat-tile:hover .cat-glyph { transform: scale(1.06) rotate(3deg); }
.cat-tile h3 { font-family:'Playfair Display',serif; font-size: 26px; font-weight:600; position:relative; z-index:1; display:flex; align-items:center; gap:10px; }
.cat-tile p { font-size: 13.5px; position:relative; z-index:1; margin-top:4px; }
.tile-blue  { background: #E7EEF8; color: var(--brand); } .tile-blue .cat-glyph { color: var(--brand); }
.tile-gold  { background: var(--gold-soft); color: var(--brand); } .tile-gold .cat-glyph { color: var(--brand); }
.tile-grey  { background: var(--paper-dim); color: var(--brand); } .tile-grey .cat-glyph { color: var(--brand); }
.tile-deep  { background: var(--brand); color: #fff; } .tile-deep .cat-glyph { color: #fff; }
.tile-arrow { display:inline-flex; width:30px; height:30px; align-items:center; justify-content:center; border:1.5px solid currentColor; border-radius:50%; transition: background-color .3s, color .3s; }
.cat-tile:hover .tile-arrow { background: var(--gold); color: var(--brand); border-color: var(--gold); }

/* ---------- "Esplora per" cards ---------- */
.explore-card { display:flex; flex-direction:column; border-radius:10px; overflow:hidden; border:1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.explore-card .ec-art { aspect-ratio: 16/10; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; }
.explore-card .ec-label { flex:1; padding: 16px 18px; display:flex; align-items:center; justify-content:space-between; }
.explore-card .ec-art--img { background-size:cover; background-position:center; }

/* Liquid glass: il testo galleggia su una prosecuzione sfocata dell'immagine */
.explore-card.has-img { background: center / cover; min-height: 340px; }
.explore-card.has-img .ec-art { flex: 2; aspect-ratio: unset; min-height: 0; overflow: hidden; }
.explore-card.has-img .ec-label {
  flex: 1;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(255, 252, 248, 0.72);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(60px, 8vw, 116px); }
.section-tight { padding-block: clamp(44px, 6vw, 76px); }
.section-dark { background: var(--brand); color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-tint { background: var(--paper-dim); }
.stat-num { font-family:'Playfair Display',serif; font-size: clamp(34px, 4.5vw, 52px); font-weight:500; line-height:1; color: var(--brand); }

/* ---------- Filter sidebar (catalogo) ---------- */
.filter-panel { }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-size: 11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.facet-link { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; text-align:left; background:none; border:0; cursor:pointer; padding:6px 0; font-size:14px; color:var(--ink-soft); transition: color .2s var(--ease); }
.facet-link:hover { color: var(--brand); }
.facet-link.is-active { color: var(--brand); font-weight:600; }
.facet-link .facet-count { font-size:12px; color: var(--ink-muted); font-variant-numeric:tabular-nums; }
.facet-link.is-active .facet-check { color: var(--cobalt); }

.chip-remove { display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:500; padding:7px 8px 7px 14px; border:1px solid var(--line-strong); border-radius:999px; background: var(--blue-tint); color: var(--brand); cursor:pointer; }
.chip-remove svg { width:14px; height:14px; }
.chip-remove:hover { border-color: var(--brand); }

/* mobile filter drawer */
.filter-drawer { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 60; background: var(--paper); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease); overflow-y:auto; padding: 22px; }
.filter-drawer.open { transform: translateX(0); }
.filter-backdrop { position: fixed; inset:0; z-index:59; background: rgba(20,30,50,.4); opacity:0; visibility:hidden; transition: opacity .35s, visibility .35s; }
.filter-backdrop.open { opacity:1; visibility:visible; }

/* ---------- Fulfillment selector (checkout) ---------- */
.fulfill-option { display:flex; gap:14px; padding:18px; border:1.5px solid var(--line); border-radius:8px; cursor:pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.fulfill-option:hover { border-color: var(--line-strong); }
.fulfill-option.is-selected { border-color: var(--brand); background: var(--blue-tint); }
.fulfill-radio { width:20px; height:20px; border-radius:50%; border:2px solid var(--line-strong); flex-shrink:0; margin-top:2px; position:relative; transition: border-color .25s; }
.fulfill-option.is-selected .fulfill-radio { border-color: var(--brand); }
.fulfill-option.is-selected .fulfill-radio::after { content:""; position:absolute; inset:3px; border-radius:50%; background: var(--brand); }

/* ---------- Forms ---------- */
.field label { display:block; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); margin-bottom:7px; }
.field input, .field select, .field textarea { width:100%; padding:13px 15px; background: var(--paper); border:1px solid var(--line-strong); border-radius:5px; font-family:inherit; font-size:15px; color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(30,91,184,.15); }

/* ---------- Misc ---------- */
.ornament { display:flex; align-items:center; justify-content:center; gap:14px; color: var(--gold); }
.ornament span { height:1px; width:48px; background: var(--line-strong); }

.toast { position: fixed; left:50%; bottom:28px; transform: translateX(-50%) translateY(140%); z-index:80; background: var(--brand); color:#fff; padding:14px 22px; border-radius:6px; box-shadow: var(--shadow-lg); display:flex; align-items:center; gap:12px; font-size:14px; transition: transform .45s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--gold); flex-shrink:0; }

.stepper { display:inline-flex; align-items:center; border:1px solid var(--line-strong); border-radius:5px; }
.stepper button { width:40px; height:42px; background:transparent; border:0; cursor:pointer; color:var(--ink); transition: background-color .2s; display:flex; align-items:center; justify-content:center; }
.stepper button:hover { background: var(--paper-dim); }
.stepper span { min-width:40px; text-align:center; font-variant-numeric:tabular-nums; font-weight:600; }

.filter-chip { font-size: 13px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; padding: 9px 17px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

.plate-thumb { aspect-ratio: 1 / 1; border-radius:6px; }
.plate-thumb .plate-tag, .plate-thumb .plate-no, .plate-thumb .plate-photo-note { display:none; }
.plate-thumb .plate-glyph { width: 50%; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 3px; }
section[id], div[id] { scroll-margin-top: 100px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--yellow)); transition: width .12s linear; pointer-events: none; }

/* ---------- Floating WhatsApp ---------- */
.wa-fab { position: fixed; right: 20px; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 0; background: #25D366; color: #fff; height: 56px; padding: 0 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(37,211,102,.4); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.wa-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 38px rgba(37,211,102,.5); }
.wa-fab svg { flex-shrink: 0; }
.wa-fab-label { font-weight: 600; font-size: 14px; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .45s var(--ease), opacity .3s var(--ease), margin-left .45s var(--ease); }
.wa-fab:hover .wa-fab-label { max-width: 220px; opacity: 1; margin-left: 10px; }
@media (max-width: 640px) { .wa-fab { right: 16px; bottom: 16px; height: 52px; padding: 0 14px; } }

/* ---------- Category tile — full-image + liquid glass ---------- */
.cat-tile.has-img {
  min-height: 360px;
  padding: 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

/* === Card categorie: wrapper con testo sotto === */
.cat-wrap { display:flex; flex-direction:column; }
.cat-wrap:hover .cat-tile { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-below { padding:14px 4px 4px; transition: transform .4s var(--ease); }
.cat-below h3 { font-family:'Playfair Display',serif; font-size:22px; font-weight:600; color:var(--brand); display:flex; align-items:center; gap:8px; }
.cat-below p { font-size:13.5px; color:var(--ink-muted); margin-top:4px; }
.cat-wrap:hover .cat-below { transform: translateY(-4px); }
.cat-below .tile-arrow { transition: transform .35s var(--ease); }
.cat-wrap:hover .cat-below .tile-arrow { transform: translateX(6px); }

.cat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform .7s var(--ease);
}

/* Pannello liquid glass — identico a .ec-label delle Esplora card */
.cat-glass {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 12px 22px 16px;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(255, 252, 248, 0.72);
}

.cat-glass h3 { color: var(--brand); font-family:'Playfair Display',serif; font-size:26px; font-weight:600; display:flex; align-items:center; gap:10px; }
.cat-glass p  { color: var(--ink-muted); font-size:13.5px; margin-top:4px; }

/* product photo */
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .7s var(--ease); }
.zoom:hover .plate-img { transform: scale(1.05); }

/* ---------- Sezione "Vendi con noi" ---------- */
.sell-band { background: linear-gradient(135deg, var(--blue-tint), #fff); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sell-art { background: radial-gradient(120% 120% at 30% 20%, var(--yellow-soft), var(--yellow) 75%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; min-height: 280px; }
.sell-art .gram { width: 56%; max-width: 260px; color: var(--brand); position: relative; z-index: 1; }
.sell-art .beetle { position: absolute; bottom: 18px; right: 20px; width: 120px; color: var(--brand); opacity: .9; z-index: 1; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; box-shadow: 0 10px 26px rgba(37,211,102,.4); }

/* ---------- micro-interazioni fluide ---------- */
.explore-card .ec-art svg { transition: transform .7s var(--ease); }
.explore-card:hover .ec-art svg { transform: scale(1.08) rotate(2deg); }
.explore-card .ec-label svg { transition: transform .35s var(--ease); }
.explore-card:hover .ec-label svg { transform: translateX(5px); }
.btn-gold, .btn-primary, .btn-wa { will-change: transform; }
.card a .plate { transition: filter .5s var(--ease); }
.card:hover a .plate { filter: saturate(1.05); }

/* ---------- Chatbot widget ---------- */
.wa-fab { bottom: 90px; }                          /* stack sopra il chat-fab */
@media (max-width: 640px) { .wa-fab { bottom: 80px; } }

.chat-fab { position: fixed; right: 20px; bottom: 22px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(20,60,142,.4); transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s var(--ease); }
.chat-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 38px rgba(20,60,142,.5); }
.chat-fab .chat-fab-dot { position: absolute; top: 12px; right: 13px; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; border: 2px solid var(--brand); }
@media (max-width: 640px) { .chat-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

body.chat-open .chat-fab, body.chat-open .wa-fab { opacity: 0; pointer-events: none; transform: scale(.6); }

.chat-panel { position: fixed; right: 20px; bottom: 22px; z-index: 75; width: min(380px, calc(100vw - 32px)); height: min(564px, calc(100vh - 110px)); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
@media (max-width: 640px) { .chat-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 24px); } }

.chat-head { background: var(--brand); color: #fff; padding: 16px 16px; display: flex; align-items: center; gap: 12px; }
.chat-head-mark { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.chat-head h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; line-height: 1.1; }
.chat-head p { font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.chat-head .dot-live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-head .chat-close { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color .25s; }
.chat-head .chat-close:hover { background: rgba(255,255,255,.15); }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--paper-dim); }
.chat-msg { max-width: 86%; font-size: 14px; line-height: 1.5; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.chat-msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a.inline-wa { color: #1ebe5b; font-weight: 600; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); opacity: .4; animation: chatblink 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; } .chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatblink { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }

.chat-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.chat-card { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; transition: border-color .25s, transform .25s; }
.chat-card:hover { border-color: var(--brand); transform: translateX(2px); }
.chat-card .chat-card-thumb { width: 46px; height: 46px; flex-shrink: 0; border-radius: 7px; overflow: hidden; }
.chat-card .chat-card-thumb .plate { border-radius: 7px; }
.chat-card .chat-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.chat-card .chat-card-name { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-card .chat-card-meta { display: block; font-size: 11px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-card .price { font-size: 13px; flex-shrink: 0; white-space: nowrap; align-self: center; margin-left: 8px; }
.chat-seeall { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--cobalt); }

.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.chat-chip { font-size: 12px; font-weight: 500; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--brand); cursor: pointer; transition: background-color .2s, color .2s; }
.chat-chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.chat-input input { flex: 1; border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 15px; font-family: inherit; font-size: 14px; color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(30,95,208,.14); }
.chat-input button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .25s, transform .2s; }
.chat-input button:hover { background: var(--cobalt); }
.chat-input button:active { transform: scale(.94); }
.chat-foot { font-size: 10.5px; text-align: center; color: var(--ink-muted); padding: 0 14px 10px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-zoom { opacity:0; transform: scale(1.04); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.reveal-zoom.in { opacity:1; transform:none; }

.marquee { display:flex; gap:40px; width:max-content; animation: marquee 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-zoom { opacity:1 !important; transform:none !important; }
  .drift { animation: none; }
}

@media (max-width: 640px) { body { font-size: 16px; } }

/* ============================================================
   HERO CAROSELLO
   ============================================================ */

.hero { background: #0c0d16; }

.hero-carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: rgba(8, 10, 20, 0.55);
}
.hero .eyebrow { color: var(--yellow); }
.hero .container { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero { background: var(--brand-dark); }
}

/* ============================================================
   BUTTON ENHANCEMENTS
   ============================================================ */

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

.btn-primary:hover { box-shadow: 0 10px 28px rgba(20,60,142,.32); }

/* Shimmer sweep sul CTA oro */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::before {
  content: ''; position: absolute; top: -20%; left: -85%;
  width: 45%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left .55s var(--ease);
}
.btn-gold:hover::before  { left: 160%; }

/* ============================================================
   CARD HOVER GLOW
   ============================================================ */

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(20,60,142,.15);
  border-color: var(--blue);
}

/* === Card esplora: wrapper con testo sotto === */
.ec-wrap { display:flex; flex-direction:column; }
.ec-below { padding:14px 4px 4px; transition: transform .4s var(--ease); }
.ec-below h3 { font-family:'Playfair Display',serif; font-size:20px; font-weight:600; color:var(--brand); display:flex; align-items:center; gap:8px; }
.ec-below p { font-size:13.5px; color:var(--ink-muted); margin-top:4px; }
.ec-wrap:hover .ec-below { transform: translateY(-4px); }
.ec-below .tile-arrow { transition: transform .35s var(--ease); }
.ec-wrap:hover .ec-below .tile-arrow { transform: translateX(6px); }

/* Override .reveal transition + stronger hover for explore cards */
.explore-card {
  transition: opacity 1s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease);
}
.explore-card:hover { transform: none; }
.ec-wrap:hover .explore-card {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(20,60,142,.15), 0 4px 12px rgba(20,60,142,.08);
  border-color: var(--brand);
}
.explore-card.has-img { min-height: 300px; }

/* ============================================================
   DARK MODE
   ============================================================ */

/* Smooth transition when toggling theme */
html.theme-fx, html.theme-fx * {
  transition: background-color .35s ease, color .25s ease,
              border-color .3s ease, box-shadow .3s ease !important;
}

[data-theme="dark"] {
  --paper:        #111827;
  --paper-dim:    #1A2337;
  --paper-deep:   #20293F;
  --blue-tint:    #1A2640;

  --ink:          #E8EDF8;
  --ink-soft:     #9AAAC2;
  --ink-muted:    #637090;
  --muted:        #637090;

  --brand:        #4E82D8;
  --brand-dark:   #3A68BE;
  --blue:         #5A90E8;
  --cyan:         #3DC5F0;
  --yellow:       #FFC61A;
  --yellow-soft:  #3A2E08;
  --red:          #FF6055;

  --line:         #25304A;
  --line-strong:  #2F3D5C;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.45);
  --shadow-md: 0 8px 32px rgba(0,0,0,.55);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.72);
}

/* Header glassmorphism */
[data-theme="dark"] .site-header {
  background: rgba(17,24,39,.88);
}

/* Hero */
[data-theme="dark"] .hero {
  background: radial-gradient(110% 80% at 85% 0%, var(--blue-tint), transparent 60%),
              linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
}

/* Product plate photo placeholders */
[data-theme="dark"] .plate--antiquariato { background: linear-gradient(160deg,#1E2B42,#1A2540); }
[data-theme="dark"] .plate--modernariato { background: linear-gradient(160deg,#2A2512,#1F1B0C); }
[data-theme="dark"] .plate--design       { background: linear-gradient(160deg,#1E2535,#18222E); }
[data-theme="dark"] .plate--oggettistica { background: linear-gradient(160deg,#1A2640,#15202C); }
[data-theme="dark"] .plate::after        { background: radial-gradient(75% 65% at 50% 38%, rgba(255,255,255,.05), transparent 70%); }
[data-theme="dark"] .plate-tag           { background: rgba(17,24,39,.75); color: var(--cyan); }

/* Product fab (+ button on card) */
[data-theme="dark"] .icon-fab { background: rgba(17,24,39,.9); border-color: var(--line-strong); }

/* Sell / conto vendita band */
[data-theme="dark"] .sell-band { background: linear-gradient(135deg, var(--blue-tint), var(--paper-deep)); }

/* Chat messages */
[data-theme="dark"] .chat-msg.bot  { background: var(--paper-deep); border-color: var(--line); }
[data-theme="dark"] .chat-card     { background: var(--paper-dim); }
[data-theme="dark"] .chat-input input { background: var(--paper-dim); color: var(--ink); }

/* Theme toggle button */
#theme-toggle { transition: color .25s, background-color .25s; }

/* ── Dark mode refinements ── */

/* 1. Amber muted invece del giallo sparato */
[data-theme="dark"] { --yellow: #C0882A; --yellow-soft: #3A2A06; }

/* 2. Brand-mark in dark: neon letters — colors come from inline styles (var(--brand)/var(--cyan)) */

/* 3. Niente alone luminoso sui FAB in dark mode */
[data-theme="dark"] .wa-fab   { box-shadow: 0 4px 12px rgba(0,0,0,.4); }
[data-theme="dark"] .chat-fab { box-shadow: 0 4px 12px rgba(0,0,0,.4); }
[data-theme="dark"] .wa-fab:hover   { box-shadow: 0 6px 16px rgba(0,0,0,.5); }
[data-theme="dark"] .chat-fab:hover { box-shadow: 0 6px 16px rgba(0,0,0,.5); }

/* 4. Section-dark (Come funziona + Footer) molto più scura */
[data-theme="dark"] .section-dark { background: #0A1520; }

/* 5. Nomi categorie e explore: slate invece di blu vivace */
[data-theme="dark"] .cat-below h3,
[data-theme="dark"] .ec-below h3 { color: #8A9EB8; }

/* 6. "Come funziona" box: scuro invece del celeste acceso */
[data-theme="dark"] .how-box { background: #162035 !important; }

/* 7. btn-gold: testo scuro in dark mode (su sfondo ambra) */
[data-theme="dark"] .btn-gold       { color: #0D1B36; }
[data-theme="dark"] .btn-gold:hover { background: #D4980E; color: #0D1B36; }

/* 8. Hover icon luna / sole */
@keyframes sun-spin  { 0% { transform:rotate(0deg)   } 100% { transform:rotate(180deg) } }
@keyframes moon-rock { 0%,100% { transform:rotate(0deg) } 35% { transform:rotate(-20deg) } 70% { transform:rotate(14deg) } }
#theme-toggle[data-icon="sun"]:hover  svg { animation: sun-spin  .5s ease; }
#theme-toggle[data-icon="moon"]:hover svg { animation: moon-rock .45s ease; }

/* 9. Fade fluido cambio lingua */
body { transition: opacity .18s ease; }
body.lang-out { opacity: 0; }

/* ── Preferiti / Favoriti ── */
.fav-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  color: var(--ink-muted); font-size: 12px; font-weight: 600;
  padding: 4px 6px; border-radius: 20px;
  transition: color .2s, transform .15s;
}
.fav-btn:hover { color: var(--red); transform: scale(1.1); }
.fav-btn.fav-active { color: var(--red); }
.fav-count { font-size: 11px; }

/* ── Prezzo scontato ── */
.price-orig { font-size: 12px; color: var(--ink-muted); text-decoration: line-through; margin-left: 4px; }
.disc-badge {
  display: inline-flex; align-items: center;
  background: var(--yellow-soft); color: var(--yellow);
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 20px; margin-left: 4px;
}
[data-theme="dark"] .disc-badge { background: rgba(192,136,42,.18); color: #D4980E; }

/* ── Overlay "Venduto" ── */
.plate-wrap { position: relative; }
.sold-overlay {
  position: absolute; inset: 0;
  background: rgba(8,13,26,.72);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 12px; pointer-events: none; z-index: 3;
}
.card-sold { opacity: .85; }
.card-sold:hover { opacity: 1; }

/* ── Cart side drawer ── */
#cart-drawer {
  position:fixed; inset:0; z-index:70; pointer-events:none;
}
#cart-drawer.open { pointer-events:auto; }
.cart-drawer-backdrop {
  position:absolute; inset:0; background:rgba(0,0,0,.45);
  opacity:0; transition:opacity .38s var(--ease);
}
#cart-drawer.open .cart-drawer-backdrop { opacity:1; }
.cart-drawer-panel {
  position:absolute; top:0; right:0; bottom:0; width:min(400px,95vw);
  background:var(--paper); display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform .42s var(--ease);
  box-shadow:var(--shadow-lg);
}
#cart-drawer.open .cart-drawer-panel { transform:translateX(0); }
.cart-drawer-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px; border-bottom:1px solid var(--line); flex-shrink:0;
}
.cart-drawer-body { flex:1; overflow-y:auto; padding:16px 24px; }
.cart-drawer-foot { padding:16px 24px; border-top:1px solid var(--line); flex-shrink:0; }
.cart-drawer-item {
  display:grid; grid-template-columns:72px 1fr auto;
  gap:14px; align-items:center; padding:14px 0;
  border-bottom:1px solid var(--line);
}
.cart-drawer-item:last-child { border-bottom:0; }
.cart-drawer-thumb { display:block; border-radius:8px; overflow:hidden; height:72px; }
.cart-drawer-thumb .plate { border-radius:8px; height:72px; }
.cart-drawer-info { min-width:0; }
.cart-drawer-name { font-weight:600; font-size:14px; line-height:1.3; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.cart-drawer-remove { color:var(--ink-muted); background:none; border:0; cursor:pointer; padding:4px; border-radius:6px; transition:color .18s; flex-shrink:0; }
.cart-drawer-remove:hover { color:var(--red); }
.cart-drawer-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; height:200px; color:var(--ink-muted); text-align:center; }

/* ── Dark mode: neon brand-mark (insegna vintage su fondo ambra) ── */
[data-theme="dark"] .brand-mark {
  background: #C88000;
  border-radius: 10px;
  /* Tubo neon giallo-arancio attorno alla targa */
  box-shadow:
    0 0 0 2px #7A4E00,
    0 0 0 4px #FFB800,
    0 0 10px #FFD700,
    0 0 22px rgba(255,185,0,.9),
    0 0 46px rgba(255,140,0,.6),
    0 0 72px rgba(220,100,0,.3),
    0 6px 24px rgba(0,0,0,.85);
}

/* "passa" → blu reale neon su fondo ambra */
[data-theme="dark"] .brand-mark .wm-main .wm-l:nth-child(-n+5) {
  color: #0033CC !important;
  text-shadow:
    0 0 2px #fff,
    0 0 5px #3366FF,
    0 0 14px #0033CC,
    0 0 28px rgba(0,50,200,.8);
}
/* "parola" → ciano neon */
[data-theme="dark"] .brand-mark .wm-main .wm-l:nth-child(n+6) {
  color: #0099EE !important;
  text-shadow:
    0 0 2px #fff,
    0 0 5px #33BBFF,
    0 0 14px #0088CC,
    0 0 28px rgba(0,130,220,.7);
}
/* "vintage ed altro" → rosso neon */
[data-theme="dark"] .brand-mark .wordmark small {
  color: #DD1500 !important;
  text-shadow:
    0 0 2px #fff,
    0 0 5px #FF2200,
    0 0 14px #CC1000,
    0 0 26px rgba(180,0,0,.75);
}

/* Flicker accensione — 2 secondi */
@keyframes neon-flicker {
  0%    { opacity:0; }
  3%    { opacity:1; }
  5%    { opacity:0; }
  9%    { opacity:0; }
  11%   { opacity:.9; }
  13%   { opacity:0; }
  18%   { opacity:0; }
  20%   { opacity:1; }
  21%   { opacity:.1; }
  24%   { opacity:0; }
  29%   { opacity:0; }
  31%   { opacity:.85; }
  35%   { opacity:.2; }
  38%   { opacity:0; }
  44%   { opacity:0; }
  46%   { opacity:.95; }
  50%   { opacity:.4; }
  55%   { opacity:1; }
  60%   { opacity:.7; }
  67%   { opacity:1; }
  76%   { opacity:.92; }
  85%   { opacity:1; }
  93%   { opacity:.97; }
  100%  { opacity:1; }
}
[data-theme="dark"] .brand-mark.neon-on .wm-main,
[data-theme="dark"] .brand-mark.neon-on small {
  animation: neon-flicker 2.0s cubic-bezier(.2,.6,.3,1) forwards;
}

/* Spegnimento smooth: flicker irregolare poi dissolvenza */
@keyframes neon-poweroff {
  0%   { opacity:1; }
  14%  { opacity:.5; }
  20%  { opacity:.92; }
  34%  { opacity:.25; }
  42%  { opacity:.7; }
  58%  { opacity:.12; }
  68%  { opacity:.35; }
  82%  { opacity:.06; }
  100% { opacity:0; }
}
[data-theme="dark"] .brand-mark.neon-off .wm-main,
[data-theme="dark"] .brand-mark.neon-off small {
  animation: neon-poweroff 0.72s ease-out both;
}

/* ── Dark mode: "Aperti dal 2003" stats badge ── */
[data-theme="dark"] .year-badge-card { background: #1C1400 !important; }
[data-theme="dark"] .year-badge-card .year-num,
[data-theme="dark"] .year-badge-card .year-lbl { color: #C0882A !important; }

/* ── Sell section: lista minimalista ── */
.sell-art-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 32px 32px 24px;
  background: var(--bg-tint, #F7F4ED);
}
[data-theme="dark"] .sell-art-list { background: #1a1710; }
.sell-list-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.sell-list-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 18px;
}
.sell-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sell-list-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--surface, #fff);
  border-radius: 8px;
  border: 1px solid var(--border-subtle, rgba(0,0,0,.08));
}
[data-theme="dark"] .sell-list-items li { background: #252218; border-color: rgba(255,255,255,.07); }
.sell-list-icon { font-size: 1.25rem; width: 28px; text-align: center; flex-shrink: 0; }
.sell-list-items li strong { display: block; font-size: .82rem; color: var(--ink); }
.sell-list-items li span { font-size: .74rem; color: var(--ink-soft); }

/* ── Splash screen ── */
#splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #F7F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
#splash-overlay.splash-hide {
  opacity: 0;
  pointer-events: none;
}
#splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#splash-line {
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  border-radius: 2px;
  width: 0;
  animation: splash-line .9s ease .1s forwards;
}
@keyframes splash-line { to { width: 180px; } }
#splash-logo {
  animation: splash-fade 1s ease .7s forwards;
  transform: scale(1);
}
@keyframes splash-fade { to { opacity: 1; } }
#splash-sub {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #999;
  opacity: 0;
  animation: splash-fade .8s ease 1.3s forwards;
}
#splash-dots {
  display: flex;
  gap: 6px;
  opacity: 0;
  animation: splash-fade .4s ease 1.7s forwards;
}
#splash-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: scale(0);
}
#splash-dots span:nth-child(1) { background: var(--brand); animation: splash-dot .4s ease 1.8s both; }
#splash-dots span:nth-child(2) { background: var(--cyan);  animation: splash-dot .4s ease 2.0s both; }
#splash-dots span:nth-child(3) { background: var(--gold);  animation: splash-dot .4s ease 2.2s both; }
@keyframes splash-dot {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
