﻿/* ==========================================================
   Luma — stile ispirato ad Apple
   ========================================================== */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --black: #000;
  --dark-card: #161617;
  --ph-a: #eeeef1;
  --ph-b: #e3e3e8;
  --radius: 28px;
  --radius-sm: 18px;
  --nav-h: 48px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: 14px; font-weight: 600; color: #0066cc; letter-spacing: -0.01em; margin-bottom: 6px; }
.eyebrow-light { color: #2997ff; }
.muted { color: var(--ink-3); }
.muted-dark { color: #6e6e73; }

/* ---------- Placeholder immagini ----------
   Per inserire una foto: metti un <img src="..." alt="..."> dentro il div .ph
   (o, per i prodotti, compila il campo img in shop.js). */
.ph {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, #fff 0%, transparent 55%),
    linear-gradient(145deg, var(--ph-a), var(--ph-b));
}
.ph::after {
  content: attr(data-ph);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 12px 6px 30px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  color: #8a8a90;
  background: rgba(255,255,255,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='1.7'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m4 17 5-4.5 4 3.5 3-2.5 4 3.5'/%3E%3C/svg%3E") no-repeat 10px 50% / 14px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  pointer-events: none;
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(> img)::after { display: none; }
.dark .ph, .tile-dark .ph, .collection .ph {
  --ph-a: #1c1c1e; --ph-b: #2a2a2d;
  background: radial-gradient(120% 90% at 30% 20%, #3a3a3e 0%, transparent 55%), linear-gradient(145deg, var(--ph-a), var(--ph-b));
}
.dark .ph::after, .collection .ph::after { color: #a1a1a6; background-color: rgba(0,0,0,.35); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 980px;
  font-size: 17px; font-weight: 400; letter-spacing: -0.02em;
  text-decoration: none !important;
  transition: background-color .2s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 19px; }
.btn-block { width: 100%; }
.link-arrow { font-size: 17px; }
.link-arrow::after { content: " ›"; }

.link-light { color: #2997ff; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--nav-h);
  color: rgba(0,0,0,.8);
  background: rgba(251,251,253,.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(0,0,0,.08); }
/* sopra il hero scuro la barra diventa scura, come sulle pagine prodotto Apple */
.site-header.on-dark { background: rgba(22,22,23,.8); color: rgba(232,232,237,.9); border-bottom-color: transparent; }
.nav {
  width: min(1024px, 100% - 32px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; color: inherit; text-decoration: none !important; }
.logo-svg { display: block; width: 72px; height: 21px; overflow: visible; }
.logo:hover { color: currentColor; opacity: .82; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav-links a { color: inherit; opacity: .88; font-size: 12px; letter-spacing: -0.01em; text-decoration: none; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent;
  color: inherit;
}
.icon-btn:hover { opacity: .7; }
.bag-count {
  position: absolute; right: 3px; bottom: 4px;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 9.5px; font-weight: 600; line-height: 15px; text-align: center;
}
.on-dark .bag-count { background: #f5f5f7; color: var(--ink); }
.menu-btn { display: none; }
.menu-btn span { position: absolute; left: 11px; width: 15px; height: 1.4px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn span:first-child { transform: translateY(-3px); }
.menu-btn span:last-child { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.ribbon { background: #1d1d1f; text-align: center; padding: 12px 16px; font-size: 14px; color: #d2d2d7; }
.ribbon a { color: #2997ff; }

/* ---------- Hero: scena di lancio ---------- */
.hero { background: #000; color: #f5f5f7; }
.hero-scene {
  position: relative; overflow: hidden; overflow: clip; /* clip: il focus sui pallini non deve far scorrere la scena */
  height: max(660px, min(100vh, 1000px));
  display: grid; place-items: center;
}
.hero-kicker {
  position: absolute; top: clamp(28px, 5vh, 56px); left: 0; right: 0; z-index: 3;
  text-align: center; font-size: 17px; font-weight: 600; color: #86868b; letter-spacing: -0.01em;
}
.hero-word {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 0;
  margin-top: -0.6em;
  text-align: center; white-space: nowrap;
  font-size: clamp(76px, 17.5vw, 270px); line-height: 1.1; font-weight: 700; letter-spacing: -0.055em;
  background: linear-gradient(180deg, #fff 30%, #6e6e73 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-device {
  position: relative; z-index: 2;
  height: min(58vh, 560px); aspect-ratio: 9 / 19;
}
.hero-glow {
  position: absolute; left: -70%; right: -70%; top: 5%; bottom: 5%; z-index: -1;
  color: #a8405a;
  background: radial-gradient(closest-side, currentColor, transparent);
  opacity: .55; filter: blur(30px);
}
.hero-orbit {
  position: absolute; z-index: -1;
  left: 50%; top: 50%; width: 260%; margin-left: -130%; margin-top: -130%; aspect-ratio: 1;
  overflow: visible; pointer-events: none;
}
.hero-orbit circle { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-a { stroke: rgba(255,255,255,.16); }
.orbit-b { stroke: rgba(255,255,255,.22); stroke-dasharray: 2 7; }
.ph-device {
  position: absolute; inset: 0;
  border-radius: 18% / 8.5%;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.6);
}
.hero .ph {
  --ph-a: #1c1c1e; --ph-b: #2c2c2f;
  background: radial-gradient(120% 70% at 30% 15%, #3c3c40 0%, transparent 55%), linear-gradient(160deg, var(--ph-a), var(--ph-b));
}
.hero .ph::after { color: #a1a1a6; background-color: rgba(0,0,0,.4); }
.ph-device > img { object-fit: contain; }

.hero-callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.co { position: absolute; display: flex; flex-direction: column; gap: 2px; width: 190px; }
.co strong { font-size: clamp(30px, 3vw, 42px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.co span { font-size: 14px; color: #a1a1a6; }
.co::before { content: ""; display: block; width: 28px; height: 1px; background: rgba(255,255,255,.35); margin-bottom: 12px; }
.co-l1, .co-l2 { right: calc(50% + min(29vh, 280px) * 9 / 19 + clamp(40px, 6vw, 110px)); text-align: right; align-items: flex-end; }
.co-r1, .co-r2 { left: calc(50% + min(29vh, 280px) * 9 / 19 + clamp(40px, 6vw, 110px)); }
.co-l1 { top: 30%; } .co-l2 { top: 58%; }
.co-r1 { top: 36%; } .co-r2 { top: 64%; }

.hero-foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(24px, 4.5vh, 48px);
  width: min(var(--wrap), 100% - 44px); margin-inline: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.finish { display: flex; align-items: center; gap: 14px; }
.finish-dots { display: flex; gap: 10px; }
.fdot {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 0 2px #000, 0 0 0 3px transparent;
  transition: box-shadow .3s var(--ease);
}
.fdot.is-on { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 0 2px #000, 0 0 0 3.5px #f5f5f7; }
.finish-name { font-size: 14px; color: #a1a1a6; min-width: 80px; }
.hero-buy { display: flex; align-items: center; gap: 26px; }
.hero-price { font-size: 17px; color: #d2d2d7; }
.hero-ctas { display: flex; align-items: center; gap: 22px; }

/* Intro: frase che compare a fuoco */
.intro { padding: clamp(90px, 13vw, 160px) 0; }
.intro-text {
  max-width: 900px; margin-inline: auto; text-align: center;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.12; font-weight: 600; letter-spacing: -0.035em;
}
.intro-text span { display: inline-block; }
.intro-text .g { color: var(--ink-3); }
/* dopo SplitText il gradiente passa alle singole lettere (Chrome sbaglia il clip sul genitore con figli trasformati) */
.hero-word.is-split { background: none; color: #fff; }
.hero-word.is-split > div {
  background: linear-gradient(180deg, #fff 30%, #6e6e73 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 834px) {
  .hero-scene { height: max(620px, min(calc(100vh - 92px), 1000px)); }
}
/* senza animazioni i dati sono già visibili: il titolo resta in secondo piano come a fine sequenza */
html:not(.gsap-on) .hero-word { opacity: .16; transform: scale(.8); }
/* ---------- Sezioni ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-title {
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em;
  max-width: 820px;
}
.section-title.center { text-align: center; margin-inline: auto; }
.section-title.light { color: #f5f5f7; }

/* Categorie */
.categories { padding-bottom: 40px; }
.chiclets {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.chiclets a { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ink); font-size: 14px; font-weight: 500; text-align: center; text-decoration: none; }
.ph-round { width: 100%; max-width: 128px; aspect-ratio: 1; border-radius: 50%; transition: transform .4s var(--ease); }
.ph-round::after { padding: 0; width: 28px; height: 28px; background-position: center; font-size: 0; }
.chiclets a:hover .ph-round { transform: scale(1.05); }

/* Novità carosello */
.novita { background: var(--bg-alt); overflow: hidden; overflow: clip; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.carousel-ctrl { display: flex; gap: 10px; flex-shrink: 0; }
.round-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(210,210,215,.64); color: rgba(0,0,0,.56); font-size: 22px; line-height: 1;
  transition: background .2s;
}
.round-btn:hover { background: rgba(223,223,227,.9); color: #000; }
.carousel {
  margin-top: 40px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(22px, (100% - var(--wrap)) / 2) 40px;
  scroll-padding-inline: max(22px, (100% - var(--wrap)) / 2);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 clamp(280px, 30vw, 400px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 500px; padding: 30px 30px 0;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 2px 4px 12px rgba(0,0,0,.08);
  overflow: hidden;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.promo-card:hover { box-shadow: 2px 4px 16px rgba(0,0,0,.16); transform: scale(1.01); }
.promo-card h3 { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -0.03em; }
.promo-sub { margin-top: 8px; color: var(--ink-2); }
.promo-price { margin-top: 10px; font-size: 14px; color: var(--ink); }
.promo-card.dark { background: var(--black); color: #f5f5f7; }
.promo-card.dark .promo-sub { color: #a1a1a6; }
.promo-card.dark .promo-price { color: #f5f5f7; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px;
  background: rgba(0,0,0,.24);
  transition: width .45s cubic-bezier(.32,.72,0,1), background-color .3s;
}
.carousel-dots button.is-on { width: 28px; background: rgba(0,0,0,.8); }
.product .ph > img { transition: transform .8s var(--ease); }
.product:hover .ph > img { transform: scale(1.04); }
.ph-card { flex: 1; margin: 26px -30px 0; min-height: 260px; background-color: transparent; }

/* Materiali (testo che si illumina) */
.materials { background: var(--black); color: #f5f5f7; padding: clamp(110px, 16vw, 200px) 0; }
.materials-inner { max-width: 980px; }
.gsap-on .materials { min-height: 100vh; display: flex; align-items: center; padding: 90px 0 60px; }
.reveal-text {
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.12; font-weight: 600; letter-spacing: -0.035em;
}
.reveal-text .word { color: #f5f5f7; }

/* Collezione: carosello come le novità (frecce, pallini, scorrimento col dito) */
.collection { background: var(--black); padding: 0 0 clamp(80px, 10vw, 130px); overflow: hidden; overflow: clip; }
.collection .carousel { margin-top: 36px; padding-bottom: 30px; gap: 22px; }
.panel { width: clamp(270px, 31vw, 420px); flex-shrink: 0; scroll-snap-align: start; color: #f5f5f7; }
.ph-panel { aspect-ratio: 4 / 5; border-radius: var(--radius); }
/* frecce e pallini su fondo scuro */
.collection .round-btn { background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.collection .round-btn:hover { background: rgba(255,255,255,.24); color: #fff; }
.collection .carousel-dots button { background: rgba(255,255,255,.28); }
.collection .carousel-dots button.is-on { background: rgba(255,255,255,.9); }
.panel-copy { padding: 22px 6px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
.panel-n { grid-row: span 2; font-size: 14px; color: #6e6e73; font-variant-numeric: tabular-nums; padding-top: 7px; }
.panel h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.panel p { color: #a1a1a6; }

/* Bento */
.details { background: var(--bg-alt); }
.bento {
  margin-top: 56px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(260px, auto);
}
.tile {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--radius);
  padding: 34px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tile-xl { grid-column: span 2; grid-row: span 2; justify-content: space-between; padding: 0; }
.tile-xl .tile-copy { padding: 40px 40px 0; }
.ph-tile { flex: 1; margin-top: 30px; min-height: 280px; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 24px; padding: 0 0 0 34px; }
.tile-wide .tile-copy { flex: 1; padding: 34px 0; }
.ph-tile-sm { flex: 1; align-self: stretch; min-height: 220px; }
.stat { font-size: clamp(44px, 5vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.stat.small { font-size: clamp(28px, 3vw, 40px); }
.tile-sub { margin-top: 10px; color: var(--ink-2); max-width: 380px; }
.tile-dark { background: var(--dark-card); color: #f5f5f7; }
.tile-dark .tile-sub { color: #a1a1a6; }
.tile-dark .eyebrow { color: #2997ff; }
.tile-blue { background: linear-gradient(160deg, #2997ff, #0058c4); color: #fff; }
.tile-blue .eyebrow, .tile-blue .tile-sub { color: rgba(255,255,255,.82); }

/* Negozio: barra con ricerca, categorie, modello, ordinamento */
.shop-bar { margin-top: 36px; display: grid; gap: 16px; }
.search {
  position: relative; display: flex; align-items: center;
  max-width: 520px; height: 46px; padding: 0 12px 0 42px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.search svg { position: absolute; left: 14px; color: var(--ink-3); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: -0.01em;
}
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: #e8e8ed; color: var(--ink-2); font-size: 11px; line-height: 1;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 980px; padding: 8px 14px 8px 16px; font-size: 14px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 1ch; }
.chip:hover { border-color: var(--ink-3); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active .n { color: rgba(255,255,255,.6); }
.shop-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: 14px; color: var(--ink-2); }
.opt { display: flex; align-items: center; gap: 8px; }
.shop-opts select, .sheet-field select {
  appearance: none; -webkit-appearance: none;
  font: inherit; color: var(--link);
  border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%230066cc' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 2px center / 10px;
  padding: 6px 18px 6px 0; cursor: pointer;
}
.result-count { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.grid {
  margin-top: 28px;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
  transition: box-shadow .35s var(--ease);
}
.product:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.09); }
.product-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.product .ph { aspect-ratio: 1; }
/* anteprima del colore scelto finché non c'è la foto */
.product .ph::before, .sheet-ph::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 34%; aspect-ratio: 9 / 18; transform: translate(-50%, -54%);
  border-radius: 22% / 11%; background: var(--tint, transparent);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 18px 30px rgba(0,0,0,.12);
  transition: background-color .35s var(--ease);
}
.ph:has(> img)::before { display: none; }
.product .ph::after, .sheet-ph::after { top: auto; bottom: 12px; transform: translateX(-50%); }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 600; color: #0066cc; margin-bottom: 4px; min-height: 18px; }
.product h3 { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.product h3 .product-open:hover { color: var(--link); }
.fit { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.swatch {
  position: relative;
  width: 16px; height: 16px; border-radius: 50%; border: 0; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  outline-offset: 2px;
}
.swatch::after { content: ""; position: absolute; inset: -8px; } /* area di tocco più grande */
.swatch.is-on { outline: 1.5px solid var(--ink); }
.swatches.big { gap: 14px; margin-top: 10px; }
.swatches.big .swatch { width: 30px; height: 30px; outline-offset: 3px; }
.swatches.big .swatch.is-on { outline-width: 2px; }
.product-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 17px; }
.price s { color: var(--ink-3); font-size: 14px; margin-left: 6px; }
.add-btn {
  min-height: 34px; border: 0; border-radius: 980px; padding: 7px 15px;
  background: var(--blue); color: #fff; font-size: 14px; white-space: nowrap;
  transition: background .2s;
}
.add-btn:hover { background: var(--blue-hover); }
.add-btn.is-done { background: #1d1d1f; }
.empty-state { margin-top: 28px; padding: 56px 22px; text-align: center; background: #fff; border-radius: var(--radius-sm); display: grid; justify-items: center; gap: 10px; }
.empty-state[hidden] { display: none; }
.empty-title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.empty-sub { color: var(--ink-2); margin-bottom: 8px; }

/* Scheda prodotto: finestra al centro su desktop, foglio dal basso su telefono */
.sheet {
  width: min(880px, 100% - 32px); max-height: min(88vh, 720px);
  padding: 0; border: 0; border-radius: 26px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(0,0,0,.4); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .45s cubic-bezier(.32,.72,0,1); }
.sheet[open]::backdrop { animation: fade-in .3s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-height: inherit; overflow-y: auto; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.8); color: var(--ink); font-size: 13px; }
.sheet-ph { min-height: 100%; aspect-ratio: 1; }
.sheet-ph::before { width: 30%; }
.sheet-body { padding: 40px 34px 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sheet-body .badge { margin: 0; min-height: 0; }
.sheet-name { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.sheet-price { font-size: 19px; }
.sheet-price s { color: var(--ink-3); font-size: 15px; }
.sheet-points { margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.sheet-points li { position: relative; padding-left: 16px; }
.sheet-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.sheet-field { padding-top: 14px; border-top: 1px solid #e8e8ed; }
.sheet-field[hidden] { display: none; }
.field-label { font-size: 14px; color: var(--ink-2); margin-right: 8px; }
.field-label strong { color: var(--ink); font-weight: 600; }
.sheet-buy { margin-top: 6px; display: flex; gap: 12px; align-items: center; }
.qty.big { margin: 0; gap: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 980px; font-size: 16px; font-variant-numeric: tabular-nums; }
.qty.big button { width: 32px; height: 32px; font-size: 18px; border: 0; background: #f0f0f3; }
.sheet-add { flex: 1; }
.sheet-note { font-size: 12px; color: var(--ink-3); }

/* Promesse */
.promises { padding: 70px 0; border-top: 1px solid #e8e8ed; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.promise svg { width: 34px; height: 34px; color: var(--ink); margin-bottom: 14px; }
.promise h3 { font-size: 17px; font-weight: 600; }
.promise p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }


/* CTA finale */
.final-cta { padding: clamp(120px, 16vw, 200px) 0; text-align: center; }
.cta-title { font-size: clamp(44px, 8vw, 96px); line-height: 1.03; font-weight: 700; letter-spacing: -0.045em; margin-bottom: 40px; }
.grad {
  background: linear-gradient(90deg, #2997ff, #a855f7 25%, #ff6b6b 50%, #a855f7 75%, #2997ff) 0% 50% / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Footer */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.33; padding: 20px 0 30px; }
.foot-note { padding: 18px 0; border-bottom: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 24px; padding: 30px 0; }
.footer h4 { color: var(--ink); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.newsletter p { margin-bottom: 12px; }
.nl-form { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; max-width: 320px; }
.nl-form input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; font-size: 14px; background: transparent; }
.nl-form input:focus { outline: none; }
.nl-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.2); }
.nl-form button { border: 0; background: transparent; padding: 0 14px; font-size: 18px; color: var(--ink-2); align-self: stretch; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-bottom ul { display: flex; flex-wrap: wrap; gap: 0; }
.foot-bottom li + li { margin-top: 0; border-left: 1px solid var(--line); }
.foot-bottom li a { padding: 0 10px; }
.foot-bottom li:first-child a { padding-left: 0; }

/* Borsa */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.32); backdrop-filter: blur(4px); }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 90;
  width: min(420px, 100%); height: 100%;
  background: rgba(251,251,253,.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .5s cubic-bezier(.32,.72,0,1), visibility 0s .5s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.32,.72,0,1); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 12px; }
.drawer-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 22px; }
.empty { color: var(--ink-2); padding: 30px 0; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #e8e8ed; }
.line-item .ph { width: 64px; height: 64px; border-radius: 12px; }
.line-item .ph::after { display: none; }
.li-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.li-meta { color: var(--ink-3); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; }
.qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; line-height: 1; }
.li-price { font-size: 15px; text-align: right; }
.li-remove { display: block; margin-top: 4px; border: 0; background: none; color: var(--link); font-size: 13px; padding: 0; }
.drawer-foot { padding: 18px 22px 26px; border-top: 1px solid #e8e8ed; }
.free-ship { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.bar { height: 4px; border-radius: 4px; background: #e8e8ed; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .5s var(--ease); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 19px; margin-bottom: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 100;
  transform: translate(-50%, 160px);
  visibility: hidden;
  background: rgba(29,29,31,.92); color: #fff; backdrop-filter: blur(10px);
  padding: 12px 20px; border-radius: 980px; font-size: 14px;
  transition: transform .45s cubic-bezier(.32,.72,0,1), visibility 0s .45s;
  pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .45s cubic-bezier(.32,.72,0,1); }

.fly-dot { position: fixed; z-index: 120; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--blue); pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .chiclets { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-xl { grid-column: span 2; grid-row: auto; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 833px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 18px 32px 40px;
    background: rgba(251,251,253,.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .3s var(--ease); }
  .nav-links a { display: block; font-size: 24px; font-weight: 600; padding: 9px 0; color: var(--ink); opacity: 1; }
  .nav { justify-content: space-between; }

  /* hero su telefono: stessa scena del desktop, in scala, alta quanto lo schermo */
  .ribbon .r-long { display: none; }
  .hero-scene {
    --dev-h: min(44vh, 400px);
    height: max(460px, calc(100vh - 92px));
    padding-bottom: 96px; /* spazio per la barra in basso: il telefono si centra sopra */
  }
  @supports (height: 100svh) {
    .hero-scene { --dev-h: min(44svh, 400px); height: max(460px, calc(100svh - 92px)); }
  }
  .hero-kicker { top: 18px; font-size: 14px; }
  /* "Pro." sta sopra il telefono, sotto la riga in alto: dietro la foto non si leggeva */
  .hero-word { top: 44px; margin-top: 0; font-size: clamp(52px, 16vw, 76px); }
  .hero-device { height: var(--dev-h); }
  .hero-glow { left: -55%; right: -55%; }
  .co { width: 84px; gap: 3px; }
  .co strong { font-size: 22px; }
  .co span { font-size: 11.5px; line-height: 1.25; }
  .co::before { width: 18px; margin-bottom: 8px; }
  .co-l1, .co-l2 { right: calc(50% + var(--dev-h) * 9 / 38 + 8px); }
  .co-r1, .co-r2 { left: calc(50% + var(--dev-h) * 9 / 38 + 8px); }
  .co-l1 { top: 26%; } .co-l2 { top: 50%; }
  .co-r1 { top: 31%; } .co-r2 { top: 55%; }
  .hero-foot { bottom: 18px; width: calc(100% - 32px); flex-direction: column; align-items: stretch; gap: 14px; }
  .finish { justify-content: center; gap: 12px; }
  .finish-name { min-width: 0; }
  .hero-buy { justify-content: center; gap: 16px; }
  .hero-price { font-size: 15px; }
  .hero-ctas { gap: 16px; }
  .hero-ctas .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
  .hero-ctas .link-arrow { font-size: 15px; }
}
@media (max-width: 359px) {
  .hero-price { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .chiclets { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .chiclets a { font-size: 12px; }
  .row-head { align-items: flex-start; flex-direction: column; }
  .carousel-ctrl { display: none; }
  .promo-card { flex-basis: 82vw; min-height: 440px; padding: 26px 24px 0; }
  .ph-card { margin-inline: -24px; }
  .bento { grid-template-columns: 1fr; }
  .tile-xl, .tile-wide { grid-column: auto; }
  .tile-wide { flex-direction: column; align-items: stretch; padding: 0; }
  .tile-wide .tile-copy { padding: 30px 30px 0; }
  .tile-xl .tile-copy { padding: 30px 30px 0; }
  .tile { padding: 30px; }
  .tile-xl, .tile-wide { padding: 0; }
  .ph-tile { min-height: 220px; }
  .promise-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: span 2; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 14px; }
  .product h3 { font-size: 15px; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; }
  .add-btn { width: 100%; min-height: 38px; }
  .fit { font-size: 12px; }
  .product .ph::after { display: none; } /* su telefono basta la sagoma colorata */
  .panel { width: 78vw; }

  /* negozio: categorie in una riga che scorre col dito, ricerca a tutta larghezza */
  .search { max-width: none; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -22px; padding: 2px 22px; scroll-padding-inline: 22px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .shop-opts { gap: 4px 18px; }
  .result-count { width: 100%; margin-left: 0; }

  /* scheda prodotto: foglio che sale dal basso */
  .sheet {
    width: 100%; max-width: 100%; max-height: 92vh; max-height: 92svh;
    margin: auto 0 0; border-radius: 22px 22px 0 0;
  }
  .sheet[open] { animation: sheet-up .45s cubic-bezier(.32,.72,0,1); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .sheet-inner { grid-template-columns: 1fr; }
  .sheet-ph { aspect-ratio: 4 / 3; min-height: 0; }
  .sheet-ph::before { width: 22%; }
  .sheet-body { padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .sheet-name { font-size: 24px; }
}

@media (max-width: 767px) {
  .collection .carousel { margin-top: 28px; }
  .panel h3 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Pro Look: telefono disegnato (hero e prima/dopo) ----------
   Il colore della scocca viene da --finish; nel hero lo cambiano i pallini delle finiture. */
.ph-device.is-drawn { --finish: #d8692e; background: none; box-shadow: none; overflow: visible; }
.ph-device.is-drawn::after { display: none; }
.ph-device > svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
.ph-device:has(> img) > svg { display: none; }
.phone-svg { overflow: visible; }
.phone-svg .ph-body { fill: var(--finish, #d8692e); transition: fill .6s var(--ease); }
.phone-svg .ph-sheen { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.phone-svg .ph-plateau { fill: var(--finish, #d8692e); transition: fill .6s var(--ease); }
.phone-svg .ph-plateau-hl { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.phone-svg .ph-square { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.phone-svg .ph-lens circle { fill: #18181a; stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.phone-svg .ph-lens .in { fill: #050507; stroke: #2c2c31; stroke-width: 2; }
.phone-svg .ph-lens .gl { fill: rgba(150,175,255,.55); stroke: none; }
.phone-svg .ph-flash { fill: #efe9d8; }
.phone-svg .ph-lidar { fill: #0d0d0f; stroke: rgba(255,255,255,.2); stroke-width: 1; }
.phone-svg .ph-mark { fill: none; stroke: rgba(0,0,0,.14); stroke-width: 3; }

/* ---------- Prima e dopo ---------- */
.cmp {
  --h: min(62vh, 540px); --w: calc(var(--h) * 357 / 658); /* proporzioni della foto della cover */
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 22px;
  max-width: 640px; margin: clamp(40px, 6vw, 64px) auto 0;
}
.cmp-stage, .cmp-range { grid-row: 1; grid-column: 1 / -1; justify-self: center; width: var(--w); height: var(--h); }
.cmp-stage { position: relative; }
.cmp-layer { position: absolute; inset: 0; }
/* le due foto hanno la stessa altezza e sono centrate: il cursore le confronta nello stesso punto */
.cmp-layer img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
/* allineamento sulle fotocamere: gli obiettivi dell'iPhone cadono sotto quelli della cover,
   come quando la monti (misurato sui centri degli obiettivi delle due foto) */
.cmp-before img { transform: translate(-0.3%, -1.5%) scale(.99); }
/* disegno provvisorio dell'iPhone, finché non c'è la foto vera (stesse proporzioni della foto della cover) */
.cmp-layer .cmp-phone { display: block; width: 100%; height: 100%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
/* ognuna si vede solo dalla sua parte del cursore: l'iPhone non spunta da sotto la cover */
.cmp-before { clip-path: inset(-40px calc(100% - var(--pos)) -40px -40px); }
.cmp-after { clip-path: inset(-40px -40px -40px var(--pos)); }
.cmp-line {
  position: absolute; top: -14px; bottom: -14px; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--ink); pointer-events: none;
}
.cmp-knob {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 2px; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.18);
}
.cmp-range {
  position: relative; z-index: 2; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: none; opacity: 0; cursor: ew-resize;
}
.cmp:has(.cmp-range:focus-visible) .cmp-knob { box-shadow: 0 0 0 3px var(--blue), 0 6px 18px rgba(0,0,0,.18); }
.cmp-tag { grid-row: 2; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.cmp-tag-l { grid-column: 1; text-align: right; color: var(--ink-3); }
.cmp-tag-r { grid-column: 2; color: #0066cc; }
.cmp-note { max-width: 560px; margin: 26px auto 0; text-align: center; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 640px) {
  .cmp { --h: min(56vh, 460px); }
  .cmp-tag { font-size: 14px; }
}

/* scheda prodotto Pro Look: modulo a tutta larghezza sulla sagoma finché non c'è la foto */
.product[data-cat="prolook"] .ph::before, .sheet-ph[data-cat="prolook"]::before {
  background:
    radial-gradient(circle at 21% 8.5%, #111 0 5px, transparent 5.5px),
    radial-gradient(circle at 21% 19%, #111 0 5px, transparent 5.5px),
    radial-gradient(circle at 42% 13.8%, #111 0 5px, transparent 5.5px),
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)) 50% 3.5% / 88% 22% no-repeat,
    var(--tint, transparent);
}

/* foto scontornate (Pro Look): intere, senza ritaglio */
.ph-device.is-photo { background: none; box-shadow: none; overflow: visible; }
.ph-device.is-photo::after { display: none; }
.ph-device.is-photo > img { filter: drop-shadow(0 40px 50px rgba(0,0,0,.6)); }
.ph > img.cutout, .ph-cutout > img { object-fit: contain; padding: 7%; }
.ph-card.ph-cutout > img { padding: 6% 18% 0; object-position: 50% 100%; }
.ph-round.ph-cutout > img { padding: 14%; }
.ph-cutout::after { display: none; }
.line-item .ph > img.cutout { padding: 4%; }

/* ---------- Assistente in basso a sinistra ---------- */
.chat {
  --lift: 0px;
  position: fixed; z-index: 70;
  left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  transform: translateY(calc(var(--lift) * -1)); transition: transform .35s var(--ease);
}
.chat.is-open { transform: none; }
.chat-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font: 500 15px/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.28);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.chat-btn:hover { background: #000; transform: translateY(-1px); }
.chat-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.chat-btn .i-close { display: none; }
.chat.is-open .chat-btn { padding: 0; width: 52px; justify-content: center; }
.chat.is-open .chat-btn .i-open, .chat.is-open .chat-btn-label { display: none; }
.chat.is-open .chat-btn .i-close { display: block; }
.chat-panel {
  display: flex; flex-direction: column;
  width: min(370px, calc(100vw - 40px)); height: min(560px, calc(100vh - 120px));
  background: var(--bg); color: var(--ink); border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.22);
  transform-origin: bottom left; animation: chat-in .32s cubic-bezier(.32,.72,0,1);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; background: var(--ink); color: #f5f5f7; }
.chat-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #f5f5f7; color: var(--ink); }
.chat-head-txt { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.chat-head p { font-size: 12.5px; color: #a1a1a6; margin-top: 2px; }
.chat-close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #f5f5f7; font-size: 13px; cursor: pointer; }
.chat-close:hover { background: rgba(255,255,255,.2); }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-alt); }
.chat-msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; white-space: pre-line; }
.chat-msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.chat-msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg.is-typing { color: var(--ink-3); letter-spacing: 2px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.chat-chip {
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--link);
  padding: 6px 12px; font: 14px/1.2 var(--font); cursor: pointer; text-align: left;
}
.chat-chip:hover { border-color: var(--link); }
.chat-chip.is-wa { color: #0a7a3d; border-color: #b6dfc6; }
.chat-chip:disabled { color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(0,0,0,.06); background: var(--bg); }
.chat-form input {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  font: 15px var(--font); color: var(--ink); background: #fff;
}
.chat-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.18); }
.chat-form button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 12px 12px; min-height: 42px; border-radius: 999px;
  background: #1f9d55; color: #fff; font-size: 14.5px; font-weight: 500; text-decoration: none !important;
}
.chat-wa:hover { background: #188a49; }
.chat-wa[aria-disabled="true"] { background: var(--bg-alt); color: var(--ink-3); pointer-events: none; }
.chat-wa-note { margin: -6px 12px 12px; font-size: 12px; color: var(--ink-3); text-align: center; }
@media (max-width: 640px) {
  .chat { left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .chat-btn-label { display: none; }
  .chat-btn { width: 52px; padding: 0; justify-content: center; }
  .chat-panel { width: calc(100vw - 28px); height: min(560px, calc(100svh - 100px)); }
}
@media (prefers-reduced-motion: reduce) { .chat, .chat-panel { transition: none; animation: none; } }

/* ---------- Barra del drop, fissa sotto il menu ---------- */
.dropbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); z-index: 49;
  background: #1d1d1f; color: #d2d2d7; font-size: 13.5px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dropbar-in {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  white-space: nowrap;
}
.dropbar-tag {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #f5f5f7; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.dropbar-what { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dropbar-clock { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; }
.dropbar-clock[hidden], .dropbar-clock [hidden] { display: none; }
.dropbar-clock b { color: #fff; font-weight: 600; }
.dropbar-clock i { font-style: normal; color: #86868b; margin-left: 1px; }
.dropbar-open { color: #fff; font-weight: 600; }
.dropbar-cta { border: 0; padding: 0; background: none; font: inherit; color: #2997ff; cursor: pointer; text-decoration: none; }
.dropbar-cta:hover { text-decoration: underline; }
.dropbar-cta[hidden], .dropbar-open[hidden] { display: none; }
@media (max-width: 640px) {
  .dropbar-what { display: none; }
  .dropbar-in { gap: 10px; min-height: 38px; }
}

/* ---------- Dati da completare (segnaposto ben visibili) ---------- */
.todo { padding: 0 4px; border-radius: 4px; background: rgba(255,59,48,.1); color: #c4291c; outline: 1px dashed rgba(196,41,28,.5); }
.foot-notify { margin-top: 12px; min-height: 38px; font-size: 14px; }

/* ---------- Correzioni dall'analisi del sito ---------- */
/* Contrasti: il grigio chiaro (--ink-3) resta per i testi grandi, i testi piccoli usano --ink-2 (4,9:1). */
.fit, .cmp-tag-l, .sheet-note, .li-meta, .result-count, .price s, .sheet-price s, .chat-wa-note { color: var(--ink-2); }
/* Etichette: dal arancio al blu del sito (niente colori caldi isolati). */
.eyebrow, .badge { color: #0066cc; }
.eyebrow-light, .tile-dark .eyebrow, .dark .eyebrow { color: #2997ff; }
.tile-blue { background: linear-gradient(160deg, #0071e3, #0058c4); }
.tile-blue .eyebrow, .tile-blue .tile-sub { color: #fff; }

/* Modello obbligatorio */
.fit.is-missing { color: #0066cc; font-weight: 500; }
.shop-opts .opt { padding: 6px 10px; margin: -6px -10px; border-radius: 12px; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.shop-opts .opt.needs-model { background: rgba(0,113,227,.08); box-shadow: 0 0 0 2px var(--blue); animation: needs-model .5s var(--ease) 1; }
@keyframes needs-model { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sheet-add:disabled, #sheetAdd:disabled { background: var(--bg-alt); color: var(--ink-2); cursor: not-allowed; }
.checkout-note { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); text-align: center; }

/* Aree di tocco */
.fdot { position: relative; }
.fdot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.dropbar-cta { padding-block: 10px; margin-block: -10px; }
@media (max-width: 640px) {
  .footer .foot-cols a { display: inline-block; padding: 11px 0; }
  .footer li + li { margin-top: 0; }
  .foot-bottom li a { display: inline-block; padding: 12px 10px; }
  .co span { font-size: 13px; }
  /* il kit, da solo nella terza riga, prende tutta la larghezza */
  .grid .product:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Assistente: si fa da parte mentre si scorre */
.chat { transition: transform .35s var(--ease), opacity .25s var(--ease); }
.chat.is-scrolling:not(.is-open), .chat.is-hero:not(.is-open) { opacity: 0; pointer-events: none; }

/* ---------- Nuovo ordine: titolo colorato in alto, listino più grande, chiusura col drop ---------- */
.promessa { padding: clamp(84px, 11vw, 150px) 0 clamp(72px, 9vw, 120px); text-align: center; }
.promessa .cta-title { margin-bottom: 22px; text-wrap: balance; }
.cta-sub { max-width: 600px; margin: 0 auto 34px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.details-lead { max-width: 660px; margin: 18px auto 0; text-align: center; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; color: var(--ink-2); }
.tagline { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.sheet-tagline { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.shop-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.shop-trust li { display: inline-flex; align-items: center; gap: 8px; }
.shop-trust li::before { content: "✓"; color: var(--blue); font-weight: 600; }
.drop-close { padding: clamp(84px, 11vw, 140px) 0; text-align: center; }
.drop-close-title { margin-top: 6px; font-size: clamp(36px, 6vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.045em; text-wrap: balance; }
.drop-close-sub { max-width: 560px; margin: 16px auto 0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.4; color: var(--ink-2); }
.drop-close-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 26px; margin-top: 34px; }
.drop-close-ctas [hidden] { display: none; }
@media (max-width: 640px) {
  /* listino: una cover per riga, foto e pulsante più grandi */
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .product .ph { aspect-ratio: 4 / 3; }
  .product-body { padding: 18px 18px 20px; }
  .product h3 { font-size: 19px; }
  .fit { font-size: 13px; }
  .product-foot { flex-direction: row; align-items: center; padding-top: 16px; }
  .product .price { font-size: 19px; }
  .add-btn { width: auto; min-height: 44px; padding: 0 24px; }
  .shop-trust { flex-direction: column; align-items: flex-start; gap: 8px; margin-left: 4px; }
}


/* ---------- Listino a passi (buy.js) ----------
   Computer: foto grande a sinistra che resta ferma, passi a destra. Telefono: foto sopra, passi sotto. */
.buy { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(32px, 4vw, 52px); align-items: start; }
.buy-media { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 64px); }
.buy-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 15%, #fff 0%, transparent 60%), linear-gradient(160deg, #f0f0f3, #e2e2e7);
}
.buy-photo::after { display: none; }
.buy-photo > img.cutout { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7% 14%; animation: buy-in .45s var(--ease); }
@keyframes buy-in { from { opacity: 0; transform: scale(.985); } }
/* sagoma colorata con il modulo a tutta larghezza, finché la linea non ha foto */
.buy-photo[data-kind="cover"]:not(:has(> img))::before, .cat-photo[data-kind="cover"]:not(:has(> img))::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 9 / 18; transform: translate(-50%, -50%);
  border-radius: 22% / 11%;
  background:
    radial-gradient(circle at 21% 8.5%, #111 0 9%, transparent 9.5%),
    radial-gradient(circle at 21% 19%, #111 0 9%, transparent 9.5%),
    radial-gradient(circle at 42% 13.8%, #111 0 9%, transparent 9.5%),
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)) 50% 3.5% / 88% 22% no-repeat,
    var(--tint, #7a3646);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 30px 50px rgba(0,0,0,.18);
  transition: background-color .35s var(--ease);
}
.buy-caption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-2); }

.buy-steps { display: grid; gap: clamp(30px, 3.5vw, 44px); }
.buy-step-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: clamp(21px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.buy-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0; transform: translateY(-2px); }
.buy-chosen { font-size: 16px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }

.buy-lines { display: grid; gap: 12px; }
.buy-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 18px 20px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.buy-line:hover { border-color: #a1a1a6; }
.buy-line.is-on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.bl-text { display: grid; gap: 3px; min-width: 0; }
.bl-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.bl-tag { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.bl-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.bl-badge { font-size: 12px; font-weight: 600; color: #0066cc; }
.bl-price { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }

.buy-colors { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.buy-color { display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); cursor: pointer; }
.bc-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px #fff, 0 0 0 4px transparent; transition: box-shadow .2s var(--ease); }
.buy-color.is-on .bc-dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px #fff, 0 0 0 5px var(--blue); }
.buy-color.is-on .bc-name { color: var(--ink); font-weight: 500; }
.bc-name { font-size: 14px; }

.buy-gens, .buy-variants { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-variants { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.buy-variants[hidden] { display: none; }
.buy-chip {
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.buy-chip:hover { border-color: #a1a1a6; }
.buy-chip.is-on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: rgba(0,113,227,.05); font-weight: 500; }
.buy-help { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

.buy-summary { padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.06); }
.buy-summary-what { font-size: 15px; color: var(--ink-2); }
.buy-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.buy-price { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.buy-add { min-height: 50px; padding: 0 28px; font-size: 17px; }
.buy-add:disabled { background: var(--bg-alt); color: var(--ink-2); cursor: not-allowed; }
.buy-add.is-done { background: #1d1d1f; }
.buy-missing { margin-top: 10px; font-size: 13px; color: #0066cc; }
.buy-summary .shop-trust { justify-content: flex-start; gap: 6px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 860px) {
  .buy { grid-template-columns: 1fr; }
  .buy-media { position: static; }
  .buy-photo { aspect-ratio: 1; max-height: 440px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .buy-line { padding: 16px; }
  .bl-name, .bl-price { font-size: 18px; }
  .buy-chip { padding: 0 15px; }
  .buy-summary { padding: 20px; }
  .buy-summary-row { flex-direction: column; align-items: stretch; }
  .buy-price { font-size: 28px; }
  .buy-add { width: 100%; }
  .buy-summary .shop-trust { flex-direction: column; align-items: flex-start; }
}

/* ---------- Listino a schede ---------- */
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
.catalog[hidden], .catalog-soon[hidden] { display: none; }
.cat-card { border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.cat-card:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 18px 44px rgba(0,0,0,.1); transform: translateY(-2px); }
.cat-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cat-photo {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 15%, #fff 0%, transparent 60%), linear-gradient(160deg, #f0f0f3, #e2e2e7);
}
.cat-photo::after { display: none; }
.cat-photo > img.cutout { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7% 20%; transition: transform .8s var(--ease); }
.cat-card:hover .cat-photo > img { transform: scale(1.03); }
.cat-body { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px 28px; flex: 1; }
.cat-name { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
.cat-desc { font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; }
.cat-price { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cat-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 26px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 16px; }
.cat-card:hover .cat-cta { background: var(--blue-hover); }
.catalog-soon { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-2); }

/* disegno del vetro (fronte di un iPhone con lo schermo lucido), finché non c'è la foto */
.buy-photo[data-kind="vetro"]:not(:has(> img))::before, .cat-photo[data-kind="vetro"]:not(:has(> img))::before {
  content: ""; position: absolute; left: 50%; top: 50%; aspect-ratio: 9 / 19; transform: translate(-50%, -50%);
  border-radius: 18% / 8.5%; border: 6px solid #1d1d1f;
  background:
    radial-gradient(ellipse 15% 2% at 50% 4.2%, #1d1d1f 96%, transparent 100%),
    linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.75) 42%, rgba(255,255,255,0) 54%),
    linear-gradient(160deg, #e9eef5, #c9d3e0);
  box-shadow: 0 24px 44px rgba(0,0,0,.16);
}
.cat-photo[data-kind="vetro"]:not(:has(> img))::before { height: 82%; }
.buy-photo[data-kind="vetro"]:not(:has(> img))::before { height: 74%; }
.cat-photo[data-kind="cover"]:not(:has(> img))::before { width: auto; height: 80%; }

/* passi del prodotto */
.buy-back { grid-column: 1 / -1; justify-self: start; margin-bottom: -8px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--link); cursor: pointer; }
.buy-back:hover { text-decoration: underline; }
.buy-title { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.buy-step[hidden] { display: none; }
.buy-addon {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.buy-addon:hover { border-color: #a1a1a6; }
.buy-addon:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.buy-addon input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); flex: none; }
.ba-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.ba-name { font-size: 17px; font-weight: 600; }
.ba-note { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.ba-price { font-size: 17px; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .cat-body { padding: 22px 22px 24px; }
  .cat-photo > img.cutout { padding: 6% 22%; }
}

/* foto del vetro privacy: immagine a tutto campo su fondo blu notte, non scontornata */
/* immagine intera (quadrata, con le scritte): il fondo riprende i colori dei suoi bordi, così non si vede dove finisce */
.cat-photo[data-kind="vetro"]:has(> img), .buy-photo[data-kind="vetro"]:has(> img) { background: linear-gradient(180deg, rgb(2,18,40) 0%, rgb(10,42,74) 24%, rgb(6,40,70) 50%, rgb(4,28,56) 72%, rgb(0,9,25) 100%); }
.cat-photo[data-kind="vetro"] > img.cutout { padding: 0; object-fit: contain; }
.buy-photo[data-kind="vetro"] > img.cutout { padding: 0; object-fit: contain; }
.buy-photo[data-kind="vetro"]:has(> img) { aspect-ratio: 1; max-height: none; }

/* immagini intere (con scritte, non scontornate): si vedono tutte, il fondo riprende i loro bordi scuri */
.cat-photo.is-full, .buy-photo.is-full { background: linear-gradient(180deg, #0a0c0e 0%, #131417 45%, #121316 70%, #16171b 100%); }
.cat-photo.is-full > img.cutout, .buy-photo.is-full > img.cutout { padding: 0; object-fit: contain; }
.buy-thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.buy-thumbs[hidden] { display: none; }
.buy-thumb {
  position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: linear-gradient(160deg, #f0f0f3, #e2e2e7); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.buy-thumb.is-full { background: #111215; }
.buy-thumb img { width: 100%; height: 100%; object-fit: contain; }
.buy-thumb:not(.is-full) img { padding: 6px 14px; }
.buy-thumb:not(:has(img))::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 9 / 18; transform: translate(-50%, -50%); border-radius: 22% / 11%; background: var(--tint); }
.buy-thumb.is-on { box-shadow: 0 0 0 2px var(--blue); }

/* ---------- Transizione tra i colori ---------- */
.buy-photo > img.cutout { animation: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.buy-photo > img.is-entering { opacity: 0; transform: scale(.985); }
.buy-photo > img.is-leaving { opacity: 0; }
/* la sagoma (colori senza foto) entra in dissolvenza e cambia colore con una transizione */
.buy-photo[data-kind="cover"]:not(:has(> img))::before { animation: buy-in .45s var(--ease); transition: background-color .45s var(--ease); }
.buy-colors { gap: 14px 18px; }
@media (prefers-reduced-motion: reduce) {
  .buy-photo > img.cutout, .buy-photo[data-kind="cover"]::before { transition: none !important; animation: none !important; }
}

/* ---------- Prodotto aperto: finestra a tutto schermo sopra la pagina ---------- */
html.buy-lock { overflow: hidden; }
.buy-overlay {
  position: fixed; inset: 0; z-index: 78; display: flex; flex-direction: column;
  background: var(--bg); opacity: 0; transform: translateY(18px);
  transition: opacity .26s var(--ease), transform .32s cubic-bezier(.32,.72,0,1);
}
.buy-overlay.is-open { opacity: 1; transform: none; }
.buy-bar {
  flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  min-height: 56px; padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: rgba(251,251,253,.9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.buy-bar .buy-back { grid-column: 1; justify-self: start; margin: 0; padding: 10px 0; font-size: 17px; font-weight: 500; }
.buy-bar-title { grid-column: 2; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bag { grid-column: 3; justify-self: end; color: var(--ink); }
.buy-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: clamp(24px, 4vw, 48px) 0 calc(64px + env(safe-area-inset-bottom, 0px)); }
.buy-scroll .buy { margin-top: 0; }
.buy-scroll .buy-media { top: 24px; }
@media (max-width: 640px) { .buy-bar-title { display: none; } .buy-bar { grid-template-columns: 1fr auto; } .buy-bag { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .buy-overlay { transition: none; transform: none; } }

/* "Torna al sito": pillola grigia con freccia, come i pulsanti secondari delle app Apple */
.buy-bar .buy-back {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px 0 12px; margin: 0;
  border: 0; border-radius: 999px;
  background: rgba(0,0,0,.055); color: var(--ink);
  font: 500 15px/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  cursor: pointer; transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.buy-bar .buy-back svg { flex: none; transition: transform .2s var(--ease); }
.buy-bar .buy-back:hover { background: rgba(0,0,0,.09); text-decoration: none; }
.buy-bar .buy-back:hover svg { transform: translateX(-2px); }
.buy-bar .buy-back:active { transform: scale(.97); }
.buy-bar .buy-back:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ==========================================================
   Lista d'attesa (avvisami.js)
   ========================================================== */
html.wl-lock { overflow: hidden; }
.wl {
  width: min(520px, 100% - 32px); max-width: none; max-height: min(92vh, 880px);
  padding: 0; border: 0; border-radius: 28px;
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  overflow: hidden;
}
.wl::backdrop { background: rgba(0,0,0,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wl[open] { animation: sheet-in .45s cubic-bezier(.32,.72,0,1); }
.wl[open]::backdrop { animation: fade-in .3s ease; }
.wl-in { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: 40px 36px 28px; }
.wl-x {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.055); color: var(--ink-2); font-size: 13px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.wl-x:hover { background: rgba(0,0,0,.09); color: var(--ink); }

.wl-kicker { display: flex; align-items: center; gap: 9px; padding-right: 40px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.wl-kicker span:last-child::first-letter { text-transform: uppercase; }
.wl-pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.wl-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); animation: wl-pulse 1.8s ease-out infinite; }
@keyframes wl-pulse { to { transform: scale(3); opacity: 0; } }
.wl-title { margin-top: 12px; font-size: 34px; line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; outline: none; }
.wl-sub { margin-top: 10px; font-size: 17px; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.wl-sub strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.wl-pick { margin-top: 16px; padding: 11px 14px; border-radius: 14px; background: var(--bg-alt); font-size: 14px; line-height: 1.4; color: var(--ink); }

.wl-field { display: grid; gap: 7px; margin: 20px 0 0; min-width: 0; }
.wl-label { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.wl-label em { margin-left: 6px; font-style: normal; font-weight: 400; color: var(--ink-2); }
.wl input[type="email"], .wl input[type="tel"], .wl select {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; font-size: 17px; color: var(--ink); letter-spacing: -0.01em;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wl input::placeholder { color: #a1a1a6; }
.wl input:focus, .wl select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.wl [aria-invalid="true"] { border-color: #d70015 !important; box-shadow: 0 0 0 4px rgba(215,0,21,.1) !important; }
.wl-select { position: relative; display: block; }
.wl-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.wl-select select:invalid { color: #a1a1a6; }
.wl-select select option { color: var(--ink); }
.wl-select::after {
  content: ""; position: absolute; right: 19px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.75px solid var(--ink-2); border-bottom: 1.75px solid var(--ink-2); transform: rotate(45deg); pointer-events: none;
}
.wl-err { font-size: 13px; line-height: 1.35; color: #d70015; }
.wl-err:empty { display: none; }

.wl-colors { border: 0; padding: 0; }
.wl-colors legend { padding: 0; margin-bottom: 9px; }
.wl-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-sw {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 10px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; color: var(--ink); cursor: pointer; user-select: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.wl-sw:hover { border-color: #a1a1a6; }
.wl-sw input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.wl-sw:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: rgba(0,113,227,.05); font-weight: 500; }
.wl-sw:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.wl-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.wl-dot.is-none { background: none; box-shadow: inset 0 0 0 1.5px #b0b0b5; }

.wl-more { margin-top: 18px; }
.wl-more summary {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px;
  font-size: 15px; color: var(--link); cursor: pointer; list-style: none;
}
.wl-more summary::-webkit-details-marker { display: none; }
.wl-more summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .25s var(--ease), margin .25s var(--ease);
}
.wl-more[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.wl-more .wl-field { margin-top: 10px; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wl-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-top: 22px; font-size: 14px; line-height: 1.42; color: var(--ink-2); cursor: pointer; }
.wl-consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.wl-consent + .wl-err { display: block; margin: 6px 0 0 32px; }
.wl-consent + .wl-err:empty { display: none; }
.wl-send { margin-top: 20px; min-height: 52px; font-size: 17px; font-weight: 500; }
.wl-send:disabled { opacity: .65; cursor: progress; }
.wl-status { margin-top: 12px; font-size: 14px; line-height: 1.4; color: #d70015; text-align: center; }
.wl-status:empty { display: none; }
.wl-fine { margin-top: 14px; font-size: 12px; line-height: 1.4; color: var(--ink-2); text-align: center; }

.wl-done { padding-top: 14px; text-align: center; }
.wl-done .wl-sub { max-width: 380px; margin-inline: auto; }
.wl-check { display: block; width: 68px; height: 68px; margin: 0 auto 6px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; }
.wl-check circle { stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 0; }
.wl-check path { stroke-width: 3.5; stroke-dasharray: 34; stroke-dashoffset: 0; }
.wl-done.is-in .wl-check circle { animation: wl-draw-c .6s cubic-bezier(.65,0,.35,1) both; }
.wl-done.is-in .wl-check path { animation: wl-draw-p .4s cubic-bezier(.65,0,.35,1) .45s both; }
@keyframes wl-draw-c { from { stroke-dashoffset: 151; } }
@keyframes wl-draw-p { from { stroke-dashoffset: 34; } }
.wl-done-ctas { display: grid; gap: 10px; margin-top: 28px; }
.wl-done-ctas [hidden] { display: none; }
.wl-back { background: var(--bg-alt); color: var(--ink); }
.wl-back:hover { background: #e8e8ed; }
.wl-again { margin-top: 16px; padding: 6px; border: 0; background: none; font-size: 14px; color: var(--link); }
.wl-again:hover { text-decoration: underline; }

/* nella finestra del prodotto, sotto il prezzo */
.buy-drop { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.buy-drop[hidden] { display: none; }
.buy-drop-cta { padding: 0; border: 0; background: none; font: inherit; color: var(--link); cursor: pointer; }
.buy-drop-cta:hover { text-decoration: underline; }

/* telefono: la scheda sale dal basso */
@media (max-width: 640px) {
  .wl { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .wl[open] { animation: wl-up .5s cubic-bezier(.32,.72,0,1); }
  .wl-in { padding: 30px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .wl-title { font-size: 29px; }
  .wl-sub { font-size: 16px; }
}
@keyframes wl-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .wl[open], .wl[open]::backdrop, .wl-pulse::after, .wl-done.is-in .wl-check circle, .wl-done.is-in .wl-check path { animation: none; }
}

/* ==========================================================
   Migliorie per il cliente: spedizione, guida ai modelli, domande frequenti
   ========================================================== */
/* borsa: prodotti, spedizione, totale, tempi */
.sub-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.drawer-foot .total-row { margin-top: 10px; padding-top: 12px; border-top: 1px solid #e8e8ed; margin-bottom: 6px; }
.ship-eta { margin-bottom: 16px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.ship-eta:empty { display: none; }

/* finestra del prodotto: spedizione e drop sotto il prezzo */
.buy-ship { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.buy-drop { color: var(--ink); }

/* suggerimento del modello dallo schermo */
.buy-hint { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0,113,227,.06); font-size: 14px; line-height: 1.6; color: var(--ink); }
.buy-hint[hidden] { display: none; }
.bh-pick {
  display: inline-flex; align-items: center; min-height: 32px; margin: 2px 0; padding: 0 12px;
  border: 1.5px solid rgba(0,113,227,.35); border-radius: 999px; background: #fff;
  font: inherit; font-size: 14px; font-weight: 500; color: #0066cc; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.bh-pick:hover { border-color: var(--blue); background: rgba(0,113,227,.05); }
.bh-note { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }

/* guida "qual è il mio iPhone": si apre sotto il passo del modello */
.buy-guide { margin-top: 14px; }
.buy-guide summary {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  font-size: 15px; color: var(--link); cursor: pointer; list-style: none;
}
.buy-guide summary::-webkit-details-marker { display: none; }
.buy-guide summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .25s var(--ease), margin .25s var(--ease);
}
.buy-guide[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.bg-in { margin-top: 10px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.bg-sure { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.bg-sure strong { color: var(--ink); font-weight: 600; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 16px 10px; margin-top: 16px; }
.bg-grid li { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.bg-grid strong { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.g-phone { width: 52px; height: 104px; }
.g-body { fill: #f5f5f7; stroke: #a1a1a6; stroke-width: 1.5; }
.g-isle { fill: #e3e3e8; stroke: #b9b9be; stroke-width: 1; }
.g-lens { fill: #2b2b2e; stroke: #8e8e93; stroke-width: 1.2; }
.g-dot { fill: #c7c7cc; }
.bg-note { margin-top: 16px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }


/* domande frequenti */
.faq { border-top: 1px solid #e8e8ed; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 72px); }
.faq-sub { margin-top: 16px; max-width: 380px; font-size: 17px; line-height: 1.47; color: var(--ink-2); }
.faq-ask { margin-top: 24px; background: var(--bg-alt); color: var(--ink); }
.faq-ask:hover { background: #e8e8ed; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; display: block; padding: 24px 48px 24px 0;
  font-size: clamp(18px, 1.7vw, 21px); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* il "+" diventa "×" quando la risposta è aperta */
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.75px; margin-top: -1px;
  border-radius: 2px; background: var(--ink-2); transition: transform .3s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:hover::before, .faq-item summary:hover::after { background: var(--ink); }
.faq-a { padding: 0 48px 26px 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.faq-a a { white-space: nowrap; }
.faq-a a::after { content: " ›"; }
/* apertura morbida dove il browser lo permette */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}
@media (max-width: 833px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq-head { position: static; }
  .faq-item summary { padding: 20px 40px 20px 0; }
  .faq-a { padding-right: 0; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content { transition: none; }
  .faq-item summary::before, .faq-item summary::after { transition: none; }
}
@media (max-width: 640px) {
  .g-phone { width: 44px; height: 88px; }
  .bg-in { padding: 16px 14px; }
  .bg-grid li { font-size: 12px; }
  .bg-grid strong { font-size: 13px; }
}

/* ==========================================================
   Social, unboxing, pagina del drop
   ========================================================== */
/* footer: profili social */
.foot-social-title { margin-top: 22px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-social a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px 0 11px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; color: var(--ink); text-decoration: none !important;
  transition: box-shadow .2s var(--ease);
}
.foot-social a:hover { box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink); }
/* profilo non ancora collegato: si vede che manca (bordo tratteggiato), non porta da nessuna parte */
[data-social].is-todo { box-shadow: none; outline: 1px dashed var(--ink-3); outline-offset: -1px; cursor: default; }

/* unboxing: sezione scura, video verticale a sinistra */
.unbox { background: #000; color: #f5f5f7; overflow: hidden; }
.unbox-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.unbox-media {
  position: relative; width: min(100%, 400px); justify-self: center; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #2a2a2e 0%, #111113 60%, #0a0a0b 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px rgba(0,0,0,.6);
}
.unbox-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.unbox-media.has-video .unbox-ph { display: none; }
/* foto della scatola finché non c'è il video: illuminata da dietro, perché è nera su nero */
.unbox-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.unbox-ph::before {
  content: ""; position: absolute; left: 50%; top: 47%; width: 110%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.17), rgba(255,255,255,.05) 55%, transparent 75%);
}
.unbox-ph::after {
  content: ""; position: absolute; left: 50%; bottom: 13%; width: 58%; height: 26px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent);
  animation: unbox-shadow 7s ease-in-out infinite;
}
.unbox-img {
  position: relative; z-index: 1; width: 74%; height: auto; margin-top: -6%;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,.55));
  animation: unbox-float 7s ease-in-out infinite;
}
@keyframes unbox-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes unbox-shadow { 0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); } 50% { opacity: .7; transform: translateX(-50%) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .unbox-img, .unbox-ph::after { animation: none; } }
.unbox-lead { margin-top: 18px; max-width: 480px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; color: #a1a1a6; }
.unbox-list { display: grid; gap: 14px; margin-top: 30px; }
.unbox-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; font-size: 17px; line-height: 1.45; color: #a1a1a6; }
.unbox-list strong { color: #f5f5f7; font-weight: 600; }
.unbox-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.1); color: #f5f5f7; font-size: 13px; font-weight: 600; }
.unbox-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; font-size: 15px; color: #a1a1a6; }
.unbox-social > span { margin-right: 4px; }
.unbox-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px 0 13px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #f5f5f7 !important; font-size: 15px; text-decoration: none !important;
  transition: background-color .2s var(--ease);
}
.unbox-chip:hover { background: rgba(255,255,255,.16); }
.unbox-chip.is-todo { outline-color: #6e6e73; }

/* pagina del drop: scura, con il conto alla rovescia grande */
.drop-page { background: #000; color: #f5f5f7; }
.drop-page .drop-close-sub { color: #a1a1a6; }
.dp-clock { display: flex; justify-content: center; gap: clamp(10px, 2vw, 18px); margin-top: 44px; }
.dp-clock[hidden] { display: none; }
.dp-unit {
  display: grid; justify-items: center; gap: 6px; min-width: clamp(70px, 11vw, 120px); padding: clamp(14px, 2vw, 22px) 8px;
  border-radius: 22px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.dp-unit b { font-size: clamp(34px, 6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dp-unit i { font-style: normal; font-size: 13px; color: #a1a1a6; }
.dp-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 18px auto 0; max-width: 620px; }
.dp-stat {
  flex: 1 1 220px; display: grid; justify-items: start; gap: 4px; padding: 20px 22px; text-align: left;
  border-radius: 22px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.dp-stat[hidden] { display: none; }
.dp-stat strong { font-size: clamp(30px, 4vw, 40px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.dp-stat > span { font-size: 15px; color: #a1a1a6; }
.dp-bar { display: block; width: 100%; height: 6px; margin-top: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.dp-bar i { display: block; height: 100%; border-radius: 6px; background: #2997ff; }
.drop-page .drop-close-ctas { margin-top: 38px; }

@media (max-width: 833px) {
  .unbox-wrap { grid-template-columns: 1fr; }
  .unbox-media { width: min(78%, 340px); }
  .unbox-text { order: -1; }
}
@media (max-width: 640px) {
  .dp-clock { gap: 8px; margin-top: 34px; }
  .dp-unit { min-width: 0; flex: 1; border-radius: 16px; padding: 14px 4px; }
  .dp-unit i { font-size: 11px; }
  .dp-stats { gap: 8px; }
  .dp-stat { flex: 1 1 calc(50% - 4px); padding: 16px 16px; border-radius: 18px; }
  .dp-stat > span { font-size: 14px; }
  .unbox-list li { font-size: 16px; }
}

/* sotto il titolo colorato: pezzi venduti e apertura del drop */
.pd { width: min(440px, 100%); margin: 30px auto 0; display: grid; gap: 10px; }
.pd[hidden] { display: none; }
.pd-count { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pd-count strong { font-size: 17px; font-weight: 600; color: var(--ink); }
.pd-bar { display: block; height: 6px; border-radius: 6px; background: #e8e8ed; overflow: hidden; }
.pd-bar i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.pd-msg { font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.pd-msg[hidden] { display: none; }
.pd-cta { padding: 0; border: 0; background: none; font: inherit; color: var(--link); cursor: pointer; white-space: nowrap; }
.pd-cta:hover { text-decoration: underline; }
.dp-stats[hidden] { display: none; }

/* Dettagli: tessera grande, testo in alto e foto orizzontale intera in basso.
   Il bordo alto della foto sfuma nel grigio della tessera (solo sfondo: le cover iniziano più in basso). */
.tile-set { background: #e9e9eb; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0; gap: 0; }
.tile-set .tile-copy { padding: 40px 40px 0; }
.tile-set .tile-sub { color: #515154; }
.tile-set-img {
  display: block; width: 100%; height: auto; margin-top: auto;
  /* --fade: quanto sfuma il bordo alto, per foto; si ferma prima delle cover */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 15%));
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 15%));
}
@media (max-width: 640px) {
  .tile-set .tile-copy { padding: 30px 30px 0; }
}

/* listino con una sola scheda: su schermo largo foto e testo affiancati, invece di una scheda gigante */
@media (min-width: 834px) {
  .catalog:has(> .cat-card:only-child) .cat-open { flex-direction: row; align-items: stretch; }
  .catalog:has(> .cat-card:only-child) .cat-media { flex: 0 0 58%; }
  .catalog:has(> .cat-card:only-child) .cat-body { justify-content: center; gap: 12px; padding: 48px clamp(32px, 4vw, 56px); }
  .catalog:has(> .cat-card:only-child) .cat-name { font-size: clamp(32px, 3.4vw, 44px); }
  .catalog:has(> .cat-card:only-child) .cat-desc { font-size: 19px; max-width: 360px; }
  .catalog:has(> .cat-card:only-child) .cat-foot { margin-top: 18px; justify-content: flex-start; gap: 24px; }
}
/* la foto della scheda (banner «Cover iPhone», 2:1) riempie il riquadro senza fasce e senza tagli */
.cat-photo.is-full { aspect-ratio: 2 / 1; background: #000; }

/* prezzo di lancio: piccola etichetta accanto al prezzo */
.hero-price small { display: block; margin-top: 1px; font-size: 11px; line-height: 1.2; font-weight: 500; letter-spacing: 0; color: #a1a1a6; text-align: center; }
.cat-launch { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #0066cc; }
.buy-launch { margin-top: 10px; font-size: 14px; line-height: 1.45; color: #0066cc; font-weight: 500; }
.buy-launch[hidden] { display: none; }
.promessa .cta-sub strong { color: var(--ink); font-weight: 600; }

/* Dettagli: riquadro "Ricarica wireless" fatto solo dall'immagine (intera, larga quanto il riquadro).
   Se il riquadro è più alto, sopra resta il grigio del cielo della foto, che ci sfuma dentro. */
.tile-img { padding: 0; justify-content: flex-end; background: linear-gradient(90deg, #d1d0d1, #dbdbdb 50%, #e1e1e1); }
.tile-img img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%); mask-image: linear-gradient(to bottom, transparent 0, #000 10%); }
/* ultima riga dei Dettagli: Compatibilità larga due colonne (immagine 3:2 intera), Bordo rialzato in una */
.tile-img-wide { grid-column: span 2; background: #0b0b0c; }
.tile-img-wide img { -webkit-mask-image: none; mask-image: none; }
/* tablet (due colonne): tutte e due a riga intera */
@media (max-width: 1000px) {
  .bento .tile-bordo, .bento .tile-img-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento .tile-bordo, .bento .tile-img-wide { grid-column: auto; }
  /* su telefono il riquadro è un po' più alto dell'immagine: il bordo alto sfuma nel nero */
  .tile-img-wide img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
}


/* ==========================================================
   Coupon di benvenuto, registrazione e area utente (account.js)
   ========================================================== */
/* pulsante account nel menu: il puntino blu dice che sei dentro */
.acc-dot { position: absolute; right: 6px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #2997ff; }
.acc-dot[hidden] { display: none; }

/* campi dei moduli (popup, area, modifiche): come quelli della lista d'attesa */
.ac-input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; font-size: 17px; color: var(--ink); letter-spacing: -0.01em;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ac-input::placeholder { color: #a1a1a6; }
.ac-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.ac-input[aria-invalid="true"] { border-color: #d70015; box-shadow: 0 0 0 4px rgba(215,0,21,.1); }
.ac-code { font-size: 24px; font-weight: 600; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.ac-code::placeholder { color: #d2d2d7; }
.ac .ac-step > .wl-field:first-child { margin-top: 0; }
.ac-sent { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.ac-sent strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.ac-prova { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,113,227,.07); font-size: 13px; line-height: 1.4; color: #0b4f9c; }
.ac-links { display: flex; justify-content: center; gap: 20px; margin-top: 12px; }
.ac-links button, .cp-no, .faq-link, .acc-link, .drawer-coupon-cta, .buy-save {
  padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--link); cursor: pointer;
}
.ac-links button:hover, .cp-no:hover, .faq-link:hover, .acc-link:hover, .drawer-coupon-cta:hover { text-decoration: underline; }
.wl-status.is-ok { color: var(--ink-2); }
.faq-link { padding: 0; font-size: inherit; }

/* il coupon: un biglietto scuro con il codice da copiare */
.ac-coupon {
  display: grid; gap: 14px; padding: 22px; border-radius: 22px; text-align: left;
  background: radial-gradient(120% 140% at 100% 0%, #1d2a44 0%, #161617 55%); color: #f5f5f7;
}
.ac-coupon-top { display: flex; align-items: baseline; gap: 12px; }
.ac-coupon-pct { font-size: 46px; line-height: 1; font-weight: 700; letter-spacing: -0.045em; color: #2997ff; }
.ac-coupon-what { font-size: 16px; color: #d2d2d7; }
.ac-coupon-code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border: 1.5px dashed rgba(255,255,255,.3); border-radius: 14px;
  font: 600 19px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em;
}
.ac-copy {
  flex: none; min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #f5f5f7; color: var(--ink); font: 600 13px/1 var(--font); letter-spacing: 0; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.ac-copy:hover { background: #fff; }
.ac-copy:focus-visible { outline: 2px solid #2997ff; outline-offset: 2px; }
.ac-coupon-note { font-size: 13px; line-height: 1.45; color: #a1a1a6; }

/* ---------- Popup del coupon: una finestra, foto a sinistra e offerta a destra ---------- */
html.cp-lock { overflow: hidden; }
.cp {
  width: min(880px, 100% - 32px); max-width: none; max-height: min(92vh, 760px); max-height: min(92dvh, 760px);
  padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden;
}
.cp::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cp[open] { animation: sheet-in .45s cubic-bezier(.32,.72,0,1); }
.cp[open]::backdrop { animation: fade-in .3s ease; }
.cp-in {
  position: relative; display: grid; max-height: inherit; overflow-y: auto; overscroll-behavior: contain;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "media head" "media body";
}
/* la foto resta intera e appoggiata in basso: se la colonna è più alta, sopra continua il suo cielo chiaro */
.cp-media { grid-area: media; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(90deg, #e9e9e9 0%, #f6f6f6 50%, #fefefe 100%); }
.cp-media img { display: block; width: 100%; height: auto; }
.cp-head { grid-area: head; padding: 46px 44px 0; }
.cp-body { grid-area: body; padding: 0 44px 34px; }
.cp-x { position: absolute; top: 14px; right: 14px; }
.cp-kicker { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.cp-title { margin-top: 10px; font-size: 32px; line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; outline: none; }
.cp-pct { display: block; margin-bottom: 2px; font-size: 112px; line-height: .9; letter-spacing: -0.06em; color: var(--blue); }
.cp-sub { margin-top: 14px; font-size: 16px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
#cpModulo { margin-top: 22px; }
.cp-no { display: block; margin: 12px auto 0; color: var(--ink-2); }
.cp-fatto { padding-top: 20px; text-align: center; }
/* a registrazione fatta il coupon prende il posto del titolo: il 15% non si ripete */
@media (min-width: 641px) {
  .cp-in.is-fatto .cp-head { display: none; }
  .cp-in.is-fatto .cp-fatto { grid-area: auto; grid-column: 2; grid-row: 1 / -1; align-self: center; padding-top: 44px; }
}
.cp-fatto .wl-check { width: 56px; height: 56px; }
.cp-fatto-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; outline: none; }
.cp-fatto .cp-sub { margin-top: 6px; }
.cp-coupon { margin-top: 20px; }
.cp-fatto .wl-done-ctas { margin-top: 20px; }

/* ---------- Area utente (stessa finestra del prodotto, fondo grigio come le pagine account Apple) ---------- */
html.acc-lock { overflow: hidden; }
.acc-overlay { background: var(--bg-alt); }
.acc-overlay .buy-bar { background: rgba(245,245,247,.88); }
.acc { max-width: 1120px; }
.acc-title { margin-top: 10px; font-size: clamp(36px, 4.2vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; outline: none; }
.acc-sub { margin-top: 8px; font-size: 19px; line-height: 1.4; color: var(--ink-2); }
.acc-h { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }
.acc-h-dark { color: #a1a1a6; }
.acc-card { padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.04); }

/* fuori: perché registrarsi + modulo */
.acc-fuori { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.acc-perks { display: grid; gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.acc-perks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.acc-perks strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.acc-perks div span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.acc-perk-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(0,113,227,.08); color: var(--blue); font-size: 18px; font-weight: 700; }
.acc-form-card .ac { margin-top: 18px; }

/* dentro: menu delle sezioni a sinistra, sezione a destra */
.acc-dentro { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; align-items: start; }
.acc-dentro[hidden] { display: none; }
.acc-side { position: sticky; top: 0; }
.acc-who { display: flex; align-items: center; gap: 14px; padding: 4px 10px 22px; }
.acc-avatar {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(160deg, #6aa8ff, #0071e3); color: #fff; font-size: 20px; font-weight: 600; letter-spacing: .02em;
}
.acc-who-text { min-width: 0; }
.acc-who-name { font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.acc-who-mail { margin-top: 2px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.acc-nav { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.acc-nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px;
  border: 0; border-radius: 12px; background: none; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .15s var(--ease);
}
.acc-nav-item:hover { background: rgba(0,0,0,.045); }
.acc-nav-item.is-on { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04); font-weight: 600; }
.acc-nav-item:focus-visible, .acc-tile-link:focus-visible, .acc-row-link:focus-visible, .acc-card-add:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.acc-nav-item .acc-ic { color: var(--blue); }
.acc-nav-text { flex: 1; }
.acc-nav .acc-chev { display: none; }
.acc-nav-sep { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.acc-ic { flex: none; display: grid; place-items: center; }
.acc-chev { flex: none; display: grid; color: #b0b0b5; }
.acc-main { min-width: 0; }
.acc-back-menu { display: none; }

.acc-sec-head { margin-bottom: 26px; }
.acc-sec-title { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; outline: none; }
.acc-sec-sub { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.acc-h2 { margin: 36px 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.acc-big { margin-top: 8px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.acc-p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.acc-p a, .acc-note a { color: var(--link); }
.acc-muted { color: var(--ink-3); }
.acc-note { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.acc-btn-sm { margin-top: 18px; min-height: 42px; padding: 0 20px; font-size: 15px; }
.acc-btn-xs { min-height: 34px; padding: 0 16px; font-size: 14px; }

/* panoramica: coupon, drop e scorciatoie */
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acc-grid-1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.acc-coupon-slot .ac-coupon { height: 100%; padding: 26px; }
.acc-tile {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 0; border-radius: 22px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); color: var(--ink); font: inherit; text-align: left;
}
.acc-tile-link { cursor: pointer; transition: box-shadow .2s var(--ease); }
.acc-tile-link:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06); }
.acc-tile .acc-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(0,113,227,.08); color: var(--blue); }
.acc-tile-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.acc-tile-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.acc-tile-val { overflow: hidden; font-size: 15px; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.acc-tile-col { flex-direction: column; align-items: flex-start; gap: 0; padding: 24px; }

/* gruppi di righe, come nelle impostazioni Apple */
.acc-group { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.acc-row {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px;
  border: 0; background: none; font: inherit; color: var(--ink); text-align: left; text-decoration: none;
}
.acc-row + .acc-row { border-top: 1px solid #ececf0; }
.acc-row-link { cursor: pointer; transition: background-color .15s var(--ease); }
.acc-row-link:hover { background: #fafafc; }
.acc-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.acc-row-label { font-size: 13px; color: var(--ink-2); }
.acc-row-val { font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.acc-row-note { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.acc-switch-row { cursor: pointer; }
.acc-switch-row .acc-row-label { font-size: 17px; color: var(--ink); }
.acc-switch-row.is-off { cursor: default; }
.acc-switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0;
  border-radius: 999px; background: #e3e3e8; cursor: pointer; transition: background-color .25s var(--ease);
}
.acc-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .25s cubic-bezier(.32,.72,0,1);
}
.acc-switch:checked { background: var(--blue); }
.acc-switch:checked::after { transform: translateX(20px); }
.acc-switch:disabled { cursor: not-allowed; opacity: .45; }
.acc-switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.acc-del { color: #d70015; }
.acc-del.is-danger { font-weight: 600; }
.acc-row .acc-del { margin-top: 6px; }
.acc-warn { font-size: 13px; color: #a5000f; }
.acc-warn[hidden] { display: none; }

/* schede: indirizzi, iPhone, salvati */
.acc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.acc-card-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 20px;
  border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); text-align: left;
}
.acc-badge { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(0,113,227,.1); color: #0058b0; font-size: 12px; font-weight: 600; }
.acc-card-add {
  flex-direction: row; align-items: center; justify-content: center; gap: 10px; min-height: 132px;
  border: 1.5px dashed #c7c7cc; box-shadow: none; background: transparent; font: inherit; font-size: 15px; color: var(--link); cursor: pointer;
  transition: background-color .2s var(--ease);
}
.acc-card-add:hover { background: #fff; }
.acc-plus { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,113,227,.1); font-size: 21px; line-height: 1; }
.acc-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 10px; }
.acc-device, .acc-saved { flex-direction: row; align-items: center; gap: 16px; }
.acc-thumb { flex: none; width: 72px; height: 104px; border-radius: 14px; background: var(--bg-alt); overflow: hidden; }
.acc-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8px 10px; }
.acc-saved-body { min-width: 0; }
.acc-saved-price { margin-top: 4px; font-size: 15px; font-weight: 600; }
.acc-list { display: grid; gap: 12px; }
.acc-order { padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.acc-order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-order-top .acc-badge { margin: 0; }
.acc-order-items { margin-top: 8px; font-size: 15px; }
.acc-order-tot { margin-top: 4px; font-weight: 600; }
.acc-empty {
  display: grid; justify-items: center; padding: 48px 24px; border-radius: 22px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); text-align: center;
}
.acc-empty-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--bg-alt); color: var(--ink-2); }
.acc-empty-ic svg { width: 28px; height: 28px; }
.acc-empty .acc-p { max-width: 430px; }

/* finestra di modifica */
.acc-edit {
  width: min(520px, 100% - 32px); max-width: none; max-height: min(90vh, 820px); max-height: min(90dvh, 820px);
  padding: 0; border: 0; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden;
}
.acc-edit::backdrop { background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.acc-edit[open] { animation: sheet-in .4s cubic-bezier(.32,.72,0,1); }
.acc-edit-in { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: 30px 28px 24px; }
.acc-edit-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.acc-edit-sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.acc-edit-sub[hidden] { display: none; }
.acc-edit-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.acc-edit-fields > * { grid-column: 1 / -1; }
.acc-edit-fields > .is-half { grid-column: auto; }
.acc-edit-fields .wl-field { margin-top: 16px; }
.acc-edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.acc-edit-actions .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.acc-edit-actions .acc-del { margin-right: auto; }

/* "Salva" nella scheda della cover */
.buy-save { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 15px; }
.buy-save:hover span { text-decoration: underline; }
.buy-save.is-on svg path { fill: currentColor; }

/* borsa: riga del coupon e invito a registrarsi */
.sub-coupon span:last-child { color: var(--link); font-weight: 500; }
.sub-row[hidden], .drawer-coupon-cta[hidden] { display: none; }
.drawer-coupon-cta { display: block; width: 100%; margin: -4px 0 10px; text-align: center; }

/* tablet e telefono: l'area diventa un elenco di sezioni, come le Impostazioni dell'iPhone */
@media (max-width: 860px) {
  .acc-fuori { grid-template-columns: 1fr; }
  .acc-dentro { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .acc-dentro.is-menu .acc-main, .acc-dentro:not(.is-menu) .acc-side { display: none; }
  .acc-side { position: static; max-width: 560px; width: 100%; margin: 0 auto; }
  .acc-who { flex-direction: column; gap: 10px; padding: 6px 0 24px; text-align: center; }
  .acc-avatar { width: 76px; height: 76px; font-size: 28px; }
  .acc-who-name { font-size: 22px; }
  .acc-nav { gap: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
  .acc-nav li + li { border-top: 1px solid #ececf0; }
  .acc-nav-item { min-height: 52px; border-radius: 0; font-size: 17px; }
  .acc-nav-item.is-on { background: none; box-shadow: none; font-weight: 400; }
  .acc-nav .acc-chev { display: grid; }
  .acc-nav-sep { margin-top: 0; padding-top: 0; border-top: 1px solid #ececf0; }
  .acc-back-menu { display: inline-flex; align-items: center; gap: 2px; margin: -8px 0 12px -6px; padding: 6px; border: 0; background: none; font: inherit; font-size: 17px; color: var(--link); cursor: pointer; }
  .acc-back-menu svg { transform: rotate(180deg); }
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* popup: foto piccola accanto al 15%, poi il modulo */
  .cp { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 24px; }
  .cp-in { grid-template-columns: 38% minmax(0, 1fr); grid-template-areas: "media head" "body body"; }
  .cp-head { align-self: end; padding: 24px 40px 12px 16px; }
  .cp-kicker { font-size: 12px; }
  .cp-pct { font-size: 64px; }
  .cp-title { font-size: 21px; }
  .cp-body { padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .cp-x { top: 10px; right: 10px; width: 32px; height: 32px; }
  .acc-card, .acc-tile-col, .acc-coupon-slot .ac-coupon { padding: 22px; }
  .acc-card-add { min-height: 72px; }
  .acc-sub { font-size: 17px; }
  .ac-coupon-code { font-size: 17px; }
  .acc-edit { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .acc-edit-in { padding: 26px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .cp[open], .acc-edit[open] { animation: none; } }

/* nota sotto le foto del listino e della finestra del prodotto: le immagini sono illustrative */
.cat-media { display: flex; flex-direction: column; min-width: 0; }
.cat-note { display: block; padding: 10px 28px 0; font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.foto-nota { margin-top: 4px; text-align: center; font-size: 12px; line-height: 1.35; color: var(--ink-2); }
@media (min-width: 834px) {
  .catalog:has(> .cat-card:only-child) .cat-note { padding: 10px 20px 14px; }
}
@media (max-width: 640px) {
  .cat-note { padding: 10px 22px 0; }
}

/* ---------- Accesso con email e password (account.js) ---------- */
.ac-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 16px; padding: 3px; border-radius: 12px; background: var(--bg-alt); }
.ac-tabs[hidden] { display: none; }
.ac-tabs button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.ac-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ac-pw { position: relative; display: block; }
.ac-pw .ac-input { width: 100%; padding-right: 92px; }
.ac-mostra { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--link); cursor: pointer; }
.ac-mostra:hover { background: var(--bg-alt); }
.ac-nota { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }

/* ---------- Cellulare nella borsa, per il coupon (shop.js) ---------- */
.drawer-tel { display: grid; gap: 6px; margin: 4px 0 12px; }
.drawer-tel[hidden] { display: none; }
.drawer-tel-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.drawer-tel input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.drawer-tel input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.18); }
.drawer-tel input[aria-invalid="true"] { border-color: #d70015; }
.drawer-tel-nota { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
