:root {
  --bg: #0f0e0c; --surface: #181612; --surface-2: #211e18; --line: #2e2a23;
  --text: #f1ece1; --muted: #a39b8a; --gold: #d2ab55; --gold-2: #f0d48a; --silver: #c9ced3;
  --up: #6fbf8b; --down: #e0796b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.h3, h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Testata */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 14, 12, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .04em; color: var(--gold-2); white-space: nowrap; margin: 0; }
.nav { display: flex; gap: 22px; flex: 1; font-size: .95rem; }
.nav a { color: var(--muted); padding: 6px 0; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang { font-size: .8rem; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; color: var(--muted); }
.lang:hover { color: var(--text); border-color: var(--muted); }
.cart-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: #1a1408; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.ticker { border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.ticker-row { display: flex; gap: 20px; align-items: center; min-height: 30px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ticker b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; transition: color .6s; }
.tick-time { margin-left: auto; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.dot.gold { background: var(--gold); } .dot.silver { background: var(--silver); }
.up { color: var(--up) !important; } .down { color: var(--down) !important; }
@media (max-width: 760px) {
  .top-row { gap: 0 12px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 20px; padding-bottom: 8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar, .ticker-row::-webkit-scrollbar { display: none; }
  .tick-time { display: none; }
}

/* Apertura */
.hero { position: relative; height: min(84svh, 780px); min-height: 420px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { background:
  radial-gradient(60% 80% at 75% 30%, rgba(210, 171, 85, .38), transparent 70%),
  radial-gradient(50% 60% at 15% 85%, rgba(201, 206, 211, .14), transparent 70%),
  linear-gradient(135deg, #17140e, #0f0e0c 60%);
  background-size: 140% 140%; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { background-position: 100% 60%; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 14, 12, .92) 0%, rgba(15, 14, 12, .25) 55%, rgba(15, 14, 12, .15) 100%); }
.hero-text { position: relative; padding-block: clamp(32px, 7vw, 80px); }
.hero-text h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); max-width: 14ch; }
.hero-text p { max-width: 46ch; color: #d9d2c3; margin: 16px 0 26px; font-size: 1.05rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 99px; border: 1px solid var(--gold); background: var(--gold); color: #1a1408; font-weight: 600; letter-spacing: .01em; transition: background .2s, transform .1s; }
.btn:hover { background: var(--gold-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--gold-2); }
.btn.wide { width: 100%; }
.link { color: var(--gold-2); font-size: .95rem; white-space: nowrap; }

.section { padding-block: clamp(36px, 6vw, 72px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head p { margin: 6px 0 0; }

/* Vetrina video */
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
@media (min-width: 1360px) { .reel { padding-inline: calc((100vw - 1280px) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - 1280px) / 2 + var(--gutter)); } }
.reel-item { position: relative; flex: 0 0 clamp(210px, 62vw, 300px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--surface); scroll-snap-align: start; border: 1px solid var(--line); }
.reel-item video, .reel-item img, .reel-item .ph { width: 100%; height: 100%; object-fit: cover; }
.reel-item .ph { padding: 12% 6% 30%; }
.reel-cap { position: absolute; inset: auto 0 0 0; padding: 48px 16px 16px; background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent); display: flex; flex-direction: column; gap: 2px; }
.reel-cap b { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.2; }
.reel-cap span { color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* Categorie */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { display: flex; flex-direction: column; justify-content: flex-end; min-height: 130px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(210, 171, 85, .2), var(--surface) 62%); transition: border-color .2s, transform .2s; }
.cat.silver { background: linear-gradient(140deg, rgba(201, 206, 211, .17), var(--surface) 62%); }
.cat:hover { border-color: var(--muted); transform: translateY(-2px); }
.cat span { font-family: var(--serif); font-size: 1.25rem; }
.cat small { color: var(--muted); }
@media (max-width: 860px) { .cats { grid-template-columns: repeat(2, 1fr); } .cat { min-height: 104px; } }

/* Griglia prodotti */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: #4a4336; }
.card-media { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #2a261e, #14120e 75%); overflow: hidden; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; }
.badge-video { position: absolute; left: 10px; top: 10px; font-size: .7rem; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1.08rem; }
.eyebrow { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.eyebrow.silver { color: var(--silver); }
.meta { margin: 0; color: var(--muted); font-size: .88rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; transition: color .6s; }
.price.big { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 500; line-height: 1.1; }
.btn-add { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold-2); font-size: 1.3rem; line-height: 1; transition: background .2s, color .2s; }
.btn-add:hover, .btn-add.done { background: var(--gold); color: #1a1408; }
.sold { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .card-body { padding: 10px 10px 12px; } .card h3 { font-size: .98rem; } .btn-add { width: 36px; height: 36px; } }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); margin-top: clamp(36px, 6vw, 72px); }
.trust p { margin: 8px 0 0; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; gap: 22px; } }

/* Pagine interne */
.page { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 96px); }
.page.narrow { max-width: 820px; }
.page > h1 { margin-bottom: 22px; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.chip.on { border-color: var(--gold); color: var(--gold-2); background: rgba(210, 171, 85, .1); }
.sep { width: 1px; height: 22px; background: var(--line); margin-inline: 4px; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
select, input, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
.sort select { width: auto; }
.empty { padding: 40px 0; }
.crumbs { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }

/* Scheda prodotto */
.product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: 110px; }
.stage { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a261e, #14120e 75%); border: 1px solid var(--line); }
.slide, .slide img, .slide video, .slide .ph { width: 100%; height: 100%; }
.slide img { object-fit: cover; } .slide video { object-fit: contain; background: #000; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { position: relative; flex: 0 0 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); opacity: .65; }
.thumb.on { opacity: 1; border-color: var(--gold); }
.thumb img, .thumb-v { width: 100%; height: 100%; object-fit: cover; }
.thumb i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: .9rem; background: rgba(0, 0, 0, .35); }
.buy h1 { margin: 6px 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.price-box { display: flex; flex-direction: column; gap: 4px; margin: 22px 0 14px; padding: 20px 0; border-block: 1px solid var(--line); }
.live { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stock { display: inline-block; font-size: .85rem; color: var(--up); }
.stock.low { color: var(--gold-2); } .stock.out { color: var(--down); }
.buy-row { display: flex; gap: 12px; margin: 18px 0 8px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; flex: none; background: var(--surface); }
.qty button { width: 42px; height: 46px; background: none; border: 0; font-size: 1.2rem; }
.qty input { width: 46px; min-height: 0; padding: 0; border: 0; text-align: center; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .h3 { margin: 30px 0 10px; }
.specs { display: grid; grid-template-columns: auto 1fr; margin: 0; font-size: .95rem; }
.specs dt, .specs dd { padding: 9px 0; margin: 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); padding-right: 24px; }
.specs dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.prose p { color: #d5cebf; max-width: 68ch; }
.prose .h3 { margin: 28px 0 8px; }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .stage { border-radius: 14px; }
}

/* Carrello e ordine */
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); grid-row: span 2; }
.cart-name { font-family: var(--serif); font-size: 1.1rem; }
.cart-line-total { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cart-controls { display: flex; align-items: center; gap: 14px; }
.cart-controls .qty button { width: 34px; height: 36px; } .cart-controls .qty input { width: 36px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; }
.totals { margin: 18px 0 0 auto; max-width: 380px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.25rem; font-family: var(--serif); }
.cart-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 20px; }
.cart-actions .btn { min-width: min(100%, 320px); }
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.checkout .h3 { margin: 26px 0 12px; } .checkout form .h3:first-child { margin-top: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; color: var(--muted); }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea { color: var(--text); font-size: 1rem; }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.option input, .terms input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--gold); }
.option small { display: block; }
.terms { display: flex; gap: 12px; margin: 22px 0 16px; font-size: .88rem; color: var(--muted); }
.terms a { color: var(--gold-2); text-decoration: underline; }
.form-error { color: var(--down); }
.summary { position: sticky; top: 110px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.summary .totals { max-width: none; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.lock { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: rgba(210, 171, 85, .1); color: var(--gold-2); font-size: .9rem; }
.lock b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: .9rem; margin-bottom: 14px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } }
.lines { width: 100%; border-collapse: collapse; margin: 22px 0; }
.lines th, .lines td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines th { color: var(--muted); font-weight: 400; font-size: .85rem; }
.lines td:last-child, .lines th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines td:nth-child(2), .lines th:nth-child(2) { text-align: center; padding-inline: 12px; }
.lines .grand td { font-family: var(--serif); font-size: 1.25rem; border-bottom: 0; }
.bank { padding: 22px; border: 1px solid var(--gold); border-radius: 16px; margin-bottom: 26px; background: rgba(210, 171, 85, .06); }
.bank .h3 { margin-bottom: 8px; }
.order h1 { margin: 6px 0 12px; }

.foot { border-top: 1px solid var(--line); padding-block: 36px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 28px; }
.foot-grid a { display: block; padding: 4px 0; color: var(--muted); } .foot-grid a:hover { color: var(--text); }
.foot-note { margin-top: 26px; font-size: .8rem; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; gap: 18px; } }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; background: var(--text); color: #17140e; padding: 12px 20px; border-radius: 99px; font-size: .92rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); text-align: center; }
.toast a { text-decoration: underline; margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
