/* Layout: bande a tutta larghezza come fogli di calendario (bianco, nebbia, notte),
   con i numerali sottili e giganti dei calendari come motivo ricorrente. */

/* I caratteri stanno sul nostro spazio, non su server esterni: un file per alfabeto, con tutti i pesi dentro.
   Le lettere accentate dell'Europa dell'Est si scaricano solo se la pagina le usa. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --mist: #f4f4f6;
  --mist-2: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --night: #0b0b0c;
  --night-2: #1c1c1e;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --festivo: #b4152f;
  --brand-navy: #003057;
  --brand-navy-2: #0b4374;
  --brand-steel: #7a90a8;
  --brand-steel-light: #a9bdd2;
  --brand-navy-deep: #00223f;
  --brand-ink-2: #c3d0de;
  --glass: rgba(251, 251, 253, .8);

  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Figtree", "Helvetica Neue", Arial, sans-serif;

  --r-l: 28px;
  --r-m: 18px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --nav-h: 52px;
  --ease: cubic-bezier(.25, .1, .25, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  opacity: 1;
  animation: none;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--glass);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.band--brand :focus-visible { outline-color: var(--night-ink); }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
section[id], footer { scroll-margin-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.wrap-wide {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.band--brand .eyebrow { color: var(--brand-steel-light); }
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.42;
  color: var(--ink-2);
  max-width: 40rem;
}
.hint { font-size: 13px; color: var(--ink-3); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--brand-navy);
  color: var(--paper);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--brand-navy-2); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 30px; padding: 4px 14px; font-size: 13px; }
.btn--lg { min-height: 52px; padding: 12px 30px; }
.btn--light { background: var(--night-ink); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--mist); }
.btn--block { width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link--light { color: var(--night-ink); }
.chev {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.link:hover .chev { transform: translateX(2px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav__inner {
  max-width: 1120px;
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__rb { width: 34px; height: 28px; color: var(--brand-steel); flex: none; }
.brand__word { width: 150px; height: 10.6px; color: var(--brand-navy); flex: none; }
.brand--stack { flex-direction: column; align-items: flex-start; gap: 12px; }
.brand--stack .brand__rb { width: 46px; height: 38px; }
@media (max-width: 420px) {
  .nav .brand { gap: 8px; }
  .nav .brand__rb { width: 29px; height: 24px; }
  .nav .brand__word { width: 118px; height: 8.3px; }
}
/* voci e pulsante nel carattere dei titoli, misurati sull'altezza della barra */
/* le voci stanno in una pillola; quella della sezione che si sta guardando si accende in bianco, come un selettore */
.nav__links { display: flex; gap: 2px; margin-inline: auto; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .04); }
.nav__links a { padding: 5px 15px; border-radius: 999px; font-family: var(--font-display); font-size: 15px; font-weight: 400; letter-spacing: .01em; text-decoration: none; color: var(--ink-2); transition: color .2s, background-color .3s var(--ease), box-shadow .3s var(--ease); }
/* ogni voce risponde allo stesso modo al passaggio del mouse; quella della sezione in vista resta accesa */
.nav__links a { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .nav__links a:hover { color: var(--brand-navy); background: rgba(255, 255, 255, .7); } }
.nav__links a[aria-current="true"] { color: var(--brand-navy); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .05); }
/* nella sezione del preventivo si accende il suo pulsante, con un alone */
.nav .btn--sm { transition: box-shadow .3s var(--ease), background-color .2s; }
.nav .btn--sm[aria-current="true"] { box-shadow: 0 0 0 3px rgba(0, 48, 87, .16); }
.nav .btn--sm { min-height: 34px; padding: 6px 18px; font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: .01em; }
/* in apertura il logo grande è già in pagina: quello della barra compare quando si scorre */
.nav .brand { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.nav.brand-hidden:not(.is-open) .brand { opacity: 0; transform: translateY(4px); pointer-events: none; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__inner > .btn--sm { margin-left: auto; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter-r) 28px var(--gutter-l);
    border-radius: 0;
    background: rgba(251, 251, 253, .97);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 0;
    opacity: 1;
  }
  .nav__links a[aria-current="true"], .nav__links a:hover { background: none; box-shadow: none; }
}

