/* ================================================================
   magicstore Quiz — Style v4.0
   Base (font, vars, body): shared.css
   ================================================================ */

html, body { height: 100%; }

#app { min-height: 100vh; overflow-x: hidden; width: 100%; }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress-wrap  { flex: 1; display: flex; align-items: center; gap: 12px; margin-left: 4px; }
.progress-track { flex: 1; height: 6px; background: rgba(255,255,255,0.12); border-radius: 99px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--blue); border-radius: 99px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); width: 0%; }
.progress-label { font-size: 13px; font-weight: 600; color: var(--gray); white-space: nowrap; min-width: 42px; text-align: right; }

/* ═══════════════════════════════════════════════════════════
   WELCOME v3.0 — Luxury Diagnostic
   Direction: editorial black · gold accents · two-column desktop
   ═══════════════════════════════════════════════════════════ */

/* Gold variables (welcome-scoped) */
:root {
  --gold:      #C89030;
  --gold-lt:   #E8B040;
  --cream:     #F0EDE8;
  --w-bg:      #152535;
}

.welcome-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--w-bg);
  background-image:
    repeating-linear-gradient(-55deg, rgba(255,255,255,0.016) 0px, rgba(255,255,255,0.016) 1px, transparent 1px, transparent 34px),
    repeating-linear-gradient(35deg,  rgba(255,255,255,0.010) 0px, rgba(255,255,255,0.010) 1px, transparent 1px, transparent 34px);
  position: relative;
  overflow: hidden;
}

/* Atmospheric glows */
.welcome-wrap::before {
  content: '';
  position: fixed;
  top: -180px; left: -180px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(200,144,48,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.welcome-wrap::after {
  content: '';
  position: fixed;
  bottom: -200px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,157,224,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* top-bar--welcome e logo variants → vedi shared.css */

/* Layout: 2 col desktop, 1 col mobile con right in mezzo */
.welcome-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "top    right"
    "bottom right";
  gap: 0 72px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 48px 80px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.welcome-left { display: flex; flex-direction: column; align-items: flex-start; }
.welcome-left-top    { grid-area: top;    padding-bottom: 0; }
.welcome-left-bottom { grid-area: bottom; }

.welcome-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 32px;
  align-self: start;
}

/* Badge — freccia stile magicstore */
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 30px;
  width: 100%;
  border-bottom: none;
  padding-bottom: 0;
}
.wb-arrow {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  color: #E8262A;
}

/* Title — massive Novelin Black */
.welcome-title {
  font-family: 'Novelin', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -2px;
  color: #ffffff;
  margin-bottom: 24px;
}

/* Sub — thin weight, muted */
.welcome-sub {
  font-size: 17px;
  font-weight: 400;
  color: rgba(240,237,232,0.75);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}
.welcome-sub strong { color: var(--cream); font-weight: 400; }

/* Timer — minimal text separator */
.welcome-timer-pill {
  display: flex;
  align-items: center;
  gap: 0;
  color: rgba(240,237,232,0.85);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 42px;
  padding: 0;
  background: none;
  border: none;
  animation: none;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.welcome-timer-pill::before,
.welcome-timer-pill::after {
  content: '';
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  background: rgba(255,255,255,0.18);
}
.welcome-timer-pill::before { margin-right: 16px; }
.welcome-timer-pill::after  { margin-left: 16px; }

/* Features — editorial list */
.welcome-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}
.wf-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 15px;
  font-weight: 400;
  color: rgba(240,237,232,0.65);
  text-align: left;
  background: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  letter-spacing: 0.1px;
}
.wf-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.06); }
.wf-row strong { color: var(--cream); font-weight: 400; }
.wf-icon { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; opacity: 0.8; }

/* CTA — stile magicstore (blu pill) */
.welcome-left .btn-primary {
  background: #009DE0;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 24px rgba(0,157,224,0.35);
  max-width: none;
  width: 100%;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.welcome-left .btn-primary:hover {
  background: #33b4e8;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,157,224,0.5);
}

/* Proof */
.welcome-proof {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(240,237,232,0.55);
}
.welcome-proof strong { color: rgba(240,237,232,0.55); font-weight: 400; }
.proof-stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; }

/* ── Report Preview (right col) ── */
.report-preview {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(200,144,48,0.18);
  border-radius: 3px;
  overflow: visible;
  margin-bottom: 0;
  position: relative;
}
.report-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rp-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #E8B040;
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rp-radar-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0 10px;
}
.rp-radar-svg {
  width: 100%;
  max-width: 260px;
  display: block;
  overflow: visible;
}
.rp-footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rp-badge-good {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: #2ecc71;
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: 2px;
  padding: 3px 10px;
}
.rp-rec {
  font-size: 9px;
  font-weight: 400;
  color: rgba(240,237,232,0.55);
  letter-spacing: 0.3px;
}

