:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --gray: #f5f5f7;
  --white: #fff;
  --blue: #0071e3;
  --btn-grad: linear-gradient(90deg, #2897ff 0%, #4c68d9 100%);
  --link: #0066cc;
  --link-dark: #2997ff;
  --grad: linear-gradient(90deg, #7cc4ff 0%, #6e8bff 50%, #b07cff 100%);

  --radius: 28px;
  --radius-sm: 18px;
  --container: 1024px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 820px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 17px; font-weight: 600; color: var(--muted);
  margin-bottom: 10px; letter-spacing: -.01em;
}
.eyebrow--light { color: #a1a1a6; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 21px; color: var(--muted); margin-top: 16px; letter-spacing: .011em; }
.fine { font-size: 12px; color: var(--muted); margin-top: 18px; letter-spacing: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px;
  border-radius: 980px;
  background: var(--btn-grad); color: #fff;
  font-size: 17px; font-weight: 400; letter-spacing: -.02em;
  transition: background .2s var(--ease), filter .2s var(--ease), transform .2s var(--ease);
}
/* il gradiente non si anima: in hover si schiarisce con un filtro */
.btn:not(.btn--light):not(.btn--secondary):not(:disabled):hover { filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 32px; padding: 6px 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 19px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e8e8ed; }
/* pulsante secondario: grigio chiaro, testo scuro (su sfondo bianco) */
.btn--secondary { background: #e8e8ed; color: var(--ink); }
.btn--secondary:hover { background: #dcdce1; }

.link { color: var(--link); font-size: 17px; }
.link:hover { text-decoration: underline; }
.link--light { color: var(--link-dark); }
.link span { display: inline-block; transition: transform .2s var(--ease); }
.link:hover span { transform: translateX(3px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; z-index: 100;
  top: 12px; left: 12px; right: 12px;
  max-width: calc(var(--container) + 32px); margin: 0 auto;
  height: 52px; border-radius: 26px;
  background: rgba(22, 22, 23, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 32px rgba(0,0,0,.18);
  color: #e8e8ed;
  transition: background .3s var(--ease);
}
.nav__inner {
  height: 100%; padding: 0 12px 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { display: block; width: auto; height: 16.4px; }
.nav__links { display: flex; gap: 30px; font-size: 14px; }
.nav__links a { opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__mobile-only { display: none; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__icon { opacity: .8; } .nav__icon:hover { opacity: 1; }
.nav__cart { position: relative; display: grid; place-items: center; width: 30px; height: 30px; color: #fff; opacity: .9; transition: opacity .2s; }
.nav__cart:hover { opacity: 1; }
.nav__cart[hidden] { display: none; }
.nav__cart-badge {
  position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: linear-gradient(90deg, #2897ff 0%, #4c68d9 100%); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  animation: cart-pop .45s var(--ease);
}
@keyframes cart-pop { from { transform: scale(0); } 60% { transform: scale(1.2); } }
.nav__burger { display: none; width: 24px; height: 24px; position: relative; }
.nav__burger span {
  position: absolute; left: 4px; right: 4px; height: 1.5px; background: #e8e8ed;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__burger span:first-child { top: 9px; }
.nav__burger span:last-child { top: 15px; }
.nav.open .nav__burger span:first-child { top: 12px; transform: rotate(45deg); }
.nav.open .nav__burger span:last-child { top: 12px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--black); color: #f5f5f7;
  padding: clamp(92px, 13vh, 128px) 22px 0;
  text-align: center;
  overflow: hidden;
}
.hero__title {
  font-size: clamp(40px, min(9vw, 9.5vh), 88px);
  line-height: 1.04; font-weight: 700; letter-spacing: -.045em;
}
.hero__sub {
  margin-top: clamp(12px, 2vh, 20px);
  font-size: clamp(18px, min(2.2vw, 3vh), 26px); line-height: 1.25;
  color: #a1a1a6; font-weight: 500; letter-spacing: -.01em;
}
.hero__ctas { margin-top: clamp(20px, 3.2vh, 30px); display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; }

.hero__visual { position: relative; height: 370px; margin-top: clamp(28px, 4.5vh, 48px); display: flex; justify-content: center; }
.halo {
  position: absolute; top: 0; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,107,255,.55) 0%, rgba(124,196,255,.18) 40%, transparent 70%);
  filter: blur(30px);
  /* prova: invece di pulsare, parte grande e si stringe intorno al telefono quando entra in vista */
  animation: halo-in 1.8s cubic-bezier(.16, 1, .3, 1) both paused;
}
.hero__visual.in .halo, .js-off .halo { animation-play-state: running; }
@keyframes halo-in { from { transform: scale(2.4); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
/* versione precedente (pulsazione continua):
   animation: pulse 6s ease-in-out infinite;
   @keyframes pulse { 50% { transform: scale(1.08); opacity: .85; } } */

.phone {
  position: relative; width: 290px; height: 600px;
  border-radius: 54px; padding: 12px;
  background: linear-gradient(145deg, #4a4a4f, #1c1c1e 40%, #3a3a3e);
  box-shadow: 0 0 0 1.5px #5a5a60 inset, 0 40px 80px rgba(0,0,0,.6);
}
.phone__island {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 28px; border-radius: 20px; background: #000; z-index: 2;
}
.phone__screen {
  height: 100%; border-radius: 43px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1b2a6b 0%, #0a0f2a 55%, #000 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 72px 20px 20px;
}
.phone__shield { margin-top: 0; filter: drop-shadow(0 10px 30px rgba(79,107,255,.6)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.phone__label { margin-top: 12px; font-size: 15px; font-weight: 600; color: #fff; }
.phone__card {
  margin-top: 24px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 22px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  text-align: left;
}
.phone__card small { display: block; font-size: 11px; color: #a1a1a6; }
.phone__card strong { font-size: 14px; color: #fff; font-weight: 600; }
.dot {
  position: relative; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #30d158; box-shadow: 0 0 12px #30d158;
  animation: dot-glow 2s ease-in-out infinite;
}
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #30d158; animation: dot-ring 2s cubic-bezier(.2, .6, .4, 1) infinite;
}
@keyframes dot-glow { 50% { box-shadow: 0 0 4px #30d158; transform: scale(.85); } }
@keyframes dot-ring { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

/* Accensione del display, quando il telefono entra in vista (.hero__visual.in):
   scudo -> segno di spunta -> card del piano con loader -> "Protezione attiva" e pallino verde insieme.
   Le animazioni partono in pausa (stato iniziale nascosto) e si avviano con .in. */
.phone__shield svg { animation: shield-in .8s cubic-bezier(.34, 1.4, .64, 1) .45s both paused; }
.phone__check { stroke-dasharray: 1; animation: check-draw .45s cubic-bezier(.65, 0, .35, 1) 1.15s both paused; }
.phone__label { animation: screen-up .6s var(--ease) 2.95s both paused; } /* insieme al pallino verde */
.phone__card { animation: screen-up .7s var(--ease) 1.55s both paused; } /* mentre la spunta si chiude */
/* stato del piano: prima un loader, poi il pallino verde pulsante */
.phone__status { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 16px; height: 16px; }
.phone__status > * { grid-area: 1 / 1; }
.phone__loader {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2); border-top-color: #fff;
  animation: spin .8s linear infinite, loader-out .25s ease 2.9s forwards; animation-play-state: paused;
}
.phone__dot { display: grid; animation: dot-in .5s cubic-bezier(.34, 1.4, .64, 1) 2.95s both paused; }
.hero__visual.in :is(.phone__shield svg, .phone__check, .phone__label, .phone__card, .phone__loader, .phone__dot),
.js-off :is(.phone__shield svg, .phone__check, .phone__label, .phone__card, .phone__loader, .phone__dot) { animation-play-state: running; }
@keyframes loader-out { to { opacity: 0; } }
@keyframes dot-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .phone__loader { display: none; } }
@keyframes shield-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes check-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes screen-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Schermi bassi (portatili, iPhone SE): la card del telefono resta nel primo schermo */
@media (max-height: 820px) {
  .hero__visual { margin-top: 22px; }
  .phone__screen { padding-top: 58px; }
  .phone__shield svg { width: 68px; height: 68px; }
  .phone__label { margin-top: 8px; }
  .phone__card { margin-top: 16px; }
}

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--black); color: #f5f5f7; padding: 40px 0 100px; position: relative; }
.stats::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, #333, transparent); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; padding-top: 40px; }
.stat strong { display: block; font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.stat strong small { font-size: 24px; color: #86868b; font-weight: 600; }
.stat span { font-size: 14px; color: #86868b; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 120px 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--black); color: #f5f5f7; }
.section__head { text-align: center; margin-bottom: 64px; }
.section__head h2 {
  font-size: clamp(36px, 6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -.04em;
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--gray); border-radius: var(--radius);
  padding: 34px; min-height: 240px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: transform .5s var(--ease);
}
.tile:hover { transform: scale(1.015); }
.tile h3 { font-size: 26px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
.tile p { color: var(--muted); font-size: 17px; }
.tile__icon {
  width: 48px; height: 48px; border-radius: 14px; background: #fff;
  display: grid; place-items: center; margin-bottom: auto;
}
.tile__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile__icon--light { background: rgba(255,255,255,.18); }
.tile__icon--light svg { stroke: #fff; }

.tile--xl { grid-column: span 2; grid-row: span 2; flex-direction: row; align-items: stretch; justify-content: space-between; min-height: 500px; }
.tile--xl .tile__text { align-self: flex-end; max-width: 300px; }
.tile--xl h3 { font-size: 40px; }

.tile--blue { background: linear-gradient(160deg, #e6f1ff, #cfe3ff); }
.tile--wide { grid-column: span 2; min-height: 240px; }
.tile--grad { background: linear-gradient(120deg, #1d3bff 0%, #6e5bff 50%, #b14bff 100%); color: #fff; }
.tile--grad p { color: rgba(255,255,255,.82); max-width: 560px; }
.tile--grad h3 { font-size: 34px; }
.tile--grad > div { display: flex; flex-direction: column; gap: 10px; height: 100%; }

/* Card con illustrazione di sfondo (SVG in assets/img/coperture) */
.tile--photo {
  position: relative; overflow: hidden; isolation: isolate;
  background: #1d1d1f; color: #fff;
}
.tile--photo:hover { transform: none; }
.tile__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, center);
  transition: transform 1.2s var(--ease);
}
.tile--photo:hover .tile__bg { transform: scale(1.05); }
.tile--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.08) 75%);
}
.tile--photo p { color: rgba(255,255,255,.82); }
.tile__adj { color: rgba(255,255,255,.6); }
.tile--photo .tile__icon {
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.tile--photo .tile__icon svg { stroke: #fff; }
.tile--photo.tile--xl { align-items: flex-end; }
.tile--photo.tile--xl::after {
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 35%, rgba(0,0,0,0) 65%);
}
.tile--photo.tile--grad::after {
  background:
    linear-gradient(to top, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(120deg, rgba(29,59,255,.92) 0%, rgba(110,91,255,.72) 45%, rgba(177,75,255,.25) 100%);
}

/* ---------- Statement ---------- */
.statement { padding: 160px 0; text-align: center; }
.statement__text {
  font-size: clamp(32px, 5.4vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -.04em;
  color: var(--ink);
}
.statement__text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement__text em { font-style: normal; color: var(--muted); }
/* tra due sezioni bianche lo statement si stacca con il grigio chiaro
   (accanto a sezioni grigie o scure resta bianco, per non fondersi con loro) */
.section:not(.section--gray, .section--dark) + .statement:has(+ .section:not(.section--gray, .section--dark)) { background: var(--gray); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.plan {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 48px 40px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.plan__badge {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; color: #b64400;
}
.plan h3 { font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
.plan__price { font-size: 40px; font-weight: 700; letter-spacing: -.04em; margin: 22px 0 4px; }
.plan__range { margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.plan__price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.plan__list { width: 100%; margin-top: 34px; border-top: 1px solid var(--line); text-align: left; }
.plan__list li {
  padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px;
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  background-repeat: no-repeat; background-position: center; background-size: 20px;
}
.plan__list .yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2330d158'/%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan__list .no { color: #aeaeb2; }
.plan__list .no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' stroke='%23c7c7cc' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- Fees ---------- */
.fees { padding: 0 40px 28px 0; animation: fade .4s var(--ease); }
.fees .segmented { margin-bottom: 18px; }
.fees .fine { margin-top: 12px; }

.segmented {
  position: relative; display: inline-flex; flex-shrink: 0;
  background: #e8e8ed; border-radius: 10px; padding: 2px;
}
.segmented button {
  position: relative; z-index: 1; padding: 6px 18px; font-size: 14px; font-weight: 500;
  border-radius: 8px; color: var(--ink-2); transition: color .2s;
}
.segmented button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.segmented__thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px);
  background: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: transform .35s var(--ease);
}
.segmented[data-active="apple"] .segmented__thumb { transform: translateX(100%); }

/* Segmented con radio button (checkout): stesse dimensioni e animazione, larghezza piena */
.segmented--radio label { position: relative; z-index: 1; flex: 1; cursor: pointer; }
.cf .segmented--radio label { margin: 0; } /* annulla il margine di .cf label */
.segmented--radio input { position: absolute; opacity: 0; pointer-events: none; }
.segmented--radio label > span {
  display: block; padding: 8px 18px; border-radius: 8px; text-align: center;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .2s;
}
.segmented--radio input:checked + span { color: var(--ink); font-weight: 600; }
.segmented--radio input:focus-visible + span { outline: 3px solid rgba(0,113,227,.4); outline-offset: 1px; }
.segmented--radio:has(label:nth-of-type(2) input:checked) .segmented__thumb { transform: translateX(100%); }

.fees__row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px;
}
.fees__row:last-child { border-bottom: 0; }
.fees__row--head { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: 0; }
.fees__row b { font-weight: 600; transition: opacity .2s; }
.fees__row b.swap { opacity: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--gray); border-radius: var(--radius); padding: 36px; }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 600; margin-bottom: 60px;
}
.step h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 8px; }
.step p { color: var(--muted); }

.claim {
  margin-top: 20px; border-radius: var(--radius); padding: 56px;
  background: var(--black); color: #f5f5f7;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.claim h3 { font-size: 40px; line-height: 1.08; font-weight: 700; letter-spacing: -.04em; }
.claim__copy > p:not(.eyebrow) { color: #a1a1a6; margin: 16px 0 28px; }
.claim__track { position: relative; display: grid; gap: 28px; padding-left: 8px; }
.claim__track::before { content: ""; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px; background: #333; }
.claim__track li { position: relative; display: flex; align-items: center; gap: 18px; color: #6e6e73; font-weight: 500; }
.claim__track li span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #333; border: 3px solid var(--black); box-sizing: content-box; }
.claim__track .done { color: #f5f5f7; }
.claim__track .done span { background: #30d158; }
.claim__track .now { color: #fff; }
.claim__track .now span { background: var(--link-dark); box-shadow: 0 0 0 6px rgba(41,151,255,.25); animation: ping 2s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 10px rgba(41,151,255,0); } }

/* ---------- Flex grid ---------- */
.flex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.flex-card { background: #fff; border-radius: var(--radius); padding: 40px; min-height: 230px; display: flex; flex-direction: column; }
.flex-card h3 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.flex-card p { color: var(--muted); margin-top: 8px; }
.chips { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; flex-wrap: wrap; }
.chips span {
  min-width: 52px; height: 52px; display: grid; place-items: center; padding: 0 14px;
  border-radius: 14px; background: var(--gray); font-weight: 600; font-size: 19px;
}
.chips span.on { background: var(--blue); color: #fff; }
.chips--text span { height: 40px; font-size: 14px; font-weight: 500; border-radius: 980px; }

/* Loghi dei metodi di pagamento */
.paylogos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
.paylogo {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; min-width: 66px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.paylogo img { display: block; width: auto; height: 18px; }
.paylogo--visa img { height: 40px; }
.paylogo--mastercard img { height: 24px; }
.paylogo--amex img { height: 30px; }
.paylogo--klarna img { height: 22px; }
.paylogo--scalapay img { height: 16px; }
.paylogo--text img { height: 18px; }

/* ---------- Brands ---------- */
/* Marche e centri assistenza autorizzati */
#brand .section__head .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.oems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.oem a {
  display: flex; flex-direction: column; height: 100%; min-height: 168px; padding: 24px;
  background: var(--gray); border-radius: var(--radius-sm);
  transition: transform .4s var(--ease), background .3s;
}
.oem a:hover { transform: translateY(-3px); background: #ececf0; }
.oem__logo { display: flex; align-items: center; height: 40px; margin-bottom: auto; }
.oem__logo img { display: block; width: auto; height: 32px; max-width: 100%; }
/* loghi in forma di scritta: dimensionati in larghezza */
.oem__logo--samsung img, .oem__logo--sony img, .oem__logo--honor img { width: 96px; height: auto; }
.oem__logo--oppo img, .oem__logo--realme img { width: 80px; height: auto; }
.oem__name { margin-top: 20px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.oem__line { font-size: 13px; color: var(--muted); }

.oem-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.oem-points li { display: flex; gap: 16px; align-items: flex-start; }
.oem-points svg { flex-shrink: 0; width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.oem-points h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.oem-points p { font-size: 15px; color: var(--muted); margin-top: 2px; }

/* ---------- Reviews ---------- */
/* Recensioni Trustpilot */
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.reviews__head h2 { font-size: clamp(36px, 6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -.04em; }
.reviews__score { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.reviews__score strong {
  font-size: 72px; font-weight: 800; letter-spacing: -.05em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reviews__stars { display: block; width: 120px; height: auto; }
.reviews__score p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #a1a1a6; }
.reviews__score b { color: #f5f5f7; font-weight: 600; }
.reviews__score a { white-space: nowrap; }
.reviews__tp { display: inline-block; width: 84px; height: auto; margin-left: 4px; vertical-align: -4px; }
.reviews__foot { margin-top: 28px; }

.carousel__nav { display: flex; gap: 12px; flex-shrink: 0; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #2c2c2e; color: #f5f5f7; transition: background .2s, opacity .2s;
}
.carousel__btn:hover:not(:disabled) { background: #3a3a3c; }
.carousel__btn:disabled { opacity: .3; cursor: default; }

.carousel {
  display: flex; gap: 16px; align-items: stretch;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 4px max(22px, calc((100vw - var(--container)) / 2 + 22px)) 8px;
  scroll-padding-inline: max(22px, calc((100vw - var(--container)) / 2 + 22px));
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline: none; }
.rcard {
  flex: 0 0 360px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius); background: #1d1d1f; color: #f5f5f7;
}
.rcard__head { display: flex; align-items: center; gap: 12px; }
.rcard__avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--avatar, #3a3a3c); color: #fff; font-size: 15px; font-weight: 600;
}
.rcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rcard__author { font-size: 16px; font-weight: 600; line-height: 1.25; }
.rcard__date { display: block; font-size: 13px; color: #86868b; font-weight: 400; }
.rcard__stars { display: block; width: 96px; height: auto; }
.rcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.rcard__text {
  font-size: 15px; line-height: 1.5; color: #d2d2d7;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.rcard.is-open .rcard__text { -webkit-line-clamp: unset; }
/* con una recensione espansa le altre non si allungano */
.carousel:has(.rcard.is-open) { align-items: flex-start; }
.rcard__more { align-self: flex-start; margin-top: auto; padding: 0; color: var(--link-dark); font-size: 15px; }
.rcard__more:hover { text-decoration: underline; }
/* ultima card del carosello: invito alla pagina recensioni */
.rcta {
  flex: 0 0 360px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 28px; border-radius: var(--radius); text-align: center; color: #f5f5f7;
  background: radial-gradient(120% 90% at 50% 0%, #1b2a6b 0%, #111327 60%, #1d1d1f 100%);
  box-shadow: 0 0 0 1px rgba(124,196,255,.18) inset;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.rcta:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(124,196,255,.35) inset; }
.rcta__score { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.rcta__stars { width: 120px; height: auto; }
.rcta__title { margin-top: 8px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.rcta__text { max-width: 240px; font-size: 15px; line-height: 1.45; color: #a1a1a6; }
.rcta__btn { margin-top: 12px; pointer-events: none; }
.rcta:focus-visible { outline: 4px solid rgba(0,113,227,.5); outline-offset: 2px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease);
}
.faq details[open]:not([data-closing]) summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > p { color: var(--ink-2); padding: 0 40px 28px 0; animation: fade .4s var(--ease); }
.faq details > p:has(+ .fees) { padding-bottom: 20px; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA ---------- */
.cta { padding: 140px 0; text-align: center; background: var(--gray); }
.cta h2 { font-size: clamp(48px, 8vw, 88px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.cta p { font-size: 21px; color: var(--muted); margin-top: 14px; }
.cta__buttons { margin-top: 36px; display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--gray); color: var(--muted); font-size: 12px; letter-spacing: -.01em; padding: 40px 0 24px; }
.footer .container { border-top: 1px solid var(--line); padding-top: 34px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer h4 { color: var(--ink); font-weight: 600; margin-bottom: 10px; font-size: 12px; }
.footer__cols a { display: block; margin-bottom: 8px; }
.footer a:hover { text-decoration: underline; color: var(--ink); }
.footer__legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.6; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.footer__bottom nav { display: flex; gap: 0; }
.footer__bottom nav a { padding: 0 10px; border-left: 1px solid var(--line); }
.footer__bottom nav a:first-child { border-left: 0; padding-left: 0; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--xl { grid-column: span 2; grid-row: auto; min-height: 420px; }
  .tile--wide { grid-column: span 2; }
}

@media (max-width: 833px) {
  .nav__inner { padding: 0 16px 0 20px; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; height: 0; overflow: hidden;
    flex-direction: column; gap: 0; padding: 0 28px; border-radius: 26px;
    /* opaco: un backdrop-filter annidato in quello della barra non viene applicato */
    background: #161617;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 16px 40px rgba(0,0,0,.3);
    font-size: 28px; font-weight: 600; letter-spacing: -.03em;
    transition: height .45s var(--ease), padding .45s var(--ease);
  }
  .nav.open .nav__links { height: calc(100dvh - 96px); padding-top: 20px; padding-bottom: 20px; overflow-y: auto; }
  .nav__links a { padding: 8px 0; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
  .nav.open .nav__links a { opacity: 1; transform: none; }
  .nav__mobile-only { display: block; }
  .nav__burger { display: block; }
  .nav__icon { display: none; }

  .section { padding: 90px 0; }
  .section__head { margin-bottom: 44px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .plans, .steps, .flex-grid { grid-template-columns: 1fr; }
  .oems { grid-template-columns: repeat(2, 1fr); }
  .oem-points { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .claim { grid-template-columns: 1fr; padding: 40px 28px; }
  .claim h3 { font-size: 32px; }
  .step__num { margin-bottom: 32px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .phone { width: 240px; height: 500px; border-radius: 46px; }
  .phone__screen { border-radius: 36px; padding-top: 62px; }
  .phone__shield svg { width: 72px; height: 72px; }
  .halo { width: 420px; height: 420px; }
  .bento { grid-template-columns: 1fr; }
  .tile--xl, .tile--wide { grid-column: auto; }
  .tile.tile--xl { min-height: 400px; }
  .tile--xl h3 { font-size: 32px; }
  .tile { padding: 28px; min-height: 200px; }
  .statement { padding: 110px 0; }
  .fees { padding-right: 0; }
  .fees__row { font-size: 15px; grid-template-columns: 1.3fr 1fr 1fr; }
  .plan { padding: 44px 26px 30px; }
  .flex-card { padding: 30px; min-height: 0; }
  .oems { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .reviews__head { align-items: flex-start; flex-direction: column; }
  .carousel__nav { display: none; }
  .rcard, .rcta { flex-basis: 86%; padding: 24px; }
  .oem a { min-height: 140px; padding: 20px; }
  .faq summary { font-size: 18px; }
  .cta { padding: 100px 0; }
  .footer__bottom nav a { padding: 0 8px; }
}

/* =========================================================
   PREVENTIVO
   ========================================================= */
.quote__layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }

.qstep { border: 0; margin: 0 0 44px; padding: 0; min-width: 0; transition: opacity .3s var(--ease); }
.qstep legend, .qstep__legend {
  display: block; padding: 0; margin-bottom: 18px;
  font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -.02em; color: var(--muted);
}
.qstep legend b, .qstep__legend b { color: var(--ink); font-weight: 600; }
.qstep.is-disabled { opacity: .35; pointer-events: none; }

/* Brand options — Apple Store style tiles */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span {
  display: flex; align-items: center; justify-content: center;
  height: 64px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #86868b; font-size: 17px; font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.opt input:focus-visible + span { outline: 4px solid rgba(0,113,227,.4); outline-offset: 2px; }
#qBrands { grid-template-columns: repeat(var(--n, 3), 1fr); }
.opt--more { padding: 0; width: 100%; text-align: inherit; }
.opt--more span { gap: 8px; }
.opt--more i {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease);
}
.opt--more[aria-expanded="true"] span { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.opt--more[aria-expanded="true"] i { transform: translateY(2px) rotate(-135deg); }
.opt--more:focus-visible { outline: none; }
.opt--more:focus-visible span { outline: 4px solid rgba(0,113,227,.4); outline-offset: 2px; }
.opts--more { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); animation: fade .4s var(--ease); }
.opts--more[hidden] { display: none; }
.opt--skeleton { height: 64px; border-radius: 12px; background: linear-gradient(90deg, var(--gray), #ececf0, var(--gray)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Fields */
.field { position: relative; }
.field input {
  width: 100%; height: 56px; padding: 0 18px;
  font: inherit; font-size: 17px; color: var(--ink); letter-spacing: -.02em;
  background: #fff; border: 1px solid #86868b; border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.2); }
.field input::placeholder { color: #aeaeb2; }
.field--price input { padding-right: 48px; font-size: 24px; font-weight: 600; height: 64px; }
.field--price span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 21px; color: var(--muted); font-weight: 600; }
.field__msg { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: -.01em; }
.field__msg.is-error { color: #e30000; }

.quote__submit { width: 100%; gap: 10px; }
.quote__submit:disabled { background: #e8e8ed; color: #aeaeb2; cursor: not-allowed; transform: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.quote__submit.is-loading { background: var(--btn-grad); color: #fff; }
.quote__submit.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote__error { margin-top: 14px; color: #e30000; font-size: 15px; }

/* Summary */
.quote__summary {
  position: sticky; top: 80px;
  background: var(--gray); border-radius: var(--radius); padding: 32px;
}
.qsum { margin: 0 0 8px; }
.qsum div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.qsum dt { color: var(--muted); }
.qsum dd { margin: 0; font-weight: 600; text-align: right; }

.quote__empty { text-align: center; padding: 48px 12px 24px; color: #aeaeb2; }
.quote__empty svg { margin: 0 auto 16px; }
.quote__empty p { color: var(--muted); font-size: 15px; max-width: 260px; margin: 0 auto; }

.quote__result { padding-top: 22px; animation: fade .5s var(--ease); }
.quote__result h3 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 18px; }
.qplans { display: grid; gap: 12px; }
.qplan {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: #fff; border-radius: 14px; padding: 18px; border: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.qplan input { position: absolute; opacity: 0; }
.qplan:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.qplan:has(input:focus-visible) { outline: 4px solid rgba(0,113,227,.4); outline-offset: 2px; }
.qplan__body { flex: 1; min-width: 0; }
.qplan__name { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.qplan__name em { display: block; margin-bottom: 2px; font-style: normal; font-size: 11px; font-weight: 600; color: #b64400; }
.qplan__desc { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.qplan__price { font-size: 22px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; text-align: right; }
.qplan__price small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.qplan__save { display: block; font-size: 11px; font-weight: 600; color: #248a3d; letter-spacing: 0; margin-top: 2px; }
/* la riga dello sconto occupa sempre il suo spazio: l'altezza della card non cambia tra 12 e 24 mesi */
.qplan__save.is-empty { visibility: hidden; }

.quote__result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.quote__result h3 { margin-bottom: 0; }
.segmented--dur .segmented__thumb { width: calc((100% - 4px) / var(--n, 2)); transform: translateX(calc(var(--i, 0) * 100%)); }
.segmented--dur[hidden] { display: none; }

.qinc { margin-top: 14px; background: #fff; border-radius: 12px; }
.qinc summary {
  list-style: none; cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.qinc summary::-webkit-details-marker { display: none; }
.qinc summary::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease);
}
.qinc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qinc__body { padding: 0 14px 14px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.qinc__body p + p { margin-top: 8px; }

.qfees { margin-top: 14px; font-size: 13px; line-height: 1.4; color: var(--muted); letter-spacing: -.01em; }

.quote__buy { width: 100%; margin-top: 22px; }
.quote__perks { margin-top: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.quote__perks li { padding-left: 22px; position: relative; }
.quote__perks li::before { content: "✓"; position: absolute; left: 0; color: #30d158; font-weight: 700; }

@media (max-width: 833px) {
  .quote__layout { grid-template-columns: 1fr; gap: 32px; }
  .quote__summary { position: static; padding: 24px; }
  .qstep legend, .qstep__legend { font-size: 21px; }
}
@media (max-width: 600px) {
  .opts { grid-template-columns: repeat(2, 1fr); }
  .opt span { height: 56px; font-size: 16px; }
  .qplan { padding: 16px 14px; }
  .qplan__price { font-size: 19px; }
}

/* ---------- Ricerca modello (combobox) ---------- */
.combo { position: relative; }
.field--search input { padding-left: 46px; padding-right: 48px; }
/* modello scritto o scelto: in grassetto; il placeholder resta normale */
.field--search input:not(:placeholder-shown) { font-weight: 600; }
.field__icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.combo.is-manual .field__icon { display: none; }
.combo.is-manual .field--search input { padding-left: 18px; }
.combo__clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #c7c7cc; color: #fff; transition: background .2s;
}
.combo__clear:hover { background: var(--muted); }
.combo__clear[hidden] { display: none; }

.combo__list {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0;
  max-height: 344px; overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; background: #fff; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.14);
  animation: fade .2s var(--ease);
}
.combo__list[hidden] { display: none; }
.combo__list [role=option] {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 16px;
}
.combo__list [role=option]:hover, .combo__list [role=option].is-active { background: var(--gray); }
.combo__list [role=option][aria-selected="true"] { color: var(--blue); }
.combo__list img, .combo__ph { flex-shrink: 0; width: 32px; height: 40px; object-fit: contain; }
.combo__list img.is-broken { visibility: hidden; }
.combo__list mark { background: none; color: inherit; font-weight: 700; }
.combo__status { display: flex; align-items: center; gap: 10px; padding: 12px 10px; font-size: 14px; color: var(--muted); }
.combo__list .combo__manual {
  display: block; margin-top: 4px; padding: 12px 10px; font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--line); border-radius: 0 0 10px 10px;
}
.combo__manual b { color: var(--link); font-weight: 500; }
.spinner--dark { display: inline-block; width: 14px; height: 14px; border-color: rgba(0,0,0,.12); border-top-color: var(--muted); }
.field__msg:empty { display: none; }
.field__msg button { color: var(--link); font-size: inherit; padding: 0; }
.field__msg button:hover { text-decoration: underline; }

/* =========================================================
   CHECKOUT (modal)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.modal-open { overflow: hidden; }

.modal {
  padding: 0; border: 0; border-radius: 28px;
  width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal[open] { animation: modal-in .4s var(--ease); }
.modal[open]::backdrop { animation: backdrop-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }

.co { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.co__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px 12px; }
.co__head h2:focus { outline: none; }
.co__head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.co__close {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: #e8e8ed; color: var(--ink-2); transition: background .2s;
}
.co__close:hover { background: #d2d2d7; }
.co__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 28px; }

.co__summary {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: start;
  background: var(--gray); border-radius: 18px; padding: 18px 20px;
}
.co__sum-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.co__sum-row strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.co__sum-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.co__edit { color: var(--link); font-size: 14px; }
.co__edit:hover { text-decoration: underline; }

.co__group { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.co__group legend { padding: 0; margin-bottom: 14px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.co__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 12px; }
.cf { grid-column: span 3; min-width: 0; }
.cf--full { grid-column: span 6; }
.cf__optional { font-weight: 400; color: var(--muted); }
/* Condizioni e Disponibilità: affiancate solo se la griglia è abbastanza larga (modal, pagina su schermi ampi) */
.co__grid { container-type: inline-size; }
.cf--choice { grid-column: span 6; }
@container (min-width: 600px) { .cf--choice { grid-column: span 3; } }
.cf--zip { grid-column: span 2; }
.cf--city { grid-column: span 3; }
.cf--prov { grid-column: span 1; }
.cf label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cf input {
  width: 100%; height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: -.01em;
  background: #fff; border: 1px solid #86868b; border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.cf input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.2); }
.cf input[aria-invalid="true"] { border-color: #e30000; }
.cf input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(227,0,0,.15); }
.cf__msg { margin-top: 6px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.cf__msg.is-error { color: #e30000; }
.cf__msg[hidden] { display: none; }

.co__label { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.co__modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.cf .segmented { display: flex; max-width: 306px; }
.cf__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.co__methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co__pay[hidden] { display: none; }
.co__opt { position: relative; display: block; cursor: pointer; }
.co__opt input { position: absolute; opacity: 0; }
.co__opt span {
  display: flex; flex-direction: column; justify-content: center; min-height: 52px;
  padding: 10px 14px; border: 1px solid #86868b; border-radius: 12px;
  font-size: 15px; font-weight: 500; line-height: 1.25;
  transition: border-color .2s, box-shadow .2s;
}
.co__opt:hover span { border-color: var(--ink); }
.co__opt.is-disabled { cursor: not-allowed; opacity: .45; }
.co__opt.is-disabled:hover span { border-color: #86868b; }
.co__opt input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.co__opt input:focus-visible + span { outline: 4px solid rgba(0,113,227,.4); outline-offset: 2px; }
/* metodi di pagamento: nome (con dettaglio) e loghi */
.co__mname { display: block; font-weight: inherit; }
.co__mlogos { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-style: normal; }
.co__mlogo { display: block; width: auto; height: 16px; }
.co__mlogo--visa { height: 28px; margin: -6px -4px; }
.co__mlogo--mastercard { height: 16px; }
.co__mlogo--amex { height: 22px; margin: -3px -2px; }
.co__mlogo--paypal { height: 16px; }
.co__mlogo--klarna { height: 18px; }
.co__mlogo--scalapay { height: 14px; }
.co__mlogo--bonifico { height: 20px; opacity: .7; }
.co__opt span small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.co__opt--mode span { min-height: 92px; padding: 14px 16px; }
.co__opt--mode b { font-size: 16px; font-weight: 600; }
.co__opt--mode em { display: block; margin-top: 8px; font-style: normal; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

/* Simulazione 3 rate (PayPal, Klarna, Scalapay) */
.co__bnpl { margin-top: 14px; padding: 18px; border-radius: 14px; background: var(--gray); animation: fade .35s var(--ease); }
.co__bnpl[hidden] { display: none; }
.co__bnpl-title { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.co__bnpl-title b { color: var(--ink); }
.co__bnpl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co__bnpl-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.co__bnpl-steps i {
  width: 22px; height: 22px; border-radius: 50%; margin-bottom: 6px;
  background: conic-gradient(var(--blue) calc(var(--p) * 360deg), #d2d2d7 0);
}
.co__bnpl-steps strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.co__bnpl-steps span { font-size: 13px; color: var(--muted); }
.co__bnpl .fine { margin-top: 12px; }

/* Pagamento mensile (solo carta) */
.co__monthly { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--gray); color: var(--ink-2); font-size: 15px; animation: fade .35s var(--ease); }
.co__monthly svg { flex-shrink: 0; color: var(--blue); }
.co__monthly b { color: var(--ink); }

.co__consents { margin-top: 24px; }
.co__check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.co__check input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.co__check[hidden] { display: none; }
.co__info-link { padding: 0; color: var(--link); font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer; }
.co__info-link:hover { text-decoration-thickness: 2px; }

/* Finestra informativa (ispezione online), sopra il checkout */
.modal--info { width: min(520px, calc(100vw - 32px)); }
.info { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
/* intestazione propria: non eredita le spaziature della pagina /checkout/ */
.info__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 28px 14px; }
.info__head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.info__head h2:focus { outline: none; }
.info__body { overflow-y: auto; padding: 0 28px 8px; }
.info__lead { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.info__steps { list-style: none; display: grid; gap: 18px; margin: 24px 0 0; padding: 0; }
.info__steps li { display: flex; gap: 14px; align-items: flex-start; }
.info__num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(90deg, #2897ff 0%, #4c68d9 100%); color: #fff; font-size: 14px; font-weight: 700;
}
.info__steps h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.info__steps p { margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.info__foot { padding: 20px 28px 28px; }
@media (max-width: 600px) {
  .info { max-height: calc(100dvh - 16px); }
  .info__head { padding: 24px 20px 12px; }
  .info__head h2 { font-size: 24px; }
  .info__body { padding: 0 20px 8px; }
  .info__foot { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); }
}
.info__foot .btn { width: 100%; }
.co__check a { color: var(--link); }
.co__check a:hover { text-decoration: underline; }

.co__error { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff1f0; color: #c00; font-size: 14px; }
.co__error[hidden] { display: none; }

.co__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px; border-top: 1px solid var(--line); background: #fff;
}
.co__total span { display: block; font-size: 12px; color: var(--muted); }
.co__total strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.co__total small { display: block; font-size: 12px; color: var(--muted); }
.co__submit { gap: 10px; min-width: 240px; }
.co__submit.is-loading .spinner { display: inline-block; }

.co.is-done .co__body, .co.is-done .co__foot { display: none; }
.co__done { padding: 24px 28px 44px; text-align: center; animation: fade .4s var(--ease); }
.co__done-icon svg { margin: 0 auto 18px; }
.co__done h3 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.co__done p { max-width: 440px; margin: 10px auto 0; color: var(--ink-2); }
.co__done-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.co__done-actions .btn[hidden] { display: none; }
/* "Chiudi" come link quando c'è "Vai al pagamento" */
.co__done .co__done-close { min-height: 0; padding: 0; background: none; color: var(--link); font-size: 15px; }
.co__done .co__done-close:hover { filter: none; text-decoration: underline; }

@media (max-width: 600px) {
  .modal {
    width: 100%; max-height: calc(100dvh - 16px);
    margin: auto 0 0; border-radius: 24px 24px 0 0;
  }
  .modal[open] { animation: sheet-in .45s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .co { max-height: calc(100dvh - 16px); }
  .co__head { padding: 20px 20px 10px; }
  .co__head h2 { font-size: 24px; }
  .co__body { padding: 6px 20px 24px; }
  .co__summary { grid-template-columns: 1fr auto; }
  .co__summary .co__sum-row:nth-child(2) { grid-row: 2; }
  .co__edit { grid-column: 2; grid-row: 1; }
  .cf, .cf--full { grid-column: span 6; }
  .cf--zip { grid-column: span 2; }
  .cf--city { grid-column: span 3; }
  .cf--prov { grid-column: span 1; }
  .co__methods { grid-template-columns: repeat(2, 1fr); }
  .co__opt--mode span { min-height: 0; padding: 12px; }
  .co__opt--mode span small { display: none; }
  .co__foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .co__total { min-width: 0; }
  .co__submit { min-width: 0; flex: none; white-space: nowrap; font-size: 16px; padding: 14px 20px; }
  .co__total strong { font-size: 20px; }
}

/* Checkout su pagina separata (/checkout/): stesso modulo della modal, senza scroll interno.
   Desktop: dati a sinistra, riepilogo con totale e conferma a destra (sticky).
   Tablet e mobile: una colonna, riepilogo in alto e totale fisso in basso. */
.co-page { padding: 100px 0 80px; background: var(--gray); min-height: 100vh; }
.co-page .co { max-height: none; }
.co-page .co__head h1 { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.co-page .co__head h1:focus { outline: none; }
.co-page .co__body { overflow: visible; }
.co-page .co__edit { white-space: nowrap; }
/* dispositivo assicurato, in testa alla sezione "Il tuo dispositivo" */
.co__device { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 16px 20px; border-radius: 18px; background: var(--gray); }
.co__device strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.co-page .co.is-done .co__head, .co-page .co.is-done .co__aside { display: none; }
.co-page__card[hidden], .co-page__empty[hidden] { display: none; }
.co-page__empty { max-width: 720px; margin: 0 auto; padding: 72px 32px; border-radius: 28px; background: #fff; text-align: center; }
.co-page__empty h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.co-page__empty p { margin: 12px auto 28px; max-width: 420px; color: var(--muted); }

@media (min-width: 901px) {
  .co-page .co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: stretch; }
  .co-page .co__head { grid-column: 1 / -1; padding: 4px; }
  /* colonna sinistra: "Il tuo dispositivo" e "I tuoi dati" in card separate, consensi sotto */
  .co-page .co__body { align-self: start; display: flex; flex-direction: column; gap: 20px; padding: 0; }
  .co-page .co__body > .co__group { margin: 0; }
  .co-page .co__body > .co__group:not(.co__consents) { padding: 28px 28px 32px; border-radius: 28px; background: #fff; }
  /* legend come elemento normale, così rispetta il padding della card */
  .co-page .co__body > .co__group:not(.co__consents) > legend { float: left; width: 100%; }
  .co-page .co__body > .co__group:not(.co__consents) > legend + * { clear: both; }
  .co-page .co__consents { padding: 4px 8px 0; }
  .co-page .co__body > .co__error { margin: 0; }
  /* colonna destra alta quanto il modulo: totale e conferma restano visibili in basso mentre si scorre */
  .co-page .co__aside { display: flex; flex-direction: column; padding: 24px 24px 0; border-radius: 28px; background: #fff; }
  .co-page .co__summary { grid-template-columns: 1fr auto; row-gap: 14px; }
  .co-page .co__summary .co__sum-row:nth-child(2) { grid-row: 2; }
  .co-page .co__edit { grid-column: 2; grid-row: 1; }
  .co-page .co__aside .co__group { margin-top: 24px; }
  .co-page .co__opt--mode span { min-height: 0; padding: 12px 14px; }
  .co-page .co__opt--mode span small { display: none; }
  .co-page .co__opt--mode em { margin-top: 4px; }
  /* metodi di pagamento uno per riga: nome e dettaglio a sinistra, loghi a destra */
  .co-page .co__methods { grid-template-columns: 1fr; gap: 8px; }
  .co-page .co__methods .co__opt span { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
  .co-page .co__methods .co__mlogos { margin-top: 0; }
  .co-page .co__foot {
    position: sticky; bottom: 0; margin: auto -24px 0; padding: 20px 24px 24px;
    flex-direction: column; align-items: stretch; gap: 14px;
    border-radius: 0 0 28px 28px; box-shadow: 0 -10px 24px rgba(0,0,0,.05);
  }
  .co-page .co__aside .co__group:last-of-type { margin-bottom: 24px; }
  .co-page .co__total strong { font-size: 30px; }
  .co-page .co__submit { width: 100%; min-width: 0; }
  .co-page .co__done { grid-column: 1 / -1; align-self: start; max-width: 720px; width: 100%; margin: 0 auto; padding: 56px 32px 64px; border-radius: 28px; background: #fff; }
}
@media (max-width: 900px) {
  .co-page { padding: 92px 0 0; }
  .co-page__wrap { max-width: 720px; }
  .co-page__card { border-radius: 28px 28px 0 0; background: #fff; }
  .co-page .co { display: flex; flex-direction: column; }
  /* una colonna: riepilogo in cima, pagamento prima dei consensi, totale in fondo */
  .co-page .co__aside, .co-page .co__body { display: contents; }
  .co-page .co__head { order: 1; padding: 28px 28px 12px; }
  .co-page .co__summary { order: 2; margin: 8px 28px 0; }
  .co-page .co__body > *, .co-page .co__aside .co__group { order: 3; margin-left: 28px; margin-right: 28px; }
  .co-page .co__aside .co__group { order: 4; }
  .co-page .co__consents { order: 5; }
  .co-page .co__error { order: 6; }
  .co-page .co__consents, .co-page .co__error:not([hidden]) { margin-bottom: 28px; }
  .co-page .co__foot { order: 7; position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 24px rgba(0,0,0,.04); }
  .co-page .co__done { order: 8; padding: 48px 28px 56px; }
}
@media (max-width: 600px) {
  .co-page { padding-top: 84px; }
  .co-page__wrap { padding: 0; }
  .co-page__card, .co-page__empty { border-radius: 24px 24px 0 0; }
  .co-page .co { max-height: none; }
  .co-page .co__head { padding: 24px 20px 10px; }
  .co-page .co__head h1 { font-size: 28px; }
  .co-page .co__summary { margin: 6px 20px 0; }
  .co-page .co__body > *, .co-page .co__aside .co__group { margin-left: 20px; margin-right: 20px; }
  .co-page .co__consents { margin-bottom: 24px; }
  .co-page .co__foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   PAGINE INTERNE (router)
   ========================================================= */
.nav__links a[aria-current="page"] { opacity: 1; color: #fff; }

/* Sottomenu (desktop: pannello al passaggio del mouse / focus) */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__subtoggle { display: none; }
.nav__sub {
  position: absolute; top: calc(100% + 22px); left: -24px; min-width: 240px;
  padding: 18px 20px 16px; border-radius: 20px;
  background: rgba(22, 22, 23, .96); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 16px 40px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
/* ponte invisibile tra voce e pannello, per non perdere l'hover */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__subtitle { font-size: 11px; color: #86868b; margin-bottom: 8px; }
.nav__sub ul { list-style: none; display: grid; gap: 2px; }
.nav__sub ul a { display: block; padding: 5px 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #f5f5f7; }
.nav__suball { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--link-dark); opacity: 1 !important; }
.nav__suball:hover { text-decoration: underline; }

/* Sottomenu su mobile: lista espandibile nel menu a pannello */
@media (max-width: 833px) {
  .nav__item { flex-wrap: wrap; justify-content: space-between; }
  .nav__subtoggle {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #f5f5f7;
    background: rgba(255,255,255,.08); transition: transform .3s var(--ease);
  }
  .nav__subtoggle svg { width: 14px; height: 14px; }
  .nav__item.is-open .nav__subtoggle { transform: rotate(180deg); }
  .nav__sub {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 8px 2px; border-radius: 0;
    background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav__sub::before { display: none; }
  .nav__item.is-open .nav__sub { display: block; }
  .nav__subtitle { display: none; }
  .nav__sub ul a { font-size: 19px; font-weight: 500; color: #d2d2d7; padding: 6px 0; }
  .nav__suball { font-size: 15px; }
  .nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
}

/* Breadcrumb */
.crumbs { padding: 88px 0 0; font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #aeaeb2; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.crumbs--dark { padding-top: 0; margin-bottom: 36px; }
.crumbs--dark ol { justify-content: center; color: #86868b; }
.crumbs--dark a { color: #d2d2d7; }
.crumbs--dark a:hover { color: #fff; }

/* Hero pagine prodotto */
.phero { background: var(--black); color: #f5f5f7; padding: clamp(92px, 13vh, 128px) 0 96px; text-align: center; position: relative; overflow: hidden; }
.phero::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 760px; height: 760px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(79,107,255,.35) 0%, rgba(124,196,255,.1) 40%, transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.phero__copy { position: relative; max-width: 860px; }
.phero__title { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -.045em; }
.phero__lead { margin: 22px auto 0; max-width: 680px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; color: #a1a1a6; }
.phero__lead b { color: #f5f5f7; font-weight: 600; }
.phero__valid { margin-top: 26px; }
.phero__valid span { display: block; font-size: 13px; color: #86868b; margin-bottom: 10px; }
.phero__valid ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.phero__valid li { padding: 7px 14px; border-radius: 980px; border: 1px solid #3a3a3c; font-size: 14px; color: #e8e8ed; }
.phero__extra { margin-top: 16px; font-size: 15px; color: #a1a1a6; }
.phero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px; }
.phero__price { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.phero__price strong { font-size: 34px; font-weight: 700; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero__price small { font-size: 12px; color: #86868b; }
.statement__note { margin: 24px auto 0; max-width: 560px; font-size: 14px; color: var(--muted); }

.oem__logo--text {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 18px;
}

/* Intestazione pagine di contenuto */
.pagehead { padding: 40px 0 72px; text-align: center; }
.pagehead__title { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -.045em; }
.pagehead__lead { margin: 20px auto 0; max-width: 680px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; color: var(--muted); }
.pagehead__lead--small { max-width: 520px; font-size: 18px; }
.pagehead__note { margin: 28px auto 0; max-width: 460px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pagehead__note a { color: var(--link); }
.pagehead__note a:hover { text-decoration: underline; }
.pagehead__actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.pagehead--404 { padding: 160px 0 140px; }

/* Blocchi di contenuto */
.block { padding: 0 0 80px; }
.block__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 22px; }
.block--steps .block__title, .block--cards .block__title { text-align: center; margin-bottom: 36px; }
.block__p { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.block__p + .block__p { margin-top: 14px; }
.checks { display: grid; gap: 12px; margin-top: 22px; }
.checks li { position: relative; padding-left: 34px; font-size: 18px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #30d158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.specs { border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 32px; border-radius: var(--radius); background: var(--gray); }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
/* numero di colonne fisso ('columns' nel blocco) e scheda a tutta riga ('wide') */
.cards[style*="--cols"] { grid-template-columns: repeat(var(--cols), 1fr); }
.card--wide { grid-column: 1 / -1; }
.card__icon {
  width: 32px; height: 32px; margin-bottom: 14px;
  fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 833px) { .cards[style*="--cols"] { grid-template-columns: 1fr; } }
.card p { color: var(--muted); margin-bottom: 6px; }
.card .link { font-size: 16px; }
.embed { border-radius: var(--radius); overflow: hidden; background: var(--gray); box-shadow: 0 0 0 1px var(--line); }
.embed iframe { display: block; width: 100%; border: 0; }
.docs { display: grid; gap: 14px; }
.docs__group { padding: 24px 28px; border-radius: var(--radius-sm); background: var(--gray); display: flex; flex-direction: column; gap: 6px; }
.docs__group h3 { font-size: 19px; font-weight: 600; }
.docs__note { font-size: 13px; color: var(--muted); }
.docs__link { color: var(--link); align-self: flex-start; }
.docs__link:hover { text-decoration: underline; }
.docs__link::before { content: "↓ "; }

/* Recensioni in griglia (pagina /recensioni/) */
/* Pagina recensioni: sfondo grigio chiaro, card bianche */
.reviews-page { padding-top: 0; background: var(--gray); }
.reviews-page .crumbs { margin-bottom: 40px; }
.reviews-page .reviews__score p { color: var(--muted); }
.reviews-page .reviews__score b { color: var(--ink); }
.reviews-page .rcard { background: #fff; color: var(--ink); }
.reviews-page .rcard__text { color: var(--ink-2); }
.reviews-page .rcard__date { color: var(--muted); }
.reviews-page .rcard__more { color: var(--link); }
.reviews-page .tp-collector { background: #fff; }
.reviews-page h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.carousel--grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px;
  overflow: visible; padding: 0; scroll-snap-type: none;
}
.carousel--grid .rcard { flex: none; }
.tp-collector {
  display: grid; grid-template-columns: 1fr minmax(280px, 420px); align-items: center; gap: 24px;
  margin-bottom: 32px; padding: 28px 32px; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.tp-collector h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.tp-collector p { color: var(--muted); margin-top: 4px; }
.tp-collector .trustpilot-widget { display: flex; justify-content: center; }
/* Pulsante mostrato al posto del widget quando i contenuti di terze parti non sono accettati */
.tp-fallback {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 10px;
  background: #fff; border: 1px solid #1d1d1f; color: #1d1d1f;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  transition: background .2s, transform .2s var(--ease);
}
.tp-fallback:hover { background: #f5f5f7; }
.tp-fallback:active { transform: scale(.98); }
.tp-fallback { white-space: nowrap; }
.tp-fallback img { display: block; flex-shrink: 0; width: 80px; height: auto; margin-top: -2px; }
@media (max-width: 600px) {
  .tp-fallback { width: 100%; padding: 0 14px; gap: 6px; font-size: 15px; }
  .tp-fallback img { width: 72px; }
}
/* telefoni molto stretti: testo e logo su due righe, centrati */
@media (max-width: 380px) {
  .tp-fallback { flex-direction: column; gap: 4px; padding: 10px 14px; white-space: normal; text-align: center; }
  .tp-fallback img { margin-top: 0; }
}
.tp-collector > .trustpilot-widget { min-width: 0; }
@media (max-width: 833px) { .tp-collector { grid-template-columns: 1fr; padding: 24px; } }

@media (max-width: 833px) {
  .specs div { grid-template-columns: 1fr; gap: 6px; }
  .crumbs { padding-top: 80px; }
  .phero { padding-bottom: 72px; }
}

/* =========================================================
   COPERTURE — variante minimale
   ========================================================= */
/* solo linee interne: la griglia mostra il colore della linea negli spazi di 1px.
   La griglia compare tutta insieme (.reveal sulla griglia): con le singole voci animate,
   mentre erano trasparenti o in movimento si vedeva lo sfondo grigio delle linee. */
.cover-min__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
}
.cover-min__item {
  padding: 36px 28px 32px; background: #fff;
  transition: background .3s var(--ease);
}
.cover-min__item:hover { background: var(--gray); }
.cover-min__item svg {
  width: 32px; height: 32px; margin-bottom: 22px;
  fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.cover-min__item h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.cover-min__item p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.cover-min__note { margin: 36px auto 0; max-width: 620px; text-align: center; font-size: 17px; color: var(--muted); }

@media (max-width: 833px) {
  .cover-min__grid { grid-template-columns: repeat(2, 1fr); }
  .cover-min__item { padding: 28px 20px 24px; }
}
@media (max-width: 420px) {
  .cover-min__item h3 { font-size: 17px; }
  .cover-min__item p { font-size: 14px; }
}

/* Campo trappola anti-bot: fuori schermo, non display:none (alcuni bot li ignorano) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   BANNER COOKIE
   ========================================================= */
.cookie {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px;
  max-width: 640px; margin: 0 auto; padding: 24px 24px 20px;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 22px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 50px rgba(0,0,0,.18);
  color: var(--ink); opacity: 0; transform: translateY(16px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; padding-right: 32px; }
.cookie > p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cookie > p a { color: var(--link); }
.cookie__close {
  position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: #e8e8ed; color: var(--ink-2);
}
.cookie__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.cookie__btn {
  min-height: 44px; padding: 10px 14px; border-radius: 980px; font-size: 15px; font-weight: 500;
  background: #e8e8ed; color: var(--ink); transition: background .2s, filter .2s;
}
.cookie__btn:hover { background: #dcdce1; }
.cookie__btn--primary { background: var(--btn-grad); color: #fff; }
.cookie__btn--primary:hover { background: var(--btn-grad); filter: brightness(1.1); }
.cookie__prefs { margin-top: 16px; border-top: 1px solid var(--line); }
.cookie__opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cookie__opt b { display: block; font-size: 15px; font-weight: 600; }
.cookie__opt small { display: block; font-size: 13px; color: var(--muted); }
/* interruttore stile iOS */
.cookie__opt input {
  flex-shrink: 0; appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px;
  background: #d2d2d7; position: relative; cursor: pointer; transition: background .2s;
}
.cookie__opt input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease);
}
.cookie__opt input:checked { background: #30d158; }
.cookie__opt input:checked::after { transform: translateX(18px); }
.cookie__opt input:disabled { opacity: .5; cursor: default; }
.cookie__opt input:focus-visible { outline: 3px solid rgba(0,113,227,.4); outline-offset: 2px; }
.cookie__save { width: 100%; margin-top: 14px; }
.footer__bottom nav button, .footer__bottom nav a[data-consent-open] { cursor: pointer; }

@media (max-width: 600px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; padding: 20px 18px 16px; max-height: calc(100dvh - 16px); overflow-y: auto; }
  .cookie__actions { grid-template-columns: 1fr; }
}