/* ---------- Tocchi sul telefono ---------- */
/* ogni elemento toccabile risponde al primo tocco: niente attesa per il doppio tocco, niente riquadro grigio */
a, button, label, summary, select, input, textarea, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) {
  /* sotto il dito i link di testo hanno un'area più alta, senza cambiare l'impaginazione */
  .link, .quote__link, .footer a, .check a { padding-block: 8px; margin-block: -8px; }
  .footer__cols div { gap: 16px; }
  .nav .btn--sm { position: relative; }
  .nav .btn--sm::after { content: ""; position: absolute; inset: -5px -4px; }
  .seg label { position: relative; }
  .seg label::after { content: ""; position: absolute; inset: -4px 0; }
  /* un tocco premuto si vede subito, anche prima che il resto della pagina abbia finito di aggiornarsi */
  .btn:active, .vbtn:active, .pager button:active:not(:disabled), .mcard:active, .copt:active, .sides__opt:active, .fmt label:active { transform: scale(.97); transition: transform .08s; }
}

/* ---------- Bands ---------- */
.band { padding-block: clamp(80px, 11vw, 150px); }
.band--mist { background: var(--mist); }
.band--brand {
  position: relative;
  overflow: hidden;
  color: var(--night-ink);
  background:
    radial-gradient(55% 70% at 88% 0%, rgba(122, 144, 168, .38), rgba(122, 144, 168, 0) 60%),
    radial-gradient(45% 60% at 0% 100%, rgba(11, 67, 116, .9), rgba(11, 67, 116, 0) 65%),
    var(--brand-navy-deep);
}
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--center { text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
/* il marchio al centro in alto; sotto, la frase a sinistra e la collezione a destra */
.hero { overflow: hidden; text-align: center; }
#top { padding-block: clamp(20px, 3svh, 36px) clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; justify-items: center; }
.hero__copy { display: grid; justify-items: center; }
.hero__lockup { --mark: clamp(72px, 9.5svh, 92px); display: grid; justify-items: center; }
@media (min-width: 900px) {
  .hero__lockup { --mark: clamp(84px, min(12.5svh, 8vw), 150px); }
  /* stessi margini della barra e delle altre sezioni; alla vetrina va lo spazio più grande */
  .hero__grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; column-gap: clamp(32px, 4.5vw, 64px); }
  .hero__lockup { grid-column: 1 / -1; margin-bottom: clamp(28px, 6svh, 64px); }
  .hero__copy { justify-self: stretch; justify-items: start; text-align: left; }
  .hero__copy .hero__origin { margin-top: 0; }
  .hero__copy .hero__claim { margin-top: 12px; font-size: clamp(2.8rem, 4.4vw, 4.8rem); }
  .hero__copy .hero__lead { margin-inline: 0; max-width: 30rem; text-wrap: pretty; }
  .hero .cta-row { justify-content: flex-start; }
}
/* l'RB nella stessa sfumatura dello slogan, con un riflesso di vetro che lo attraversa ogni tanto */
.hero__mark { display: block; width: var(--mark); height: auto; aspect-ratio: 46.9 / 38.3; margin-bottom: calc(var(--mark) * .15); overflow: visible; }
.hero__gloss { transform: translateX(-20px) skewX(-18deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero__gloss { animation: gloss 7s 1s var(--ease) infinite; }
  .hero__lockup:hover .hero__gloss { animation-duration: 2.4s; }
}
/* il riflesso è inclinato come su una lastra; lo spostamento compensa l'inclinazione */
@keyframes gloss {
  0% { transform: translateX(-20px) skewX(-18deg); }
  22%, 100% { transform: translateX(76px) skewX(-18deg); }
}
.hero__brand { margin: 0; line-height: 0; }
.hero__word { display: block; width: min(78vw, calc(var(--mark) * 3.3)); height: calc(min(78vw, calc(var(--mark) * 3.3)) / 14.21); color: var(--brand-navy); }
.hero__tag {
  margin-top: calc(var(--mark) * .13);
  font-size: clamp(11px, calc(var(--mark) * .13), 15px);
  font-weight: 600;
  letter-spacing: .3em;
  margin-right: -.3em;
  text-transform: uppercase;
  color: var(--brand-steel);
}
/* "Made in Italy": una riga sottile sopra lo slogan, nello stile delle etichette del sito */
.hero__origin {
  margin-top: clamp(22px, 3.6svh, 40px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-steel);
}
.hero__claim {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}
/* "restare" nei colori del marchio, dal blu al grigio azzurro del monogramma */
.hero__accent {
  background: linear-gradient(100deg, var(--brand-navy) 15%, var(--brand-steel) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { margin: 14px auto 24px; max-width: 40rem; text-wrap: balance; }
@media (min-width: 900px) {
  #top { min-height: min(calc(100svh - var(--nav-h)), 900px); display: grid; align-content: center; padding-bottom: 28px; }
}

/* Vetrina: la collezione in foto, un modello alla volta, appoggiata sul bianco della pagina */
.show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 32px);
  width: 100%;
  max-width: 640px;
  margin-top: clamp(24px, 4svh, 44px);
}
.show__pane { display: grid; justify-items: center; gap: 10px; min-width: 0; }
.show__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
/* il bianco delle foto sparisce nel piano: la fusione è sull'intera scena, non sulla singola foto,
   così anche mentre un calendario sfuma nell'altro non compare mai il riquadro della foto */
.show__stage { position: relative; width: 100%; height: clamp(170px, 46vw, 230px); mix-blend-mode: multiply; }
/* da computer la vetrina è un piano chiaro, come quello del configuratore, e i calendari crescono */
@media (min-width: 900px) {
  .show {
    max-width: none;
    margin-top: 0;
    justify-self: stretch;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 0 clamp(16px, 2vw, 28px);
    padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 28px) clamp(16px, 1.8vw, 22px);
    border-radius: var(--r-l);
    background: radial-gradient(120% 95% at 50% 0%, #fdfdfe 0%, #f3f3f6 58%, #ececf0 100%);
  }
  /* oltre una certa altezza la vetrina non cresce più: è larga quanto la colonna, e i calendari restano in proporzione */
  .show__stage { height: clamp(250px, 38svh, 350px); }
  .show .show__pane:first-child .show__item { top: 22%; }
  .show__dots { margin-top: clamp(14px, 2.2svh, 22px); }
}
/* un calendario esce del tutto prima che entri il successivo: mai due foto sovrapposte */
.show__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.show__item.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity .8s .4s var(--ease), transform 1.1s .4s var(--ease); }
.show__item img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform: scale(var(--fit, 1)); transform-origin: 50% 100%; transition: translate .4s var(--ease); }
/* le foto quasi quadrate riempiono di più la scena: si riducono un poco, così ogni calendario ha lo stesso peso */
.show__item[data-model="desk"] { --fit: .89; }
.show__item[data-model="essential"] { --fit: .92; }
.show__item[data-model="arcobaleno"] { --fit: .95; }
.show__pane:first-child .show__item { top: 30%; }
.show__item:hover img { translate: 0 -4px; }
@media (prefers-reduced-motion: no-preference) {
  .show__item.is-active img { animation: drift 4.6s linear both; }
}
@keyframes drift { from { scale: 1; } to { scale: 1.035; } }
.show__item:focus-visible { outline: 2px solid var(--brand-navy); outline-offset: 4px; border-radius: 12px; }
.show__name { margin-top: 2px; font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: opacity .35s var(--ease); }
.show__name.is-out { opacity: 0; }
.show__dots { grid-column: 1 / -1; justify-self: center; display: flex; gap: 12px; margin-top: 2px; }
/* il puntino resta piccolo alla vista, ma il dito ha un'area ampia attorno (::after) */
.show__dots button {
  position: relative;
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .14);
  cursor: pointer;
  transition: width .4s var(--ease);
}
.show__dots button::after { content: ""; position: absolute; inset: -18px -6px; }
/* il modello attivo è una barretta che si riempie: quando è piena passa al successivo */
.show__dots button[aria-current="true"] { width: 28px; }
.show__dots button[aria-current="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--brand-navy);
  transform-origin: left;
  animation: fill 4s linear both;
}
.show.is-paused .show__dots button::before { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .show__dots button[aria-current="true"]::before { animation: none; }
}
@media (max-width: 899px) {
  .show__stage { height: clamp(170px, 46vw, 230px); }
}

