/* Layout Vetro: pannelli semitrasparenti e sfocati su uno sfondo sfumato che nasce dai colori della palette.
   In alto barra in vetro con catalogo e ricerca, categorie a pillole e apertura divisa in due pannelli. */
:root {
  --canvas: #ECEAF3; --surface: #FFFFFF; --soft: #F3F1F9; --ink: #16132A; --primary: #4B3BCB; --on-primary: #FFFFFF; --accent: #D4F25A; --on-accent: #141414;
  --ok: #1F8A4F; --warn: #B7791F; --f-d: "Geist", "Segoe UI", system-ui, sans-serif; --f-b: "Geist", "Segoe UI", system-ui, sans-serif; --f-i: "Instrument Serif", Georgia, serif;
  --dw: 600; --ls-d: -.035em; --r: 22px; --r-sm: 12px; --r-xl: 30px; --pill: 999px; --shadow: 0 30px 60px -28px color-mix(in oklab, var(--primary) 55%, transparent); --shadow-pop: 0 30px 70px -30px rgb(22 19 42 / .5); --mock-bg: #141414; --mock-fg: #FFFFFF;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --canvas: #0F0D18; --surface: #18152A; --soft: #221E36; --ink: #ECE9F8; --primary: #A89BFF; --on-primary: #0F0D18; --mock-bg: #F2F2EF; --mock-fg: #141414; color-scheme: dark; } }
:root[data-theme="dark"] { --canvas: #0F0D18; --surface: #18152A; --soft: #221E36; --ink: #ECE9F8; --primary: #A89BFF; --on-primary: #0F0D18; --mock-bg: #F2F2EF; --mock-fg: #141414; color-scheme: dark; }
:root { --muted: color-mix(in oklab, var(--ink) 58%, var(--canvas)); --line: color-mix(in oklab, var(--ink) 12%, transparent);
  --glass: color-mix(in oklab, var(--surface) 58%, transparent); --glass-2: color-mix(in oklab, var(--surface) 34%, transparent); --edge: color-mix(in oklab, var(--surface) 70%, transparent); }
body { background: var(--canvas); }
body::after { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 45% at 12% 18%, color-mix(in oklab, var(--primary) 55%, transparent), transparent 70%),
    radial-gradient(38% 40% at 88% 12%, color-mix(in oklab, var(--accent) 60%, transparent), transparent 70%),
    radial-gradient(45% 45% at 70% 85%, color-mix(in oklab, var(--primary) 35%, var(--accent) 20%), transparent 70%),
    radial-gradient(30% 35% at 20% 90%, color-mix(in oklab, var(--accent) 40%, transparent), transparent 70%);
  filter: blur(30px); }
#app { position: relative; z-index: 0; }
.shell { max-width: 1320px; }
.gl { position: relative; min-width: 0; background: var(--glass); backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow); }
.gl.thin { background: var(--glass-2); }
.k { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.grad { background: linear-gradient(100deg, var(--primary), color-mix(in oklab, var(--primary) 50%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { height: 50px; }
.btn.ghost { background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.gchip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border-radius: var(--pill); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.gchip i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-style: normal; }
.gchip i svg.i { width: 15px; height: 15px; }

/* testata */
.top { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 30; margin-top: 12px; }
.bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 64px; padding: 0 10px 0 22px; border-radius: var(--pill); }
.bar .catb { height: 44px; padding: 0 16px 0 12px; border-radius: var(--pill); display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); }
.bar .sbx { display: flex; align-items: center; gap: 10px; height: 44px; max-width: 560px; width: 100%; justify-self: center; padding: 0 18px; border-radius: var(--pill); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); color: var(--muted); font-size: 14px; text-align: left; }
.bar .sbx svg.i { width: 18px; height: 18px; }
/* menu in testata su una riga: le voci che non ci stanno vanno a capo e restano nascoste (tutte nel Catalogo) */
.cnav { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; height: 38px; overflow: hidden; margin-top: 10px; }
.cnav button, .cnav a { height: 38px; padding: 0 16px; border-radius: var(--pill); font-size: 14px; color: var(--muted); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); white-space: nowrap; }
/* link al posto del pulsante: il testo resta centrato in altezza */
.cnav a { display: inline-flex; align-items: center; justify-content: center; }
.cnav button[aria-current="true"], .cnav a[aria-current="true"] { color: var(--on-primary); background: var(--primary); box-shadow: none; }
.logo { justify-self: start; font-weight: 700; font-size: 21px; letter-spacing: -.04em; display: inline-flex; gap: 8px; align-items: center; }
.logo i { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 200deg, var(--primary), var(--accent), var(--primary)); }
.bar .r { justify-self: end; display: flex; gap: 6px; align-items: center; }
.bar .circle { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); }
.bar .ct { height: 44px; padding: 0 6px 0 16px; border-radius: var(--pill); background: var(--primary); color: var(--on-primary); display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.bar .ct b { min-width: 32px; height: 32px; border-radius: 16px; background: color-mix(in oklab, var(--on-primary) 20%, transparent); display: grid; place-items: center; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 26px; }
.hero .hx { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5vw, 78px); line-height: .98; max-width: 14ch; }
.hero p { margin: 0; max-width: 48ch; color: var(--muted); font-size: 17px; }
.hero .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .hc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero .hp { grid-column: 1 / -1; padding: 14px; display: grid; gap: 14px; text-align: left; }
.hero .hp .im { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; }
.hero .hp .im img { width: 100%; height: 100%; object-fit: cover; }
.hero .hp .ln { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 0 8px 4px; }
.hero .hp b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.hero .hp .price { font-size: 20px; text-align: right; }
.card-f { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px 10px 10px; text-align: left; border-radius: var(--r); font-size: 13px; }
.card-f img { width: 54px; height: 54px; border-radius: var(--r-sm); object-fit: cover; }
.card-f b { display: block; font-size: 14px; }
.orb { border-radius: 50%; padding: 18px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge), 0 40px 120px -20px color-mix(in oklab, var(--primary) 70%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sec { margin-top: 80px; }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.sh h2 { margin: 0; font-size: clamp(32px, 3.4vw, 54px); line-height: 1; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat { min-width: 0; padding: 14px; display: grid; gap: 14px; text-align: left; transition: transform .3s; }
.cat:hover { transform: translateY(-4px); }
.cat .im { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; }
.cat .im img { width: 100%; height: 100%; object-fit: cover; }
.cat .ln > span:first-child { min-width: 0; }
.cat .ln { min-width: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 6px 4px; }
.cat b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cat .circle { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pc { padding: 10px; display: grid; gap: 12px; align-content: start; }
.pc .im { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.pc .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pc:hover .im img { transform: scale(1.05); }
.pc .open { position: absolute; inset: 0; z-index: 1; }
.pc .tag { position: absolute; left: 10px; top: 10px; z-index: 2; height: 28px; padding: 0 12px; border-radius: var(--pill); display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--edge); }
.pc .fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pc .fav svg.i { width: 16px; height: 16px; }
.pc .fav[aria-pressed="true"] { color: var(--primary); }
.pc .fav[aria-pressed="true"] svg.i { fill: currentColor; }
.pc .bd { padding: 0 6px 6px; display: grid; gap: 4px; }
.pc .nm { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.pc .ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.pc .add { position: relative; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 48px; overflow: hidden; }
.promo h2 { margin: 6px 0 10px; font-size: clamp(32px, 3.4vw, 54px); line-height: 1; max-width: 18ch; }
.promo p { margin: 0 0 20px; color: var(--muted); max-width: 50ch; }
.promo .big { font-size: clamp(100px, 13vw, 210px); font-weight: 700; letter-spacing: -.07em; line-height: .8; padding-right: .1em; }
.usp { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.usp .gchip { height: 54px; padding-right: 22px; }
.usp .gchip i { width: 38px; height: 38px; }
.usp .gchip small { color: var(--muted); margin-left: 4px; }
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 14px; }
.story img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: var(--r); }
.story .tx { padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.story h3 { margin: 0; font-size: clamp(30px, 3vw, 46px); line-height: 1.02; }
.story p { margin: 0; color: var(--muted); }
.news { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; padding: 50px 24px; }
.news h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; max-width: 22ch; }
.news form { display: flex; gap: 6px; padding: 6px; width: min(480px, 100%); border-radius: var(--pill); background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); }
.news input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding-left: 16px; }
.news .btn { height: 46px; }
.foot { margin-block: 60px 30px; padding: 30px; display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 14px; }
.foot p { margin: 10px 0 0; color: var(--muted); }
.foot h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .bot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* categoria */
.ch { margin-top: 30px; padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 30px; align-items: end; }
.ch h1 { margin: 6px 0 0; font-size: clamp(38px, 4.4vw, 70px); line-height: 1; }
.ch p { margin: 0; color: var(--muted); max-width: 60ch; }
.ch .tl { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.crumb { display: flex; gap: 6px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--pill); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); flex-wrap: wrap; }
.seg button { height: 38px; padding: 0 16px; border-radius: var(--pill); font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.sel { height: 46px; padding: 0 16px; border-radius: var(--pill); border: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); }
.cw { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.side { padding: 6px 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); }
.side .fg { border-color: var(--line); }
.mf { display: none; }
.cg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpro { grid-column: span 2; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.cpro h3 { margin: 0; font-size: 34px; line-height: 1.02; }
.acts2 { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.acts2 button { height: 32px; padding: 0 12px; border-radius: var(--pill); background: var(--primary); color: var(--on-primary); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.acts2 svg.i { width: 13px; height: 13px; }
.more { display: flex; justify-content: center; margin-top: 24px; }

/* prodotto */
.pw { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 26px; align-items: start; }
.gal { padding: 30px; display: grid; gap: 20px; justify-items: center; }
.gal .orb { position: relative; left: auto; top: auto; transform: none; width: min(460px, 100%); height: auto; aspect-ratio: 1; }
.gal .orb img.zoom { transform: scale(1.7); transform-origin: 50% 40%; }
.gal .orb { overflow: hidden; }
.gal .orb > img { border-radius: 50%; }
.gal .thw { width: min(460px, 100%); --thw-p: 6px; }
.gal .th { display: flex; gap: 10px; }
.gal .th > :first-child { margin-inline-start: auto; }
.gal .th > :last-child { margin-inline-end: auto; }
.gal .th button { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; opacity: .65; box-shadow: inset 0 0 0 1px var(--edge); }
.gal .th button img { width: 100%; height: 100%; object-fit: cover; }
.gal .th button.zoom img { transform: scale(1.8); }
.gal .th button[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--primary); outline-offset: 3px; }
.gal .chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.buy { padding: 32px; display: grid; gap: 18px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); }
.buy h1 { margin: 0; font-size: clamp(34px, 3.2vw, 52px); line-height: 1; }
.buy .pr { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.buy .omni { margin: -12px 0 0; font-size: 12.5px; color: var(--muted); }
.buy .l { margin: 0; color: var(--muted); }
.buy .row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.buy .step { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); }
.buy .row .btn { height: 56px; width: 100%; min-width: 0; justify-content: space-between; }
.buy .sizes button { box-shadow: inset 0 0 0 1px var(--edge); background: var(--glass-2); }
.buy .sizes button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.buy .sub { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.buy .lines2 { display: grid; gap: 8px; }
.buy .lines2 div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); font-size: 14px; }
.buy .lines2 i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.buy .lines2 i svg.i { width: 17px; height: 17px; }
.buy .lines2 small { display: block; color: var(--muted); }
.specs2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.specs2 div { padding: 18px; border-radius: var(--r); display: grid; gap: 4px; }
.specs2 small { color: var(--muted); font-size: 12.5px; }
.specs2 b { font-size: 16px; font-weight: 600; }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; padding: 14px; align-items: center; }
.kit .it2 { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 8px; border-radius: var(--r); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13px; }
.kit .it2 img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; }
.kit .it2 b { display: block; font-size: 14px; font-weight: 600; }
.kit .tot { display: grid; justify-items: end; gap: 6px; padding: 0 10px; }
.kit .tot b { font-size: 28px; letter-spacing: -.02em; }
.gb button, .gb a { background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--r-xl); }
.ch .subcats { grid-column: 1 / -1; }
.drawer { background: color-mix(in oklab, var(--surface) 82%, transparent); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.drawer.xp { background: var(--canvas); backdrop-filter: none; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cw { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; position: static; }
  .side.open { display: block; }
  .mf { display: inline-flex; }
  .kit { grid-template-columns: minmax(0, 1fr); }
  .kit .tot { justify-items: start; }
}
@media (max-width: 860px) {
  .bar { grid-template-columns: auto auto minmax(0, 1fr) auto; padding-left: 18px; gap: 8px; }
  .bar .sbx { width: 44px; padding: 0; justify-content: center; justify-self: end; }
  .bar .sbx span { display: none; }
  .bar .catb span { display: none; }
  .bar .catb { width: 44px; padding: 0; justify-content: center; }
  .cnav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .cnav button, .cnav a { flex: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .hx { padding: 30px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw, .story { grid-template-columns: minmax(0, 1fr); }
  .buy { position: static; }
  .promo { grid-template-columns: minmax(0, 1fr); padding: 30px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .ch { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}
@media (max-width: 620px) {
  .hero .hx { padding: 24px; }
  .hero p { font-size: 15.5px; }
  .hero .hc { grid-template-columns: minmax(0, 1fr); }
  .bar .ct { padding: 0 6px; }
  .bar .ct .lb { display: none; }
  .logo { font-size: 19px; }
  .grid, .cg { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pc .nm { font-size: 14px; }
  .pc .bd .muted { display: none; }
  .cpro { grid-column: 1 / -1; }
  .story img { min-height: 240px; }
  .story .tx { padding: 14px 10px; }
  .gal { padding: 18px; }
  .buy { padding: 20px; }
  .buy .row .btn .p2 { display: none; }
  .buy .row .btn { justify-content: center; }
  .seg button { padding: 0 11px; font-size: 13px; }
  .sel { display: none; }
  .usp .gchip { width: 100%; }
  .foot { padding: 22px; }
}
@media (max-width: 620px) {
  .sec { margin-top: 48px; }
  .usp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .usp .gchip { width: 100%; height: auto; display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; align-items: center; padding: 10px 16px 10px 10px; border-radius: var(--r); white-space: normal; line-height: 1.3; }
  .usp .gchip i { grid-row: 1 / 3; }
  .usp .gchip b { align-self: end; }
  .usp .gchip small { margin-left: 0; align-self: start; font-size: 12.5px; }
  .cats { gap: 10px; }
  .cat { padding: 10px; gap: 10px; }
  .cat .ln { gap: 6px; padding: 0 4px 2px; }
  .cat b { font-size: 15px; line-height: 1.2; }
  .cat .circle { width: 30px; height: 30px; }
  .cat .circle svg.i { width: 14px; height: 14px; }
}
