/* ============================================================
   TEST ONLINE — "Quanto margine sta bruciando la tua commessa?"
   Usa i token del sito (index.html :root). Nessuna animazione continua.
   ============================================================ */

/* ---------- Fascia di presentazione sul sito ---------- */
.test-band {
  background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(248, 159, 90, 0.12), transparent 70%), var(--slate-950);
  color: var(--white);
  padding: 96px 0;
  scroll-margin-top: 90px;
}
.test-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.test-band h2 { color: var(--white); text-align: left; }
.test-band .sub { color: var(--slate-300); font-size: 18px; line-height: 1.6; margin: 6px 0 22px; max-width: 560px; }
.test-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 0 0 28px; padding: 0; }
.test-points li { position: relative; padding-left: 26px; color: var(--slate-200); font-size: 16px; line-height: 1.4; }
.test-points li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 4px var(--slate-950); border: 2px solid var(--green); box-sizing: border-box; }
.test-note { margin-top: 14px; font-size: 14px; color: var(--slate-400); }
.test-preview { background: linear-gradient(180deg, var(--slate-850), var(--slate-900)); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); }
.tp-kicker { font-family: var(--heading); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate-400); margin-bottom: 6px; }
.tp-level { font-family: var(--heading); font-weight: 800; font-size: 28px; text-transform: uppercase; color: var(--pink); line-height: 1.1; margin-bottom: 18px; }
.tp-level b { color: var(--white); margin-left: 8px; }
.tp-row { display: grid; grid-template-columns: 22px 1fr 96px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.tp-row span { color: var(--slate-200); font-size: 15px; }
.tp-row .n { font-family: var(--heading); font-weight: 800; color: var(--orange); }
.tp-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.tp-bar i { display: block; height: 100%; border-radius: 4px; }
.tp-blur { margin-top: 14px; filter: blur(4px); user-select: none; color: var(--slate-300); font-size: 14px; line-height: 1.5; }
@media (max-width: 960px) {
  .test-grid { grid-template-columns: 1fr; gap: 36px; }
  .test-band { padding: 64px 0; }
}
@media (max-width: 600px) {
  .test-points { grid-template-columns: 1fr; }
  .test-band .btn { width: 100%; }
}

/* Barre di gravità (condivise) */
.sev-ok i, .tp-bar i.sev-ok { background: var(--green); }
.sev-attenzione i, .tp-bar i.sev-attenzione { background: var(--orange); }
.sev-grave i, .tp-bar i.sev-grave { background: var(--pink); }
.sev-critico i, .tp-bar i.sev-critico { background: #C22B4C; }

/* ---------- Finestra del test ---------- */
body.qz-open { overflow: hidden; }
/* Mentre il test è aperto, bolla della chat e pulsante flottante non coprono il modulo */
body.qz-open .mhw-btn, body.qz-open .mhw-panel, body.qz-open .floating-quick-pill { visibility: hidden !important; }
.qz[hidden] { display: none; }
.qz { position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qz-backdrop { position: absolute; inset: 0; background: rgba(13, 16, 20, 0.72); backdrop-filter: blur(3px); }
.qz-panel {
  position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; background: var(--white); border-radius: 16px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.qz.is-report .qz-panel { max-width: 860px; }
.qz-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px 12px 22px; background: var(--white); border-bottom: 1px solid var(--border-subtle); }
.qz-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.qz-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.qz-dots i:nth-child(1) { background: var(--pink); } .qz-dots i:nth-child(2) { background: var(--orange); } .qz-dots i:nth-child(3) { background: var(--green); }
.qz-head-title { flex: 1; font-family: var(--heading); font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-subtle); background: var(--white); color: var(--slate-700); font-size: 16px; cursor: pointer; flex-shrink: 0; }
.qz-close:hover { background: var(--slate-100); }
.qz-progress { position: sticky; top: 64px; z-index: 2; height: 4px; background: var(--slate-100); }
.qz-progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width 0.3s var(--ease-out); }
.qz-body { padding: 30px 34px 34px; }
.qz-body :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.qz-title:focus, .qz-q:focus { outline: none; }

.qz-kicker { font-family: var(--heading); font-weight: 700; font-size: 13.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--pink-ink); margin-bottom: 8px; }
.qz-title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.05; margin-bottom: 16px; }
.qz-title span { color: var(--orange); }
.qz-lead { font-size: 17px; line-height: 1.55; color: var(--slate-700); margin-bottom: 16px; }
.qz-lead b { color: var(--slate-900); }
.qz-list { list-style: none; padding: 0; margin: 0 0 26px; }
.qz-list li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 16.5px; line-height: 1.45; color: var(--slate-700); }
.qz-list li::before { content: '›'; position: absolute; left: 2px; top: -3px; font-family: var(--heading); font-weight: 800; font-size: 24px; color: var(--orange); }
.qz-list b { color: var(--slate-900); }
.qz-note { margin-top: 14px; font-size: 14.5px; color: var(--slate-500); }

