:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --ink: #101216;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e6e8ec;
  --soft: #f1f2f5;
  --accent: #d6006f;
  --accent-soft: #fde7f2;
  --ok: #0d7a4c;
  --ok-soft: #e3f5ec;
  --danger: #b4232c;
  --danger-soft: #fdecee;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .05), 0 2px 8px rgba(16, 18, 22, .04);
  --shadow-lg: 0 10px 30px rgba(16, 18, 22, .22);
  --schede-h: 52px;
  --sicuro-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.bloccato { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 2px; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.salta { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.salta:focus { top: 12px; }

#app, .barra, .foglio-pannello { --largh: 760px; }

/* ---------- Testata e ricerca ---------- */
.testata {
  background: var(--card);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 14px;
  max-width: var(--largh);
  margin: 0 auto;
}
.testata-occhiello {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.testata-titolo { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.testata-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

.cerca { position: relative; margin-top: 14px; }
.cerca input {
  width: 100%; height: 48px; border: 1px solid transparent; border-radius: 14px;
  background: var(--soft); padding: 0 46px 0 44px; font-size: 16px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.cerca input::-webkit-search-cancel-button { display: none; }
.cerca input:focus { background: #fff; border-color: var(--ink); }
.cerca input::placeholder { color: #8a909b; }
.cerca-ico {
  position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.cerca-x {
  position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: none;
  display: grid; place-items: center; border-radius: 12px;
}
.cerca-x svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Schede categorie (sticky) ---------- */
.schede {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.schede-in {
  max-width: var(--largh); margin: 0 auto; display: flex; gap: 4px; padding: 0 10px;
  overflow-x: auto; scrollbar-width: none;
}
.schede-in::-webkit-scrollbar { display: none; }
.scheda {
  position: relative; flex: none; height: var(--schede-h); padding: 0 10px; border: 0; background: none;
  font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.scheda::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--accent); transform: scaleX(0); transition: transform .2s ease;
}
.scheda[aria-current="true"] { color: var(--ink); }
.scheda[aria-current="true"]::after { transform: scaleX(1); }
.scheda.vuota { opacity: .4; }

/* ---------- Catalogo ---------- */
.catalogo { max-width: var(--largh); margin: 0 auto; padding: 8px 12px 24px; outline: none; }
.sezione { scroll-margin-top: calc(var(--schede-h) + 4px); padding-top: 14px; }
.sezione-titolo {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 21px; font-weight: 800; letter-spacing: -.01em; padding: 6px 4px 10px;
}
.sezione-conta { font-size: 13px; font-weight: 500; color: var(--muted); }

.linea {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 14px 4px; margin-bottom: 12px;
}
.linea-testa { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 10px; }
.linea-foto {
  width: 68px; height: 68px; flex: none; border-radius: 14px; background: #f7f8fa;
  border: 1px solid var(--line); object-fit: contain; padding: 3px;
}
.segnaposto {
  display: grid; place-items: center; padding: 0; border: 0;
  background: linear-gradient(145deg, #f4f5f8 0%, #e7e9ef 100%);
}
.segnaposto svg { width: 30px; height: 30px; fill: none; stroke: #a3a9b5; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.linea-info { flex: 1; min-width: 0; padding-top: 1px; }
.linea-titolo { font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.linea-sotto { font-size: 13px; color: var(--muted); margin-top: 3px; }
.linea-etichette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.etichetta {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--soft); color: var(--ink-2); font-size: 12px; font-weight: 600;
}
.etichetta-carrello { background: var(--accent-soft); color: var(--accent); }
.etichetta .punto { width: 10px; height: 10px; }

.varianti { list-style: none; margin: 0; padding: 0; }
.variante {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
  min-height: 64px; padding: 9px 0; border-top: 1px solid var(--line);
}
.variante.senza-punto { grid-template-columns: minmax(0, 1fr) auto; }
.variante-testo { min-width: 0; }
.variante-nome { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.variante-info { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.variante-info .prezzo { color: var(--ink); font-weight: 700; font-size: 14px; }
.prezzo, .barra-totale, .totali dd, .c-totale { font-variant-numeric: tabular-nums; }
.variante.in-carrello .variante-nome { color: var(--accent); }

.punto {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c1, #d1d5db); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}
.punto.doppio { background: linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 100%); }
.punto.neutro { background: #fff; box-shadow: inset 0 0 0 1.5px #c3c8d0; }

/* ---------- Selettore quantità ---------- */
.step { display: flex; align-items: center; justify-content: flex-end; width: 128px; }
.step-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none;
  transition: transform .08s ease, background-color .15s ease;
}
.step-btn:active { transform: scale(.92); }
.step-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step-meno { background: var(--soft); color: var(--ink); }
.step-piu { background: var(--ink); color: #fff; }
.step-q {
  width: 40px; height: 44px; border: 0; background: none; text-align: center; padding: 0;
  font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 10px;
}
.step-q:focus { background: var(--soft); outline: none; }
.step-q:focus-visible { outline: 2px solid var(--accent); }
.step[data-q="0"] .step-meno, .step[data-q="0"] .step-q { visibility: hidden; }
.step[data-q="0"] .step-piu { background: var(--soft); color: var(--ink); }

/* ---------- Stati catalogo ---------- */
.caricamento { padding-top: 14px; }
.scheletro {
  height: 210px; border-radius: var(--radius); margin-bottom: 12px;
  background: linear-gradient(90deg, #e9ebef 0%, #f5f6f8 50%, #e9ebef 100%); background-size: 200% 100%;
  animation: luccica 1.2s linear infinite;
}
@keyframes luccica { to { background-position: -200% 0; } }
.vuoto { text-align: center; color: var(--muted); padding: 48px 16px; }
.vuoto-titolo { color: var(--ink); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.vuoto .btn { margin-top: 16px; }

.piede {
  max-width: var(--largh); margin: 0 auto; padding: 8px 20px calc(150px + var(--sicuro-b));
  color: var(--muted); font-size: 13px; text-align: center;
}
.piede p + p { margin-top: 8px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .08s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--ink); color: #fff; }
.btn-secondario { background: var(--soft); color: var(--ink); }
.btn-grande { width: 100%; min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-testo {
  display: block; margin: 6px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: none;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.icona-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft);
  display: grid; place-items: center; flex: none;
}
.icona-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra in basso ---------- */
.barra {
  position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + var(--sicuro-b));
  max-width: calc(var(--largh) - 20px); margin: 0 auto;
  display: block; padding: 12px 14px; border: 0; border-radius: 20px; text-align: left;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .25s ease;
}
.barra:active { transform: scale(.99); }
.barra .avanzamento { width: 100%; height: 4px; background: rgba(255, 255, 255, .16); }
.barra-suggerimento {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 13px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.barra-riga { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.barra-badge {
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 999px; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums;
}
.barra-importi { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.barra-totale { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.barra-dettaglio { font-size: 12px; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-cta {
  display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 10px 0 16px; border-radius: 14px;
  background: var(--accent); font-weight: 700; font-size: 15px; flex: none;
}
.barra-cta svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.barra.vuota .barra-cta { background: rgba(255, 255, 255, .14); }
.barra.vuota .barra-badge { background: rgba(255, 255, 255, .14); color: #fff; }
.barra.gratis .barra-suggerimento { color: #8ff0bf; font-weight: 700; }

.avanzamento { position: relative; display: block; flex: none; height: 6px; border-radius: 6px; overflow: hidden; background: var(--line); }
.avanzamento-val {
  position: absolute; inset: 0; border-radius: inherit; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .3s ease;
}
.gratis .avanzamento-val { background: #2fbf7a; }

/* ---------- Foglio carrello ---------- */
.foglio { position: fixed; inset: 0; z-index: 40; }
.foglio-sfondo { position: absolute; inset: 0; background: rgba(10, 12, 16, .45); opacity: 0; transition: opacity .25s ease; }
.foglio-pannello {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh;
  max-width: var(--largh); margin: 0 auto;
  display: flex; flex-direction: column; background: var(--card); border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  box-shadow: var(--shadow-lg);
}
.foglio.aperto .foglio-sfondo { opacity: 1; }
.foglio.aperto .foglio-pannello { transform: translateY(0); }
.foglio-testata {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 14px 10px 20px; border-bottom: 1px solid var(--line);
}
.foglio-testata h2 { font-size: 21px; font-weight: 800; outline: none; }
.foglio-corpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; }
.foglio-piede { padding: 12px 16px calc(10px + var(--sicuro-b)); border-top: 1px solid var(--line); background: var(--card); }

.carrello-righe { list-style: none; margin: 0; padding: 0; }
.c-riga {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.c-riga:last-child { border-bottom: 0; }
.c-testo { min-width: 0; }
.c-titolo { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.c-sotto { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.c-sotto .punto { width: 10px; height: 10px; }
.c-prezzo { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.c-destra { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.c-totale { font-weight: 800; font-size: 15px; padding-right: 4px; }
.step-meno.rimuovi { color: var(--danger); background: var(--danger-soft); }

.spedizione-info { margin-bottom: 12px; }
.spedizione-info .avanzamento { width: 100%; margin-top: 8px; }
.spedizione-info p { font-size: 14px; color: var(--ink-2); }
.spedizione-info.gratis p { color: var(--ok); font-weight: 700; }

.totali { margin: 0 0 12px; }
.totali > div { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; font-size: 15px; }
.totali dt { color: var(--ink-2); }
.totali dd { margin: 0; font-weight: 600; }
.totali .gratuita { color: var(--ok); font-weight: 700; }
.totali-finale { margin-top: 4px; padding-top: 8px !important; border-top: 1px dashed var(--line); }
.totali-finale dt { color: var(--ink); font-weight: 700; }
.totali-finale dt small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.totali-finale dd { font-size: 20px; font-weight: 800; }

/* ---------- Viste a pagina intera ---------- */
.vista { max-width: var(--largh); margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: 24px; }
.vista-testata {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.vista-testata h1 { font-size: 20px; font-weight: 800; outline: none; }
.vista-testata .icona-btn { background: var(--card); box-shadow: var(--shadow); }

.modulo { padding: 4px 12px 0; }
.riquadro {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 0; margin: 0 0 12px; padding: 16px; min-width: 0;
}
.riquadro legend, .riquadro-titolo {
  float: left; width: 100%; font-size: 17px; font-weight: 800; padding: 0; margin-bottom: 12px;
}
.riquadro legend + * { clear: both; }
.facoltativo { font-weight: 500; color: var(--muted); font-size: 14px; }
.riepilogo-breve { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.riepilogo-breve-n { font-size: 13px; color: var(--muted); }
.riepilogo-breve-tot { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

.campo { margin-bottom: 14px; }
.campo:last-child { margin-bottom: 0; }
.campo label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.campo input[type="text"], .campo input[type="tel"], .campo input[type="email"], .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #d5d9e0; border-radius: 12px;
  background: #fff; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.campo input:focus, .campo textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 18, 22, .08); }
.campo [aria-invalid="true"] { border-color: var(--danger) !important; background: #fffafa; }
.campo-errore { display: flex; gap: 6px; color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 6px; }
.campi-riga { display: grid; grid-template-columns: 92px minmax(0, 1fr) 72px; gap: 0 10px; margin-bottom: 14px; }
.campi-riga .campo { margin-bottom: 0; }
.campi-riga + .campo-errore { margin: -6px 0 8px; }
.campo-errore + .campo-errore { margin-top: 0; margin-bottom: 8px; }
.campo-prov input { text-transform: uppercase; }

.campo-spunta { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 4px 4px 0; margin: 4px 0 16px; }
.campo-spunta input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); }
.campo-spunta label { font-size: 15px; font-weight: 500; color: var(--ink); margin: 0; }
.campo-spunta .campo-errore { grid-column: 2; margin-top: 0; }

.trappola { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile { min-height: 65px; margin: 0 0 12px; display: flex; justify-content: center; }
.errore-invio {
  background: var(--danger-soft); color: var(--danger); border-radius: 14px; padding: 12px 14px;
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
}
.invia-barra {
  position: sticky; bottom: 0; z-index: 5; margin: 0 -12px; padding: 12px 12px calc(12px + var(--sicuro-b));
  background: linear-gradient(to top, var(--bg) 70%, rgba(243, 244, 246, 0));
}
#invia { justify-content: space-between; padding: 0 20px; }
#invia[aria-busy="true"] { justify-content: center; }
.invia-importo { font-variant-numeric: tabular-nums; opacity: .9; }

/* ---------- Esito ---------- */
.esito { text-align: center; padding: calc(40px + env(safe-area-inset-top, 0px)) 20px 20px; }
.esito-icona {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok-soft);
  display: grid; place-items: center; animation: compari .4s cubic-bezier(.2, .8, .2, 1.2);
}
.esito-icona svg { width: 40px; height: 40px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes compari { from { transform: scale(.5); opacity: 0; } }
.esito h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; outline: none; }
.esito-testo { color: var(--ink-2); margin-top: 6px; }
.esito-numero {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 20px; padding: 14px 26px;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
}
.esito-numero span { font-size: 13px; color: var(--muted); }
.esito-numero strong { font-size: 28px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.esito-nota { color: var(--muted); font-size: 13px; margin-top: 12px; }
.vista#vista-inviato > .riquadro { margin: 0 12px 12px; }
.esito-righe { list-style: none; margin: 0 0 12px; padding: 0; clear: both; }
.esito-righe li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.esito-righe .nome { min-width: 0; }
.esito-righe .nome small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.esito-righe .importo { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.esito-azioni { padding: 4px 12px calc(16px + var(--sicuro-b)); }

/* ---------- Avvisi ---------- */
.avviso {
  position: fixed; z-index: 60; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -150%); width: max-content; max-width: calc(100% - 24px);
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: transform .25s ease, opacity .25s ease, visibility .25s;
  pointer-events: none; opacity: 0; visibility: hidden;
}
.avviso.visibile { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Pagina informativa ---------- */
.pagina { max-width: 720px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top, 0px)) 16px 48px; }
.pagina .riquadro { padding: 20px; }
.pagina h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 14px; }
.pagina h2 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.pagina p, .pagina li { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pagina p + p { margin-top: 10px; }
.pagina ul { padding-left: 20px; margin: 8px 0; }
.da-compilare { background: #fff4c2; color: #6b4f00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.indietro { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; text-decoration: none; }

/* ---------- Schermi grandi ---------- */
@media (min-width: 768px) {
  .testata { padding-top: 32px; border-radius: 0 0 var(--radius) var(--radius); }
  .linea { padding: 18px 20px 6px; }
  .linea-foto { width: 84px; height: 84px; }
  .barra { bottom: 16px; }
  .foglio-pannello { bottom: 50%; transform: translateY(calc(50% + 40px)); opacity: 0; border-radius: 22px; max-height: 86vh; max-width: 600px; transition: transform .25s ease, opacity .25s ease; }
  .foglio.aperto .foglio-pannello { transform: translateY(50%); opacity: 1; }
  .foglio-piede { border-radius: 0 0 22px 22px; }
}

@media (hover: hover) {
  .step-btn:hover { filter: brightness(.94); }
  .step-piu:hover { filter: brightness(1.25); }
  .btn-primario:hover { opacity: .92; }
}

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