/* Layout: barra in alto, contenuto centrato max 1200px; schede e tabelle su pannelli chiari */
:root {
  --bg: #eef0ee;
  --surface: #ffffff;
  --ink: #1b2422;
  --muted: #5f6b68;
  --line: #d9dedb;
  --accent: #5b3fd1;       /* viola */
  --accent-ink: #ffffff;
  --accent-soft: #e9e4fb;
  --hot: #d9541e;          /* arancio "filamento" per ciò che richiede attenzione */
  --danger: #b3261e;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121816; --surface: #1b2321; --ink: #e6ecea; --muted: #9aa8a4; --line: #2e3a37;
    --accent: #a28cf5; --accent-ink: #160d33; --accent-soft: #2a2350; --hot: #f07a45; --danger: #ef6b62;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font-body); }
body.no-scroll { overflow: hidden; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono, .sku { font-family: var(--font-mono); font-size: .82rem; }
.sku { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.warn { color: var(--hot); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* barra */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 10px max(16px, calc((100% - 1200px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: var(--muted); font-size: .75rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background:
  repeating-linear-gradient(0deg, var(--accent) 0 3px, transparent 3px 6px), var(--accent-soft); border: 2px solid var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--bg); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--hot); color: #fff; font-size: .75rem; text-align: center; font-weight: 600; }
.userbox { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.who { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .9rem; }
.demo-banner { background: var(--hot); color: #fff; text-align: center; padding: 6px 16px; font-size: .85rem; }

.app { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* bottoni e campi */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.wide { width: 100%; margin-top: 12px; }
.danger-text { color: var(--danger) !important; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px 0; font: inherit; text-decoration: underline; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px 8px; border-radius: 6px; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
label { display: block; font-size: .85rem; font-weight: 500; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { opacity: .7; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto; }
.search { width: 300px; max-width: 100%; }
.hint { color: var(--muted); font-size: .85rem; }
.error { color: var(--danger); font-size: .9rem; margin: 8px 0 0; }
.notice { background: var(--accent-soft); color: var(--ink); padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; }

/* chip filtri */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 12px; border-radius: 999px; cursor: pointer; font: 500 .88rem var(--font-body); }
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip .count { opacity: .65; font-variant-numeric: tabular-nums; }

/* catalogo */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.card.off { opacity: .6; }
.card-top { display: flex; justify-content: space-between; gap: 8px; }
.cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; }
.card h3 { margin: 4px 0 0; }
.desc { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stock { font-size: .78rem; color: var(--accent); }
.stock.no { color: var(--danger); }
.buy { display: flex; gap: 6px; align-items: center; }
.buy input { width: 62px; padding: 6px 8px; }

/* pannelli e tabelle */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel.flush { padding: 0; overflow: hidden; }
.pad { padding: 18px; margin: 0; }
.scroll-x { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table.clickable tbody tr { cursor: pointer; }
.table.clickable tbody tr:hover { background: var(--bg); }
.table tr.is-new td:first-child { box-shadow: inset 4px 0 0 var(--hot); }
.qty { width: 72px; text-align: right; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.side { position: sticky; top: 80px; }
.ship { margin-top: 12px; font-size: .9rem; padding: 10px; background: var(--bg); border-radius: 8px; }
.totals { margin: 8px 0; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-weight: 700; font-size: 1.1rem; }
.totals .grand dt { color: var(--ink); }

/* stati */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.st-new  { background: #fde5d8; color: #9a3412; }
.st-ok   { background: #e9e4fb; color: #0f5a4d; }
.st-work { background: #e3e8fb; color: #2f43a1; }
.st-ship { background: #efe2fa; color: #6b2fa0; }
.st-done { background: #e4ecd9; color: #3d5c19; }
.st-void { background: transparent; color: var(--muted); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
  .st-new  { background: #4a2414; color: #ffb48f; }
  .st-ok   { background: #173a33; color: #7fdcc6; }
  .st-work { background: #1f2952; color: #a9b8ff; }
  .st-ship { background: #34204a; color: #d6b0f5; }
  .st-done { background: #26361a; color: #b9d98f; }
}

/* ordini cliente */
.orders { display: grid; gap: 14px; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.order-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-card h3 { margin: 0; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.order-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.right { text-align: right; }
.steps { display: flex; list-style: none; padding: 0; margin: 0; gap: 0; }
.steps li { flex: 1; position: relative; padding-top: 16px; font-size: .78rem; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; background: var(--line); }
.steps li.done::before { background: var(--accent); }
.steps li.cur span { color: var(--ink); font-weight: 600; }
.steps li small { display: block; }

/* riepilogo admin */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.tile span { color: var(--muted); font-size: .85rem; }
.tile strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
a.tile:hover { border-color: var(--accent); }
.tile.alert { border-left: 4px solid var(--hot); }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.two-col.tight { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.toplist { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toplist li span { margin-right: 8px; }
.toplist li { display: list-item; }
.toplist li strong { float: right; font-variant-numeric: tabular-nums; }

/* accesso */
.auth { display: flex; justify-content: center; padding-top: 32px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 9px; margin-bottom: 8px; }
.tab { flex: 1; border: 0; background: none; padding: 8px; border-radius: 7px; font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer; }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.demo-box { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.demo-box p { margin: 0 0 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.success { max-width: 560px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; }

/* finestra */
.modal { position: fixed; inset: 0; background: rgba(10, 16, 14, .5); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: var(--surface); color: var(--ink); border-radius: 12px; padding: 22px; width: 100%; max-width: 760px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head > div { flex: 1; }
.box { background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.box p { margin: 0 0 8px; }
.box h3 { margin-bottom: 6px; }
.box label:first-of-type { margin-top: 0; }
.client-note { background: var(--accent-soft); padding: 10px 12px; border-radius: 8px; }
.history { margin: 12px 0; font-size: .88rem; }
.history ul { margin: 6px 0 0; padding-left: 18px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.actions.spread { justify-content: space-between; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 18px; border-radius: 8px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--hot); color: #fff; }

@media (max-width: 860px) {
  .cart-layout, .two-col, .two-col.tight { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .topbar { gap: 8px 10px; }
  .brand small { display: none; }
  .userbox { margin-left: auto; }
  .who { max-width: 120px; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
  .steps li span { font-size: .7rem; }
  h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== ritiro in negozio ===== */
.footer { max-width: 1200px; margin: 0 auto; padding: 0 16px 32px; color: var(--muted); font-size: .85rem; }
.pickup { background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: .9rem; margin: 8px 0 4px; }
.linkbox { display: flex; gap: 8px; margin: 8px 0 16px; }
.linkbox input { font-family: var(--font-mono); font-size: .8rem; }
.status-card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--hot); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.status-card.is-ready { border-left-color: var(--accent); background: var(--accent-soft); }
.status-card h1 { margin: 2px 0 6px; }
.status-card p { margin: 0; }
.status-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 3px dashed var(--hot); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--accent-ink); }
.is-ready .status-icon { border: 0; background: var(--accent); }
.status-card + .panel .totals { margin-top: 12px; }

.admin-orders { display: grid; gap: 10px; }
.aorder { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--hot); border-radius: var(--radius); padding: 14px 16px; }
.aorder.is-ready { border-left-color: var(--accent); }
.aorder-main { cursor: pointer; display: grid; gap: 4px; min-width: 0; }
.aorder-main:hover strong { text-decoration: underline; }
.aorder-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.aorder-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-variant-numeric: tabular-nums; }
.note { color: var(--hot); }
.ready-toggle { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; cursor: pointer; font-size: .75rem; font-weight: 600; color: var(--muted); user-select: none; }
.ready-toggle input { appearance: none; -webkit-appearance: none; width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; display: grid; place-items: center; padding: 0; }
.ready-toggle input::after { content: "✓"; font-size: 1.2rem; font-weight: 700; color: transparent; }
.ready-toggle input:hover { border-color: var(--accent); }
.ready-toggle input:checked { background: var(--accent); border-color: var(--accent); }
.ready-toggle input:checked::after { color: var(--accent-ink); }
.ready-toggle input:checked + span { color: var(--accent); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag.todo { background: #fde5d8; color: #9a3412; border-color: transparent; }
.notify-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.btn.whatsapp { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
@media (max-width: 560px) {
  .aorder { grid-template-columns: auto 1fr; }
  .aorder-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; min-width: 0; }
  .status-card { flex-direction: column; }
}

/* ===== acconto ===== */
.totals .balance { font-weight: 700; color: var(--accent); }
.totals .balance dt { color: var(--accent); }
.dep-check { margin-top: 14px; }
.dep { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.dep.ok { background: var(--accent-soft); color: var(--accent); }
.dep.check { background: #fde5d8; color: #9a3412; }
.dep.none { color: var(--muted); font-weight: 400; }
@media (prefers-color-scheme: dark) { .dep.check, .tag.todo { background: #4a2414; color: #ffb48f; } }
.dep-box { margin-top: 12px; }
.dep-box p { margin: 0 0 4px; }
.dep-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.dep-row > div { width: 140px; }
.dep-row label.check { margin: 0 0 10px; }
.dep-row .btn { margin-bottom: 2px; }

/* ===== colori e personalizzazioni ===== */
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c, #bbb); border: 1px solid rgba(0,0,0,.25); vertical-align: -2px; margin-right: 5px; flex: none; padding: 0; }
.sw.big { width: 26px; height: 26px; margin: 0; }
button.sw { width: 20px; height: 20px; cursor: pointer; margin: 0; }
button.sw:hover { transform: scale(1.15); }
.sw-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.sw-row.inline { display: inline-flex; gap: 2px; margin: 0; vertical-align: middle; }
.sw-row.inline .sw { margin: 0; width: 12px; height: 12px; }
.color-pick { display: flex; gap: 8px; align-items: center; }
.opts { display: grid; gap: 8px; margin-top: 6px; }
.opt label { margin: 0 0 4px; }
.opt textarea { resize: vertical; }
.badge-perso { font-size: .7rem; font-weight: 600; color: var(--hot); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }
.details { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.perso { color: var(--ink); font-style: italic; white-space: pre-line; }
.tbd { color: var(--hot); font-weight: 600; font-size: .85rem; }
.custom-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--ink); color: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.custom-cta h2 { margin: 0 0 2px; }
.custom-cta p { margin: 0; opacity: .8; }
.custom-cta .btn { background: var(--hot); border-color: var(--hot); color: #fff; }
.aitems { list-style: none; margin: 0; padding: 0; font-size: .88rem; display: grid; gap: 2px; }
.price-in { width: 110px; text-align: right; padding: 6px 8px; }
.price-in:placeholder-shown { border-color: var(--hot); }
.warn-notice { background: #fde5d8; color: #7c2d12; }
.row.end { justify-content: flex-end; margin: 8px 0; }
.fs { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 14px; margin: 12px 0 0; }
.fs legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.color-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; margin: 6px 0; }
.color-check { display: flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; cursor: pointer; }
.color-check input { width: auto; margin-right: 4px; }
@media (prefers-color-scheme: dark) { .warn-notice { background: #4a2414; color: #ffb48f; } .custom-cta { background: #2a3633; color: var(--ink); } }

/* ===== spunta "fatto" per articolo ===== */
.item-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-weight: 400; font-size: inherit; cursor: pointer; }
.item-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; border: 2px solid var(--line); border-radius: 5px; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.item-check input::after { content: "✓"; font-size: .8rem; font-weight: 700; color: transparent; }
.item-check input:hover { border-color: var(--accent); }
.item-check input:checked { background: var(--accent); border-color: var(--accent); }
.item-check input:checked::after { color: var(--accent-ink); }
.item-check.big input { width: 26px; height: 26px; }
.item-check.big input::after { font-size: 1rem; }
.aitems li { padding: 3px 0; }
.aitems li.done > label > span, tr.done td:not(:first-child) { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); }
tr.done .price-in { text-decoration: none; }
.prog { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.prog.all { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ===== bicolore ===== */
.bico { display: inline-block; font-size: .7rem; font-weight: 600; text-decoration: none; padding: 0 6px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, var(--accent) 50%, var(--hot) 50%); vertical-align: 1px; }
.bico-check { margin: 0 0 4px; }
.bico-admin { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.bico-admin .field { max-width: 280px; }

/* ===== foto prodotti ===== */
.card.has-img { padding-top: 0; overflow: hidden; }
.card-img { display: block; position: relative; margin: 0 -16px 8px; padding: 0; border: 0; background: var(--bg); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.card-img:hover img { transform: scale(1.03); }
.img-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.modal-card.wide { max-width: 860px; }
.gallery-main { background: var(--bg); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { max-width: 100%; max-height: 70vh; display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; width: 72px; height: 72px; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-cell { display: flex; gap: 10px; align-items: center; }
.mini { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.mini.none { display: grid; place-items: center; border: 1px dashed var(--line); color: var(--muted); font-size: .65rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.photo-item { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); aspect-ratio: 1; }
.photo-item.main { border: 2px solid var(--accent); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tag, .photo-btn { position: absolute; left: 6px; bottom: 6px; font: 600 .7rem var(--font-body); padding: 3px 8px; border-radius: 999px; border: 0; }
.photo-tag { background: var(--accent); color: var(--accent-ink); }
.photo-btn { background: rgba(255,255,255,.92); color: #1b2422; cursor: pointer; }
.photo-del { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.92); color: #1b2422; }
.photo-add { cursor: pointer; margin: 0; display: inline-flex; }
.photo-add[hidden] { display: none; }

/* ===== componi il centrotavola ===== */
.compo-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; text-decoration: none; color: var(--ink); background: linear-gradient(120deg, var(--accent-soft), var(--surface)); border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.compo-cta h2 { margin: 2px 0; font-size: 1.25rem; }
.compo-cta p { margin: 0; color: var(--muted); }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hot); }
.compo-cta:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.builder { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.builder-main { display: grid; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step.disabled { opacity: .55; }
.step h2 { display: flex; align-items: center; gap: 10px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .9rem; }
.counter { margin-left: auto; font-size: .85rem; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.counter.full { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.base-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pick-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; overflow: hidden; font: inherit; }
.pick-card:hover { border-color: var(--accent); }
.pick-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick-img, .addon-img { display: block; aspect-ratio: 4/3; background: var(--bg); overflow: hidden; border: 0; padding: 0; width: 100%; }
.pick-img img, .addon-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--bg) 0 10px, var(--surface) 10px 20px); }
.pick-body { display: grid; gap: 4px; padding: 12px; }
.pick-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; }
.pick-card .price { font-size: 1.1rem; }
.base-color { margin-top: 12px; max-width: 360px; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.addon-card { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 10px; overflow: hidden; background: var(--surface); }
.addon-card > :not(.addon-img):not(.addon-n) { margin: 0 10px; }
.addon-card.chosen { border-color: var(--accent); }
.addon-img { aspect-ratio: 1; cursor: zoom-in; }
span.addon-img { cursor: default; }
.addon-n { position: absolute; top: 6px; right: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.addon-color { padding: 5px 8px; font-size: .85rem; width: auto; }
.builder-summary .sum-base { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.sum-base img, .sum-base .noimg { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; }
.sum-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 2px; font-size: .9rem; }
.sum-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
.inline-label { margin: 0; }
.comp-list { font-size: .85rem; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.comp-chip { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: .78rem; color: var(--ink); text-decoration: none; }
.comp-line { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } .builder-summary { position: static; } }

/* ===== notifiche ===== */
.notif-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
.steps-list { padding-left: 20px; display: grid; gap: 10px; margin: 12px 0 16px; }
.steps-list .linkbox { margin: 6px 0 0; max-width: 420px; }
code { font-family: var(--font-mono); font-size: .85em; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 860px) { .notif-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   PIÙ VIVA: carattere tondo, intestazione animata, coriandoli, neve
   ===================================================================== */
:root { --font-display: "Fredoka", "Nunito", "Trebuchet MS", system-ui, sans-serif; --sun: #ffc93c; --pink: #ff6b9a; }
h1, h2, .brand strong, .price, .tile strong, .hero h1 { font-family: var(--font-display); letter-spacing: 0; }
h1 { font-weight: 700; }
h2 { font-weight: 600; }
.price { font-weight: 600; }
body.admin-mode h1, body.admin-mode h2 { font-family: var(--font-body); }

/* logo: strati di stampa che scorrono */
.brand-mark { background: repeating-linear-gradient(0deg, var(--accent) 0 3px, transparent 3px 6px), var(--accent-soft); background-size: 100% 12px; animation: layers 2.4s linear infinite; }
@keyframes layers { to { background-position: 0 -12px; } }

/* intestazione catalogo */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: center; border-radius: 18px; padding: 28px 28px 24px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(120deg, #5b3fd1, #7a5cf0 40%, #e2561d 100%); background-size: 200% 200%; animation: heroGrad 14s ease-in-out infinite; }
@keyframes heroGrad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sm { grid-template-columns: 1fr; padding: 22px 24px; }
.hero-text { position: relative; z-index: 2; }
.hero-kicker { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; margin: 12px 0 8px; color: #fff; }
.hero-sm h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 10px; }
.hero .hl { color: var(--sun); position: relative; white-space: nowrap; }
.hero .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .18em; background: var(--sun); opacity: .35; border-radius: 4px; transform-origin: left; animation: underline 1s .4s ease-out both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero p { margin: 0; max-width: 52ch; opacity: .95; font-size: 1.02rem; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.perks span { background: rgba(255,255,255,.95); color: #1b2422; font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); animation: popIn .5s cubic-bezier(.3,1.6,.5,1) both; }
.perks span:nth-child(2) { animation-delay: .1s; } .perks span:nth-child(3) { animation-delay: .2s; } .perks span:nth-child(4) { animation-delay: .3s; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.hero-art { position: relative; height: 210px; z-index: 1; }
.float { position: absolute; font-size: 2.6rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); animation: bob 4s ease-in-out infinite; }
.f0 { left: 10%; top: 8%; font-size: 3.4rem; } .f1 { left: 58%; top: 2%; animation-delay: .6s; } .f2 { left: 78%; top: 44%; animation-delay: 1.2s; font-size: 3rem; }
.f3 { left: 30%; top: 58%; animation-delay: 1.8s; } .f4 { left: 4%; top: 64%; animation-delay: 2.4s; font-size: 2rem; } .f5 { left: 50%; top: 40%; animation-delay: 3s; font-size: 2.2rem; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.cube { position: absolute; right: 8%; bottom: 6%; width: 54px; height: 54px; border-radius: 10px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.9) 0 4px, rgba(255,255,255,.55) 4px 8px); transform: rotate(12deg); animation: grow 3.5s ease-in-out infinite; transform-origin: bottom; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
@keyframes grow { 0% { clip-path: inset(100% 0 0 0); } 60%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.snow span { position: absolute; top: -20px; color: rgba(255,255,255,.85); animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(260px) translateX(20px) rotate(180deg); } }

.search-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 16px; margin-bottom: 14px; transition: border-color .2s, box-shadow .2s; }
.search-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-row .search { border: 0; box-shadow: none !important; width: 100%; background: transparent; }

/* banner sezioni */
.compo-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; }
.compo-emoji { display: flex; gap: 2px; font-size: 1.9rem; }
.compo-emoji span { display: inline-block; animation: bob 2.6s ease-in-out infinite; }
.compo-cta .btn { transition: transform .2s; }
.compo-cta:hover .btn { transform: translateX(4px); }
.custom-cta { background: linear-gradient(110deg, #1b2422, #2c3a37); }

/* chip categorie */
.cats { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
.cats .chip { white-space: nowrap; font-size: .95rem; padding: 8px 14px; transition: transform .15s; }
.cats .chip:hover { transform: translateY(-2px); }
.cats .chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* schede prodotto */
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; border-radius: 14px; }
.card:not(.off):hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(91,63,209,.14); border-color: var(--accent); }
.card.enter { animation: cardIn .5s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.card .price { font-size: 1.45rem; color: var(--accent); }
.badge-perso { color: #fff; background: linear-gradient(90deg, var(--hot), var(--pink)); border: 0; }
.badge-col { font-size: .7rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.add-btn { transition: transform .15s, background .2s; }
.add-btn:active { transform: scale(.93); }
.add-btn.added { background: var(--hot); border-color: var(--hot); animation: popIn .35s cubic-bezier(.3,1.6,.5,1); }
.btn { transition: transform .12s, filter .2s; border-radius: 10px; }
.btn:not(:disabled):active { transform: scale(.96); }
.send-btn { font-size: 1.05rem; padding: 12px 16px; background: linear-gradient(90deg, var(--accent), #14907b); }
.badge.bump { animation: bump .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }

/* coriandoli */
.confetto { position: fixed; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 200; transform: translate(-50%, -50%); animation: conf 1.1s cubic-bezier(.15,.7,.35,1) forwards; }
@keyframes conf { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)); opacity: 0; } }

/* vuoti, successi, stato */
.big-empty { padding: 40px 24px; display: grid; justify-items: center; gap: 4px; }
.big-empty p { margin: 0; }
.big-empty .btn { margin-top: 12px; }
.empty-emoji { font-size: 3.4rem; animation: bob 3s ease-in-out infinite; }
.success { text-align: center; }
.success .row { justify-content: center; }
.success-emoji { font-size: 4rem; animation: popIn .6s cubic-bezier(.3,1.6,.5,1) both, bob 3s 1s ease-in-out infinite; }
.success h1 { font-size: 2rem; }
.status-icon { font-size: 1.7rem; border: 0 !important; background: var(--surface) !important; box-shadow: 0 4px 12px rgba(0,0,0,.1); width: 60px; height: 60px; }
.status-card:not(.is-ready) .status-icon { animation: printing 1.2s ease-in-out infinite; }
@keyframes printing { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
.status-card.is-ready .status-icon { animation: popIn .6s cubic-bezier(.3,1.6,.5,1) both; }
.status-card h1 { font-size: 1.8rem; }
.print-bar { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; margin: 6px 0 10px; max-width: 360px; }
.print-bar span { display: block; height: 100%; width: 60%; border-radius: 999px; background: repeating-linear-gradient(45deg, var(--hot) 0 10px, var(--sun) 10px 20px); background-size: 28px 28px; animation: stripes .8s linear infinite, progress 4s ease-in-out infinite alternate; }
@keyframes stripes { to { background-position: 28px 0; } }
@keyframes progress { from { width: 25%; } to { width: 85%; } }

/* componi */
.step { border-radius: 14px; }
.step-n { background: linear-gradient(135deg, var(--accent), var(--hot)); }
.pick-card, .addon-card { transition: transform .2s, box-shadow .2s, border-color .2s; border-radius: 14px; }
.pick-card:hover, .addon-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
.addon-n { animation: popIn .35s cubic-bezier(.3,1.6,.5,1); }
.counter.pop { animation: bump .45s cubic-bezier(.3,1.8,.5,1); }
.addon-card.chosen { box-shadow: 0 0 0 3px var(--accent-soft); }

/* telefono */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .hero-art { position: absolute; inset: 0; height: auto; opacity: .35; }
  .compo-cta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .brand-mark, .float, .cube, .snow, .compo-emoji span, .empty-emoji, .success-emoji, .print-bar span, .status-icon { animation: none !important; }
  .card.enter { animation: none; }
}
.add-btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.buy input { width: 52px; }
.noimg { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--accent-soft), var(--bg) 70%); }
.noimg > span { font-size: 3rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); transition: transform .3s; }
.addon-card:hover .noimg > span, .pick-card:hover .noimg > span { transform: scale(1.15) rotate(-6deg); }
.sum-base .noimg > span { font-size: 1.6rem; }

/* =====================================================================
   COLORI IN MOVIMENTO (solo pagine dei clienti e rivenditori)
   ===================================================================== */
body:not(.admin-mode) { background: #f3f1ec; }
body:not(.admin-mode)::before, body:not(.admin-mode)::after {
  content: ""; position: fixed; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
body:not(.admin-mode)::before { top: -25vmax; left: -20vmax; background: radial-gradient(circle, #ffd27a, #ff8fb1 45%, transparent 70%); animation: blobA 22s ease-in-out infinite alternate; }
body:not(.admin-mode)::after { bottom: -30vmax; right: -25vmax; background: radial-gradient(circle, #7fe0c8, #8fb4ff 45%, transparent 70%); animation: blobB 26s ease-in-out infinite alternate; }
@keyframes blobA { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(25vw, 15vh) scale(1.15); } 100% { transform: translate(10vw, 40vh) scale(.95); } }
@keyframes blobB { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30vw, -20vh) scale(1.1); } 100% { transform: translate(-10vw, -45vh) scale(.9); } }
@media (prefers-color-scheme: dark) { body:not(.admin-mode) { background: #101615; } body:not(.admin-mode)::before, body:not(.admin-mode)::after { opacity: .22; } }
body:not(.admin-mode) .topbar { background: rgba(255,255,255,.82); backdrop-filter: blur(10px); }
@media (prefers-color-scheme: dark) { body:not(.admin-mode) .topbar { background: rgba(27,35,33,.85); } }

/* scritte colorate e animate */
.rainbow, body:not(.admin-mode) .page-head h1, body:not(.admin-mode) .step h2, body:not(.admin-mode) .success h1, body:not(.admin-mode) .status-card h1, body:not(.admin-mode) .compo-cta h2, body:not(.admin-mode) .card h3 {
  background: linear-gradient(90deg, #5b3fd1, #8f6cf7, #e2561d, #ff4f8b, #7b3fe4, #5b3fd1); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: rainbow 8s linear infinite; }
body:not(.admin-mode) .card h3 { animation-duration: 12s; background-size: 400% 100%; }
body:not(.admin-mode) .step h2 .step-n, body:not(.admin-mode) .step h2 .counter { -webkit-text-fill-color: initial; color: var(--surface); }
body:not(.admin-mode) .step h2 .counter { color: var(--muted); }
body:not(.admin-mode) .step h2 .counter.full { color: var(--accent-ink); }
@keyframes rainbow { to { background-position: 300% 0; } }
@media (prefers-color-scheme: dark) { .rainbow, body:not(.admin-mode) .page-head h1, body:not(.admin-mode) .step h2, body:not(.admin-mode) .success h1, body:not(.admin-mode) .status-card h1, body:not(.admin-mode) .compo-cta h2, body:not(.admin-mode) .card h3 { background-image: linear-gradient(90deg, #5fe0c4, #ffd27a, #ff8a5c, #ff7eb0, #b79bff, #5fe0c4); } }
.wave .w { display: inline-block; animation: wave 3.2s ease-in-out infinite; animation-delay: calc(var(--d) * .12s); }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
.hero .hl { background: linear-gradient(90deg, #ffe066, #ffb347, #ff8fb1, #ffe066); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: rainbow 5s linear infinite; }

.hero .hl::after { background: linear-gradient(90deg, #ffe066, #ff8fb1); }
.brand strong { background: linear-gradient(90deg, var(--accent), var(--hot), var(--pink), var(--accent)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: rainbow 10s linear infinite; }
body.admin-mode .brand strong { animation: none; }
.card .price, .pick-card .price { background: linear-gradient(90deg, var(--accent), #8f6cf7); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.card .price .tbd { -webkit-text-fill-color: var(--hot); font-size: .9rem; }
.chip.active { box-shadow: 0 4px 14px rgba(91,63,209,.25); }
.perks span { animation: popIn .5s cubic-bezier(.3,1.6,.5,1) both, floaty 4s 1s ease-in-out infinite; }
.perks span:nth-child(2) { animation-delay: .1s, 1.4s; } .perks span:nth-child(3) { animation-delay: .2s, 1.8s; } .perks span:nth-child(4) { animation-delay: .3s, 2.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* rivenditori */
.hero-res { background: linear-gradient(120deg, #3b2f8f, #6a3fd6 45%, #e2561d 100%); background-size: 200% 200%; }
.res-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, #5b3fd0, #8f5cf0); }
.res-who { color: #5b3fd0; font-weight: 600; }
.res-box { background: #efe9ff; color: #2c1f6e; border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
@media (prefers-color-scheme: dark) { .res-box { background: #2a2350; color: #e2dbff; } .res-who { color: #b9a6ff; } }
.res-order { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.res-order:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.res-order.is-ready { border-left: 5px solid var(--accent); }
.rp-in { width: 120px; }

/* foto dei clienti */
.photo-chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #e3f0ff; color: #1e4fb3; text-decoration: none; }
@media (prefers-color-scheme: dark) { .photo-chip { background: #1d2c4a; color: #9cc0ff; } }
.cr-photos { border: 2px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0 8px; background: var(--bg); }
.cr-photos .hint { margin: 4px 0 8px; }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.order-photos { margin: 10px 0; }
.photo-item.zoom { padding: 0; cursor: zoom-in; }
.zoom-ov { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 20px; gap: 12px; grid-template-rows: 1fr auto; }
.zoom-ov img { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.zoom-bar { display: flex; gap: 10px; }
.zoom-bar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .wave .w, .rainbow, .page-head h1, .step h2, .card h3, .hero .hl, .brand strong, .perks span { animation: none !important; }
}
.emo { -webkit-text-fill-color: initial; color: initial; background: none; }
.hidden-list { margin-top: 14px; }
.hidden-list summary { cursor: pointer; }
.hidden-list ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.hidden-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.mini-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; flex: none; }
.mini-btn:hover .mini { outline: 2px solid var(--accent); }
.mini-btn .mini.none { width: 44px; height: 44px; font-size: .7rem; }

/* ===== scelta del modello dalle foto ===== */
.model-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 2px dashed var(--hot); border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 .88rem var(--font-body); cursor: pointer; text-align: left; transition: transform .15s, border-color .2s; }
.model-btn:hover { transform: translateY(-1px); }
.model-btn.chosen { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.model-btn img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; max-height: 64vh; overflow-y: auto; padding: 4px; }
.model-tile { position: relative; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--bg); aspect-ratio: 1; transition: transform .15s, border-color .15s; }
.model-tile:hover { transform: scale(1.02); }
.model-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.model-tile span { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font: 600 .78rem var(--font-body); padding: 3px 10px; border-radius: 999px; }
.model-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.model-tile.selected::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; animation: popIn .3s cubic-bezier(.3,1.6,.5,1); }
.model-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; text-decoration: none; }
.model-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.sum-tiny { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; vertical-align: middle; margin-right: 5px; }
.photo-num { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font: 600 .7rem var(--font-body); padding: 2px 7px; border-radius: 999px; }
.pick-check { margin: 10px 0 2px; align-items: flex-start; }
.pick-check input { margin-top: 3px; }

/* ===== pulsante Info ===== */
.info-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 6px; padding: 12px 18px; border: 0; border-radius: 999px; font: 700 1rem var(--font-display); color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #1f8f4e, #14907b); box-shadow: 0 8px 24px rgba(20,144,123,.4); animation: fabIn .6s 1s cubic-bezier(.3,1.6,.5,1) both, fabPulse 3s 2s ease-in-out infinite; }
.info-fab span { font-size: 1.2rem; }
.info-fab:hover { transform: translateY(-2px) scale(1.03); }
@keyframes fabIn { from { transform: scale(0); } }
@keyframes fabPulse { 0%, 100% { box-shadow: 0 8px 24px rgba(20,144,123,.4); } 50% { box-shadow: 0 8px 24px rgba(20,144,123,.4), 0 0 0 10px rgba(31,143,78,.15); } }
body.admin-mode .info-fab { display: none; }
.info-link { align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--accent); font: 600 .85rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.info-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.info-btn { display: grid; justify-items: center; gap: 2px; padding: 14px 10px; border-radius: 14px; text-decoration: none; color: #fff; font: 700 1rem var(--font-display); transition: transform .15s; }
.info-btn:hover { transform: translateY(-2px); }
.info-btn span { font-size: 1.6rem; }
.info-btn small { font: 500 .75rem var(--font-body); opacity: .9; }
.info-btn.wa { background: linear-gradient(135deg, #25d366, #1f8f4e); }
.info-btn.tel { background: linear-gradient(135deg, #3b82f6, #1e4fb3); }
.info-btn.mail { background: linear-gradient(135deg, #f59e0b, #e2561d); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 16px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== messaggi ===== */
.msgs { display: grid; gap: 12px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; }
.msg.unread { border-left-color: var(--hot); }
.msg header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg-text { margin: 4px 0; white-space: pre-line; font-size: 1rem; }

/* ===== contabilità ===== */
.tag.paid { background: #e4ecd9; color: #3d5c19; border-color: transparent; }
@media (prefers-color-scheme: dark) { .tag.paid { background: #26361a; color: #b9d98f; } }
.acc-tiles .tile small { font-size: .78rem; }
.tile.good { border-left: 4px solid var(--accent); }
.tile.good strong { color: var(--accent); }
.acc-chart { margin-bottom: 16px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; height: 190px; padding-top: 10px; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; align-items: end; justify-items: center; gap: 4px; }
.bar { width: 70%; max-width: 70px; min-height: 3px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #8f6cf7, var(--accent)); align-self: end; transition: height .6s ease; }
.bar-col.cur .bar { background: linear-gradient(180deg, var(--sun, #ffc93c), var(--hot)); }
.bar-val { font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.bar-lab { font-size: .8rem; color: var(--muted); text-transform: capitalize; }
.acc-cols { grid-template-columns: 1fr 1fr; }
.pad-h { padding: 16px 16px 4px; margin: 0; }
.tot-row td { background: var(--bg); }
@media (max-width: 860px) { .acc-cols { grid-template-columns: 1fr; } .info-fab { right: 12px; bottom: 12px; padding: 10px 14px; } }

/* ===== privacy ===== */
.legal { max-width: 760px; margin: 0 auto; line-height: 1.65; }
.legal h2 { margin-top: 22px; font-size: 1.1rem; }
.legal ul { padding-left: 20px; }
.consent { align-items: flex-start; font-size: .85rem; margin-top: 12px; }
.consent input { margin-top: 3px; }
.footer { line-height: 1.8; }

/* ===== logo ===== */
.brand-logo { height: 52px; width: auto; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.12)); transition: transform .3s; }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.05); }
.hero-logo { position: absolute; left: 50%; top: 50%; width: min(240px, 80%); transform: translate(-50%, -50%); z-index: 2; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); animation: logoFloat 5s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); } 50% { transform: translate(-50%, -56%) rotate(2deg); } }
.hero-art .float { z-index: 1; opacity: .9; }
.auth-logo { display: block; width: 150px; margin: 0 auto 10px; }
@media (max-width: 760px) { .hero-logo { display: none; } .brand-logo { height: 42px; } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* ===== tonalità dell'area amministratore ===== */
body.admin-user[data-admin-theme="sabbia"]  { --bg: #f3ede2; --surface: #fffaf2; --line: #e3d8c6; --accent-soft: #e5efe6; }
body.admin-user[data-admin-theme="azzurro"] { --bg: #e6eefa; --surface: #ffffff; --line: #cddbef; --accent-soft: #dbe9f7; }
body.admin-user[data-admin-theme="menta"]   { --bg: #e2f3ec; --surface: #ffffff; --line: #c6e2d7; --accent-soft: #d2eee3; }
body.admin-user[data-admin-theme="lavanda"] { --bg: #eee9fb; --surface: #ffffff; --line: #dbd1f2; --accent-soft: #e3f0ec; }
body.admin-user[data-admin-theme="scuro"]   { --bg: #121816; --surface: #1b2321; --ink: #e6ecea; --muted: #9aa8a4; --line: #2e3a37; --accent: #a28cf5; --accent-ink: #160d33; --accent-soft: #2a2350; color-scheme: dark; }
body.admin-user[data-admin-theme="notte"]   { --bg: #0d1726; --surface: #142236; --ink: #e4ecf7; --muted: #95a6bf; --line: #233650; --accent: #4f9cff; --accent-ink: #06162b; --accent-soft: #1a3354; --hot: #ff8a4c; color-scheme: dark; }
body.admin-user[data-admin-theme="scuro"] .topbar, body.admin-user[data-admin-theme="notte"] .topbar { background: var(--surface); }
body.admin-user[data-admin-theme="scuro"] .tag.todo, body.admin-user[data-admin-theme="notte"] .tag.todo,
body.admin-user[data-admin-theme="scuro"] .dep.check, body.admin-user[data-admin-theme="notte"] .dep.check { background: #4a2414; color: #ffb48f; }
body.admin-user[data-admin-theme="scuro"] .tag.paid, body.admin-user[data-admin-theme="notte"] .tag.paid { background: #26361a; color: #b9d98f; }
body.admin-user[data-admin-theme="scuro"] .photo-chip, body.admin-user[data-admin-theme="notte"] .photo-chip { background: #1d2c4a; color: #9cc0ff; }
body.admin-user[data-admin-theme="scuro"] .warn-notice, body.admin-user[data-admin-theme="notte"] .warn-notice { background: #4a2414; color: #ffb48f; }
body.admin-user[data-admin-theme="notte"] .bar { background: linear-gradient(180deg, #7db8ff, #4f9cff); }
body.admin-mode { transition: background-color .3s; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.theme-opt { display: grid; gap: 6px; justify-items: center; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 .85rem var(--font-body); cursor: pointer; }
.theme-opt.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-prev { width: 100%; height: 56px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 8px; }
.theme-prev span { border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }

/* ===== correzione: le tonalità chiare usano sempre testo scuro, anche se il dispositivo è in modalità scura ===== */
body.admin-user[data-admin-theme="chiaro"], body.admin-user[data-admin-theme="sabbia"], body.admin-user[data-admin-theme="azzurro"],
body.admin-user[data-admin-theme="menta"], body.admin-user[data-admin-theme="lavanda"] {
  --bg: #eef0ee; --surface: #ffffff; --ink: #1b2422; --muted: #5f6b68; --line: #d9dedb;
  --accent: #5b3fd1; --accent-ink: #ffffff; --accent-soft: #e9e4fb; --hot: #d9541e; --danger: #b3261e;
  color-scheme: light;
}
body.admin-user[data-admin-theme="sabbia"]  { --bg: #f3ede2; --surface: #fffaf2; --line: #e3d8c6; --accent-soft: #e5efe6; }
body.admin-user[data-admin-theme="azzurro"] { --bg: #e6eefa; --surface: #ffffff; --line: #cddbef; --accent-soft: #dbe9f7; }
body.admin-user[data-admin-theme="menta"]   { --bg: #e2f3ec; --surface: #ffffff; --line: #c6e2d7; --accent-soft: #d2eee3; }
body.admin-user[data-admin-theme="lavanda"] { --bg: #eee9fb; --surface: #ffffff; --line: #dbd1f2; --accent-soft: #e3f0ec; }
/* etichette colorate in versione chiara */
body.admin-user:is([data-admin-theme="chiaro"], [data-admin-theme="sabbia"], [data-admin-theme="azzurro"], [data-admin-theme="menta"], [data-admin-theme="lavanda"]) :is(.tag.todo, .dep.check, .warn-notice) { background: #fde5d8; color: #9a3412; }
body.admin-user:is([data-admin-theme="chiaro"], [data-admin-theme="sabbia"], [data-admin-theme="azzurro"], [data-admin-theme="menta"], [data-admin-theme="lavanda"]) .tag.paid { background: #e4ecd9; color: #3d5c19; }
body.admin-user:is([data-admin-theme="chiaro"], [data-admin-theme="sabbia"], [data-admin-theme="azzurro"], [data-admin-theme="menta"], [data-admin-theme="lavanda"]) .photo-chip { background: #e3f0ff; color: #1e4fb3; }
body.admin-user:is([data-admin-theme="chiaro"], [data-admin-theme="sabbia"], [data-admin-theme="azzurro"], [data-admin-theme="menta"], [data-admin-theme="lavanda"]) .res-box { background: #efe9ff; color: #2c1f6e; }
body.admin-user:is([data-admin-theme="chiaro"], [data-admin-theme="sabbia"], [data-admin-theme="azzurro"], [data-admin-theme="menta"], [data-admin-theme="lavanda"]) .topbar { background: var(--surface); }

/* ===== la tonalità scelta vale anche nelle anteprime (Vista cliente, Componi, Carrello) quando sei entrato come titolare ===== */
body.admin-user:not(.admin-mode) { background: var(--bg); }
body.admin-user::before, body.admin-user::after { display: none; }
body.admin-user .topbar { background: var(--surface); backdrop-filter: none; }
/* titoli sfumati più luminosi sulle tonalità scure */
body.admin-user:not(.admin-mode):is([data-admin-theme="scuro"], [data-admin-theme="notte"]) :is(.page-head h1, .step h2, .success h1, .status-card h1, .compo-cta h2, .card h3) {
  background-image: linear-gradient(90deg, #5fe0c4, #ffd27a, #ff8a5c, #ff7eb0, #b79bff, #5fe0c4); }
body.admin-user:is([data-admin-theme="scuro"], [data-admin-theme="notte"]) .compo-cta { background: linear-gradient(120deg, var(--accent-soft), var(--surface)); }
body.admin-user:is([data-admin-theme="scuro"], [data-admin-theme="notte"]) .custom-cta { background: linear-gradient(110deg, #0a0f0e, #1f2a28); }
/* titoli sfumati scuri sulle tonalità chiare, anche se il dispositivo è in modalità scura */
body.admin-user:not(.admin-mode):is([data-admin-theme="chiaro"], [data-admin-theme="sabbia"], [data-admin-theme="azzurro"], [data-admin-theme="menta"], [data-admin-theme="lavanda"]) :is(.page-head h1, .step h2, .success h1, .status-card h1, .compo-cta h2, .card h3) {
  background-image: linear-gradient(90deg, #5b3fd1, #8f6cf7, #e2561d, #ff4f8b, #7b3fe4, #5b3fd1); }
body.admin-user:is([data-admin-theme="chiaro"], [data-admin-theme="sabbia"], [data-admin-theme="azzurro"], [data-admin-theme="menta"], [data-admin-theme="lavanda"]) .custom-cta { background: linear-gradient(110deg, #1b2422, #2c3a37); color: #fff; }

/* ===== installa app ===== */
.install-btn { background: linear-gradient(135deg, #1e6fe0, #5b3fd1); border: 0; color: #fff; white-space: nowrap; }
.install-banner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.06); animation: cardIn .5s .3s both; }
.install-banner img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.install-banner strong { display: block; }
.install-banner span { font-size: .85rem; color: var(--muted); }
.install-preview { display: grid; justify-items: center; gap: 6px; margin: 6px 0 14px; }
.install-preview img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.install-preview span { font-size: .8rem; color: var(--muted); }
.install-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.install-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.ist-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
@media (max-width: 560px) { .install-banner { grid-template-columns: auto 1fr auto; } .install-banner .btn { grid-column: 1 / -1; } .install-banner #install-x { grid-row: 1; grid-column: 3; } .install-btn { padding: 6px 10px; font-size: .8rem; } }

/* ===== telefono: menu in basso, barra carrello, avviso aggiornamento ===== */
.tabbar, .cartbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tab-item { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; text-decoration: none; color: var(--muted); font: 600 .7rem var(--font-body); border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .tab-ico { position: relative; font-size: 1.35rem; line-height: 1.2; transition: transform .2s; }
  .tab-item.active { color: var(--accent); }
  .tab-item.active .tab-ico { transform: translateY(-2px) scale(1.12); }
  .tab-item.active::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: -2px; }
  .tab-item:not(.active)::before { content: ""; height: 3px; margin-bottom: -2px; }
  .tab-badge { position: absolute; top: -4px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hot); color: #fff; font: 700 .65rem/18px var(--font-body); text-align: center; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.has-cartbar { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .info-fab { display: none; }
  .nav { display: none !important; }
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
  .userbox .who { display: none; }
  body.admin-user .userbox #theme-btn, body.admin-user .userbox #logout { display: none; }
  .cartbar:not([hidden]) { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 44;
    padding: 10px 14px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #5b3fd1, #8f6cf7); box-shadow: 0 10px 24px rgba(91,63,209,.35); animation: cardIn .35s both; }
  .cb-ico { position: relative; font-size: 1.4rem; }
  .cb-txt { display: grid; line-height: 1.2; }
  .cb-txt span { font-size: .8rem; opacity: .9; }
  .cb-go { font-weight: 700; font-size: .85rem; white-space: nowrap; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-cartbar .toast { bottom: calc(146px + env(safe-area-inset-bottom)); }
}
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-item { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 .85rem var(--font-body); cursor: pointer; }
.more-item span { font-size: 1.5rem; }
.update-banner { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 400; display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 16px; border-radius: 14px; background: #1b2422; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: popIn .4s cubic-bezier(.3,1.6,.5,1); max-width: calc(100% - 24px); }

/* ===== accessi rivenditori ===== */
.res-tiles { margin-bottom: 14px; }
.act { display: inline-block; font-weight: 600; font-size: .82rem; padding: 2px 8px; border-radius: 999px; }
.act-on { background: #dff5e6; color: #1f7a3d; }
.act-recent { background: var(--accent-soft); color: var(--accent); }
.act-mid { background: #fff3d6; color: #8a5a00; }
.act-away { background: #fde5d8; color: #9a3412; }
.act-never { background: var(--bg); color: var(--muted); border: 1px dashed var(--line); }

@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .tile { padding: 12px; } .tile strong { font-size: 1.35rem; } }

/* =====================================================================
   VERSIONE TELEFONO: catalogo a riquadri, scheda prodotto dal basso, tabelle a schede
   ===================================================================== */
.sw.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.sw-row.sw-big { gap: 9px; }
.sw-row.sw-big button.sw { width: 30px; height: 30px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 40px; height: 44px; border: 0; background: var(--bg); color: var(--ink); font: 700 1.2rem var(--font-body); cursor: pointer; }
.stepper input { width: 46px !important; height: 44px; border: 0 !important; border-radius: 0; text-align: center; padding: 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* griglia compatta */
.grid.grid-m { grid-template-columns: 1fr 1fr; gap: 10px; }
.ptile { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.04); -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.ptile:active { transform: scale(.97); }
.ptile.off { opacity: .55; }
.ptile.enter { animation: cardIn .45s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i) * 45ms); }
.ptile-img { position: relative; display: block; aspect-ratio: 1; background: var(--bg); overflow: hidden; }
.ptile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptile-img .noimg > span { font-size: 2.6rem; }
.ptile-badge { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); font-size: .9rem; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.ptile .img-count { font-size: .65rem; padding: 1px 6px; right: 6px; bottom: 6px; }
.ptile-body { display: grid; gap: 4px; padding: 8px 10px 10px; }
.ptile-name { font-weight: 600; font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptile-sw { display: flex; align-items: center; gap: 3px; }
.ptile-sw .sw { width: 12px; height: 12px; margin: 0; }
.ptile-sw small { font-size: .7rem; color: var(--muted); margin-left: 2px; }
.ptile-price { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--accent); }
.ptile-price .tbd { font-size: .75rem; }

/* scheda prodotto dal basso */
.modal.sheet-mode { padding: 0; align-items: flex-end; }
.modal-card.sheet { max-width: 640px; border-radius: 22px 22px 0 0; padding: 0 0 calc(14px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: sheetUp .3s cubic-bezier(.2,.8,.3,1); }
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 6px; }
.sheet-img { position: relative; aspect-ratio: 4 / 3; max-height: 42vh; background: var(--bg); overflow: hidden; }
.sheet-img > button:not(.sheet-x) { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-img .noimg { display: grid; width: 100%; height: 100%; }
.sheet-img .noimg > span { font-size: 4rem; }
.sheet-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92) !important; color: #1b2422 !important; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.sheet-body { padding: 14px 18px 0; display: grid; gap: 6px; }
.sheet-title { font-size: 1.4rem; margin: 0; }
.sheet-body .opts { gap: 12px; margin-top: 6px; }
.sheet-foot { position: sticky; bottom: calc(-14px - env(safe-area-inset-bottom)); background: var(--surface); margin: 10px -18px 0; padding: 12px 18px; border-top: 1px solid var(--line); border-top-style: solid; }
.sheet-foot .buy { gap: 10px; }
.sheet-foot .add-btn { padding: 12px 18px; font-size: 1rem; }
.modal-card.sheet .price { font-size: 1.5rem; }

/* tabelle → schede sul telefono */
@media (max-width: 760px) {
  .table.rtable thead { display: none; }
  .table.rtable, .table.rtable tbody, .table.rtable tr, .table.rtable td { display: block; width: 100%; }
  .table.rtable tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .table.rtable tbody tr:last-child { border-bottom: 0; }
  .table.rtable td { border: 0 !important; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .table.rtable td.num { white-space: normal; }
  .table.rtable td::before { content: attr(data-label); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; flex: none; }
  .table.rtable td[data-label=""]::before { content: none; }
  .table.rtable td:first-child { display: block; text-align: left; font-size: 1rem; padding-bottom: 6px; }
  .table.rtable td:first-child::before { content: none; }
  .table.rtable td > * { max-width: 70%; }
  .table.rtable td:first-child > * { max-width: none; }
  .table.rtable .price-in, .table.rtable .rp-in, .table.rtable .qty { width: 120px; }
  .table.rtable tr.tot-row td:first-child { display: none; }
  .table.clickable.rtable tbody tr:active { background: var(--bg); }
  .scroll-x { overflow-x: visible; }
  .modal-card { padding: 16px; }
}

/* scelta modello: riquadri solidi anche su iPhone (niente aspect-ratio sui pulsanti) */
.model-grid { grid-auto-rows: auto; align-content: start; -webkit-overflow-scrolling: touch; }
.model-tile { display: block; width: 100%; aspect-ratio: auto; height: auto; min-width: 0; }
.model-tile .mt-ph { position: relative; display: block; width: 100%; height: 0; padding-bottom: 100%; overflow: hidden; }
.model-tile .mt-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.model-tile .mt-lb { position: absolute; left: 8px; bottom: 8px; z-index: 1; }
@media (max-width: 760px) {
  .model-grid { grid-template-columns: 1fr 1fr; gap: 10px; max-height: none; overflow: visible; padding: 2px; }
  .model-tile .mt-lb { left: 6px; bottom: 6px; font-size: .7rem; padding: 2px 8px; }
  .model-tile.selected::after { width: 26px; height: 26px; top: 6px; right: 6px; }
  #modal .modal-card:has(#mg) .actions { position: sticky; bottom: -16px; background: var(--surface); margin: 10px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); z-index: 2; }
}
.model-btn { flex-wrap: wrap; }
.model-btn img + img { margin-left: -4px; }

/* ===== oggetti da scegliere per il vassoio ===== */
.obj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.obj-card { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); padding-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.obj-card > strong, .obj-card > .small, .obj-card > .obj-step { margin: 0 10px; }
.obj-card > strong { font-size: .9rem; line-height: 1.25; }
.obj-card.chosen { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.obj-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg); cursor: pointer; }
.obj-img .mt-ph { position: relative; display: block; width: 100%; height: 0; padding-bottom: 100%; overflow: hidden; }
.obj-img .mt-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obj-step { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px !important; }
.obj-step .btn { min-width: 40px; padding: 6px 0; font-size: 1.1rem; }
.obj-step b { font-size: 1.05rem; }
.obj-admin { display: grid; gap: 8px; margin: 8px 0; }
.obj-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--surface); }
.obj-thumb { position: relative; width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; background: var(--bg); }
.obj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.obj-fields { flex: 1; display: grid; grid-template-columns: 1fr 130px; gap: 6px; min-width: 0; }
.obj-fields input { min-width: 0; }
@media (max-width: 760px) {
  .obj-grid { grid-template-columns: 1fr 1fr; }
  .obj-fields { grid-template-columns: 1fr; }
}

/* =====================================================================
   SEZIONE POKÉMON – tema spaziale
   ===================================================================== */
html:has(body.poke-mode) { background: #0c0f2e; }
body.poke-mode { background: radial-gradient(1200px 700px at 80% -10%, #3b1a7a 0%, transparent 60%), radial-gradient(900px 600px at -10% 40%, #0d3b7a 0%, transparent 60%), linear-gradient(180deg, #070b22 0%, #0c0f2e 50%, #140a2e 100%) !important; background-color: #0c0f2e !important; min-height: 100vh; color: #eef1ff; }
body.poke-mode #footer { color: #a9b0e0; }
body.poke-mode #footer a { color: #ffd23f; }
body.poke-mode .poke-grid .card h3, body.poke-mode .poke-grid .ptile-name { color: #fff !important; -webkit-text-fill-color: #fff; background: none !important; }
body.poke-mode::before, body.poke-mode::after { opacity: 0 !important; }
body.poke-mode #app { --surface: rgba(20, 24, 60, .72); --line: rgba(160, 170, 255, .22); --ink: #eef1ff; --muted: #a9b0e0; --bg: rgba(255,255,255,.06); --accent: #ffd23f; --accent-ink: #1a1440; --accent-soft: rgba(255, 210, 63, .2); color: #eef1ff; }
body.poke-mode #app .muted, body.poke-mode #app .desc, body.poke-mode #app .hint { color: #a9b0e0; }
body.poke-mode #app .notice { background: rgba(255,210,63,.12); color: #ffe9a3; border-color: rgba(255,210,63,.35); }
body.poke-mode #app .notice a { color: #ffd23f; }
body.poke-mode #app input, body.poke-mode #app select, body.poke-mode #app textarea { background: rgba(10, 12, 40, .7); color: #eef1ff; border-color: rgba(160,170,255,.3); }
body.poke-mode #app .btn:not(.ghost) { background: linear-gradient(135deg, #ffd23f, #ff9f1c); color: #1a1440; box-shadow: 0 6px 20px rgba(255, 190, 40, .35); }
body.poke-mode #app .btn.ghost { color: #eef1ff; border-color: rgba(160,170,255,.35); background: transparent; }
body.poke-mode #app .price, body.poke-mode #app .ptile-price { color: #ffd23f; text-shadow: 0 0 12px rgba(255,210,63,.35); }
body.poke-mode #app .chip { background: rgba(20,24,60,.7); color: #dfe3ff; border-color: rgba(160,170,255,.3); }
body.poke-mode #app .chip.active { background: linear-gradient(135deg, #ffd23f, #ff9f1c); color: #1a1440; border-color: transparent; }
body.poke-mode #app .search-row { background: rgba(20,24,60,.7); border-color: rgba(160,170,255,.3); }
body.poke-mode #app .info-link { color: #8fd3ff; }
body.poke-mode #app .tbd { color: #ffb4d2; }

.poke-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 44px 30px 40px; margin-bottom: 18px; min-height: 280px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 20px;
  background: radial-gradient(600px 300px at 85% 30%, rgba(124, 77, 255, .55), transparent 70%), radial-gradient(500px 300px at 10% 110%, rgba(0, 180, 255, .4), transparent 70%), linear-gradient(135deg, #0a0f35, #1b0f45 60%, #2a0a4a);
  border: 1px solid rgba(160,170,255,.25); box-shadow: 0 20px 60px rgba(40, 20, 120, .45), inset 0 0 80px rgba(120, 90, 255, .15); }
.poke-stars { position: absolute; inset: 0; pointer-events: none; }
.poke-stars i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: twinkle 2.6s var(--d) ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }
.poke-stars .shoot { position: absolute; width: 120px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); border-radius: 2px; transform: rotate(-25deg); opacity: 0; animation: shoot 6s linear infinite; }
.poke-stars .s1 { top: 12%; left: 70%; animation-delay: .5s; } .poke-stars .s2 { top: 35%; left: 40%; animation-delay: 2.6s; } .poke-stars .s3 { top: 8%; left: 25%; animation-delay: 4.4s; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-25deg) translateX(0); } 3% { opacity: 1; } 12% { opacity: 0; transform: rotate(-25deg) translateX(-320px); } 100% { opacity: 0; } }
.poke-planet { position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8f7bff, #4a2fb8 55%, #1d0f5a); box-shadow: 0 0 80px rgba(143, 123, 255, .6); opacity: .85; }
.poke-planet::after { content: ""; position: absolute; left: -40%; top: 44%; width: 180%; height: 22%; border-radius: 50%; border: 3px solid rgba(255, 210, 63, .55); transform: rotate(-14deg); }
.poke-hero-text { position: relative; z-index: 2; }
.poke-kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,210,63,.15); color: #ffe27a; font-weight: 700; font-size: .82rem; border: 1px solid rgba(255,210,63,.4); }
.poke-title { margin: 12px 0 8px; font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; color: #fff; text-shadow: 0 0 24px rgba(140, 160, 255, .6); letter-spacing: .01em; }
.poke-title span { background: linear-gradient(90deg, #ffd23f, #ff9f1c, #ffd23f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite; filter: drop-shadow(0 0 14px rgba(255, 200, 40, .45)); }
@keyframes shine { to { background-position: -200% 0; } }
.poke-hero-text p { color: #cfd5ff; max-width: 520px; margin: 0 0 14px; }
.poke-perks { display: flex; flex-wrap: wrap; gap: 8px; }
.poke-perks span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-size: .85rem; font-weight: 600; color: #eef1ff; backdrop-filter: blur(4px); }
.poke-orbit { position: relative; z-index: 2; width: 230px; height: 230px; margin: 0 auto; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); animation: orbit 30s linear infinite; }
.poke-orbit::before { content: attr(data-core); position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; filter: drop-shadow(0 0 22px rgba(255,210,63,.9)); animation: orbit 30s linear infinite reverse, pulseGlow 2s ease-in-out infinite; }
.poke-orbit span { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 50%; background: rgba(20,24,60,.75); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 14px rgba(140,160,255,.4);
  transform: rotate(calc(var(--k) * 45deg)) translate(115px) rotate(calc(var(--k) * -45deg)); }
.poke-orbit span { animation: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulseGlow { 50% { transform: scale(1.12); } }

/* carte "olografiche" */
.poke-grid .card, .poke-grid .ptile { position: relative; background: linear-gradient(160deg, rgba(30, 36, 90, .9), rgba(18, 14, 52, .92)); border: 1px solid rgba(160,170,255,.28); color: #eef1ff; box-shadow: 0 10px 30px rgba(10, 5, 40, .5); overflow: hidden; isolation: isolate; }
.poke-grid .card::before, .poke-grid .ptile::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang, 0deg), #ffd23f, #ff5fa2, #7c4dff, #00d4ff, #3dff9e, #ffd23f); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .75; animation: holo 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes holo { to { --ang: 360deg; } }
.poke-grid .card::after, .poke-grid .ptile::after { content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); transform: translateX(-60%); transition: transform .9s; }
.poke-grid .card:hover::after, .poke-grid .ptile:active::after { transform: translateX(60%); }
.poke-grid .card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(124, 77, 255, .35); }
.poke-grid .card h3, .poke-grid .ptile-name { color: #fff; }
.poke-grid .card .cat { color: #ffd23f; background: rgba(255,210,63,.12); }
.poke-grid .card-img, .poke-grid .ptile-img { background: radial-gradient(circle at 50% 40%, rgba(124,77,255,.35), rgba(10,12,40,.8)); }
.poke-grid .ptile-badge { background: rgba(255,210,63,.9); }
.poke-empty { background: rgba(20,24,60,.7); color: #dfe3ff; border-color: rgba(160,170,255,.3); }
.poke-custom { background: linear-gradient(135deg, #2a1a6e, #0f3a6e) !important; border-color: rgba(160,170,255,.3) !important; color: #eef1ff; }
body.poke-mode .poke-custom p { color: #cfd5ff !important; }
.poke-custom h2 { color: #fff !important; -webkit-text-fill-color: #fff; background: none !important; }

/* scheda prodotto dal basso nella sezione Pokémon */
body.poke-mode .modal-card { --surface: #141a44; --line: rgba(160,170,255,.25); --ink: #eef1ff; --muted: #a9b0e0; --bg: rgba(255,255,255,.06); --accent: #ffd23f; --accent-ink: #1a1440; --accent-soft: rgba(255,210,63,.2); background: linear-gradient(180deg, #161c4a, #0f0d33); color: #eef1ff; border: 1px solid rgba(160,170,255,.25); }
body.poke-mode .modal-card input, body.poke-mode .modal-card select, body.poke-mode .modal-card textarea { background: rgba(10,12,40,.7); color: #eef1ff; border-color: rgba(160,170,255,.3); }
body.poke-mode .modal-card .btn:not(.ghost) { background: linear-gradient(135deg, #ffd23f, #ff9f1c); color: #1a1440; }
body.poke-mode .modal-card .price { color: #ffd23f; }
body.poke-mode .modal-card .sheet-foot { background: #10123a; }

/* invito nel catalogo */
.poke-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 18px 20px; border-radius: 20px; text-decoration: none; color: #fff;
  background: radial-gradient(400px 200px at 90% 0%, rgba(124,77,255,.7), transparent 70%), linear-gradient(135deg, #0a0f35, #251055); box-shadow: 0 12px 34px rgba(40, 20, 120, .35); border: 1px solid rgba(160,170,255,.3); transition: transform .2s; }
.poke-cta:hover { transform: translateY(-2px); }
.poke-cta-stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 70%, #fff, transparent), radial-gradient(1px 1px at 35% 80%, #fff, transparent), radial-gradient(2px 2px at 90% 40%, #fff, transparent); animation: twinkle 3s ease-in-out infinite; opacity: .7; }
.poke-cta-ico { position: relative; font-size: 2.6rem; filter: drop-shadow(0 0 16px rgba(255,210,63,.9)); animation: pulseGlow 2s ease-in-out infinite; }
.poke-cta-txt { position: relative; flex: 1; display: grid; gap: 2px; }
.poke-cta-txt .eyebrow { color: #ffe27a; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.poke-cta-txt strong { font-family: var(--font-display); font-size: 1.4rem; }
.poke-cta-txt > span:last-child { color: #cfd5ff; font-size: .9rem; }
.poke-cta .btn { position: relative; background: linear-gradient(135deg, #ffd23f, #ff9f1c); color: #1a1440; flex: none; }

@media (max-width: 760px) {
  .poke-hero { grid-template-columns: 1fr; padding: 28px 18px 24px; min-height: 0; text-align: left; }
  .poke-orbit { position: absolute; right: -40px; top: -30px; width: 170px; height: 170px; opacity: .55; }
  .poke-orbit span { width: 32px; height: 32px; margin: -16px; font-size: 1rem; transform: rotate(calc(var(--k) * 45deg)) translate(85px) rotate(calc(var(--k) * -45deg)); }
  .poke-orbit::before { font-size: 2.6rem; }
  .poke-planet { width: 160px; height: 160px; right: -50px; bottom: -70px; }
  .poke-cta { flex-wrap: wrap; padding: 16px; }
  .poke-cta .btn { width: 100%; justify-content: center; }
  .tabbar .tab-item { min-width: 0; }
  .tabbar .tab-lab { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) { .poke-stars i, .poke-stars .shoot, .poke-orbit, .poke-orbit::before, .poke-grid .card::before, .poke-grid .ptile::before, .poke-title span { animation: none !important; } }
.counter small { font-size: .7em; opacity: .8; }
.notice.extra-offer { background: linear-gradient(135deg, #fff4d6, #ffe7f1); border-color: #ffc94a; color: #6b4a00; }
.notice.extra-on { background: #e7f7ee; border-color: #8fd3ad; color: #155c36; }
.counter { white-space: nowrap; flex: none; }

/* ===== calcolatore prezzo ===== */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.calc-form { display: grid; gap: 14px; }
.calc-form .panel h2, .calc-out h2 { margin: 0 0 10px; font-size: 1.1rem; }
.calc-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.calc-in input { border: 0 !important; border-radius: 0; flex: 1; min-width: 0; }
.calc-in span { padding: 0 10px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.calc-out { position: sticky; top: 84px; display: grid; gap: 12px; }
.calc-tot .sub { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 700; }
.calc-price { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--accent-soft); text-align: center; }
.calc-price span { font-size: .85rem; color: var(--muted); }
.calc-price strong { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1.1; }
.calc-price small { color: var(--muted); }
.calc-price.res { background: var(--bg); }
.calc-price.res strong { font-size: 1.5rem; color: var(--ink); }
.calc-apply { display: grid; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.calc-apply label:first-child { font-weight: 600; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-out { position: static; }
}
.nav a.home-btn { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.nav a.home-btn:hover { background: var(--accent); filter: brightness(1.1); }
.brand { cursor: pointer; }

/* ===== etichetta NEW sui nuovi articoli ===== */
.card, .pick-img, .addon-card, .ptile-img { position: relative; }
.new-badge { position: absolute; top: 10px; right: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #ff3d6e, #ff8a1f); color: #fff; font: 800 .78rem/1 var(--font-display); letter-spacing: .08em;
  box-shadow: 0 4px 14px rgba(255, 61, 110, .45); transform: rotate(4deg); animation: newPop 2.4s ease-in-out infinite; pointer-events: none; }
.new-badge::before { content: "✨"; font-size: .85em; letter-spacing: 0; }
.new-badge.inline { position: static; vertical-align: middle; transform: none; font-size: .7rem; margin-right: 4px; }
.ptile .new-badge { top: 6px; right: 6px; padding: 3px 8px 3px 7px; font-size: .68rem; }
.addon-card .new-badge, .pick-img .new-badge { top: 8px; right: 8px; }
.card.is-new { border-color: #ff8a1f; box-shadow: 0 0 0 2px rgba(255, 138, 31, .25); }
@keyframes newPop { 0%, 100% { transform: rotate(4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .new-badge { animation: none; } }
.card > .new-badge { top: -11px; right: 14px; }
.card.is-new { overflow: visible; }
.card.is-new .card-img { border-radius: 13px 13px 0 0; }

/* =====================================================================
   MENU A SINISTRA SUL COMPUTER  +  BARRA DEL TELEFONO CON PULSANTE CENTRALE
   ===================================================================== */
:root { --side: 232px; }
.nav-ico { display: inline-grid; place-items: center; width: 1.5em; font-size: 1.05rem; flex: none; }
.nav-sep, .drawer-sep { display: block; margin: 12px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 761px) {
  #nav.nav { position: fixed; left: 0; top: var(--tb-h, 76px); bottom: 0; width: var(--side); z-index: 9; flex: none;
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 3px; padding: 16px 12px 24px; overflow-y: auto;
    background: var(--surface); border-right: 1px solid var(--line); box-shadow: 4px 0 18px rgba(0,0,0,.03); }
  #nav.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
  #nav.nav a .badge { margin-left: auto; }
  #nav.nav a.home-btn { margin-bottom: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
  #nav.nav a:not(.home-btn):hover { background: var(--bg); transform: translateX(2px); }
  #nav.nav a { transition: background .15s, transform .15s; }
  .topbar { padding-left: 20px; padding-right: 20px; }
  .app, .footer { margin-left: calc(var(--side) + max(20px, (100vw - var(--side) - 1200px) / 2)); margin-right: max(20px, (100vw - var(--side) - 1200px) / 2); max-width: 1200px; }
  .demo-banner { margin-left: var(--side); }
  .info-fab { right: 24px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  :root { --side: 196px; }
  #nav.nav a { padding: 9px 10px; font-size: .92rem; }
}

/* telefono: pulsante centrale più grande */
@media (max-width: 760px) {
  .tabbar { align-items: end; overflow: visible; }
  .tab-item.tab-big { position: relative; margin-top: -26px; color: var(--accent); }
  .tab-item.tab-big::before { display: none; }
  .tab-item.tab-big .tab-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; font-size: 1.75rem;
    background: linear-gradient(135deg, var(--accent), #8f6cf7); color: #fff; box-shadow: 0 8px 20px rgba(91,63,209,.4), 0 0 0 5px var(--surface); }
  .tab-item.tab-big.active .tab-ico { transform: scale(1.06); box-shadow: 0 10px 24px rgba(91,63,209,.5), 0 0 0 5px var(--surface), 0 0 0 8px var(--accent-soft); }
  .tab-item.tab-big .tab-lab { font-weight: 800; }
  .tab-item.tab-big .tab-badge { top: 0; right: 0; }
}

/* menu a tendina da sinistra */
.modal.drawer-mode { padding: 0; justify-content: flex-start; align-items: stretch; overflow: hidden; }
.modal-card.drawer { width: min(84vw, 320px); max-width: none; height: 100%; border-radius: 0 20px 20px 0; padding: 0; overflow-y: auto; animation: drawerIn .28s cubic-bezier(.2,.8,.3,1); display: flex; flex-direction: column; }
@keyframes drawerIn { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: calc(16px + env(safe-area-inset-top)) 14px 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer-head img { width: 44px; height: 44px; object-fit: contain; }
.drawer-head div { flex: 1; display: grid; line-height: 1.2; }
.drawer-head small { color: var(--muted); font-size: .78rem; }
.drawer-list { display: grid; gap: 2px; padding: 10px 10px calc(20px + env(safe-area-inset-bottom)); }
.drawer-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-decoration: none; font: 600 1rem var(--font-body); text-align: left; cursor: pointer; }
.drawer-item:active, .drawer-item:hover { background: var(--bg); }
.drawer-item.active { background: var(--accent-soft); color: var(--accent); }
.drawer-item .d-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); font-size: 1.2rem; flex: none; }
.drawer-item.active .d-ico { background: var(--surface); }
.drawer-item .badge { margin-left: auto; }
@media (max-width: 760px) { .tab-item.tab-big { gap: 7px; } .tab-item.tab-big .tab-lab { position: relative; z-index: 1; } }


/* =====================================================================
   COLLEZIONI SPECIALI – più valore: statistiche, vetrina, portali, temi
   ===================================================================== */
.poke-orbit span { animation: none; }
.coll-hero { min-height: 340px; }
.coll-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.coll-stats div { display: grid; min-width: 96px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.coll-stats strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: #fff; }
.coll-stats span { font-size: .75rem; color: #cfd5ff; }
.coll-dive { position: relative; z-index: 2; }

/* vetrina "in evidenza" */
.coll-spot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: center; margin: 0 0 22px; padding: 22px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, rgba(30,36,90,.92), rgba(14,12,44,.95)); border: 1px solid rgba(160,170,255,.3); box-shadow: 0 18px 50px rgba(10,5,40,.45); color: #eef1ff; }
.coll-spot-img { position: relative; padding: 0; border: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: radial-gradient(circle at 50% 40%, rgba(124,77,255,.4), rgba(10,12,40,.9)); }
.coll-spot-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.coll-spot-img:hover img { transform: scale(1.06) rotate(-1deg); }
.coll-spot-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255,210,63,.35), transparent 30%); animation: orbit 8s linear infinite; mix-blend-mode: screen; pointer-events: none; }
.coll-spot-txt h2 { margin: 10px 0 8px; font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: #fff !important; -webkit-text-fill-color: #fff; background: none !important; }
.coll-spot-txt p { color: #cfd5ff; margin: 0 0 14px; }
.coll-spot-buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.coll-spot-buy .price { font-size: 1.8rem; color: #ffd23f; font-family: var(--font-display); }

/* portali delle collezioni */
.coll-home { margin: 0 0 22px; }
.coll-home-head { margin-bottom: 12px; }
.coll-home-head .eyebrow { color: var(--hot); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.coll-home-head h2 { margin: 2px 0 0; }
.coll-portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 22px; }
.coll-portal { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 130px; padding: 20px; border-radius: 22px; text-decoration: none; color: #fff; box-shadow: 0 14px 34px rgba(20,10,60,.3); transition: transform .25s, box-shadow .25s; }
.coll-portal:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 22px 44px rgba(20,10,60,.4); }
.coll-portal::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang, 0deg), #ffd23f, #ff5fa2, #7c4dff, #00d4ff, #3dff9e, #ffd23f); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: holo 6s linear infinite; opacity: .8; }
.cp-bg { position: absolute; inset: 0; z-index: -2; }
.coll-portal.theme-space .cp-bg { background: radial-gradient(300px 160px at 90% 0%, rgba(124,77,255,.8), transparent 70%), radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 70%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), linear-gradient(135deg, #0a0f35, #251055); }
.coll-portal.theme-sea .cp-bg { background: radial-gradient(240px 120px at 85% 10%, rgba(255,214,120,.55), transparent 70%), linear-gradient(180deg, #08203f 0%, #0d3b66 55%, #0e5a7a 100%); }
.coll-portal.theme-sea .cp-bg::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -10px; height: 46px; background: radial-gradient(40px 18px at 20px 0, transparent 60%, rgba(120,220,255,.35) 62%) repeat-x; background-size: 40px 30px; animation: waveMove 6s linear infinite; }
.coll-portal.theme-neon .cp-bg { background: radial-gradient(160px 160px at 85% 110%, #ffb347, #ff3fa4 45%, transparent 70%), linear-gradient(180deg, #1a0533 0%, #4a0d5e 55%, #b0206b 100%); }
.cp-ico { font-size: 2.6rem; filter: drop-shadow(0 0 16px rgba(255,255,255,.5)); animation: pulseGlow 2.4s ease-in-out infinite; }
.cp-txt { display: grid; gap: 2px; min-width: 0; }
.cp-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffe27a; }
.cp-txt strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.cp-txt > span:last-child { font-size: .85rem; color: rgba(255,255,255,.85); }
.cp-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); font-size: 1.2rem; font-weight: 800; transition: transform .25s; }
.coll-portal:hover .cp-go { transform: translateX(4px); background: rgba(255,255,255,.28); }
.coll-portals.small .coll-portal { min-height: 100px; }
.coll-more-h { color: #fff !important; -webkit-text-fill-color: #fff; background: none !important; margin: 10px 0 12px; }
.hub-hero { min-height: 240px; grid-template-columns: 1fr; }

/* ---------- tema MARE (One Piece) ---------- */
html:has(body[data-coll="sea"]) { background: #06182f; }
body[data-coll="sea"] { background: radial-gradient(900px 500px at 80% -10%, #1d4f8a 0%, transparent 60%), linear-gradient(180deg, #051326 0%, #0a2a4d 55%, #0c3d5e 100%) !important; }
body[data-coll="sea"] #app { --accent: #ffc94a; --accent-soft: rgba(255,201,74,.2); }
.coll-hero.theme-sea { background: radial-gradient(500px 260px at 82% 18%, rgba(255,214,120,.35), transparent 70%), linear-gradient(180deg, #071a36 0%, #0c2f5a 55%, #0e4f73 100%); border-color: rgba(120,200,255,.3); box-shadow: 0 20px 60px rgba(5, 30, 70, .55), inset 0 0 80px rgba(80, 180, 255, .12); }
.sea-moon { position: absolute; right: 9%; top: 12%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff6d8, #ffd27a 60%, #e0a43a); box-shadow: 0 0 60px rgba(255,214,120,.7); opacity: .9; }
.sea-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none; }
.sea-waves b { position: absolute; left: -50%; width: 200%; bottom: 0; height: 100%; background-repeat: repeat-x; animation: waveMove linear infinite; }
.sea-waves .w1 { background-image: radial-gradient(60px 26px at 60px 0, transparent 62%, rgba(40,140,200,.55) 64%); background-size: 120px 60px; bottom: -10px; animation-duration: 9s; }
.sea-waves .w2 { background-image: radial-gradient(70px 30px at 70px 0, transparent 62%, rgba(20,100,170,.7) 64%); background-size: 140px 70px; bottom: -30px; animation-duration: 6s; animation-direction: reverse; }
.sea-waves .w3 { background-image: radial-gradient(80px 34px at 80px 0, transparent 62%, rgba(8,60,120,.9) 64%); background-size: 160px 80px; bottom: -50px; animation-duration: 12s; }
@keyframes waveMove { to { transform: translateX(25%); } }
.sea-ship { position: absolute; right: 30%; bottom: 46px; font-size: 3rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); animation: bob 3.4s ease-in-out infinite; z-index: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.coll-hero.theme-sea .poke-title span { background-image: linear-gradient(90deg, #ffd27a, #fff3c4, #ffb340, #ffd27a); }
.coll-hero.theme-sea .poke-kicker { background: rgba(255,201,74,.15); color: #ffe6a6; border-color: rgba(255,201,74,.45); }
.coll-hero.theme-sea .poke-orbit::before { filter: drop-shadow(0 0 22px rgba(255,214,120,.9)); animation: orbit 30s linear infinite reverse; }
.poke-grid.theme-sea .card, .poke-grid.theme-sea .ptile { background: linear-gradient(160deg, rgba(12,48,88,.92), rgba(6,24,48,.95)); border-color: rgba(120,200,255,.3); }
.poke-grid.theme-sea .card::before, .poke-grid.theme-sea .ptile::before { background: conic-gradient(from var(--ang, 0deg), #ffd27a, #3fd0ff, #ffffff, #ffb340, #ffd27a); }
.coll-spot.theme-sea { background: linear-gradient(135deg, rgba(12,48,88,.95), rgba(5,20,40,.97)); border-color: rgba(120,200,255,.3); }
.coll-spot.theme-sea .coll-spot-glow { background: conic-gradient(from 0deg, transparent, rgba(255,214,120,.4), transparent 30%); }
.poke-custom.theme-sea { background: linear-gradient(135deg, #0d3b66, #0e5a7a) !important; }
body[data-coll="sea"] #app .btn:not(.ghost) { background: linear-gradient(135deg, #ffd27a, #ffb340); color: #2a1a00; }
body[data-coll="sea"] #app .chip.active { background: linear-gradient(135deg, #ffd27a, #ffb340); color: #2a1a00; }

/* ---------- tema NEON (GTA 6) ---------- */
html:has(body[data-coll="neon"]) { background: #12021f; }
body[data-coll="neon"] { background: radial-gradient(900px 500px at 80% -10%, #6b1b7a 0%, transparent 60%), linear-gradient(180deg, #0d0118 0%, #1e0533 50%, #3a0a4a 100%) !important; }
body[data-coll="neon"] #app { --accent: #ff3fa4; --accent-soft: rgba(255,63,164,.2); }
.coll-hero.theme-neon { background: linear-gradient(180deg, #1a0533 0%, #3e0b5c 45%, #a3205f 80%, #ff7b39 100%); border-color: rgba(255,120,220,.35); box-shadow: 0 20px 60px rgba(120, 10, 90, .5), inset 0 0 80px rgba(255, 80, 200, .15); }
.neon-sun { position: absolute; right: 8%; top: 14%; width: 190px; height: 190px; border-radius: 50%; background: linear-gradient(180deg, #ffe66b 0%, #ffa23a 45%, #ff3fa4 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 19px); mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 19px); box-shadow: 0 0 80px rgba(255,120,80,.6); opacity: .95; }
.neon-grid { position: absolute; left: -20%; right: -20%; bottom: -10px; height: 46%; background-image: linear-gradient(rgba(54,226,255,.75) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(54,226,255,.75) 1.5px, transparent 1.5px); background-size: 46px 30px;
  transform: perspective(260px) rotateX(58deg); transform-origin: bottom; animation: gridRun 2.2s linear infinite; -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); }
@keyframes gridRun { to { background-position: 0 30px; } }
.neon-palms { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: space-between; padding: 0 3%; font-size: 4rem; filter: brightness(0) drop-shadow(0 0 1px #ff3fa4); opacity: .85; pointer-events: none; }
.neon-palms span:nth-child(2) { font-size: 3rem; margin-top: 20px; }
.coll-hero.theme-neon .poke-title { text-shadow: 0 0 18px rgba(255,63,164,.8), 0 0 40px rgba(54,226,255,.5); }
.coll-hero.theme-neon .poke-title span { background-image: linear-gradient(90deg, #36e2ff, #ff3fa4, #ffe66b, #36e2ff); filter: drop-shadow(0 0 12px rgba(255,63,164,.7)); }
.coll-hero.theme-neon .poke-kicker { background: rgba(54,226,255,.15); color: #b8f6ff; border-color: rgba(54,226,255,.5); }
.coll-hero.theme-neon .poke-orbit::before { filter: drop-shadow(0 0 22px rgba(255,63,164,.9)); }
.coll-hero.theme-neon .poke-orbit span { border-color: rgba(255,63,164,.5); box-shadow: 0 0 14px rgba(255,63,164,.5); }
.coll-hero.theme-neon .coll-stats span { color: #ffd1ec; }
.poke-grid.theme-neon .card, .poke-grid.theme-neon .ptile { background: linear-gradient(160deg, rgba(60,10,80,.92), rgba(20,4,36,.95)); border-color: rgba(255,120,220,.3); }
.poke-grid.theme-neon .card::before, .poke-grid.theme-neon .ptile::before { background: conic-gradient(from var(--ang, 0deg), #ff3fa4, #36e2ff, #ffe66b, #ff3fa4); }
.coll-spot.theme-neon { background: linear-gradient(135deg, rgba(60,10,80,.95), rgba(20,4,36,.97)); border-color: rgba(255,120,220,.35); }
.coll-spot.theme-neon .coll-spot-glow { background: conic-gradient(from 0deg, transparent, rgba(255,63,164,.45), transparent 30%); }
.coll-spot.theme-neon .coll-spot-buy .price { color: #36e2ff; }
.poke-custom.theme-neon { background: linear-gradient(135deg, #4a0d5e, #b0206b) !important; }
body[data-coll="neon"] #app .btn:not(.ghost) { background: linear-gradient(135deg, #ff3fa4, #ff7b39); color: #fff; box-shadow: 0 6px 20px rgba(255,63,164,.45); }
body[data-coll="neon"] #app .chip.active { background: linear-gradient(135deg, #ff3fa4, #ff7b39); color: #fff; }
body[data-coll="neon"] #app .price, body[data-coll="neon"] #app .ptile-price { color: #36e2ff; text-shadow: 0 0 12px rgba(54,226,255,.45); }

@media (max-width: 760px) {
  .coll-hero { min-height: 0; }
  .coll-spot { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .coll-stats div { min-width: 0; flex: 1; padding: 8px 10px; }
  .coll-stats strong { font-size: 1.3rem; }
  .sea-moon { width: 56px; height: 56px; right: 6%; top: 8%; }
  .sea-ship { right: 10%; bottom: 30px; font-size: 2.2rem; }
  .neon-sun { width: 110px; height: 110px; right: -10px; top: 10px; }
  .neon-palms { font-size: 2.6rem; }
  .coll-portal { min-height: 110px; padding: 16px; }
  .cp-ico { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { .sea-waves b, .sea-ship, .neon-grid, .coll-spot-glow, .cp-ico, .coll-portal::after { animation: none !important; } }
.coll-hero .poke-hero-text { order: 1; }
.coll-hero .poke-orbit { order: 2; }
.coll-spot { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.coll-spot-img { width: 100%; max-height: 360px; }
.sea-moon { right: 6%; top: 10%; }
.neon-sun { right: 5%; top: 10%; opacity: .85; }
@media (max-width: 760px) { .coll-spot { grid-template-columns: 1fr; } .coll-spot-img { max-height: 300px; } }

/* ===== visitatori ===== */
.dot-on { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.22); margin-right: 7px; vertical-align: middle; animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.08); } }
.vis-chip { display: inline-flex; align-items: center; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.vis-chip:not(.on) .dot-on { background: #9aa3a0; box-shadow: none; animation: none; }
.vis-chip.on { color: #15803d; background: #ecfdf3; border-color: #a7f3c5; }
.vis-live { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.vis-live.on { background: linear-gradient(135deg, #ecfdf3, #f0fdfa); border-color: #a7f3c5; }
.vis-pulse { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #9aa3a0; flex: none; }
.vis-live.on .vis-pulse { background: #22c55e; }
.vis-live.on .vis-pulse::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid #22c55e; animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.vis-live-n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--ink); }
.vis-live.on .vis-live-n { color: #15803d; }
.vis-live-l { font-weight: 700; font-size: 1.1rem; }
.vis-live-split { display: flex; gap: 14px; margin-top: 6px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.vis-online { display: grid; gap: 6px; margin-bottom: 14px; }
.vis-on { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.vis-on .muted { margin-left: auto; }
.vis-none { margin: 0 0 14px; }
.vis-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.vis-card { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.vis-card strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.vis-card span { font-weight: 600; }
.vis-card small { color: var(--muted); font-size: .78rem; }
.vis-card.hi { background: var(--accent-soft); border-color: transparent; }
.vis-card.hi strong { color: var(--accent); }
.vis-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; padding-top: 10px; }
.vis-bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 4px; }
.vb-n { font-size: .75rem; font-weight: 700; color: var(--muted); min-height: 1em; }
.vb-col { align-self: end; display: flex; flex-direction: column; justify-content: flex-start; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #34d399, var(--accent)); overflow: hidden; }
.vb-r { display: block; width: 100%; background: #f59e0b; }
.vis-bar.today .vb-col { box-shadow: 0 0 0 2px var(--accent-soft); }
.vis-bar.today .vb-d { color: var(--accent); font-weight: 800; }
.vb-d { font-size: .68rem; color: var(--muted); line-height: 1.15; text-transform: capitalize; }
@media (max-width: 760px) {
  .vis-cards { grid-template-columns: 1fr 1fr; }
  .vis-live { padding: 16px; gap: 14px; }
  .vis-live-n { font-size: 2.1rem; }
  .vis-chart { gap: 3px; height: 160px; }
  .vis-on .muted { margin-left: 0; width: 100%; }
}

/* ===== benvenuto: nome del cliente ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal-card.welcome-card { max-width: 420px; text-align: center; padding: 28px 24px 22px; }
.welcome { display: grid; gap: 12px; justify-items: center; }
.welcome-logo { width: 96px; height: 96px; object-fit: contain; animation: wlBounce 1.4s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(0,0,0,.15)); }
@keyframes wlBounce { 50% { transform: translateY(-6px) rotate(-3deg); } }
.welcome h2 { margin: 0; font-size: 1.5rem; }
.welcome p { margin: 0; }
.welcome input { width: 100%; font-size: 1.15rem; padding: 14px 16px; text-align: center; border-radius: 14px; }
.welcome .btn.big { width: 100%; justify-content: center; padding: 14px; font-size: 1.05rem; }
.welcome .field-err { color: #c2410c; font-weight: 600; font-size: .9rem; }
.welcome .link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.tag-res { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #fff3e0; color: #b45309; font-size: .7rem; font-weight: 700; }

/* ===== guida per ordinare ===== */
.guide-strip { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(110deg, #fff7e6, #ffeef6); border: 1px solid #ffd9a8; color: #5b3a00; text-decoration: none; transition: transform .2s; }
.guide-strip:hover { transform: translateY(-2px); }
.gs-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 1.3rem; box-shadow: 0 3px 10px rgba(255,140,0,.2); animation: pulseGlow 2.4s ease-in-out infinite; }
.guide-strip strong { display: block; color: #7a3d00; }
.gs-go { margin-left: auto; flex: none; padding: 7px 14px; border-radius: 999px; background: #ff8a1f; color: #fff; font-weight: 700; font-size: .88rem; }
@media (prefers-color-scheme: dark) { .guide-strip { background: linear-gradient(110deg, #3a2a10, #3a1a2a); border-color: #6b4a1a; color: #ffe2b8; } .guide-strip strong { color: #ffd08a; } .gs-ico { background: #2a2010; } }
.guide-mini { display: block; margin: -4px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); text-decoration: none; font-size: .92rem; }
.g-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px; margin-bottom: 16px; border-radius: 24px; background: linear-gradient(135deg, var(--accent), #8f6cf7); color: #fff; box-shadow: 0 14px 34px rgba(91,63,209,.25); }
.g-hero h1 { margin: 8px 0 6px; color: #fff !important; -webkit-text-fill-color: #fff; background: none !important; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.g-hero p { margin: 0; color: rgba(255,255,255,.92); max-width: 560px; }
.g-hero .hero-kicker { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.g-hero-art { display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; }
.g-hero-art span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.18); font-size: 2rem; animation: wlBounce 2.6s ease-in-out infinite; }
.g-hero-art span:nth-child(2) { animation-delay: .3s; } .g-hero-art span:nth-child(3) { animation-delay: .6s; } .g-hero-art span:nth-child(4) { animation-delay: .9s; }
.g-tabs { display: flex; gap: 8px; margin-bottom: 18px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.g-tab { padding: 10px 18px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 700 .98rem var(--font-body); cursor: pointer; }
.g-tab.on { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(91,63,209,.3); }
.g-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 0; }
.g-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding-bottom: 18px; }
.g-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 50px; bottom: 0; width: 3px; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); opacity: .35; }
.g-num span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); color: var(--accent); font: 800 1.3rem var(--font-display); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.g-body { padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.g-body h3 { margin: 0 0 6px; font-size: 1.12rem; }
.g-body p, .g-body ul { margin: 0 0 8px; line-height: 1.55; }
.g-body ul { padding-left: 20px; }
.g-body > :last-child { margin-bottom: 0; }
.g-go { margin-top: 4px; }
.g-h { margin: 6px 0 12px; }
.g-faq { margin-bottom: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.g-faq summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.g-faq[open] summary::after { transform: rotate(45deg); }
.g-faq > div { padding: 0 16px 14px; color: var(--muted); line-height: 1.55; }
.g-help { margin-top: 20px; }
@media (max-width: 760px) {
  .g-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .g-hero-art { grid-template-columns: repeat(4, 48px); }
  .g-hero-art span { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 14px; }
  .g-tabs { width: 100%; } .g-tab { flex: 1; padding: 10px 8px; font-size: .9rem; }
  .g-step { grid-template-columns: 42px 1fr; gap: 10px; }
  .g-num span { width: 40px; height: 40px; font-size: 1.05rem; border-width: 2px; }
  .g-step:not(:last-child)::before { left: 20px; top: 42px; }
  .g-body { padding: 12px 14px; }
}
.tempi-box { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #fff8e6; border: 1px solid #ffd98a; color: #5b4200; text-align: left; }
.tempi-box strong { display: block; color: #6b4a00; margin-bottom: 2px; }
.tempi-box span:not(.tempi-ico) { font-size: .92rem; line-height: 1.45; }
.tempi-ico { font-size: 1.5rem; line-height: 1; flex: none; }
@media (prefers-color-scheme: dark) { .tempi-box { background: #3a2e10; border-color: #6b5420; color: #ffe8b0; } .tempi-box strong { color: #ffd77a; } }

/* ===== vetrina foto rivenditori ===== */
.res-vetrina-btn { margin-top: 14px; background: #fff !important; color: #1b2422 !important; position: relative; z-index: 2; }
.vt-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px; margin-bottom: 14px; border-radius: 24px; color: #fff; background: radial-gradient(400px 200px at 90% 0%, rgba(255,138,31,.55), transparent 70%), linear-gradient(135deg, #1b2422, #2f3d3a); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.vt-hero h1 { margin: 8px 0 6px; color: #fff !important; -webkit-text-fill-color: #fff; background: none !important; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.vt-hero p { margin: 0; color: rgba(255,255,255,.88); max-width: 620px; }
.vt-hero a { color: #ffd08a; }
.vt-hero .hero-kicker { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.vt-play { background: linear-gradient(135deg, #ff8a1f, #ff3d6e) !important; color: #fff !important; font-size: 1.05rem; padding: 14px 22px; box-shadow: 0 8px 22px rgba(255,61,110,.4); }
.vt-bar { display: grid; gap: 10px; margin-bottom: 14px; }
.vt-tabs { margin-bottom: 0; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vt-card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: zoom-in; box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s; animation: cardIn .45s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i) * 40ms); }
.vt-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.vt-img { position: relative; display: block; aspect-ratio: 1; background: var(--bg); overflow: hidden; }
.vt-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.vt-card:hover .vt-img img { transform: scale(1.05); }
.vt-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.vt-body strong { font-size: 1.02rem; }
.vt-desc { color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .vt-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .vt-body { padding: 8px 10px 10px; } .vt-body strong { font-size: .9rem; } .vt-desc { display: none; } .vt-hero { padding: 18px; } .vt-play { width: 100%; justify-content: center; } }
/* visore */
.vt-viewer { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto; background: #0b0d10; color: #fff; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.vv-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
.vv-count { font-weight: 700; opacity: .8; }
.vv-tools { display: flex; gap: 8px; }
.vv-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.2rem; cursor: pointer; }
.vv-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.vv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; animation: fadeIn .3s; user-select: none; -webkit-user-drag: none; }
.vv-noimg { font-size: 5rem; }
.vv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.vv-nav.prev { left: 12px; } .vv-nav.next { right: 12px; }
.vv-nav:hover, .vv-btn:hover { background: rgba(255,255,255,.25); }
.vv-info { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.vv-info h2 { margin: 0 0 4px; color: #fff !important; -webkit-text-fill-color: #fff; background: none !important; font-size: 1.4rem; }
.vv-info p { margin: 0 auto 8px; max-width: 640px; color: rgba(255,255,255,.8); }
.vv-colors { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; margin-bottom: 8px; }
.vv-colors .sw { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); }
.vv-colors span:last-child { font-size: .85rem; opacity: .8; margin-left: 6px; }
.vv-dots { display: flex; justify-content: center; gap: 6px; }
.vv-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.vv-dots button.on { background: #fff; width: 22px; border-radius: 5px; }
@media (max-width: 760px) { .vv-nav { width: 44px; height: 44px; font-size: 1.6rem; background: rgba(0,0,0,.35); } }
.dep-required { display: grid; gap: 2px; margin: 12px 0 6px; padding: 12px 14px; border-radius: 14px; background: #fff1f2; border: 1px solid #fecdd3; color: #881337; }
.dep-required strong { color: #9f1239; }
.dep-required span { font-size: .9rem; line-height: 1.45; }
@media (prefers-color-scheme: dark) { .dep-required { background: #3b0d18; border-color: #7f1d33; color: #ffd0da; } .dep-required strong { color: #ffb3c4; } }

/* ===== aggiornamento obbligatorio ===== */
.update-lock { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(10,16,15,.72); backdrop-filter: blur(6px); animation: fadeIn .25s; }
.ul-card { width: min(420px, 100%); display: grid; gap: 12px; justify-items: center; text-align: center; padding: 28px 22px 22px; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ul-card img { width: 84px; height: 84px; object-fit: contain; animation: wlBounce 1.4s ease-in-out infinite; }
.ul-card h2 { margin: 0; }
.ul-card p { margin: 0; }
.ul-card .btn.big { width: 100%; justify-content: center; padding: 14px; font-size: 1.05rem; }
/* finché il cliente non scrive nome e cognome il negozio resta sfocato e non si può usare */
body.name-gate #app, body.name-gate .topbar, body.name-gate #nav, body.name-gate .tabbar, body.name-gate .cartbar, body.name-gate .footer, body.name-gate .info-fab { filter: blur(10px); pointer-events: none; user-select: none; }
body.name-gate #modal { background: rgba(10,16,15,.55); }

/* ===== novità ===== */
.bell-btn { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.15rem; cursor: pointer; }
.bell-btn.has { animation: bellRing 2.4s ease-in-out infinite; border-color: #ff8a1f; }
@keyframes bellRing { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3d6e; color: #fff; font: 800 .7rem/20px var(--font-body); box-shadow: 0 0 0 2px var(--surface); }
.news-list { display: grid; gap: 8px; max-height: 58vh; overflow-y: auto; margin-bottom: 12px; }
.news-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.news-item.unread { border-color: #ff8a1f; background: #fff8ef; }
.news-img { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; font-size: 1.5rem; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.news-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-txt small { color: var(--muted); }
.news-dot { flex: none; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #ff3d6e, #ff8a1f); color: #fff; font: 800 .65rem var(--font-display); letter-spacing: .06em; }
.news-push { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: .9rem; }
.news-push ol { margin: 0; padding-left: 20px; }
.news-push code { font-size: .85rem; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.news-toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 450; width: min(520px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: #1b2422; color: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.3); animation: popIn .45s cubic-bezier(.3,1.6,.5,1); }
.news-toast > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.news-toast small { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-ico { font-size: 1.6rem; animation: bellRing 1.6s ease-in-out infinite; }
.news-toast .btn { background: #ff8a1f !important; color: #fff !important; flex: none; }
.nt-x { background: none; border: 0; color: #fff; opacity: .7; font-size: 1rem; cursor: pointer; padding: 6px; }
.notify-new { background: #fff8ef; border-radius: 10px; padding: 8px 10px; }
@media (prefers-color-scheme: dark) { .news-item.unread, .notify-new { background: #3a2a14; } }
@media (max-width: 760px) { .news-toast { top: calc(10px + env(safe-area-inset-top)); } .bell-btn { width: 38px; height: 38px; font-size: 1rem; } }
/* vetrina: condividi e scarica */
.vt-card { position: relative; }
.vt-quick { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; gap: 6px; }
.vt-q { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 1rem; cursor: pointer; }
.vt-q:hover { transform: scale(1.08); }
.vv-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.vv-act { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font: 700 .95rem var(--font-body); cursor: pointer; }
.vv-act.wa { background: #25d366; color: #06301a; }
.vv-act:hover { filter: brightness(1.1); }
@media (max-width: 760px) { .vv-act { padding: 9px 12px; font-size: .88rem; } .vt-q { width: 34px; height: 34px; } }

/* ===== spedizione ===== */
.deliv { border: 0; padding: 0; margin: 10px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deliv legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.deliv-opt { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.deliv-opt input { margin-top: 3px; accent-color: var(--accent); }
.deliv-opt span { display: grid; gap: 2px; }
.deliv-opt small { color: var(--muted); font-size: .8rem; }
.deliv-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
#c-ship { display: grid; gap: 6px; margin-bottom: 8px; }
#c-ship[hidden] { display: none; }
.ship-info { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #eef6ff; border: 1px solid #c7dcf5; color: #0f3a66; font-size: .9rem; line-height: 1.45; margin: 4px 0 6px; }
.ship-row { display: grid; grid-template-columns: 1fr 2fr 70px; gap: 8px; }
.ship-row label { display: block; }
.ship-badge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #eef6ff; color: #0f4f99; font-size: .75rem; font-weight: 700; }
.ship-box h3 { margin-top: 0; }
.ship-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
@media (max-width: 760px) { .deliv { grid-template-columns: 1fr; } .ship-row { grid-template-columns: 90px 1fr 64px; } .ship-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-color-scheme: dark) { .ship-info, .ship-badge { background: #0f2a44; border-color: #1f4a77; color: #cfe3ff; } }
.book-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; line-height: 1.45; }
.book-rows { display: grid; gap: 6px; margin-bottom: 12px; }
.book-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.book-row strong { word-break: break-word; }
.ship-tot { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); }
@media (max-width: 760px) { .book-row { grid-template-columns: 1fr auto; } .book-row .muted { grid-column: 1 / -1; } }
.deliv.need .deliv-opt { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.2); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.deliv-opt input[type=radio] { width: 20px !important; height: 20px; flex: none; margin: 2px 0 0; padding: 0; }
.deliv-opt span { flex: 1; min-width: 0; }

/* ===== come pagare ===== */
.pay-box h2 { margin-top: 0; }
.pay-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.pay-btns .btn { flex: 1; min-width: 200px; justify-content: center; padding: 13px 16px; }
.btn.pay-pp { background: #0070ba !important; color: #fff !important; }
.bank-rows { display: grid; gap: 6px; margin: 8px 0; }
.bank-rows > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg); }
.bank-rows .muted { min-width: 90px; }
.bank-rows .mono { font-family: ui-monospace, monospace; letter-spacing: .02em; word-break: break-all; }
.bank-rows .btn { margin-left: auto; }
/* carrello in alto a destra */
.cart-top { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.25rem; text-decoration: none; box-shadow: 0 4px 12px rgba(91,63,209,.3); order: 99; transition: transform .15s; }
.cart-top:hover { transform: scale(1.06); }
.cart-top-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3d6e; color: #fff; font: 800 .7rem/20px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.cart-top.has { animation: pulseGlow 2.4s ease-in-out infinite; }
@media (max-width: 760px) { .cart-top { width: 40px; height: 40px; font-size: 1.1rem; } }

/* ---------- Spedizioni e pagamenti (gestione) ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.set-grid .panel h2 { margin-top: 0; }
.set-switch { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.set-switch:last-of-type { border-bottom: 0; }
.set-switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px !important; height: 1px; pointer-events: none; }
.set-knob { flex: none; position: relative; width: 46px; height: 26px; border-radius: 13px; background: #c9d2d0; transition: background .2s; margin-top: 2px; }
.set-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.set-switch input:checked + .set-knob { background: var(--accent); }
.set-switch input:checked + .set-knob::after { transform: translateX(20px); }
.set-switch input:focus-visible + .set-knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.set-switch strong { display: block; }
.set-switch small { display: block; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.set-switch.is-fixed { cursor: default; opacity: .75; }
.set-sub { margin: 0 0 8px 58px; padding: 4px 0 10px; }
.set-sub[hidden] { display: none; }
.set-money { display: flex; align-items: center; gap: 8px; }
.set-money input { max-width: 140px; }
.set-money.pre input { max-width: none; flex: 1; }
.set-money span { color: var(--muted); white-space: nowrap; }
.set-save { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 12px; background: var(--surface); padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
@media (max-width: 760px) { .set-grid { grid-template-columns: 1fr; } .set-sub { margin-left: 0; } .set-save { bottom: calc(84px + env(safe-area-inset-bottom)); } .set-save .btn { flex: 1; } }
.dep.warn { background: #ffe1e1; color: #b42318; font-weight: 700; }
@media (prefers-color-scheme: dark) { .dep.warn { background: #4a1717; color: #ffb3b3; } }
.set-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 4px; scrollbar-width: none; position: sticky; top: 68px; z-index: 5; background: var(--bg); margin-left: -6px; margin-right: -6px; padding-left: 6px; padding-right: 6px; }
.set-tabs::-webkit-scrollbar { display: none; }
.set-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.set-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.set-grid .panel { scroll-margin-top: 130px; }
.set-grid .panel > label:not(.set-switch) { display: block; margin-top: 10px; }
.set-grid .set-switch { display: flex; position: relative; }
.set-knob { display: block; }
.col-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.col-row input[type=color] { flex: none; width: 44px !important; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.col-row .col-name { flex: 1; min-width: 0; }
.col-row .icon-btn { flex: none; }
.set-links { display: grid; gap: 8px; }
.set-link { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; text-align: left; font: inherit; font-size: 1.3rem; cursor: pointer; width: 100%; }
.set-link:hover { border-color: var(--accent); }
.set-link strong { display: block; font-size: 1rem; }
.set-link small { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .set-tabs { top: 60px; } }

/* ---------- foto degli articoli negli ordini ---------- */
.aitems li { display: flex; align-items: center; gap: 10px; }
.aitems li > .item-check { flex: 1; min-width: 0; }
.item-photo { flex: none; position: relative; width: 52px; height: 52px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; display: grid; place-items: center; font-size: 1.3rem; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-photo.big { width: 84px; height: 84px; border-radius: 12px; }
.item-photo.none { cursor: default; background: var(--accent-soft); }
.item-photo .ip-mod { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.65); color: #fff; font-size: .62rem; font-weight: 700; text-align: center; padding: 1px 0; }
.item-photo .ip-zoom { position: absolute; right: 2px; bottom: 2px; font-size: .7rem; background: rgba(255,255,255,.9); border-radius: 6px; padding: 0 3px; line-height: 1.4; }
.item-photo:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.item-cell { display: flex; gap: 12px; align-items: flex-start; }
.zoom-gal { grid-template-rows: auto minmax(0,1fr) auto; grid-template-columns: minmax(0, 1fr); padding: 14px; }
.zg-info { min-width: 0; overflow-wrap: anywhere; }
.zg-top { width: 100%; max-width: 900px; display: flex; gap: 12px; align-items: flex-start; color: #fff; }
.zg-info { flex: 1; font-size: 1rem; line-height: 1.4; }
.zg-cap { margin-top: 4px; display: inline-block; background: #16a34a; color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.zg-x { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.2rem; cursor: pointer; }
.zg-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.zoom-gal .zg-stage img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 10px; background: #fff; }
.zg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.zg-nav.prev { left: 4px; } .zg-nav.next { right: 4px; }
.zg-count { color: #fff; font-weight: 600; align-self: center; }
.zoom-gal .zoom-bar { display: flex; gap: 10px; justify-content: center; align-items: center; }
@media (max-width: 760px) { .item-photo.big { width: 64px; height: 64px; } .zoom-gal .zg-stage img { max-height: 62vh; } }

/* ---------- stato dell'ordine a tappe ---------- */
.steps-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 16px 16px; margin-bottom: 16px; }
.steps-track { position: absolute; left: calc(12.5% + 4px); right: calc(12.5% + 4px); top: 42px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #22c55e); border-radius: 2px; transition: width .6s ease; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; position: relative; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: .85rem; }
.st-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--line); font-size: 1.15rem; position: relative; z-index: 1; filter: grayscale(1); opacity: .6; }
.steps li.on .st-dot { border-color: var(--accent); filter: none; opacity: 1; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.steps li.cur .st-dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); animation: pulseGlow 2.4s ease-in-out infinite; }
.steps li.on strong { color: var(--ink); }
.steps small { font-size: .72rem; color: var(--muted); }
.steps-items { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.si-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.si-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
@media (max-width: 760px) { .st-dot { width: 38px; height: 38px; font-size: 1rem; } .steps-track { top: 39px; } .steps li { font-size: .74rem; } .steps small { font-size: .64rem; } }

/* ---------- recensioni ---------- */
.stars { color: #f5a524; letter-spacing: 1px; font-size: 1rem; white-space: nowrap; }
.stars .off { color: var(--line); }
.rev-strip { margin-top: 28px; }
.rev-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.rev-head h2 { margin: 0; }
.rev-avg { display: flex; align-items: center; gap: 8px; }
.rev-avg strong { font-size: 1.6rem; }
.rev-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rev-card { flex: none; width: 270px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.rev-photo { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.rev-card .rev-photo img { width: 100%; height: 170px; object-fit: cover; display: block; }
.rev-body { padding: 12px 14px; }
.rev-body p { margin: 6px 0; line-height: 1.45; }
.rev-ask .star-pick { display: flex; gap: 6px; margin: 6px 0 12px; }
.star-pick button { font-size: 2.2rem; line-height: 1; background: none; border: 0; color: var(--line); cursor: pointer; padding: 2px; transition: transform .12s, color .12s; }
.star-pick button.on { color: #f5a524; }
.star-pick button:active { transform: scale(1.25); }
.rv-photo-row { display: flex; gap: 10px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
#rv-prev { display: flex; gap: 8px; align-items: center; }
#rv-prev img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.rev-done { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; }
.rev-adm { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.rev-adm.is-pend { border-left: 4px solid #f5a524; }
.rev-adm .rev-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.rev-adm .rev-body { padding: 0; flex: 1; min-width: 0; }
.sec-title { margin: 22px 0 10px; font-size: 1.1rem; }
.print-mini { margin-top: 4px; }

/* ---------- scheda di produzione (solo in stampa) ---------- */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body > *:not(#print-sheet) { display: none !important; }
  body { background: #fff !important; }
  #print-sheet { display: block; color: #000; font-family: system-ui, sans-serif; font-size: 11pt; }
  .ps-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #000; padding-bottom: 6px; margin-bottom: 8px; }
  .ps-head h1 { margin: 0; font-size: 20pt; } .ps-head p { margin: 0; }
  .ps-no { text-align: right; font-size: 10pt; } .ps-no strong { font-size: 22pt; }
  .ps-info { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
  .ps-info td { border: 1px solid #999; padding: 4px 6px; vertical-align: top; }
  .ps-info span, .ps-txt p span { display: block; font-size: 8pt; text-transform: uppercase; color: #555; }
  .ps-txt p span { display: inline; }
  .ps-note { border: 2px dashed #000; padding: 6px 8px; margin-bottom: 8px; }
  .ps-item { display: grid; grid-template-columns: 9mm 55mm 1fr; gap: 5mm; border: 1.5px solid #000; border-radius: 3mm; padding: 4mm; margin-bottom: 4mm; break-inside: avoid; }
  .ps-check { width: 8mm; height: 8mm; border: 2px solid #000; border-radius: 1.5mm; }
  .ps-img img { width: 55mm; height: 55mm; object-fit: contain; border: 1px solid #ccc; border-radius: 2mm; }
  .ps-img span { display: grid; place-items: center; width: 55mm; height: 30mm; border: 1px dashed #999; color: #666; }
  .ps-qty { font-size: 22pt; font-weight: 800; line-height: 1; }
  .ps-txt h2 { margin: 2px 0 4px; font-size: 15pt; }
  .ps-txt p { margin: 3px 0; }
  .ps-tag { display: inline-block; border: 1.5px solid #000; padding: 1px 6px; border-radius: 3mm; font-weight: 700; }
  .ps-sw { display: inline-block; width: 4mm; height: 4mm; border: 1px solid #000; border-radius: 50%; vertical-align: -0.5mm; margin-right: 1mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-perso strong { font-size: 13pt; }
  .ps-extra { display: flex; gap: 2mm; flex-wrap: wrap; margin-top: 2mm; }
  .ps-extra img { width: 18mm; height: 18mm; object-fit: cover; border: 1px solid #ccc; border-radius: 1mm; }
  .ps-extra.big img { width: 35mm; height: 35mm; }
  .ps-foot { font-size: 8pt; color: #555; text-align: center; margin-top: 4mm; }
}

/* ================= LETTERE NASCITA ================= */
.coll-portal.theme-baby .cp-bg { background: radial-gradient(200px 140px at 88% 10%, rgba(255,255,255,.55), transparent 70%), linear-gradient(135deg, #f7a8c8 0%, #c7b5f5 50%, #8fd3f4 100%); }
.coll-portal.theme-baby { color: #3b2557; }
.coll-portal.theme-baby .cp-eyebrow { color: #7a2f6b; }
.coll-portal.theme-baby .cp-txt > span:last-child { color: #4b3463; }
.baby-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; text-decoration: none; color: #3b2557; padding: 20px 22px; margin-bottom: 14px; border-radius: 22px; background: linear-gradient(120deg, #ffe3ef 0%, #ece4ff 50%, #dff3ff 100%); border: 2px solid #f3b6d2; box-shadow: 0 10px 26px rgba(199,120,170,.18); }
.baby-cta h2 { margin: 2px 0 4px; color: #3b2557; }
.baby-cta p { margin: 0; color: #5a4670; }
.baby-cta .eyebrow { color: #b0397d; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.baby-cta .btn { background: #d9468f; border-color: #d9468f; }
.baby-letters { display: flex; gap: 3px; }
.baby-letters span { display: grid; place-items: center; width: 40px; height: 48px; border-radius: 12px; font: 800 1.6rem var(--font-display, system-ui); color: #fff; background: hsl(calc(330 + var(--k) * 40), 75%, 72%); box-shadow: 0 4px 0 hsl(calc(330 + var(--k) * 40), 55%, 58%); animation: babyBob 2.6s ease-in-out infinite; animation-delay: calc(var(--k) * .18s); }
@keyframes babyBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@media (max-width: 760px) { .baby-cta { grid-template-columns: 1fr; } .baby-letters span { width: 34px; height: 42px; font-size: 1.3rem; } }

.baby-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 34px 26px; margin-bottom: 18px; background: linear-gradient(135deg, #ffd6e7 0%, #e5dcff 45%, #cfeeff 100%); color: #3b2557; }
.baby-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.2rem); margin: 6px 0 8px; line-height: 1.05; color: #3b2557; }
.baby-hero h1 span { background: linear-gradient(90deg, #e0438f, #8a5cf6, #2fa8e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.baby-hero p { max-width: 640px; margin: 0; color: #5a4670; }
.baby-kicker { display: inline-block; background: rgba(255,255,255,.7); padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: #b0397d; }
.baby-hero-txt { position: relative; z-index: 1; }
.baby-clouds i { position: absolute; left: var(--x); top: var(--y); width: calc(120px * var(--s)); height: calc(46px * var(--s)); background: rgba(255,255,255,.6); border-radius: 50px; filter: blur(1px); animation: cloudDrift 18s ease-in-out infinite alternate; animation-delay: var(--d); }
.baby-clouds i::before { content: ""; position: absolute; width: 55%; height: 140%; left: 18%; top: -55%; background: inherit; border-radius: 50%; }
@keyframes cloudDrift { from { transform: translateX(-20px); } to { transform: translateX(30px); } }

.nb-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.nb-preview-wrap { position: sticky; top: calc(var(--tb-h, 70px) + 12px); }
.nb-preview { border-radius: 22px; padding: 26px 16px; min-height: 260px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #fff 0, #fff6fb 40%, #f3ecff 100%); border: 1px solid #f0d9e8; box-shadow: inset 0 0 40px rgba(255,255,255,.8), 0 10px 30px rgba(140,90,160,.12); overflow: hidden; }
.nb-stage { display: grid; gap: 18px; justify-items: center; width: 100%; }
.nb-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.nb-l { position: relative; display: inline-block; font-weight: 800; color: var(--c1); line-height: 1; padding: 0 2px;
  text-shadow: 1px 1px 0 color-mix(in srgb, var(--c1) 80%, #000), 2px 2px 0 color-mix(in srgb, var(--c1) 72%, #000), 3px 3px 0 color-mix(in srgb, var(--c1) 64%, #000), 4px 4px 0 color-mix(in srgb, var(--c1) 56%, #000), 6px 8px 12px rgba(0,0,0,.18);
  -webkit-text-stroke: 1px rgba(0,0,0,.08); animation: babyBob 3s ease-in-out infinite; animation-delay: calc(var(--k) * .15s); }
.nb-S .nb-l { font-size: clamp(2.2rem, 7vw, 3.2rem); } .nb-M .nb-l { font-size: clamp(2.8rem, 9vw, 4.3rem); } .nb-L .nb-l { font-size: clamp(3.3rem, 11vw, 5.4rem); }
.nb-word.ghost .nb-l { opacity: .35; }
.nb-o { position: absolute; right: -8px; top: -10px; font-style: normal; font-size: .38em; transform: rotate(var(--r)); filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); text-shadow: none; -webkit-text-stroke: 0; }
.nb-plate { background: var(--c2); border-radius: 16px; padding: 12px 18px; min-width: 70%; max-width: 100%; text-align: center; color: color-mix(in srgb, var(--c2) 25%, #222); box-shadow: 0 4px 0 color-mix(in srgb, var(--c2) 70%, #000), 0 10px 18px rgba(0,0,0,.12); }
.nb-plate-name { font-size: 1.5rem; font-weight: 800; }
.nb-plate-rows { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: .9rem; font-weight: 600; font-family: system-ui, sans-serif; }
.nb-price { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.nb-price strong { font-size: 1.5rem; color: #d9468f; }
.nb-form h2 { margin: 18px 0 6px; font-size: 1.1rem; } .nb-form h2:first-child { margin-top: 0; }
.nb-form > label { display: block; margin-top: 10px; }
.nb-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nb-seg button { display: grid; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.nb-seg button strong { font-size: 1rem; } .nb-seg button small { font-size: .72rem; color: var(--muted); }
.nb-seg button.on { border-color: #d9468f; background: #fff0f7; box-shadow: 0 0 0 3px rgba(217,70,143,.15); }
.nb-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.nb-colors .sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; background: var(--c); padding: 0; }
.nb-colors .sw.on { box-shadow: 0 0 0 3px #d9468f; transform: scale(1.1); }
.nb-colname { font-size: .85rem; margin-top: 4px; font-weight: 600; }
.nb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.nb-grid label { display: block; margin-top: 8px; }
.nb-orn { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-orn button { padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: .92rem; transition: transform .12s; }
.nb-orn button.on { border-color: #d9468f; background: #fff0f7; font-weight: 700; }
.nb-orn button:active { transform: scale(.95); }
.nb-foot { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.nb-foot .btn { flex: 1; background: #d9468f; border-color: #d9468f; }
.nb-form .set-switch { border-bottom: 0; }
@media (max-width: 900px) { .nb-layout { grid-template-columns: 1fr; } .nb-preview-wrap { position: static; } }
@media (prefers-color-scheme: dark) { .nb-seg button.on, .nb-orn button.on { background: #4a1f36; } }

/* ================= CODICI SCONTO ================= */
.coupon-box { margin: 10px 0; }
.coupon-box summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.cp-in { display: flex; gap: 8px; margin-top: 8px; } .cp-in input { flex: 1; min-width: 0; }
.cp-on { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #e9f9ee; color: #166534; font-size: .92rem; }
.cp-on span { flex: 1; }
.totals .disc dd, .totals .disc dt { color: #16a34a; font-weight: 600; }
.cp-list { display: grid; gap: 8px; margin-bottom: 12px; }
.cp-row { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.cp-row > span:nth-child(2) { flex: 1; }
.cp-row.is-off { opacity: .55; }
.cp-code { font-family: ui-monospace, monospace; font-weight: 800; background: var(--accent-soft); color: var(--accent); padding: 4px 8px; border-radius: 8px; }
.cp-new { border-top: 1px dashed var(--line); padding-top: 10px; }
.cp-new h3 { margin: 0 0 6px; font-size: 1rem; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px 12px; }
.cp-grid label { display: block; margin-top: 8px; }
.cp-grid .set-money select { width: auto; }

/* ================= PREFERITI ================= */
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: 1.05rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .15s; line-height: 1; }
.fav-btn.pop { animation: favPop .4s ease; }
@keyframes favPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.card { position: relative; }
.ptile-img .fav-btn { top: 6px; right: 6px; width: 32px; height: 32px; font-size: .95rem; }
.card .new-badge ~ .fav-btn, .card .fav-btn { top: 10px; right: 10px; }
.fav-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: #fff0f4; color: #9f1239; }
.fav-bar span { flex: 1; }
@media (prefers-color-scheme: dark) { .fav-bar { background: #3b1220; color: #ffc2d1; } }

/* ================= ANTEPRIMA SCRITTA ================= */
.perso-prev { margin-top: 8px; }
.pp-lab { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.pp-plate { display: grid; place-items: center; padding: 14px 10px; border-radius: 14px; background: radial-gradient(circle at 30% 20%, #ffffff, #eef2f1); border: 1px solid var(--line); overflow: hidden; }
.pp-plate[data-bi="1"] { background: var(--c2); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.pp-txt { font: 800 clamp(1.3rem, 5vw, 2rem) var(--font-display, system-ui); color: var(--c1); word-break: break-word; text-align: center; line-height: 1.1;
  text-shadow: 1px 1px 0 color-mix(in srgb, var(--c1) 78%, #000), 2px 2px 0 color-mix(in srgb, var(--c1) 66%, #000), 3px 3px 0 color-mix(in srgb, var(--c1) 55%, #000), 4px 6px 8px rgba(0,0,0,.2); }

/* ================= PROMEMORIA ================= */
.reminders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rem { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: 1.3rem; cursor: pointer; }
.rem strong { display: block; font-size: .95rem; } .rem small { display: block; font-size: .8rem; color: var(--muted); }
.rem.warn { border-color: #f59e0b; background: #fff8eb; }
@media (prefers-color-scheme: dark) { .rem.warn { background: #3a2a0c; } }
.rem-list { display: grid; gap: 8px; }
.rem-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.rem-row strong { flex: 1; }

/* ================= CODA PER COLORE / MAGAZZINO ================= */
.queue { display: grid; gap: 14px; margin-bottom: 18px; }
.q-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.q-group header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.q-group h2 { margin: 0; font-size: 1.15rem; flex: 1; }
.q-tot { font-weight: 800; background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; }
.q-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.q-item { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.q-item .item-check { flex: 1; min-width: 0; }
.tag.danger { background: #fee2e2; color: #b91c1c; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.stock-row { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.stock-row strong { flex: 1; min-width: 0; font-size: .92rem; }
.stock-row.is-low { border-color: #f59e0b; background: #fff8eb; }
.stock-row.is-off { opacity: .6; }
.stepper.small button { width: 28px; height: 28px; }
.st-n { min-width: 22px; text-align: center; font-weight: 800; }
@media (prefers-color-scheme: dark) { .stock-row.is-low { background: #3a2a0c; } }

/* ================= STATISTICHE ================= */
.vbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 200px; padding-top: 18px; }
.vb { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.vb i { display: block; width: 100%; max-width: 38px; min-height: 2px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); }
.vb-v { font-size: .66rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.vb-l { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.hbars { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: .9rem; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.hb-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.hb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
@media (max-width: 760px) { .vbars { gap: 3px; height: 160px; } .vb-v { display: none; } }

/* ================= RIORDINO / LISTINO ================= */
.reorder-btn { margin-top: 10px; align-self: flex-start; }
.hero-res .row { display: flex; gap: 10px; flex-wrap: wrap; }
@media print {
  .pl-cat { font-size: 14pt; margin: 6mm 0 3mm; border-bottom: 1.5px solid #000; padding-bottom: 1mm; break-after: avoid; }
  .pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3mm; }
  .pl-item { display: grid; grid-template-columns: 28mm 1fr; gap: 3mm; border: 1px solid #bbb; border-radius: 2mm; padding: 2.5mm; break-inside: avoid; }
  .pl-item img { width: 28mm; height: 28mm; object-fit: cover; border-radius: 1.5mm; }
  .pl-noimg { display: grid; place-items: center; width: 28mm; height: 28mm; border: 1px dashed #bbb; }
  .pl-item p { margin: 1mm 0; font-size: 8.5pt; color: #444; }
  .pl-item .pl-price { font-size: 13pt; font-weight: 800; color: #000; }
  .pl-cols .ps-sw { margin-right: .8mm; }
}
@media print { html, body { background: #fff !important; background-image: none !important; } body::before, body::after { display: none !important; content: none !important; } }