/* ── Staggered entrance animations ── */
@keyframes wReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.w-anim { animation: wReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.w-d1 { animation-delay: 0.06s; }
.w-d2 { animation-delay: 0.18s; }
.w-d3 { animation-delay: 0.32s; }
.w-d4 { animation-delay: 0.46s; }
.w-d5 { animation-delay: 0.62s; }
.w-d6 { animation-delay: 0.78s; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white) !important;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 440px;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0,157,224,0.45);
  text-decoration: none;
}

.btn-primary:hover  { background: var(--blue-lt); box-shadow: 0 8px 28px rgba(0,157,224,0.55); }
.btn-primary:active { transform: scale(0.97); }

/* ── QUIZ SCREEN ─────────────────────────────────────────── */
.quiz-wrap {
  min-height: 100vh;    /* fallback */
  min-height: 100svh;   /* modern: excludes mobile browser chrome (iOS Safari 15.4+) */
  display: flex;
  flex-direction: column;
}

.quiz-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 52px;
}

/* ── QUESTION CARD ───────────────────────────────────────── */
.question-card {
  width: 100%;
  max-width: 580px;
  animation: slideIn 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInBack {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.question-card--back {
  animation: slideInBack 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── BACK BUTTON ─────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.38);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0 22px;
  transition: color 0.15s;
  letter-spacing: 0.1px;
}
.back-btn:hover { color: rgba(255,255,255,0.75); }

.q-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  opacity: 0.85;
}

.q-text {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.q-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ── OPTION BUTTONS ──────────────────────────────────────── */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options-grid--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  min-height: 56px;
  width: 100%;
  letter-spacing: 0.1px;
}

.opt-btn:hover   { border-color: var(--blue); background: rgba(0,157,224,0.1); }
.opt-btn:active  { transform: scale(0.98); }

.opt-btn.selected {
  border-color: var(--blue);
  background: rgba(0,157,224,0.16);
  color: var(--white);
  font-weight: 600;
}

.opt-btn.selected .opt-dot { background: var(--blue); border-color: var(--blue); }

.opt-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.28);
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.opt-btn.selected .opt-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
}

.opt-label { flex: 1; }

/* ── DISQUALIFY ──────────────────────────────────────────── */
.disq-card {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
  padding: 0 24px;
}

.disq-icon { font-size: 48px; margin-bottom: 20px; }
.disq-card h2 { font-family: 'Novelin', 'Segoe UI', system-ui, sans-serif; font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.disq-card p  { font-size: 15px; color: var(--gray); line-height: 1.6; }

/* ── LOADING SCREEN ──────────────────────────────────────── */
.loading-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--navy) 0%, #0e1e2d 100%);
}

.loading-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
}

.loading-spinner svg { display: block; animation: spin 1.6s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.load-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}

.loading-title { font-family: 'Novelin', 'Segoe UI', system-ui, sans-serif; font-size: 24px; font-weight: 900; margin-bottom: 10px; letter-spacing: -0.3px; }
.loading-msg   { font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 32px; min-height: 22px; transition: opacity 0.4s; }

.loading-tip {
  background: rgba(0,157,224,0.08);
  border: 1px solid rgba(0,157,224,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  max-width: 380px;
  line-height: 1.55;
  text-align: left;
}

/* ── RESULTS SCREEN ──────────────────────────────────────── */
.results-body {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 48px;
}

/* Score Hero */
.score-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0e1e2d 100%);
  padding: 36px 24px 44px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.score-celebration { font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 26px; letter-spacing: 0.3px; }

.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.score-ring svg { display: block; }

.score-inner {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.score-num  { font-size: 46px; font-weight: 800; line-height: 1; }
.score-unit { font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.45); }