/* Domande */
.qz-step { font-family: var(--heading); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate-500); margin-bottom: 10px; }
.qz-step span { color: var(--orange); margin: 0 4px; }
.qz-q { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; line-height: 1.12; margin-bottom: 22px; text-transform: none; letter-spacing: 0; }
.qz-options { display: grid; gap: 10px; }
.qz-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--border-subtle); background: var(--white);
  font: inherit; font-size: 16.5px; line-height: 1.35; color: var(--slate-800);
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.qz-opt:hover { border-color: var(--orange); background: #FFF8F2; }
.qz-opt.is-on { border-color: var(--orange); background: #FFF1E6; box-shadow: 0 0 0 3px rgba(248, 159, 90, 0.25); }
.qz-opt-key { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-weight: 800; font-size: 15px; background: var(--slate-100); color: var(--slate-700); }
.qz-opt.is-on .qz-opt-key { background: var(--orange); color: var(--slate-950); }
.qz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.qz-back, .qz-next { white-space: nowrap; }
.qz-back, .qz-next, .qz-ghost { background: none; border: none; cursor: pointer; font-family: var(--heading); font-weight: 700; font-size: 15px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--slate-600); padding: 8px 4px; }
.qz-back:hover, .qz-next:hover { color: var(--orange-ink); }
.qz-next { color: var(--orange-ink); }
.qz-hint { font-size: 14px; color: var(--slate-500); text-align: right; }

/* Livello */
.qz-level { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 12px; margin-bottom: 16px; background: var(--slate-50); border-left: 5px solid var(--lv); }
.lvl-ok { --lv: var(--green); --lv-ink: var(--green-ink); }
.lvl-rischio { --lv: var(--orange); --lv-ink: var(--orange-ink); }
.lvl-brucia { --lv: var(--pink); --lv-ink: var(--pink-ink); }
.lvl-emergenza { --lv: #C22B4C; --lv-ink: #8E1F37; }
.qz-level-score { font-family: var(--heading); line-height: 1; color: var(--slate-900); }
.qz-level-score b { font-size: 52px; font-weight: 900; }
.qz-level-score span { font-size: 22px; font-weight: 700; color: var(--slate-500); }
.qz-level-label { font-family: var(--heading); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--lv-ink); line-height: 1.05; margin-bottom: 8px; }
.qz-gauge { height: 10px; border-radius: 5px; background: var(--slate-200); overflow: hidden; }
.qz-gauge i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--orange) 50%, var(--pink)); }

/* Anteprima bloccata */
.qz-locked { border: 1px dashed var(--slate-300); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: var(--slate-50); }
.qz-locked-title { font-family: var(--heading); font-weight: 700; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--slate-600); margin-bottom: 8px; }
.qz-lrow { display: grid; grid-template-columns: 22px 1fr 110px; gap: 10px; align-items: center; padding: 5px 0; }
.qz-lrank { font-family: var(--heading); font-weight: 800; color: var(--orange-ink); }
.qz-lname { filter: blur(5px); user-select: none; color: var(--slate-700); }
.qz-lbar, .qz-rbar { height: 9px; border-radius: 5px; background: var(--slate-200); overflow: hidden; }
.qz-lbar i, .qz-rbar i { display: block; height: 100%; border-radius: 5px; }

