/* ── Hero: logo ufficiale equalizer + wordmark con badge 24 ─────── */
.hero { text-align: center; padding: 26px 16px 10px; }

.eq-logo {
  width: 158px; height: auto;
  display: block; margin: 0 auto 4px;
  filter: drop-shadow(0 4px 22px rgba(255, 150, 20, .28));
}
.eq-bar {
  transform-origin: center;
  transform-box: fill-box;
  animation: eq-pulse 2.6s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { animation-delay: .0s; }
.eq-bar:nth-child(2) { animation-delay: .25s; }
.eq-bar:nth-child(3) { animation-delay: .5s; }
.eq-bar:nth-child(4) { animation-delay: .1s; }
.eq-bar:nth-child(5) { animation-delay: .35s; }
.eq-bar:nth-child(6) { animation-delay: .6s; }
.eq-bar:nth-child(7) { animation-delay: .2s; }
.eq-bar:nth-child(8) { animation-delay: .45s; }
.eq-bar:nth-child(9) { animation-delay: .05s; }
@keyframes eq-pulse {
  from { transform: scaleY(.9); }
  to   { transform: scaleY(1.06); }
}

.brand {
  font-family: var(--font-display);
  line-height: 1.06;
  display: grid; gap: 1px;
  animation: rise .7s var(--ease-pop) .15s both;
  color: var(--text);
}
.brand-ibiza { font-size: 13px; font-weight: 600; letter-spacing: .5em; text-indent: .5em; color: var(--text); }
.brand-smart { font-size: 33px; font-weight: 800; letter-spacing: .1em; }
.brand-lockers {
  font-size: 33px; font-weight: 800; letter-spacing: .06em;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
}
.badge24 {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: .95em; height: .95em; margin: 0 .03em;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F1373B, #8f1230);
  border: 2px solid #ffd7a1;
  line-height: 1;
  animation: badge-spin-in .9s var(--ease-pop) .5s both;
}
.badge24 b { font-size: .34em; font-weight: 800; color: #fff; letter-spacing: 0; }
.badge24 small { font-size: .13em; font-weight: 600; color: #ffd7a1; letter-spacing: .12em; }
@keyframes badge-spin-in { from { transform: rotate(-140deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }

.tagline { color: var(--muted); font-size: 14px; margin-top: 8px; animation: rise .7s var(--ease-pop) .3s both; }

body.compact .hero { padding: 14px 16px 4px; }
body.compact .eq-logo { width: 64px; margin-bottom: 2px; }
body.compact .tagline { display: none; }
body.compact .brand-ibiza { font-size: 8px; }
body.compact .brand-smart, body.compact .brand-lockers { font-size: 17px; }

/* Maleta ufficiale (step 0): intro di caricamento + fluttuazione,
   con sagoma luminosa bianca a terra */
.suitcase-wrap { position: relative; width: 132px; margin: 8px auto 4px; }
.suitcase-hero {
  position: relative; z-index: 1;
  width: 132px; height: auto; display: block;
  animation:
    suitcase-intro .9s var(--ease-pop) both,
    suitcase-float 4.5s ease-in-out 1s infinite;
  /* contorno bianco DELICATO che segue la sagoma: un velo di luce,
     quanto basta per staccare la valigia scura dal fondo nero */
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, .7))
    drop-shadow(0 0 2px rgba(255, 255, 255, .35))
    drop-shadow(0 12px 26px rgba(0, 0, 0, .55));
}
.suitcase-glow {
  position: absolute; left: 50%; bottom: -10px;
  width: 110px; height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  filter: blur(4px);
  animation: glow-in 1.1s ease-out both, glow-pulse 4.5s ease-in-out 1s infinite;
}
@keyframes suitcase-intro {
  0%   { opacity: 0; transform: translateY(-46px) scale(.55); }
  60%  { opacity: 1; transform: translateY(4px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes suitcase-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes glow-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  50% { opacity: .6; transform: translateX(-50%) scaleX(.82); }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Stepper ─────────────────────────────────────────────────────── */
.stepper { width: 100%; max-width: 480px; padding: 10px 18px 4px; }
.stepper-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.stepper-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  border-radius: 2px;
  transition: width .5s var(--ease-pop);
}
.stepper-dots { display: flex; justify-content: space-between; margin-top: 7px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
  transition: all .3s;
}
.dot.on { background: var(--orange); box-shadow: 0 0 10px rgba(255, 150, 20, .7); }

/* ── Step layout ─────────────────────────────────────────────────── */
.step { animation: step-in .45s var(--ease-pop) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

.step h2 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600;
  margin: 18px 0 4px;
}
.step .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ── Bottoni ─────────────────────────────────────────────────────── */
.btn-main {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px;
  border: 0; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--orange-hot), var(--orange));
  color: #140a00;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform .15s var(--ease-pop), filter .15s;
}
.btn-main:active { transform: scale(.97); }
.btn-main:disabled { filter: grayscale(.8) brightness(.6); box-shadow: none; cursor: not-allowed; }

.btn-ghost {
  display: block; width: 100%; padding: 12px; margin-top: 10px;
  background: none; border: 0; color: var(--muted);
  font-size: 14px; cursor: pointer;
}
.btn-ghost:active { color: var(--text); }

/* ── Step 0: lingue come SPORTELLI del locker ────────────────────── */
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.lang-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 10px 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: transform .15s var(--ease-pop), border-color .15s, box-shadow .15s;
  animation: rise .5s var(--ease-pop) both;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05), 0 6px 16px rgba(0, 0, 0, .4);
}
/* maniglia dello sportello, in alto a destra come sui box veri */
.lang-btn::after {
  content: '';
  position: absolute; top: 12px; right: 12px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #0a0a0c;
  border: 2.5px solid var(--orange);
  opacity: .85;
}
.langs .lang-btn:nth-child(2) { animation-delay: .06s; }
.langs .lang-btn:nth-child(3) { animation-delay: .12s; }
.langs .lang-btn:nth-child(4) { animation-delay: .18s; }
/* la bandiera è lo SPORTELLO: rettangolo arrotondato in scala box */
.lang-btn .flag-wrap {
  width: 92px; height: 62px;
  border-radius: 9px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(0, 0, 0, .35);
  border: 2px solid rgba(255, 255, 255, .18);
  flex-shrink: 0;
}
.lang-btn .flag-svg {
  width: 104px; height: 70px;
  flex-shrink: 0;
}
.lang-btn:active { transform: scale(.95); border-color: var(--orange); box-shadow: var(--shadow-glow); }

/* ── Countdown scadenza sulla pagina prenotazione ────────────────── */
.timer-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px 16px;
  margin: 14px 0 10px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .04);
}
.timer-card .timer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
/* barra del tempo residuo: si accorcia col passare delle ore */
.timer-card .timer-track {
  height: 8px;
  background: rgba(255, 255, 255, .07);
  border-radius: 5px;
  margin-top: 11px;
  overflow: hidden;
}
.timer-card .timer-fill {
  height: 100%;
  width: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-hot));
  transition: width 1s linear;
}
.timer-card.crit .timer-fill { background: var(--err); }