.score-title {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.score-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.score-status-badge.crit  { background: rgba(231,76,60,0.12);  color: #e74c3c; border: 1px solid rgba(231,76,60,0.28); }
.score-status-badge.low   { background: rgba(230,126,34,0.12); color: #e67e22; border: 1px solid rgba(230,126,34,0.28); }
.score-status-badge.mid   { background: rgba(241,196,15,0.12); color: #e6b800; border: 1px solid rgba(241,196,15,0.28); }
.score-status-badge.good  { background: rgba(46,204,113,0.12); color: #2ecc71; border: 1px solid rgba(46,204,113,0.28); }
.score-status-badge.great { background: rgba(39,174,96,0.12);  color: #27ae60; border: 1px solid rgba(39,174,96,0.28); }

/* Sections */
.results-section {
  padding: 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-title { font-family: 'Novelin', 'Segoe UI', system-ui, sans-serif; font-size: 17px; font-weight: 900; color: var(--white); margin-bottom: 6px; letter-spacing: -0.2px; }
.section-sub   { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 18px; }

/* Radar */
.radar-container { margin: 14px 0 6px; overflow: hidden; }
.radar-note      { font-size: 12px; color: var(--gray2); text-align: center; margin-top: 6px; font-style: italic; }

/* Category Bars */
.category-bars      { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.cat-bar-header     { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.cat-bar-name       { font-size: 14px; font-weight: 600; }
.cat-bar-right      { display: flex; align-items: center; gap: 8px; }
.cat-bar-pct        { font-size: 14px; font-weight: 700; }
.cat-bar-label      { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.cat-bar-label.crit  { background: rgba(231,76,60,0.12);  color: #e74c3c; }
.cat-bar-label.low   { background: rgba(230,126,34,0.12); color: #e67e22; }
.cat-bar-label.mid   { background: rgba(241,196,15,0.12); color: #e6b800; }
.cat-bar-label.good  { background: rgba(46,204,113,0.12); color: #2ecc71; }
.cat-bar-label.great { background: rgba(39,174,96,0.12);  color: #27ae60; }
.cat-bar-track      { height: 8px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; font-size: 0; }
.cat-bar-fill       { height: 100%; border-radius: 99px; transition: width 1.1s cubic-bezier(0.4,0,0.2,1); width: 0%; font-size: 0; overflow: hidden; }
.cat-bar-pct        { display: none !important; }
.cat-bar-fill.crit  { background: #e74c3c; }
.cat-bar-fill.low   { background: #e67e22; }
.cat-bar-fill.mid   { background: #f1c40f; }
.cat-bar-fill.good  { background: #2ecc71; }
.cat-bar-fill.great { background: #27ae60; }

/* Insights (strengths) */
.insights-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(46,204,113,0.06);
  border: 1px solid rgba(46,204,113,0.18);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}

.insight-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Recommendations */
.recs-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.rec-item {
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
}

.rec-item.rec-crit { border-left-color: #e74c3c; }
.rec-item.rec-low  { border-left-color: #e67e22; }
.rec-item.rec-mid  { border-left-color: #f1c40f; }
.rec-item.rec-good { border-left-color: #2ecc71; }

.rec-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.rec-item.rec-crit .rec-cat { color: #e74c3c; }
.rec-item.rec-low  .rec-cat { color: #e67e22; }
.rec-item.rec-mid  .rec-cat { color: #e6b800; }
.rec-item.rec-good .rec-cat { color: #2ecc71; }

.rec-text {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}

.rec-hook {
  margin-top: 10px;
  padding: 9px 12px;
  background: rgba(0,157,224,0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ── INSIGHT SECTION (statica) ──────────────────────────────── */
.insight-section {
  padding: 0 16px 8px;
  max-width: 820px;
  margin: 0 auto 8px;
}
.insight-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue, #009DE0);
  margin-bottom: 14px;
}
.insight-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.insight-card {
  display: flex;
  gap: 14px;
  background: var(--navy2, #1c2d40);
  border: 1px solid rgba(0,157,224,0.15);
  border-radius: 14px;
  padding: 16px;
}
.insight-card .insight-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.insight-title { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.insight-desc  { font-size: 0.8rem; color: rgba(255,255,255,0.7); line-height: 1.55; }

/* Pre-CTA Section */
.precta-section {
  padding: 0 16px 8px;
  max-width: 820px;
  margin: 0 auto;
}

.precta-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,157,224,0.4), transparent);
  margin-bottom: 36px;
}

.precta-header {
  text-align: center;
  margin-bottom: 28px;
}
.precta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.precta-title {
  font-family: 'Novelin', 'Segoe UI', system-ui, sans-serif;
  font-weight: 900;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.precta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.precta-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.precta-card:hover {
  background: rgba(0,157,224,0.08);
  box-shadow: 0 4px 20px rgba(0,157,224,0.15);
}
.precta-icon-wrap {
  font-size: 26px;
  width: 52px;
  height: 52px;
  background: rgba(0,157,224,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.precta-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.35;
}
.precta-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

.precta-reassurance {
  background: linear-gradient(135deg, rgba(0,157,224,0.1) 0%, rgba(21,37,53,0.6) 100%);
  border: 1px solid rgba(0,157,224,0.3);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.precta-lead {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.6;
}
.precta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}
.precta-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.precta-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46,204,113,0.15);
  border: 1px solid rgba(46,204,113,0.4);
  color: #2ecc71;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 99px;
}
.precta-solo {
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* Consult Section */
.consult-section { padding: 28px 16px; }

.consult-card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.consult-badge {
  display: inline-flex;
  align-items: center;
  background: #e8f7ff;
  color: #0075a8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
  text-transform: uppercase;
  border: 1px solid #b3e0f5;
}

.consult-title {
  font-family: 'Novelin', 'Segoe UI', system-ui, sans-serif;
  font-weight: 900;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.consult-desc {
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.7;
  margin-bottom: 18px;
}

.consult-desc strong { color: var(--navy); }

.pdf-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f9ff;
  border: 1px solid #b3dff5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.5;
}

.pdf-hint strong { color: var(--navy); }

/* Form */
.consult-form { display: flex; flex-direction: column; gap: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-field         { display: flex; flex-direction: column; gap: 5px; }
.form-field label   { font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }

.form-field input {
  padding: 13px 16px;
  border: 1.5px solid #dde2e7;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--black);
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.form-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,157,224,0.1);
  background: var(--white);
}

.form-field input.invalid { border-color: #e74c3c; }

.btn-consult { margin-top: 6px; max-width: 100%; }

.privacy-note { font-size: 11px; color: #aaa; text-align: center; line-height: 1.5; margin-top: 4px; }
.privacy-note a { color: #888; }

/* Thanks state */
.consult-thanks { text-align: center; padding: 20px 0 8px; }
.thanks-icon    { font-size: 44px; margin-bottom: 14px; }
.consult-thanks h4   { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.consult-thanks p    { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 20px; }

.btn-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-pdf:hover { background: var(--navy2); }

/* Footer — usa shared.css .footer */

/* ── WELCOME FOOTER ─────────────────────────────────────── */
.welcome-foot {
  margin-top: auto;
  padding: 16px 48px;
  text-align: center;
  font-size: 10px;
  font-weight: 400;
  color: rgba(240,237,232,0.38);
  letter-spacing: 0.8px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .precta-grid         { grid-template-columns: 1fr; gap: 10px; }
  .precta-title        { font-size: 19px; }
  .precta-card         { padding: 16px 10px 14px; }
  .precta-icon-wrap    { width: 44px; height: 44px; font-size: 22px; }
  .precta-reassurance  { padding: 18px 16px; }
  .precta-lead         { font-size: 15px; }
  .precta-badges       { flex-direction: column; gap: 8px; }
  .precta-badge-green  { font-size: 13px; }
  .form-row            { grid-template-columns: 1fr; }
  .options-grid--2col  { grid-template-columns: 1fr; }
  .consult-card        { padding: 22px 16px; }
  .quiz-body           { padding: 20px 14px 48px; }

  /* Welcome mobile */
  .welcome-wrap        { min-height: 100svh; overflow-x: clip; }
  .welcome-layout      {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "right" "bottom";
    gap: 20px;
    padding: 20px 16px 48px;
    width: 100%;
    box-sizing: border-box;
  }
  .welcome-left        { align-items: center; text-align: center; width: 100%; min-width: 0; }
  .welcome-right       { position: static; width: 100%; min-width: 0; }
  .top-bar--welcome    { padding: 12px 16px; }
  .logo--welcome       { height: 30px; }
  .welcome-badge       { justify-content: center; font-size: 10px; letter-spacing: 1px; width: 100%; box-sizing: border-box; }
  .welcome-title       { font-size: clamp(26px, 7vw, 36px); letter-spacing: -0.5px; word-break: break-word; }
  .welcome-sub         { font-size: 14px; text-align: center; width: 100%; box-sizing: border-box; }
  .welcome-timer-pill  { font-size: 10px; margin-bottom: 0; width: 100%; box-sizing: border-box; }
  .welcome-features    { margin-bottom: 24px; width: 100%; }
  .wf-row              { font-size: 13px; text-align: left; }
  .welcome-left .btn-primary { font-size: 14px; padding: 16px 24px; width: 100%; }
  .welcome-proof       { font-size: 12px; justify-content: center; }
  .welcome-foot        { padding: 12px 16px 16px; }
  .rp-radar-svg        { max-width: 200px; }
  .welcome-roi-teaser  { padding: 16px 14px 12px; }
  .wrt-numbers         { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
  .wrt-sep             { display: none; }
  .wrt-item            { flex-direction: row; align-items: baseline; gap: 8px; width: 100%; }
  .wrt-item--total     { padding-top: 8px; border-top: 1px solid rgba(220,50,40,0.25); }
  .wrt-val             { font-size: 18px; }
  .wrt-total           { font-size: 20px; }
  .wrt-desc            { font-size: 11px; }
}

@media (max-width: 900px) {
  .welcome-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "right" "bottom";
    gap: 28px;
    padding: 36px 24px 60px;
    box-sizing: border-box;
  }
  .welcome-left     { align-items: center; text-align: center; width: 100%; min-width: 0; }
  .welcome-right    { position: static; width: 100%; min-width: 0; }
  .welcome-badge    { justify-content: center; }
  .welcome-sub      { text-align: center; }
  .welcome-timer-pill { justify-content: center; }
  .top-bar--welcome { padding: 18px 24px; }
  .wf-row           { text-align: left; }
}

@media (min-width: 768px) {
  .precta-section   { padding: 0 36px 8px; }
  .results-section  { padding: 32px 36px; }
  .consult-section  { padding: 32px 36px; }
  .score-hero       { padding: 48px 36px 56px; }
  .results-body     { padding-bottom: 72px; }
  .quiz-body        { padding: 36px 24px 64px; }
}

/* ================================================================
   WELCOME — ROI TEASER (right col)
   ================================================================ */
.welcome-roi-teaser {
  background: rgba(220,50,40,0.04);
  border: 1px solid rgba(220,50,40,0.14);
  border-radius: 3px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.welcome-roi-teaser::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,50,40,0.4), transparent);
}
.wrt-label {
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #FF7060;
}
.wrt-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
}
.wrt-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.wrt-val {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wrt-red              { color: #E05050; }
.wrt-total            { color: #E05050; font-size: 19px; }
.wrt-item--total .wrt-val { color: #E05050; }
.wrt-desc             { font-size: 9px; font-weight: 400; color: rgba(240,237,232,0.6); text-align: center; letter-spacing: 0.3px; }
.wrt-sep              { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.35); }
.wrt-footnote {
  font-size: 9px;
  font-weight: 400;
  color: rgba(240,237,232,0.62);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
  letter-spacing: 0.2px;
}

/* ================================================================
   ROI SECTION — RESULTS PAGE
   Design: "Financial Revelation" — deep dark, red losses, green wins
   ================================================================ */
.roi-section {
  background: linear-gradient(160deg, #0a0f1a 0%, #0d1929 100%);
  border: 1px solid rgba(231,76,60,0.15);
  border-radius: var(--radius);
  margin: 0 0 8px;
  overflow: hidden;
  position: relative;
}
.roi-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #e67e22, #e74c3c);
  background-size: 200% 100%;
  animation: roiBar 3s linear infinite;
}
@keyframes roiBar {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.roi-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.roi-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e74c3c;
  margin-bottom: 6px;
}
.roi-title {
  font-family: 'Novelin', 'Segoe UI', system-ui, sans-serif;
  font-weight: 900;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}
.roi-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

/* Griglia 2 card */
.roi-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.05);
}
.roi-card {
  background: #0d1929;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.roi-card-icon { font-size: 18px; }
.roi-card-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}
.loss-tag {
  color: #e74c3c;
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.25);
}
.roi-card-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.loss-value { color: #e74c3c; }
.roi-card-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.roi-card-detail {
  font-size: 10.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.4;
}

/* Totale */
.roi-total-block {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(231,76,60,0.12) 0%, rgba(13,25,41,0.8) 100%);
  border-top: 1px solid rgba(231,76,60,0.15);
  border-bottom: 1px solid rgba(231,76,60,0.15);
  text-align: center;
}
.roi-total-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.roi-total-value {
  font-size: 48px;
  font-weight: 900;
  color: #e74c3c;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0 40px rgba(231,76,60,0.4);
}
.roi-total-period {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* Risparmio */
.roi-savings-block {
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(46,204,113,0.08) 0%, rgba(13,25,41,0.8) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.roi-savings-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #2ecc71;
  margin-bottom: 8px;
}
.roi-savings-value {
  font-size: 36px;
  font-weight: 900;
  color: #2ecc71;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(46,204,113,0.35);
  margin-bottom: 6px;
}
.roi-savings-detail {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* Analisi AI */
.ai-analysis-box {
  margin: 0 28px 0;
  padding: 16px 20px;
  background: rgba(0,157,224,0.07);
  border: 1px solid rgba(0,157,224,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ai-analysis-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.ai-analysis-text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  font-style: italic;
}

/* Fonti */
.roi-sources {
  padding: 12px 28px 16px;
  font-size: 9.5px;
  color: rgba(255,255,255,0.2);
  line-height: 1.5;
}

/* Responsive ROI */
@media (max-width: 520px) {
  .roi-cards-grid     { grid-template-columns: 1fr; }
  .roi-total-value    { font-size: 36px; }
  .roi-savings-value  { font-size: 28px; }
  .roi-header,
  .roi-total-block,
  .roi-savings-block,
  .ai-analysis-box,
  .roi-sources        { padding-left: 18px; padding-right: 18px; }
  .wrt-numbers        { justify-content: center; }
  .wrt-sep            { display: none; }
  .wrt-item           { flex-direction: row; gap: 6px; align-items: baseline; }
}

/* ================================================================
   WELCOME v5.0 — Refactored landing
   Brand: #0D1B2A (navy) · #00C2D4 (cyan) · #F5A623 (gold) · #E53935 (red)
   ================================================================ */

/* Layout: colonna singola, max-width centrata */
.welcome-layout {
  display: flex;
  flex-direction: column;
  flex: none;        /* reset old flex: 1 */
  overflow: visible; /* reset old overflow: hidden */
  gap: 36px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 48px 72px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Hero: pre-headline + H1 + sub — full width */
.welcome-hero { display: flex; flex-direction: column; }

/* Mid grid: box rosso sinistra, radar destra */
.w-mid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Bottom: feature cards + CTA — full width */
.welcome-bottom { display: flex; flex-direction: column; align-items: center; }

/* Pre-headline */
.w-preheadline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.w-preheadline .wb-arrow { width: 20px; height: 14px; flex-shrink: 0; color: #E53935; }

/* H1 */
.welcome-title {
  font-family: 'Novelin', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Sub */
.welcome-sub {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 520px;
}

/* Social proof */
.w-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.w-social-proof .proof-stars { color: #F5A623; font-size: 13px; letter-spacing: 2px; }
.w-social-proof strong       { color: rgba(255,255,255,0.88); font-weight: 600; }

/* ── Fear Block ────────────────────────────────────────────── */
.w-fear-block {
  width: 100%;
  background: rgba(229,57,53,0.05);
  border: 1px solid rgba(229,57,53,0.2);
  border-radius: 10px;
  padding: 20px 20px 14px 28px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.w-fear-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: #E53935;
  border-radius: 10px 0 0 10px;
}

.wfb-label {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,100,90,0.85);
  margin-bottom: 14px;
}

.wfb-numbers { display: flex; flex-direction: column; gap: 10px; }

.wfb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease var(--wfb-delay, 0ms),
              transform 0.5s ease var(--wfb-delay, 0ms);
}
.wfb-row.wfb-visible { opacity: 1; transform: translateX(0); }

.wfb-val {
  font-size: 20px;
  font-weight: 900;
  color: #E05050;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  min-width: 108px;
}
.wfb-desc { font-size: 14px; color: rgba(255,255,255,0.62); }

/* Riga totale: 20% più grande */
.wfb-row--total .wfb-val  { font-size: 24px; color: #E53935; }
.wfb-row--total .wfb-desc { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.82); }

.wfb-footnote {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}

/* ── Stats / Fear Block ────────────────────────────────────── */
.w-stats-block {
  width: 100%;
  background: rgba(229,57,53,0.05);
  border: 1px solid rgba(229,57,53,0.2);
  border-radius: 10px;
  padding: 16px 20px 14px 26px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.w-stats-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: #E53935;
  border-radius: 10px 0 0 10px;
}
.wsb-toprow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wsb-stars { color: #F5A623; font-size: 11px; letter-spacing: 1.5px; flex-shrink: 0; }
.wsb-proof { font-size: 12px; color: rgba(255,255,255,0.55); }
.wsb-proof strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.wsb-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,100,90,0.85);
  margin-bottom: 14px;
}
.wsb-numbers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.wsb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.wsb-val {
  font-size: 20px;
  font-weight: 900;
  color: #E05050;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.wsb-item--total .wsb-val { font-size: 24px; color: #E53935; }
.wsb-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.3;
}
.wsb-item--total .wsb-desc { color: rgba(255,255,255,0.75); font-weight: 600; }
.wsb-sep { font-size: 18px; color: rgba(255,255,255,0.25); flex-shrink: 0; }
.wsb-footnote {
  font-size: 9px;
  color: rgba(255,255,255,0.28);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.4;
}

/* ── Feature Cards ─────────────────────────────────────────── */
.w-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 36px;
}
.wf-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 16px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,194,212,0.4);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.wf-card:hover {
  border-color: #00C2D4;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,194,212,0.14);
}
.wf-card-icon  { font-size: 28px; line-height: 1; display: block; margin-bottom: 4px; }
.wf-card-title { font-size: 13px; font-weight: 700; color: #ffffff; line-height: 1.3; }
.wf-card-desc  { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.52); line-height: 1.4; }

/* ── CTA con pulse ─────────────────────────────────────────── */
@keyframes ctaPulseGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(0,194,212,0.5), 0 0 0 0 rgba(0,194,212,0.35); }
  50%       { box-shadow: 0 6px 24px rgba(0,194,212,0.5), 0 0 0 12px rgba(0,194,212,0); }
}

.btn-cta-welcome {
  background: #009DE0 !important;
  box-shadow: 0 6px 24px rgba(0,194,212,0.5) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 18px 40px !important;
  border-radius: 50px !important;
  width: 100% !important;
  max-width: 100% !important;
  animation: ctaPulseGlow 2s ease-in-out infinite;
}
.btn-cta-welcome:hover { background: #33b4e8 !important; }

.w-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  text-align: center;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.w-final-text {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  font-style: italic;
  text-align: center;
  width: 100%;
  line-height: 1.5;
}

/* ── Radar destra ──────────────────────────────────────────── */
.w-radar-outer  { position: relative; }
.w-radar-glow   {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,194,212,0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.w-radar-outer .report-preview { position: relative; z-index: 1; }

/* ── Sticky CTA mobile ─────────────────────────────────────── */
.w-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(13,27,42,0.98) 0%, rgba(13,27,42,0.82) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 300;
  border-top: 1px solid rgba(0,194,212,0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.w-sticky-cta.visible { transform: translateY(0); }

.btn-cta-sticky {
  width: 100% !important;
  max-width: 420px !important;
  background: #009DE0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 15px 24px !important;
  border-radius: 50px !important;
  max-width: 100% !important;
  animation: ctaPulseGlow 2s ease-in-out infinite;
}

/* Mostra sticky solo su mobile */
@media (max-width: 900px) {
  .w-sticky-cta { display: flex; justify-content: center; align-items: center; }
}

/* ── Responsive welcome ────────────────────────────────────── */
@media (max-width: 900px) {
  .welcome-layout    { padding: 36px 24px 90px; gap: 28px; }
  .welcome-hero      { align-items: center; text-align: center; }
  .w-preheadline     { justify-content: center; }
  .welcome-sub       { text-align: center; max-width: 100%; }
  /* Mid grid: colonna singola, radar sotto il box rosso */
  .w-mid-grid        { grid-template-columns: 1fr; gap: 20px; }
  .welcome-bottom    { align-items: stretch; }
  .w-cta-sub,
  .w-final-text      { text-align: center; }
}

@media (max-width: 480px) {
  .welcome-layout    { padding: 24px 16px 90px; gap: 24px; }
  .welcome-title     { font-size: clamp(26px, 7.5vw, 36px); letter-spacing: -1px; }
  .welcome-sub       { font-size: 15px; }
  .w-features        { grid-template-columns: 1fr; }
  .wsb-val           { font-size: 17px; }
  .wsb-item--total .wsb-val { font-size: 21px; }
  .btn-cta-welcome   { font-size: 14px !important; padding: 16px 24px !important; }
}

/* ══════════════════════════════════════════════════════
   GOOGLE REVIEWS CAROUSEL
   ══════════════════════════════════════════════════════ */

.rev-section {
  padding: 36px 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 100%);
}

.rev-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-bottom: 24px;
}

/* ── Inner layout: row on desktop, column on mobile ── */
.rev-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Left: rating summary ── */
.rev-summary {
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-right: 4px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.rev-rating-word {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--white);
}

.rev-stars-row { display: flex; gap: 1px; }

.rev-star {
  font-size: 20px;
  line-height: 1;
  color: #F9AB00;
}

.rev-star--half {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 0.55em;
  color: #F9AB00;
}

.rev-count {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.4;
}
.rev-count strong { color: var(--white); }

.rev-glogo {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.rev-glogo-text {
  font-family: 'Product Sans', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1;
}

/* ── Carousel wrapper ── */
.rev-carousel {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rev-viewport {
  flex: 1 1 0;
  overflow: hidden;
  min-width: 0;
}

.rev-track {
  display: flex;
  gap: 16px;
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

/* ── Single review card ── */
.rev-card {
  flex: 0 0 100%;
  background: #fff;
  border-radius: 12px;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  min-width: 0;
}

.rev-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rev-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.rev-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.rev-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rev-date {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}

.rev-g-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.rev-stars-card {
  font-size: 14px;
  color: #F9AB00;
  letter-spacing: 1px;
  line-height: 1;
}

.rev-verified {
  font-size: 11px;
  color: #1a73e8;
  font-weight: 700;
  vertical-align: middle;
}

.rev-text {
  font-size: 12.5px;
  color: #444;
  line-height: 1.55;
  font-family: Arial, sans-serif;
  font-weight: 400;
}

/* ── Nav arrows ── */
.rev-nav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  padding: 0;
  padding-bottom: 2px;
}

.rev-nav:hover   { background: rgba(255,255,255,0.14); }
.rev-nav:disabled { opacity: 0.25; cursor: default; }

/* ── Dots ── */
.rev-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.rev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.rev-dot--active {
  background: var(--blue);
  transform: scale(1.25);
}

/* ── Responsive ── */
@media (max-width: 580px) {
  .rev-inner       { flex-direction: column; gap: 20px; }
  .rev-summary     { flex-direction: row; flex: none; width: 100%; border-right: none;
                     border-bottom: 1px solid rgba(255,255,255,0.08);
                     padding-right: 0; padding-bottom: 16px; justify-content: center; gap: 16px; align-items: center; }
  .rev-rating-word { font-size: 22px; }
  .rev-count       { text-align: left; }
  .rev-card        { flex: 0 0 100%; }
}

/* ── Sticky CTA: nascosto su mobile (confligge con ai-disclaimer, bottone inline già presente) ── */
@media (max-width: 640px) {
  .w-sticky-cta { display: none !important; }
}

/* ── Carousel mobile: frecce nascoste, swipe + dots ── */
@media (max-width: 580px) {
  .rev-nav      { display: none; }
  .rev-carousel { gap: 0; }
  .rev-dots     { margin-top: 14px; }
  .rev-dot      { width: 8px; height: 8px; }
}

/* ── ROI info tooltip ──────────────────────────────────────── */
.roi-info-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.55);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
  padding: 0;
  transition: all 0.2s;
  font-family: serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.roi-info-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.6); }
.roi-info-tooltip {
  display: none;
  background: rgba(8,18,32,0.98);
  border: 1px solid rgba(0,157,224,0.35);
  border-radius: 10px;
  padding: 16px 18px 12px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  text-align: left;
}
.roi-info-tooltip.visible { display: block; }
.roi-info-tooltip strong  { color: var(--white); }
.roi-info-tooltip ul      { margin: 10px 0 0 16px; padding: 0; }
.roi-info-tooltip li      { margin-bottom: 7px; }
.roi-info-close {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  text-decoration: underline;
}
.roi-info-close:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   LEAD FORM CENTRALIZZATO — iniettato da quiz.js in #leadFormMount
   Flusso a 2 step: email→CSV (tiepido) · Nome/Tel/RagSoc→CRM (caldo)
   Usa le variabili dark (--bg-card, --border, --blue, --txt*) definite
   in ciascuna pagina caso studio. Modificare QUI per tutte le pagine.
   ============================================================ */
.lead-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r); padding:clamp(24px,4vw,40px); margin-bottom:20px; }
.lead-pill { display:inline-block; font-size:11px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; background:rgba(0,157,224,0.1); border:1px solid rgba(0,157,224,0.25); color:var(--blue); border-radius:100px; padding:5px 14px; margin-bottom:16px; }
.lead-card h3 { font-size:clamp(18px,2.5vw,24px); font-weight:900; margin-bottom:10px; }
.lead-card p { font-size:14px; color:var(--txt2); line-height:1.6; margin-bottom:20px; font-weight:400; }
.lead-note { background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:10px; padding:12px 16px; font-size:13px; color:var(--txt2); margin-bottom:24px; display:flex; align-items:flex-start; gap:10px; }
.lead-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
@media(max-width:520px){ .lead-form-grid{grid-template-columns:1fr;} }
.lead-field { display:flex; flex-direction:column; gap:6px; }
.lead-field-full { grid-column:1/-1; }
.lead-label { font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--txt3); }
.lead-input { background:rgba(255,255,255,0.05); border:1.5px solid var(--border); border-radius:10px; padding:13px 16px; font-size:14px; color:var(--txt); font-family:var(--font); outline:none; transition:border-color .2s; width:100%; }
.lead-input:focus { border-color:rgba(0,157,224,0.5); }
.lead-input::placeholder { color:var(--txt3); }
.lead-input.invalid { border-color:#EF4444; }
.btn-lead { width:100%; background:var(--blue); color:#fff; font-family:var(--font); font-size:16px; font-weight:600; border:none; border-radius:12px; padding:16px; cursor:pointer; transition:background .2s,transform .2s; margin-top:4px; }
.btn-lead:hover { background:var(--blue-dk); transform:translateY(-1px); }
.btn-lead:disabled { opacity:.6; cursor:default; transform:none; }
.lead-gdpr { font-size:11px; color:var(--txt3); text-align:center; margin-top:12px; font-weight:300; }
.lead-gdpr a { color:var(--txt3); }
.lead-consent { display:flex; align-items:flex-start; gap:10px; margin-top:18px; font-size:12px; line-height:1.45; color:var(--txt3); font-weight:300; text-align:left; cursor:pointer; }
.lead-consent input { margin-top:2px; width:16px; height:16px; flex:0 0 auto; accent-color:#009DE0; cursor:pointer; }
.lead-consent a { color:var(--txt); text-decoration:underline; }
.lead-consent.invalid span { color:#EF4444; }
.lead-consent.invalid input { outline:2px solid #EF4444; outline-offset:2px; border-radius:3px; }
.lead-success { text-align:center; padding:40px 20px; }
.lead-success-icon { font-size:48px; margin-bottom:16px; }
.lead-success h4 { font-size:22px; font-weight:900; margin-bottom:8px; }
.lead-success p { font-size:14px; color:var(--txt2); font-weight:400; }
/* step 2 — report pronto + box richiamo */
.lead-report-ok { text-align:center; background:linear-gradient(135deg, rgba(46,204,113,.10), rgba(46,204,113,.02)); border:1px solid rgba(46,204,113,.28); border-radius:14px; padding:24px 20px; margin-bottom:26px; }
.lead-report-ok .lead-success-icon { font-size:40px; margin-bottom:10px; }
.lead-report-ok h4 { font-size:19px; font-weight:900; margin-bottom:6px; }
.lead-report-ok p { font-size:13px; color:var(--txt2); margin-bottom:16px; }
.btn-pdf { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:transparent; color:var(--blue); font-family:var(--font); font-size:15px; font-weight:600; border:1.5px solid rgba(0,157,224,.45); border-radius:12px; padding:13px 24px; cursor:pointer; transition:background .2s,border-color .2s,transform .2s; }
.btn-pdf:hover { background:rgba(0,157,224,.08); border-color:var(--blue); transform:translateY(-1px); }
.lead-callback h3 { margin-bottom:10px; }