/* Modulo */
.qz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.qz-fields label { display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--slate-800); }
.qz-fields label small { font-weight: 400; color: var(--slate-500); }
.qz-fields input, .qz-fields select { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 12px; border-radius: 8px; border: 1.5px solid var(--slate-300); background: var(--white); color: var(--slate-900); }
.qz-fields input:focus, .qz-fields select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(248, 159, 90, 0.2); }
.qz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.qz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--slate-700); margin-bottom: 10px; cursor: pointer; }
.qz-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.qz-check a { color: var(--orange-ink); }
.qz-check small { color: var(--slate-500); }
.qz-error { background: #FFE9EC; color: var(--pink-ink); border-radius: 8px; padding: 10px 12px; font-size: 15px; margin: 6px 0 10px; }
.qz-form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.qz-submit[disabled] { opacity: 0.7; cursor: wait; }

/* Anteprima dopo l'invio */
.qz-teaser { border: 1px solid var(--border-subtle); border-left: 5px solid var(--pink); border-radius: 12px; padding: 14px 18px 12px; margin: 4px 0 18px; background: var(--white); }
.qz-teaser .qz-lab { margin-top: 0; }
.qz-teaser p { font-size: 16px; line-height: 1.5; color: var(--slate-700); }

/* Report */
.qz-report { color: var(--slate-800); }
.qz-r-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 3px solid var(--orange); }
.qz-r-head .qz-dots { margin-top: 6px; }
.qz-r-head .qz-title { margin-bottom: 6px; font-size: clamp(26px, 3.4vw, 36px); }
.qz-r-for { font-size: 15px; color: var(--slate-500); }
.qz-r-sec { margin-bottom: 30px; }
.qz-r-sec h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--border-subtle); }
.qz-r-cost { background: var(--slate-900); color: var(--white); border-radius: 12px; padding: 20px 22px; }
.qz-r-cost h3 { color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.12); }
.qz-r-cost p { color: var(--slate-300); font-size: 16px; line-height: 1.55; margin-bottom: 8px; }
.qz-r-big { font-family: var(--heading); font-weight: 900; font-size: 40px !important; line-height: 1 !important; color: var(--orange) !important; margin-bottom: 10px !important; }
.qz-r-big small { font-size: 18px; color: var(--slate-300); font-weight: 700; margin-left: 6px; }
.qz-r-small { font-size: 13.5px !important; color: var(--slate-500) !important; line-height: 1.5; }
.qz-r-cost .qz-r-small { color: var(--slate-400) !important; }
.qz-rank { display: grid; gap: 4px; }
.qz-rrow { display: grid; grid-template-columns: 26px minmax(0, 1.3fr) minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--slate-100); }
.qz-rnum { font-family: var(--heading); font-weight: 900; font-size: 20px; color: var(--orange-ink); }
.qz-rname { font-weight: 700; color: var(--slate-900); font-size: 16px; }
.qz-chip { justify-self: end; font-family: var(--heading); font-weight: 800; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.qz-chip.sev-ok { background: #EEF6E2; color: var(--green-ink); }
.qz-chip.sev-attenzione { background: #FFF1E6; color: var(--orange-ink); }
.qz-chip.sev-grave { background: #FFE9EC; color: var(--pink-ink); }
.qz-chip.sev-critico { background: #C22B4C; color: var(--white); }
.qz-prio { border: 1px solid var(--border-subtle); border-left: 5px solid var(--orange); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; background: var(--white); break-inside: avoid; }
.qz-prio.sev-grave { border-left-color: var(--pink); }
.qz-prio.sev-critico { border-left-color: #C22B4C; }
.qz-prio-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.qz-prio-rank { width: 32px; height: 32px; border-radius: 50%; background: var(--slate-900); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.qz-prio-head h4 { flex: 1; font-size: 21px; font-weight: 800; margin: 0; }
.qz-lab { font-family: var(--heading); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate-500); margin: 12px 0 5px; }
.qz-prio p { font-size: 16px; line-height: 1.5; color: var(--slate-700); }
.qz-ul { list-style: none; padding: 0; margin: 0; }
.qz-ul li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 16px; line-height: 1.5; color: var(--slate-700); }
.qz-ul li::before { content: '›'; position: absolute; left: 2px; top: -3px; font-family: var(--heading); font-weight: 800; font-size: 22px; color: var(--pink); }
.qz-ul-scan li::before { color: var(--orange); }
.qz-bonus { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #EEF6E2; color: var(--green-ink) !important; font-size: 14.5px !important; }
.qz-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.qz-steps div { background: var(--slate-50); border-radius: 10px; padding: 12px; }
.qz-steps b { display: block; font-family: var(--heading); font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-ink); }
.qz-steps strong { display: block; font-family: var(--heading); font-weight: 800; font-size: 17px; text-transform: uppercase; color: var(--slate-900); margin: 2px 0 4px; }
.qz-steps span { display: block; font-size: 14px; line-height: 1.4; color: var(--slate-600); }
.qz-guar { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.qz-guar li { padding: 10px 12px; border: 1.5px dashed var(--green); border-radius: 10px; background: #FAFDF6; font-size: 15px; line-height: 1.45; color: var(--slate-700); }
.qz-guar b { color: var(--green-ink); }
.qz-r-fit { background: #FFF4EA; border: 1px solid rgba(248, 159, 90, 0.5); border-radius: 12px; padding: 18px 20px; }
.qz-r-fit h3 { border-bottom: none; padding-bottom: 0; margin-bottom: 8px; }
.qz-r-fit p { font-size: 17px; line-height: 1.55; color: var(--slate-800); }
.qz-r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 6px 0 12px; }
.qz-ghost { border: 1.5px solid var(--slate-300); border-radius: 6px; padding: 13px 20px; color: var(--slate-800); }
.qz-ghost:hover { border-color: var(--orange); color: var(--orange-ink); }
.qz-r-status { font-size: 15px; color: var(--slate-700); margin-bottom: 10px; }
.qz-r-disc { font-size: 13.5px; line-height: 1.5; color: var(--slate-500); border-top: 1px solid var(--border-subtle); padding-top: 12px; }

@media (max-width: 700px) {
  .qz { padding: 0; }
  .qz-panel { max-height: 100vh; max-height: 100dvh; height: 100%; border-radius: 0; }
  .qz-body { padding: 22px 18px 28px; }
  .qz-fields { grid-template-columns: 1fr; }
  .qz-steps { grid-template-columns: 1fr 1fr; }
  .qz-rrow { grid-template-columns: 22px 1fr auto; }
  .qz-rrow .qz-rbar { grid-column: 2 / 4; grid-row: 2; }
  .qz-form-actions .btn, .qz-r-actions .btn { width: 100%; }
  .qz-head-title { font-size: 12px; }
  .qz-hint { display: none; }
}

/* ---------- Stampa / PDF del report ---------- */
@media print {
  body.qz-printing > *:not(#qz) { display: none !important; }
  body.qz-printing { overflow: visible !important; background: #fff !important; }
  body.qz-printing .qz { position: static !important; display: block !important; padding: 0 !important; }
  body.qz-printing .qz-backdrop, body.qz-printing .qz-head, body.qz-printing .qz-progress, body.qz-printing .qz-r-actions { display: none !important; }
  body.qz-printing .qz-panel { max-width: none !important; max-height: none !important; overflow: visible !important; box-shadow: none !important; border-radius: 0 !important; }
  body.qz-printing .qz-body { padding: 0 !important; }
  body.qz-printing .qz-r-cost, body.qz-printing .qz-prio, body.qz-printing .qz-r-scan, body.qz-printing .qz-rrow, body.qz-printing .qz-level { break-inside: avoid; }
  body.qz-printing * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 14mm; }
}

/* ============================================================
   BOOKING SLOT + ACCESSI AL TEST IN EVIDENZA (17/09/2026)
   ============================================================ */
/* Barrette slot: arancio pieno = libero, grigio = chiuso/prenotato */
.sl-bars { display: inline-flex; gap: 3px; align-items: center; }
.sl-bars i { display: block; width: 7px; height: 14px; border-radius: 2px; }
.sl-bars i.is-off { background: rgba(148, 161, 184, 0.45); }
.sl-bars i.is-free { background: var(--orange); box-shadow: 0 0 8px rgba(248, 159, 90, 0.8); animation: sl-blink 2.4s ease-in-out infinite; }
@keyframes sl-blink { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .sl-bars i.is-free { animation: none; } }

/* Header */
.header-slot-pill { gap: 8px !important; }
.header-slot-pill .sl-label { color: var(--slate-600); }
.header-slot-pill .sl-bars i.is-off { background: var(--slate-300); }
.header-slot-pill b { color: var(--pink-ink) !important; }
.htb-free {
  display: inline-block; font-family: var(--heading); font-weight: 900; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--slate-950); color: var(--green); padding: 2px 7px; border-radius: 4px; line-height: 1.3;
}
.header-test-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; white-space: nowrap;
  background: var(--green); color: var(--slate-950); border: none; border-radius: 999px; padding: 8px 16px 8px 8px;
  font-family: var(--heading); font-weight: 800; font-size: 15px; letter-spacing: 0.6px; text-transform: uppercase;
  box-shadow: 0 6px 18px -6px rgba(140, 198, 63, 0.8); transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.header-test-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(140, 198, 63, 0.9); }
.header-test-btn .htb-free { background: var(--slate-950); color: var(--green); }
.htb-short { display: none; }
@media (max-width: 860px) {
  .header-actions { gap: 8px !important; }
  .header-test-btn { padding: 6px 12px 6px 6px; font-size: 14px; }
  .htb-long { display: none; } .htb-short { display: inline; }
}

/* Hero: chip di disponibilità */
.hk-chip { gap: 8px 12px !important; }
.hk-chip b { color: var(--orange) !important; }

/* Hero: pulsante del test accanto alla Discovery Call */
.hk-btn-test {
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer; text-align: left;
  padding: 10px 22px 10px 12px; border-radius: 8px; border: 2px solid var(--green);
  background: rgba(140, 198, 63, 0.12); color: var(--white);
  font-family: var(--heading); font-weight: 800; font-size: 19px; letter-spacing: 0.6px; text-transform: uppercase; line-height: 1.1;
  box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.5), 0 12px 32px -10px rgba(140, 198, 63, 0.55);
  transition: transform 0.25s var(--ease-out), background-color 0.25s, box-shadow 0.25s;
  animation: hk-test-ring 3.2s ease-out 2.5s infinite;
}
.hk-btn-test:hover { transform: translateY(-2px); background: rgba(140, 198, 63, 0.22); }
.hk-btn-test:hover .hk-arrow { transform: translateX(5px); }
.hk-btn-test .hk-arrow { color: var(--green); font-size: 22px; }
.hk-free {
  flex-shrink: 0; font-family: var(--heading); font-weight: 900; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--green); color: var(--slate-950); padding: 6px 9px; border-radius: 5px; transform: rotate(-4deg);
}
.hk-test-txt { display: flex; flex-direction: column; gap: 3px; }
.hk-test-txt small { font-family: var(--body); font-weight: 400; font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--slate-300); }
@keyframes hk-test-ring {
  0% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.55), 0 12px 32px -10px rgba(140, 198, 63, 0.55); }
  35%, 100% { box-shadow: 0 0 0 14px rgba(140, 198, 63, 0), 0 12px 32px -10px rgba(140, 198, 63, 0.55); }
}
.hero.hk-offscreen .hk-btn-test { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hk-btn-test { animation: none; } }
.hk-slot-line { margin: 0 0 12px; font-size: 15px; }
.hk-slot-line a { color: var(--slate-300); text-decoration: none; border-bottom: 1px dashed rgba(248, 159, 90, 0.6); padding-bottom: 1px; transition: color 0.2s; text-shadow: 0 1px 2px rgba(13,16,20,.85); }
.hk-slot-line a:hover { color: var(--orange); }
.hk-slot-line span[data-slots] { color: var(--orange); font-weight: 700; }
@media (max-width: 600px) {
  .hk-btn-test { width: 100%; justify-content: flex-start; font-size: 17px; }
  .hk-btn-test .hk-arrow { margin-left: auto; }
  .hk-slot-line { font-size: 14px; }
}

/* Card disponibilità nel box prezzo */
.sl-card { background: var(--slate-900); color: var(--white); border-radius: 12px; padding: 16px 16px 12px; margin: 16px 0 18px; }
.sl-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; font-family: var(--heading); text-transform: uppercase; }
.sl-card-head span { font-weight: 700; font-size: 14px; letter-spacing: 1.2px; color: var(--slate-400); }
.sl-card-head b { font-weight: 800; font-size: 20px; color: var(--orange); }
.sl-quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sl-q { border-radius: 8px; padding: 9px 6px; text-align: center; font-family: var(--heading); text-transform: uppercase; }
.sl-q span { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.4px; }
.sl-q b { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; margin-top: 2px; }
.sl-q.is-chiuso, .sl-q.is-prenotato { background: rgba(255, 255, 255, 0.05); color: var(--slate-500); }
.sl-q.is-chiuso span, .sl-q.is-prenotato span { text-decoration: line-through; }
.sl-q.is-libero { background: var(--orange); color: var(--slate-950); box-shadow: 0 0 18px rgba(248, 159, 90, 0.45); }
.sl-note { margin: 10px 0 0 !important; font-size: 12.5px !important; color: var(--slate-400) !important; text-align: center; }