/* icone ad hoc del sistema: ereditano il colore del testo */
.ic {
  width: 17px; height: 17px;
  vertical-align: -3px;
  color: var(--orange);
  flex-shrink: 0;
}
.btn-main .ic { color: inherit; vertical-align: -2.5px; }

/* riepilogo prenotazione (box, consegna, ritiro) */
.stay-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px 16px;
  margin: 0 0 10px;
}
.stay-card .stay-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.stay-card .stay-row:last-child { border-bottom: 0; }
.stay-card .stay-row span {
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.stay-card .stay-row b { color: var(--text); font-size: 15px; }

/* "apri e chiudi quante volte vuoi" — va detto FORTE */
.open-note {
  background: rgba(255, 150, 20, .09);
  border: 1.5px solid rgba(255, 150, 20, .45);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.timer-card .timer-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.timer-card .timer-value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.timer-card.warn { border-color: var(--orange); }
.timer-card.warn .timer-value { color: var(--orange); }
.timer-card.crit { border-color: var(--err); animation: timer-pulse 1.2s ease-in-out infinite; }
.timer-card.crit .timer-value { color: var(--err); }
@keyframes timer-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 93, 71, 0); }
  50% { box-shadow: 0 0 18px rgba(255, 93, 71, .45); }
}

/* richiamo "info più in basso" sotto le lingue */
.info-cue {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}
.info-cue b { color: var(--orange); font-weight: 700; }
.info-cue .cue-arrow {
  display: inline-block;
  animation: cue-bounce 1.8s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Card generiche ──────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
}

/* Scheda in evidenza (pagina scaduta: «paga il ritardo e apri») —
   si EVIDENZIA la strada principale, non si sbiadiscono le altre */
