/* Layout Galleria: schermo diviso. A sinistra una foto a tutta altezza che resta ferma e cambia con la sezione,
   a destra i contenuti che scorrono. Sembra una mostra fotografica: tanta immagine, testo sobrio e numerato. */
: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: "Instrument Serif", Georgia, serif; --f-b: "Geist", "Segoe UI", system-ui, sans-serif; --f-i: "Instrument Serif", Georgia, serif;
  --dw: 400; --ls-d: -.015em; --r: 10px; --r-sm: 6px; --r-xl: 14px; --pill: 999px; --shadow: none; --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) 55%, var(--canvas)); --line: color-mix(in oklab, var(--ink) 13%, var(--canvas)); }
body { padding-bottom: 0; margin: 0; }
.btn { height: 50px; font-weight: 500; }
.btn.acc { background: var(--accent); color: var(--on-accent); }
.k { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.idx { font-family: var(--f-b); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--primary); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.fixed { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #0B0A12; }
.fixed .ph { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease, transform 6s ease; transform: scale(1.06); }
.fixed .ph.on { opacity: 1; transform: scale(1); }
.fixed .ph img { width: 100%; height: 100%; object-fit: cover; }
.fixed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .35), rgb(0 0 0 / 0) 25%, rgb(0 0 0 / 0) 60%, rgb(0 0 0 / .55)); pointer-events: none; }
.fixed .top { position: absolute; z-index: 2; left: 28px; right: 28px; top: calc(env(safe-area-inset-top, 0px) + 22px); display: flex; justify-content: space-between; align-items: center; color: #FFFFFF; }
.logo { font-family: var(--f-d); font-size: 30px; line-height: 1; letter-spacing: -.01em; color: inherit; }
.logo i { font-style: italic; }
.fixed .cap { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; color: #FFFFFF; }
.fixed .cap b { display: block; font-family: var(--f-d); font-weight: 400; font-size: clamp(28px, 2.6vw, 42px); line-height: 1; }
.fixed .cap small { opacity: .8; font-size: 13px; }
.fixed .cap .nn { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; }
.fixed .hot { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: var(--pill); background: rgb(255 255 255 / .92); color: #16132A; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fixed .hot i { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #FFFFFF; display: grid; place-items: center; font-style: normal; }
.fixed .hot i svg.i { width: 14px; height: 14px; }

.flow { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 64px; padding: env(safe-area-inset-top, 0px) max(28px, env(safe-area-inset-right, 0px)) 0 32px; background: color-mix(in oklab, var(--canvas) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
/* menu in testata su una riga: le voci che non ci stanno vanno a capo e restano nascoste (tutte nel Catalogo) */
.bar nav { display: flex; flex-wrap: wrap; gap: 16px; height: 20px; font-size: 13.5px; min-width: 0; overflow: hidden; }
.bar nav button, .bar nav a { white-space: nowrap; }
.pan .brands-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bar nav button, .bar nav a { color: var(--muted); }
.bar nav .catx { color: var(--ink); font-weight: 600; }
.bar .r .mcat, .bar .r .mac { display: none; }
.bar nav button[aria-current="true"], .bar nav a[aria-current="true"], .bar nav button:hover, .bar nav a:hover { color: var(--ink); }
.bar .r { display: flex; gap: 14px; align-items: center; font-size: 13.5px; white-space: nowrap; flex: none; }
.bar .r .cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--primary); color: var(--on-primary); font-size: 12px; margin-left: 4px; }
.bar .logo { display: none; }
.pan { padding: 72px max(28px, env(safe-area-inset-right, 0px)) 72px 32px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.pan .mph { display: none; }
.pan h1 { margin: 0; font-size: clamp(48px, 5.4vw, 92px); line-height: .95; }
.pan h1 em, .pan h2 em { font-style: italic; }
.pan h2 { margin: 0; font-size: clamp(36px, 3.6vw, 60px); line-height: 1; }
.pan p.l { margin: 0; font-size: 17px; line-height: 1.6; max-width: 44ch; color: var(--muted); }
.pan .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.pan .meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); }
.pan .meta b { display: block; font-family: var(--f-d); font-weight: 400; font-size: 30px; color: var(--ink); line-height: 1.1; }
.hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.clist { display: grid; }
.cl { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); text-align: left; transition: padding .3s; }
.cl:last-child { border-bottom: 1px solid var(--line); }
.cl:hover { padding-left: 10px; }
.cl b { font-family: var(--f-d); font-weight: 400; font-size: clamp(32px, 3vw, 48px); line-height: 1; }
.cl .r { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.cl .r img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--r-sm); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.pc { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; }
.pc .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.pc .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1s cubic-bezier(.2, .7, .2, 1); }
.pc .ph img.alt { opacity: 0; }
.pc:hover .ph img.alt { opacity: 1; }
.pc:hover .ph img { transform: scale(1.03); }
.pc .open { position: absolute; inset: 0; z-index: 1; }
.pc .tag { position: absolute; z-index: 2; left: 10px; top: 10px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.pc .fav { position: absolute; z-index: 2; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.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 .add { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; transform: scale(.8); opacity: 0; transition: transform .25s, opacity .25s; }
.pc:hover .add, .pc .add:focus-visible { transform: none; opacity: 1; }
.pc .ln { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pc .nm { font-family: var(--f-d); font-weight: var(--dw); letter-spacing: var(--ls-d); text-transform: var(--tt-d, none); font-size: 22px; line-height: 1.1; }
.pc .price { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc .price s { color: var(--muted); margin-left: 6px; }
.pc .sb { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.promo { border-radius: var(--r-xl); background: var(--primary); color: var(--on-primary); padding: 32px; display: grid; gap: 16px; }
.promo .k { color: var(--accent); }
.promo p { margin: 0; opacity: .85; }
.promo .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.promo .big { font-family: var(--f-d); font-size: 88px; line-height: .8; color: var(--accent); }
.revs { display: grid; gap: 0; }
.rv { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.rv img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rv q { font-family: var(--f-d); font-size: 23px; line-height: 1.25; quotes: "«" "»"; }
.rv small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.usp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.usp div { padding: 16px 16px 16px 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.usp div:nth-child(odd) { border-right: 1px solid var(--line); }
.usp div:nth-child(even) { padding-left: 16px; }
.usp b { display: block; color: var(--ink); font-weight: 500; }
.usp svg.i { color: var(--primary); }
.news form { display: flex; gap: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.news input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; }
.news p { margin: 0; font-size: 13px; color: var(--muted); }
.foot { padding: 40px max(28px, env(safe-area-inset-right, 0px)) 110px 32px; display: grid; gap: 28px; font-size: 13.5px; }
.foot .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot h4 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot p { margin: 0; color: var(--muted); max-width: 44ch; }
.foot .bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* categoria */
.crumb { display: flex; gap: 6px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--pill); background: var(--soft); flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 14px; border-radius: var(--pill); font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 15; background: var(--canvas); padding-block: 12px; margin-block: -12px; }
.tools .l { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tools .tg { display: inline-flex; gap: 8px; align-items: center; height: 42px; padding: 0 16px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.tools .tg.on { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.tools select { border: 0; background: none; font-size: 13.5px; color: var(--ink); }
.fpanel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 6px 20px 16px; border-radius: var(--r-xl); background: var(--surface); }
.fpanel .fg { border-bottom: 0; }
.colors button { border-radius: 50%; }
.acts2 { display: flex; gap: 6px; flex-wrap: wrap; }
.acts2 button { height: 30px; padding: 0 12px; border-radius: var(--pill); background: var(--ink); color: var(--canvas); font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.acts2 svg.i { width: 12px; height: 12px; }
.cpro { grid-column: 1 / -1; }
.more { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); }

/* prodotto */
.fixed .thw { position: absolute; z-index: 3; left: 28px; right: 148px; bottom: 26px; }
.fixed .thumbs { display: flex; gap: 8px; }
.fixed .thumbs button { width: 58px; height: 72px; border-radius: var(--r-sm); overflow: hidden; opacity: .6; box-shadow: 0 0 0 1px rgb(255 255 255 / .4); }
.fixed .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.fixed .thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px #FFFFFF; }
.fixed img.zoom, .fixed .thumbs button.zoom img { transform: scale(1.8); transform-origin: 50% 40%; }
.fixed .arr { position: absolute; z-index: 3; right: 28px; bottom: 26px; display: flex; gap: 8px; }
.fixed .arr button { width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / .9); color: #16132A; display: grid; place-items: center; }
.buy h1 { font-size: clamp(44px, 4.2vw, 72px); }
.buy .pr { font-size: 22px; font-variant-numeric: tabular-nums; }
.buy .pr s { font-size: 16px; color: var(--muted); margin-left: 10px; }
.buy .omni { margin: -16px 0 0; font-size: 12.5px; color: var(--muted); }
.sizes button { border-radius: var(--r-sm); }
.buyrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.buyrow .step { height: 54px; border-radius: var(--pill); background: var(--soft); }
.buyrow .step button { width: 42px; }
.buyrow .btn { height: 54px; width: 100%; min-width: 0; justify-content: space-between; padding: 0 22px; }
.lines2 { display: grid; border-top: 1px solid var(--line); }
.lines2 div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.lines2 small { display: block; color: var(--muted); font-size: 12.5px; }
.lines2 svg.i { color: var(--primary); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:first-child { border-top: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding-block: 16px; font-family: var(--f-d); font-size: 24px; }
.acc summary::-webkit-details-marker { display: none; }
.acc details[open] summary svg.i { transform: rotate(45deg); }
.acc .body { padding-bottom: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.acc .specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; }
.acc .specs dd { margin: 0; text-align: right; color: var(--ink); }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kit .it2 { display: grid; gap: 8px; text-align: left; font-size: 13px; }
.kit .it2 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.kit .it2 b { font-family: var(--f-d); font-weight: 400; font-size: 18px; line-height: 1.1; }
.kitsum { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.kitsum b { font-family: var(--f-d); font-weight: 400; font-size: 40px; line-height: 1; }
.kitsum s { color: var(--muted); margin-left: 10px; }
.drawer header h3 { font-family: var(--f-d); font-weight: 400; font-size: 32px; }

@media (max-width: 960px) {
  body { padding-bottom: 88px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .fixed { display: none; }
  .bar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .bar nav { display: none; }
  .pan .brands-row { grid-template-columns: 1fr 1fr; }
  .bar .logo { display: block; font-size: 26px; }
  .bar .r .tx { display: none; }
  .bar .r .mcat, .bar .r .mac { display: inline-grid; }
  .pan { padding: 40px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
  .pan .mph { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; margin: -16px 0 4px; }
  .pan .mph img { width: 100%; height: 100%; object-fit: cover; }
  .pan .mph img.zoom { transform: scale(1.8); transform-origin: 50% 40%; }
  .pan .mph .thw { position: absolute; left: 12px; right: 12px; bottom: 12px; }
  .pan .mph .mth { display: flex; gap: 6px; }
  .pan .mph .mth button { width: 44px; height: 54px; border-radius: var(--r-sm); overflow: hidden; opacity: .6; box-shadow: 0 0 0 1px rgb(255 255 255 / .5); }
  .pan .mph .mth button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px #FFFFFF; }
  .pan .mph .mth button img { width: 100%; height: 100%; object-fit: cover; }
  .pan .mph .mth button.zoom img { transform: scale(1.8); }
  .foot { padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
  .tools { top: calc(env(safe-area-inset-top, 0px) + 64px); }
}
@media (max-width: 560px) {
  .grid { gap: 22px 10px; }
  .pc .nm { font-size: 18px; }
  .pc .ln { flex-direction: column; gap: 2px; }
  .pc .sb span:last-child { display: none; }
  .pc .add { opacity: 1; transform: none; width: 38px; height: 38px; }
  .pan .meta { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .pan .meta b { font-size: 24px; }
  .usp { grid-template-columns: minmax(0, 1fr); }
  .usp div:nth-child(odd) { border-right: 0; }
  .usp div:nth-child(even) { padding-left: 0; }
  .fpanel { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .buyrow .btn .p2 { display: none; }
  .buyrow .btn { justify-content: center; }
  .kit .it2 b { font-size: 15px; }
  .cl .r img { display: none; }
  .tools select { display: none; }
}

/* colonna destra stretta sotto i 1200 px: la lingua e la valuta restano nel menu del catalogo e nel piè di pagina */
@media (max-width: 1200px) {
  div.lsw { display: none; }
}
/* colonna destra stretta: restano Catalogo e Home, le categorie si aprono dal Catalogo */
@media (max-width: 1640px) {
  .bar nav button:not(.catx):not(:nth-child(2)), .bar nav a:not(.catx):not(:nth-child(2)) { display: none; }
}
/* layout fluido: sugli schermi molto larghi si ferma a 1920 px, centrato (anche il riepilogo fisso della scheda prodotto) */
body { max-width: 1920px; margin-inline: auto; }
body .sbuy { max-width: 1920px; margin-inline: auto; }