/* Fascia del test: badge */
.test-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.test-badges span { font-family: var(--heading); font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate-200); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 4px 12px; }
.test-badges .tb-free { background: var(--green); border-color: var(--green); color: var(--slate-950); font-weight: 900; }
.test-band-btn { font-size: 20px !important; padding: 18px 34px !important; background: var(--green) !important; color: var(--slate-950) !important; box-shadow: 0 14px 36px -10px rgba(140, 198, 63, 0.7) !important; }
.test-band-btn:hover { background: #9BD24F !important; }

/* Menu mobile */
.drawer-test { background: var(--green) !important; color: var(--slate-950) !important; box-shadow: none !important; gap: 10px; }
.drawer-slots { font-size: 14px; color: var(--pink-ink); text-align: center; margin: 0; }

/* Pulsante flottante: il test finché non è stato fatto */
.floating-quick-pill.fqp-test { background: var(--green); color: var(--slate-950); border-color: var(--green); padding: 8px 18px 8px 8px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45); }
.floating-quick-pill.fqp-test:hover { background: #9BD24F; }
.floating-quick-pill.fqp-done { background: var(--slate-900); color: var(--white); border-color: rgba(255,255,255,.15); padding: 10px 18px; }

/* Modulo: campi a tutta larghezza, slot nella schermata finale */
.qz-fields .qz-wide { grid-column: 1 / -1; }
.qz-badges { margin-bottom: 12px; }
.qz-badges span { color: var(--slate-700); border-color: var(--slate-300); }
.qz-badges .tb-free { color: var(--slate-950); }
.qz-slot { display: flex; align-items: center; gap: 10px; background: var(--slate-900); color: var(--slate-200); border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.4; margin: 6px 0 14px; }
.qz-slot .sl-bars { flex-shrink: 0; }
@media (max-width: 700px) { .qz-fields .qz-wide { grid-column: auto; } }
.qz-lt small { font-weight: 400; color: var(--slate-500); }

/* ---------- Sconto a tempo dopo il test (quiz/offerta-config.mjs) ---------- */
.qz-offer { border: 2px solid var(--orange); border-radius: 16px; background: #FFF6EE; padding: 18px 20px 16px; margin: 6px 0 16px; }
.qz-offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.qz-offer-kicker { font-family: var(--heading); font-weight: 700; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 4px; }
.qz-offer-title { font-family: var(--heading); font-weight: 800; font-size: 25px; line-height: 1.15; text-transform: uppercase; color: var(--slate-900); margin: 0; }
.qz-offer-clock { flex-shrink: 0; text-align: center; background: var(--slate-900); color: var(--white); border-radius: 12px; padding: 8px 14px 6px; min-width: 128px; }
.qz-offer-clock span { display: block; font-size: 12px; line-height: 1.25; color: var(--slate-300); }
.qz-offer-clock b { display: block; font-family: var(--heading); font-weight: 800; font-size: 38px; line-height: 1.05; letter-spacing: 1px; color: var(--orange); font-variant-numeric: tabular-nums; }
.qz-offer-rows { margin: 14px 0 8px; }
.qz-offer-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid #F3D9C4; }
.qz-offer-rows dt { font-size: 15px; color: var(--slate-700); }
.qz-offer-rows dd { margin: 0; text-align: right; font-size: 16px; color: var(--slate-900); }
.qz-offer-rows dd s { display: block; font-size: 13px; color: var(--slate-500); }
.qz-offer-note { font-size: 14.5px; line-height: 1.5; color: var(--slate-700); margin: 8px 0 14px; }
.qz-offer-cta { display: inline-flex; }
.qz-offer-after { font-size: 13.5px; line-height: 1.45; color: var(--slate-500); margin: 10px 0 0; }
.qz-offer.is-expired { border-color: var(--slate-300); background: var(--white); }
.qz-offer-expired { font-size: 15.5px; line-height: 1.5; color: var(--slate-700); margin: 0; }
.floating-quick-pill.fqp-offer b { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .qz-offer { padding: 16px 14px 14px; }
  .qz-offer-top { flex-direction: column-reverse; }
  .qz-offer-clock { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .qz-offer-clock b { font-size: 32px; }
  .qz-offer-title { font-size: 22px; }
  .qz-offer-rows div { flex-direction: column; gap: 2px; }
  .qz-offer-rows dd { text-align: left; }
  .qz-offer-cta { width: 100%; justify-content: center; text-align: center; gap: 10px; }
}
@media print { .qz-offer { display: none; } }