.card-primary {
  border-color: var(--orange, #FF9614);
  box-shadow: 0 0 0 1px var(--orange, #FF9614) inset;
}


/* ── Step 1: date/ora a chips (niente input nativi) ─────────────── */
.dt-group { margin-bottom: 18px; }
.dt-group > label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 9px;
}
.dt-group > label .dt-ico { font-size: 17px; }
.dt-group .dt-selected {
  margin-left: auto;
  color: var(--orange); font-weight: 700; letter-spacing: 0;
  text-transform: none; font-size: 14px;
}

.chip-strip {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-strip::-webkit-scrollbar { display: none; }

/* striscia giorni con frecce ‹ › */
.strip-wrap { display: flex; align-items: center; gap: 6px; }
.strip-wrap .chip-strip { flex: 1; min-width: 0; }
.strip-arrow {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--panel-2); color: var(--orange);
  font-size: 20px; font-weight: 700; line-height: 1;
  cursor: pointer;
  transition: transform .12s var(--ease-pop), background .12s;
}
.strip-arrow:active { transform: scale(.88); background: var(--orange); color: #140a00; }

/* griglia ORE: tutte visibili, niente scroll (6 per riga, 4 su mobile) */
.hour-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hour-grid .chip {
  flex: 0 0 calc(16.666% - 5px);
  padding: 9px 0; font-size: 13px; text-align: center;
}
@media (max-width: 440px) {
  .hour-grid .chip { flex-basis: calc(25% - 4.5px); }
}
/* "⚡ Adesso": chip largo, evidenziato — l'opzione del cliente al locker */
.hour-grid .now-chip {
  flex-basis: calc(33.333% - 4px);
  font-weight: 700;
  border-color: var(--orange);
  color: var(--orange);
}
@media (max-width: 440px) {
  .hour-grid .now-chip { flex-basis: calc(50% - 3px); }
}
.hour-grid .now-chip.sel { color: #140a00; }

/* ── Picker orario a scomparsa (bottone-orario + pannello a 2 step) ── */
.time-face {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 8px;
  padding: 13px 16px;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 17px; font-weight: 700;
  cursor: pointer;
  transition: border-color .15s;
}
.time-face:active { border-color: var(--orange); }
.time-face b { font-size: 19px; letter-spacing: .5px; }
.time-face { border-color: rgba(255, 150, 20, .6); }
.time-face .tf-hint { color: var(--orange); font-size: 12.5px; font-weight: 600; margin-left: auto; }
.time-panel { margin-top: 8px; }

/* riga data+ora stile noleggio: campo data (calendario) + tendina nativa */
.dt-row { display: flex; gap: 8px; margin-top: 6px; }
.dt-field {
  flex: 1.25; min-width: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 14px;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: border-color .15s;
}
.dt-field:active { border-color: var(--orange); }
.dt-field .ic { color: var(--orange); flex-shrink: 0; }
.dt-field span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-timewrap { position: relative; flex: 1; min-width: 0; display: flex; }
.dt-timewrap::after {
  content: '▾';
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--orange); font-size: 13px; pointer-events: none;
}
.dt-time {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  padding: 13px 30px 13px 14px;
  background: var(--panel-2);
  border: 1.5px solid rgba(255, 150, 20, .6);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.dt-time:focus { outline: none; border-color: var(--orange); }

/* telefono: tendina prefisso (bandiera+paese) + numero nazionale */
.phone-row { display: flex; gap: 8px; }
.cc-select {
  flex: 0 0 42%; min-width: 0;
  appearance: none; -webkit-appearance: none;
  padding: 12px 10px;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.cc-select:focus { outline: none; border-color: var(--orange); }
.phone-row input { flex: 1; min-width: 0; }

/* chip "📅 Altra data": tratteggiato arancio, invita al calendario */
.cal-chip {
  border-style: dashed;
  border-color: rgba(255, 150, 20, .7);
  color: var(--orange);
  display: inline-flex; align-items: center; gap: 6px;
}
.cal-chip.sel { border-style: solid; }

/* calendario mensile a scomparsa */
.cal-panel {
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 2px 0 8px;
}
.cal-panel[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { font-size: 15px; text-transform: capitalize; }
.cal-nav {
  width: 34px; height: 34px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: none; color: var(--orange);
  font-size: 18px; font-weight: 700; cursor: pointer;
}
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { font-size: 11px; color: var(--muted); padding: 2px 0; text-transform: uppercase; }
.cal-day {
  background: none; border: 0;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  padding: 8px 0; border-radius: 9px; cursor: pointer;
}
.cal-day:not(:disabled):active { background: var(--line); }
.cal-day.sel { background: var(--orange); color: #140a00; font-weight: 700; }
.cal-day:disabled { color: var(--line); cursor: default; }

/* supplemento notturno segnato direttamente sul chip dell'ora */
.hour-chip .nfee { font-size: 9.5px; opacity: .85; margin-left: 3px; font-weight: 700; }
/* hidden deve vincere anche sui display:flex espliciti */
.hour-grid[hidden], .half-row[hidden], .time-panel[hidden] { display: none; }

/* durata rapida: 4h / 8h / 24h — un tocco e il ritiro si imposta da solo */
.dur-row { display: flex; gap: 8px; margin-bottom: 8px; }
.dur-row .dur-chip {
  flex: 1;
  padding: 11px 0;
  font-size: 15px; font-weight: 700;
  text-align: center;
}

/* step 2: solo due bottoni grandi «18:00» / «18:30» + freccia indietro */
.half-row { display: flex; gap: 8px; }
.half-row .half-back {
  flex: 0 0 46px;
  font-size: 20px; font-weight: 700;
  color: var(--orange);
}
.half-row .half-chip {
  flex: 1;
  padding: 16px 0;
  font-size: 19px; font-weight: 700;
  text-align: center; letter-spacing: .5px;
}

.chip {
  flex-shrink: 0;
  scroll-snap-align: center;
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14.5px; font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform .12s var(--ease-pop), border-color .15s, background .15s;
}
.chip small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.chip:active { transform: scale(.93); }
.chip.sel {
  background: linear-gradient(135deg, var(--orange-hot), var(--orange));
  border-color: var(--orange);
  color: #140a00;
}
.chip.sel small { color: #4a2800; }
.chip.night { border-color: #3a3555; }
.chip.night::after { content: '🌙'; font-size: 10px; margin-left: 4px; }
.chip.night.sel { border-color: var(--orange); }
.chip:disabled { opacity: .3; cursor: not-allowed; }

.minute-seg {
  display: inline-flex; gap: 0;
  border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden;
  margin-left: 10px; flex-shrink: 0;
}
.minute-seg button {
  padding: 10px 16px; border: 0;
  background: var(--panel-2); color: var(--text);
  font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.minute-seg button.sel { background: var(--orange); color: #140a00; }

.dt-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  font-size: 15px; font-weight: 700;
  color: var(--text);
  background: rgba(255, 150, 20, .09);
  border: 1.5px solid rgba(255, 150, 20, .35);
  border-radius: var(--r-md);
  padding: 12px;
  margin: 4px 0 14px;
}
.dt-summary .arrow { color: var(--orange); }
.dt-summary .dur { font-weight: 600; color: var(--muted, var(--text)); opacity: .85; }
.night-hint {
  display: none; align-items: center; gap: 8px;
  font-size: 13px; color: var(--orange-hot);
  background: rgba(255, 150, 20, .1);
  border-radius: var(--r-sm);
  padding: 9px 12px; margin-bottom: 14px;
}
.night-hint.show { display: flex; }

/* ── Step 2: bagagli ─────────────────────────────────────────────── */
.bag-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 13px 15px;
  margin-bottom: 10px;
  animation: rise .45s var(--ease-pop) both;
}
.bag-row:nth-child(2) { animation-delay: .05s; }
.bag-row:nth-child(3) { animation-delay: .1s; }
.bag-row:nth-child(4) { animation-delay: .15s; }
.bag-ico { width: 44px; height: 52px; color: var(--orange); flex-shrink: 0; }
.bag-ico svg { width: 100%; height: 100%; }
.bag-name { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.25; }
.bag-name small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.bag-name .bag-max { color: var(--orange); font-weight: 600; font-size: 11px; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button {
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: var(--panel-2);
  color: var(--orange);
  font-size: 24px; font-weight: 700; line-height: 1;
  cursor: pointer;
  transition: transform .12s var(--ease-pop), background .12s;
}
.qty button:active { transform: scale(.85); background: var(--orange); color: #140a00; }
.qty .qty-n {
  min-width: 34px; text-align: center;
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
}

/* ── Suggerimento box + collage ─────────────────────────────────── */
.suggest {
  background: linear-gradient(150deg, rgba(255, 150, 20, .13), rgba(255, 150, 20, .03));
  border: 1.5px solid rgba(255, 150, 20, .5);
  border-radius: var(--r-lg);
  padding: 18px;
  margin: 16px 0 12px;
  animation: pop-in .5s var(--ease-pop) both;
}
@keyframes pop-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.suggest-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--orange-hot);
  display: flex; align-items: center; gap: 8px;
}
.collage { display: flex; justify-content: center; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 14px 0 6px; }
.collage svg { max-width: 100%; height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }
.collage .cbag { color: #e9dfcf; animation: bag-drop .5s var(--ease-pop) both; }
@keyframes bag-drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* scheda tecnica del box: sportello + quote cm */
.collage .box-outline { fill: #1c1c24; stroke: #3d404b; stroke-width: 2; }
.collage .box-inner   { fill: #101014; stroke: #FF9614; stroke-width: 2; }
.collage .dim-line    { stroke: #8b857a; stroke-width: 1.5; }
.collage .dim-chip    { fill: #14141a; stroke: #3d404b; stroke-width: 1; }
.collage .dim-txt     { fill: #e9dfcf; font-size: 11px; font-weight: 700; font-family: 'Instrument Sans', sans-serif; }
.collage .box-label   { fill: #FF9614; font-weight: 700; font-family: 'Unbounded', sans-serif; }
.collage .box-dims    { fill: #a29b8d; font-size: 9.5px; font-family: 'Instrument Sans', sans-serif; }

.fit-note { text-align: center; font-size: 13px; color: var(--muted); }
.fit-note.warn { color: var(--err); }
.fit-fineprint { text-align: center; font-size: 11.5px; color: var(--muted); opacity: .8; margin-top: 8px; line-height: 1.4; }

.alt-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.alt-chip {
  flex: 1; min-width: 86px;
  padding: 11px 8px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text); text-align: center;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, transform .12s var(--ease-pop);
}
.alt-chip small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.alt-chip.sel { border-color: var(--orange); background: rgba(255, 150, 20, .1); }
.alt-chip:disabled { opacity: .35; cursor: not-allowed; }
.alt-chip:not(:disabled):active { transform: scale(.94); }

/* ── Prezzo ──────────────────────────────────────────────────────── */
.price-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 3px 0; }
.price-line.total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px;
  color: var(--text); font-weight: 700; font-size: 17px;
}
.price-line.total .amount { font-family: var(--font-display); color: var(--orange); font-size: 22px; }
.price-line .saving { color: var(--ok); }

/* ── Step 3: checkout ────────────────────────────────────────────── */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text); font-family: inherit; font-size: 16px;
}
.field input:focus { outline: none; border-color: var(--orange); }
.field input.invalid { border-color: var(--err); }

.discount-row { display: flex; gap: 8px; }
.discount-row input { flex: 1; text-transform: uppercase; }
.discount-row button {
  padding: 0 18px;
  background: var(--panel-2); color: var(--orange);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-weight: 700; cursor: pointer;
}
.discount-msg { font-size: 13px; margin-top: 6px; }
.discount-msg.ok { color: var(--ok); }
.discount-msg.err { color: var(--err); }

.policy { display: flex; gap: 11px; align-items: flex-start; margin: 16px 0; font-size: 13.5px; color: var(--muted); }
.policy input { width: 22px; height: 22px; accent-color: var(--orange); flex-shrink: 0; margin-top: 1px; }

#payment-element { margin: 14px 0; }

/* ── Step 4: conferma ────────────────────────────────────────────── */
.waiting { text-align: center; padding: 46px 0; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border: 4px solid var(--line); border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.rules-banner {
  background: var(--panel);
  border: 1.5px solid rgba(255, 150, 20, .5);
  border-radius: var(--r-lg);
  padding: 20px;
  animation: pop-in .5s var(--ease-pop) both;
}
.rules-banner h3 { font-family: var(--font-display); font-size: 17px; color: var(--orange); margin-bottom: 10px; }
.rules-banner ul { padding-left: 20px; font-size: 14px; display: grid; gap: 7px; color: var(--text); }

.success-check {
  width: 78px; height: 78px; margin: 8px auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--orange-hot), var(--orange-deep));
  display: flex; align-items: center; justify-content: center;
  color: #140a00;
  box-shadow: var(--shadow-glow);
  animation: pop-in .6s var(--ease-pop) both;
}
.success-check svg { width: 38px; height: 38px; }

.qr-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
  animation: rise .5s var(--ease-pop) both;
}
.qr-card img {
  width: 210px; height: 210px;
  border-radius: var(--r-md);
  background: #fff; padding: 8px;
}
.qr-card .box-name { font-family: var(--font-display); font-size: 18px; color: var(--orange); margin-top: 10px; }
.qr-card .box-code { font-size: 15px; letter-spacing: 3px; color: var(--text); margin-top: 2px; }

.conf-info { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0; line-height: 1.7; }

/* ── Errori / toast ──────────────────────────────────────────────── */
.error-box {
  background: rgba(255, 93, 71, .1);
  border: 1.5px solid rgba(255, 93, 71, .55);
  border-radius: var(--r-md);
  color: #ffb3a8;
  padding: 13px 15px;
  font-size: 14px;
  margin: 12px 0;
}