@media (prefers-reduced-motion: no-preference) {
  #top .hero__copy > * { animation: rise .9s var(--ease) both; }
  #top .hero__claim { animation-delay: .15s; }
  #top .hero__lead { animation-delay: .22s; }
  #top .cta-row { animation-delay: .28s; }
  .show { animation: fade 1.4s .35s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Controlli condivisi ---------- */
.mult { mix-blend-mode: multiply; }
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--mist-2);
  position: relative;
  max-width: 100%;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s, box-shadow .25s;
  white-space: nowrap;
}
.seg input:checked + label { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.seg input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg--glass {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
/* sul visore la pillola 3D/Foto è alta quanto il pulsante tondo accanto: 36 px */
.seg--glass { padding: 2px; }
.seg--glass label { display: grid; place-items: center; height: 32px; padding: 0 14px; font-size: 13px; line-height: 1; transition-duration: .15s; }
.sw {
  display: block;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), inset 0 -3px 6px rgba(0, 0, 0, .08);
}
.sw--white { background: linear-gradient(145deg, #ffffff, #e9e9ec); }
.sw--black { background: linear-gradient(145deg, #3a3a3c, #0b0b0c); }
.sw--slim { background: linear-gradient(135deg, #7b7b7f 0 50%, #f39200 50%); }
.sw--arc { background: conic-gradient(#2f6ff0, #4fc1c4, #77b23a, #f5b800, #f07a1a, #e2231a, #e8264f, #6a3fb5, #2f6ff0); }
.sw--slimwall { background: linear-gradient(160deg, #2a77c4, #18a2bf 35%, #5fae3e 60%, #e3127a 85%); }
/* Essential Desk: il colore del cartoncino */
.sw--arancio { background: linear-gradient(145deg, #f7a733, #e88600); }
.sw--blu { background: linear-gradient(145deg, #3a83d6, #1559ad); }
.sw--verde { background: linear-gradient(145deg, #48b45a, #23843a); }
.sw--rosso { background: linear-gradient(145deg, #ef4a40, #c81b14); }
.sw--giallo { background: linear-gradient(145deg, #ffd83a, #efbb00); }

/* ---------- Calendari: scelta in un'unica schermata ---------- */
.cal { padding-top: clamp(72px, 9vw, 120px); }
.cfg {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.cfg__viewer {
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px);
  min-width: 0;
}
.viewer {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: var(--r-l);
  overflow: hidden;
  background: radial-gradient(120% 95% at 50% 30%, #ffffff 0%, #f2f2f5 55%, #e4e4e9 100%);
  isolation: isolate;
}
.viewer__canvas { position: absolute; inset: 0; cursor: grab; outline: none; }
.viewer__canvas:active { cursor: grabbing; }
.viewer__canvas canvas { display: block; width: 100%; height: 100%; }
.viewer__canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--r-l); }
.viewer[data-mode="foto"] .viewer__canvas,
.viewer[data-mode="foto"] .viewer__hint,
.viewer[data-mode="foto"] .pager { display: none; }
/* davanti all'astuccio non c'è nulla da sfogliare */
.pager.is-case button { visibility: hidden; }
.viewer__photos { position: absolute; inset: 0; }
.viewer__photos img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84%;
  height: 74%;
  object-fit: contain;
  opacity: 0;
  transform: scale(.97);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.viewer__photos img.is-active { opacity: 1; transform: none; }
.viewer__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink-3);
  pointer-events: none;
}
.viewer__hint {
  position: absolute;
  top: 21px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.viewer__hint.is-done { opacity: 0; }
.viewer__hint-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.viewer__top { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.vbtn {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .25);
}
.vbtn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink); cursor: pointer; }
.vbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vbtn:hover { color: var(--brand-navy); }
/* schermo intero: il calendario occupa tutta la finestra, sopra a tutto */
.viewer.is-full { position: fixed; inset: 0; z-index: 400; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; }
.has-full-viewer { overflow: hidden; }
.has-full-viewer .cfg__viewer { z-index: 400; }
.viewer.is-full .viewer__canvas:focus-visible { box-shadow: none; }
.viewer__bottom {
  position: absolute;
  left: 12px; right: 12px; bottom: 14px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.viewer__bottom > * { pointer-events: auto; }
.pager, .thumbs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -10px rgba(0, 0, 0, .25);
}
.pager button {
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pager button:hover:not(:disabled) { background: rgba(0, 0, 0, .06); }
.pager button:disabled { opacity: .28; cursor: default; }
.pager .chev { width: 14px; height: 14px; stroke-width: 1.8; }
/* desk e SLIMdesk hanno qualcosa anche sul retro dei fogli */
.chev--flip { transform: scaleX(-1); }
.pager__label { min-width: 9.5em; text-align: center; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.thumbs { border-radius: 16px; gap: 6px; padding: 6px; }
.thumbs button {
  width: 64px; height: 48px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.thumbs button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }


/* Colore: un passo del pannello, ogni versione con il suo nome */
.colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.colors input { position: absolute; opacity: 0; pointer-events: none; }
.copt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--mist);
  cursor: pointer;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.copt:hover { background: var(--mist-2); }
.copt__name { display: grid; font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.colors input:checked + .copt { background: var(--paper); box-shadow: inset 0 0 0 2px var(--brand-navy), 0 6px 16px -10px rgba(0, 48, 87, .45); }
.colors input:checked + .copt .copt__name { color: var(--brand-navy); }
.colors input:focus-visible + .copt { outline: 2px solid var(--brand-navy); outline-offset: 3px; }

.cfg__panel { display: grid; gap: 36px; min-width: 0; }
.cfg__step { display: grid; gap: 16px; min-width: 0; }
.cfg__step[hidden] { display: none; }
.cfg__step-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.cfg__step-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

/* Formato: due grandi opzioni con icona, prima delle miniature */
.fmt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--mist); }
.fmt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s, box-shadow .25s;
}
.fmt label:hover { color: var(--ink); }
.fmt__ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fmt input:checked + label { background: var(--paper); color: var(--brand-navy); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 14px -6px rgba(0, 48, 87, .3); }
.fmt input:focus-visible + label { outline: 2px solid var(--brand-navy); outline-offset: 2px; }

/* Modelli: miniature rese dal 3D, tutte con la stessa luce, su piastrelle uguali */
.cfg__models { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
/* una fila sola, qualunque sia il numero di modelli del gruppo */
.cfg__cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.cfg__cards[hidden] { display: none; }
/* sul telefono le quattro piastrelle restano in una fila sola, come sul computer */
@media (max-width: 600px) {
  .cfg__cards { gap: 6px; }
  .mcard__img { border-radius: 12px; padding: 3px; }
  .mcard__name { font-size: 11.5px; letter-spacing: -.01em; }
  .mcard__duo { top: 4px; right: 4px; width: 11px; height: 11px; }
}
.mopt { position: relative; min-width: 0; }
.mopt input { position: absolute; opacity: 0; pointer-events: none; }
/* la colonna non si allarga mai per il nome: sul telefono "black&white" va a capo dopo la & */
.mcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; text-align: center; cursor: pointer; }
.mcard__img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
  background: var(--mist);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.mcard:hover .mcard__img { background: var(--mist-2); }
.mcard__name { font-size: 13px; line-height: 1.2; color: var(--ink-2); transition: color .2s; }
.mcard__desc { display: none; }
.mcard__duo { position: absolute; top: 7px; right: 7px; width: 14px; height: 14px; fill: none; stroke: var(--brand-steel); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mopt input:checked + .mcard .mcard__img { background: var(--paper); box-shadow: inset 0 0 0 2px var(--brand-navy), 0 6px 16px -10px rgba(0, 48, 87, .45); }
.mopt input:checked + .mcard .mcard__name { color: var(--brand-navy); font-weight: 600; }
.mopt input:focus-visible + .mcard .mcard__img { outline: 2px solid var(--brand-navy); outline-offset: 3px; }

/* Fronte e retro (desk e SLIMdesk) o copertina e mesi: un selettore compatto come quello del formato */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 10px; padding: 4px; border-radius: 14px; background: var(--mist); }
.sides[hidden] { display: none; }
.sides input { position: absolute; opacity: 0; pointer-events: none; }
.sides__opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s, box-shadow .25s;
}
.sides__opt:hover { color: var(--ink); }
.sides__ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* il giro per il retro solo su desk e SLIMdesk, il pacco solo per l'astuccio; la terza voce c'è solo per il QTIME */
.sides[data-mode="coverbox"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sides:not([data-mode="coverbox"]) .sides__c { display: none; }
.sides:not([data-mode="duo"]) .sides__ico--turn,
.sides:not([data-mode="box"]) .sides__ico--gift { display: none; }
.sides input:checked + .sides__opt { background: var(--paper); color: var(--brand-navy); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 14px -6px rgba(0, 48, 87, .3); }
.sides input:focus-visible + .sides__opt { outline: 2px solid var(--brand-navy); outline-offset: 2px; }

/* Il modello scelto, in breve */
.cfg__about { display: grid; gap: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .cfg__about.is-new > * { animation: rise .5s var(--ease) both; }
  .cfg__about.is-new > :nth-child(2) { animation-delay: .04s; }
  .cfg__about.is-new > :nth-child(n + 3) { animation-delay: .08s; }
}
.cfg__name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.cfg__desc { font-size: 15px; color: var(--ink-2); }

/* Scheda tecnica: chiusa, si apre per chi vuole misure, carta e spazio di stampa */
/* scheda tecnica: una riga in evidenza con le misure già in vista; si apre per tutti i dettagli */
.spec { margin-top: 14px; border-radius: 14px; background: var(--mist); transition: background .2s var(--ease); }
.spec[hidden] { display: none; }
.spec summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.spec summary::-webkit-details-marker { display: none; }
.spec__ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand-navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spec__title { font-weight: 600; flex: none; }
.spec__peek { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-3); font-size: 14px; }
.spec summary .chev { margin-left: auto; flex: none; transform: rotate(90deg); transition: transform .25s var(--ease), translate .2s var(--ease); }
.spec[open] summary .chev { transform: rotate(-90deg); }
.spec[open] .spec__peek { visibility: hidden; }
/* al passaggio cambiano solo scritta e freccia, senza riquadri che sporgono */
.spec summary { -webkit-tap-highlight-color: transparent; transition: color .2s var(--ease); }
@media (hover: hover) {
  .spec summary:hover, .spec summary:hover .spec__peek { color: var(--brand-navy); }
  .spec summary:hover .chev { translate: 0 1px; }
  .spec[open] summary:hover .chev { translate: 0 -1px; }
}
.spec summary:focus { outline: none; }
.spec summary:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-navy); }
.spec__list { display: grid; gap: 8px; margin: 0; padding: 4px 14px 14px 44px; font-size: 14px; }
.spec__list div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; }
.spec__list dt { color: var(--ink-3); }
.spec__list dd { margin: 0; color: var(--ink); }
@media (max-width: 420px) { .spec__peek-more { display: none; } .spec__list { padding-left: 14px; } .spec__list div { grid-template-columns: 7.5rem minmax(0, 1fr); } }

/* Il marchio: logo, nome e contatti, ognuno con la sua etichetta */
.cfg__step--brand { gap: 18px; }
.cfg__step-lead { margin-top: -6px; font-size: 15px; color: var(--ink-2); }
#cfg-spot { font-weight: 600; color: var(--brand-navy); }
.drop__zone {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.drop__zone:hover, .drop.is-over .drop__zone { border-color: var(--brand-navy); }
.drop.is-over .drop__zone { background: #f5f8fb; }
#pz-logo:focus-visible + .drop__zone { outline: 2px solid var(--brand-navy); outline-offset: 2px; }
.drop__thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border: 1.5px dashed rgba(0, 48, 87, .35);
  border-radius: 10px;
  background: var(--mist);
}
.drop__ico { width: 22px; height: 22px; fill: none; stroke: var(--brand-navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop__ico[hidden] { display: none; }
.drop__preview { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.drop__text { display: grid; gap: 2px; min-width: 0; text-align: left; }
.drop__title { font-size: 15px; font-weight: 600; color: var(--brand-navy); overflow-wrap: anywhere; }
.drop__hint { font-size: 13px; color: var(--ink-3); }
.drop__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }

/* Riepilogo e preventivo */
.cfg__buy { display: grid; gap: 14px; }
.cfg__summary { display: grid; gap: 2px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cfg__summary-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cfg__buy .btn { width: 100%; }

@media (max-width: 900px) {
  .cfg { grid-template-columns: 1fr; gap: 20px; }
  /* su telefono il calendario resta in vista mentre si sceglie */
  .cfg__viewer {
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    z-index: 4;
    margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
    padding: 8px var(--gutter-r) 10px var(--gutter-l);
    background: var(--paper);
    box-shadow: 0 10px 18px -16px rgba(0, 0, 0, .35);
  }
  .viewer { aspect-ratio: auto; height: clamp(220px, 34vh, 340px); }
  /* barra del preventivo sempre a portata di dito */
  .cfg__buy {
    position: sticky;
    bottom: 0;
    z-index: 3;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
    padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid rgba(0, 0, 0, .08);
  }
  .cfg__summary { font-size: 14px; }
  #cfg-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .cfg__buy .btn { width: auto; min-height: 44px; padding: 10px 18px; font-size: 15px; }
}
@media (max-width: 480px) {
  /* allineato al centro della pillola 3D/Foto */
  .viewer__hint { top: 21px; left: 14px; font-size: 12px; }
  .viewer__hint-more { display: none; }
  /* sul telefono il selettore dei mesi è una pillola sottile che non copre il calendario */
  .viewer__bottom { bottom: 8px; }
  .vbtn { position: relative; }
  .vbtn::after { content: ""; position: absolute; inset: -4px; }
  .pager { gap: 0; padding: 2px; }
  .pager button { position: relative; width: 30px; height: 30px; }
  .pager button::after { content: ""; position: absolute; inset: -7px; }
  .pager .chev { width: 12px; height: 12px; }
  .pager__label { min-width: 7.2em; font-size: 13px; }
  .thumbs { gap: 4px; padding: 4px; border-radius: 12px; }
  .thumbs button { width: 46px; height: 34px; }
  .cfg__buy .btn { padding: 10px 14px; }
}
/* sugli schermi stretti il suggerimento si accorcia, così non passa sotto i pulsanti 3D/Foto */
@media (max-width: 369px) { .viewer__hint-long { display: none; } }

/* ---------- Form fields ---------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 17px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, .12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field .is-invalid { border-color: var(--festivo); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- La nostra idea: fondo scuro con l'RB in penombra ---------- */
.idea .wrap { position: relative; display: grid; gap: 18px; }
.idea__rb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78vw, 820px);
  height: auto;
  aspect-ratio: 46.9 / 38.3;
  transform: translate(-28%, -52%);
  color: rgba(255, 255, 255, .045);
  pointer-events: none;
}
.idea__statement {
  max-width: 22em;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.16;
  color: #fff;
  text-wrap: balance;
}
.idea__points { list-style: none; margin: clamp(24px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
@media (max-width: 1060px) { .idea__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.idea__points li { display: grid; align-content: start; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.idea__points h3 { font-size: 17px; font-weight: 600; color: #fff; }
.idea__points p { font-size: 15px; color: var(--brand-ink-2); }
@media (max-width: 760px) { .idea__points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Come ordinare: fondo scuro con l'RB in basso a destra ---------- */
.steps-band .wrap { position: relative; }
/* l'RB si aggancia all'angolo in basso a destra con uno sbordo proporzionato alla sua misura:
   così resta nello stesso punto anche sul telefono, dove la sezione è molto più alta */
.steps-band__rb {
  --rb: clamp(240px, 46vw, 560px);
  position: absolute;
  right: calc(var(--rb) * -0.06);
  bottom: calc(var(--rb) * -0.2);
  width: var(--rb);
  height: auto;
  aspect-ratio: 46.9 / 38.3;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
}
/* una linea sola unisce i quattro passaggi: in orizzontale su schermo largo, in verticale sul telefono */
.steps {
  --gap: clamp(20px, 2.6vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.steps li { display: grid; align-content: start; justify-items: start; gap: 8px; }
.steps__n {
  position: relative;
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fff 10%, var(--brand-steel-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* ::before è il punto sulla linea, ::after il tratto fino al passaggio dopo */
.steps__n::before,
.steps__n::after { content: ""; position: absolute; left: 0; }
.steps__n::before { bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.steps__n::after { bottom: 0; width: calc(100% + var(--gap)); height: 1px; background: rgba(255, 255, 255, .26); }
.steps li:last-child .steps__n::after { width: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0)); }
.steps h3 { font-size: 19px; font-weight: 600; color: #fff; }
.steps p { color: var(--brand-ink-2); font-size: 16px; }
.steps__go { margin-top: 4px; font-size: 16px; color: #fff; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding-bottom: 30px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li > :not(.steps__n) { grid-column: 2; }
  .steps__n { grid-column: 1; grid-row: 1 / span 3; align-self: stretch; width: auto; padding: 0; margin: 0; font-size: 2.6rem; }
  .steps li:not(:has(.steps__go)) .steps__n { grid-row: 1 / span 2; }
  .steps__n::before { display: none; }
  /* sul telefono la linea scende dal numero fino al passaggio successivo */
  .steps__n::after { left: 18px; top: 3.5rem; bottom: -30px; width: 1px; height: auto; background: rgba(255, 255, 255, .26); }
  .steps li:last-child .steps__n::after { display: none; }
}

/* ---------- Entrata delle sezioni ---------- */
/* i blocchi salgono e compaiono quando arrivano sullo schermo; la classe la mette app.js, solo se il movimento è gradito */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform 1.1s cubic-bezier(.16, .84, .3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Preventivo ---------- */
/* sul computer: a sinistra titolo e contatti diretti, a destra il modulo */
.quote__inner { display: grid; gap: clamp(28px, 4vw, 40px); }
.quote__side .sec-head { margin-bottom: 0; }
.quote__direct { display: grid; justify-items: start; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.quote__direct-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.quote__link { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--brand-navy); text-decoration: none; overflow-wrap: anywhere; }
.quote__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.quote__link svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 980px) {
  .quote__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 88px); align-items: start; }
  .quote__side { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 979px) {
  .quote__inner { max-width: 820px; }
  .quote__direct { margin-top: 20px; padding-top: 18px; }
}
.qform { display: grid; gap: 22px; }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field--full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.qform__error { color: var(--festivo); font-size: 15px; }
.qform .btn { justify-self: start; }
.qdone {
  background: var(--mist);
  border-radius: var(--r-l);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.qdone:focus { outline: none; }
.qdone__mark {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-navy); color: var(--paper); font-size: 24px;
}
.qdone h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.qdone__shot { width: min(100%, 360px); height: auto; border-radius: var(--r-m); background: var(--paper); }
.qdone__shot[hidden] { display: none; }
.qdone__recap { margin: 0; display: grid; gap: 6px; width: 100%; }
.qdone__recap div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; font-size: 16px; }
.qdone__recap dt { color: var(--ink-3); }
.qdone__recap dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .qform__grid { grid-template-columns: 1fr; }
  .qdone__recap div { grid-template-columns: 1fr; gap: 0; }
}

/* nel preventivo l'RB torna in blu, appena percettibile sul bianco, come specchio di quelli sulle bande scure */
/* il livello di sfondo taglia l'RB senza togliere alla colonna di sinistra la possibilità di restare ferma */
.quote { position: relative; }
.quote__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.quote__inner { position: relative; }
.quote__rb {
  --rb: clamp(240px, 40vw, 520px);
  position: absolute;
  left: calc(var(--rb) * -0.14);
  bottom: calc(var(--rb) * -0.2);
  width: var(--rb);
  height: auto;
  aspect-ratio: 46.9 / 38.3;
  color: rgba(0, 48, 87, .045);
  pointer-events: none;
}
/* su telefono e tablet il modulo è su una colonna: l'RB passa a destra, accanto ai contatti dove c'è spazio libero,
   lontano dal titolo e dal pulsante di invio, che diventa largo quanto il modulo */
@media (max-width: 979px) {
  .quote__rb { --rb: 340px; left: auto; bottom: auto; right: -70px; top: 40px; }
}
/* sul telefono l'RB sta nello spazio libero a destra del pulsante di invio, centrato sulla sua altezza
   e staccato dal pulsante; il bordo dello schermo lo taglia, come quello di "Come ordinare" */
@media (max-width: 640px) {
  .quote__rb { --rb: 210px; top: auto; right: auto; left: 230px; bottom: -22px; }
}


/* ---------- Footer ---------- */
.footer { background: var(--mist); color: var(--ink-2); font-size: 13px; padding-block: 56px 36px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px; }
.footer__brand { display: grid; gap: 10px; align-content: start; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer__cols div { display: grid; gap: 8px; align-content: start; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__cols p { overflow-wrap: anywhere; }
.footer__legal {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--ink-3);
}
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Pagina privacy ---------- */
.nav--plain .btn--sm { margin-left: auto; }
.legal { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.legal__wrap { max-width: calc(46rem + 40px); }
.legal h1 { margin-top: 12px; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.legal__date { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.legal__intro { margin-top: 28px; font-size: 19px; color: var(--ink-2); }
.legal h2 { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.015em; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-2); }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a:not(.link) { color: var(--brand-navy); text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal__back { margin-top: 48px; }
.footer__legal--solo { margin-top: 0; padding-top: 0; border-top: 0; }
.check a { color: var(--brand-navy); text-underline-offset: 2px; }
