/* ================================================================
   MagicFedelta — style.css
   Base: shared.css (font, vars, body, top-bar, logo, footer)
   ================================================================ */

:root {
  --accent:         #009DE0;
  --accent-2:       #C89030;
  --card-bg:        #1a3347;
  --border:         rgba(0,157,224,0.18);
  --text-primary:   #ffffff;
  --text-secondary: #8aabb8;
  --text-muted:     #4a6a7a;
  --bg-secondary:   #1e3d52;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-family: 'Novelin', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, filter 0.2s, opacity 0.2s;
  animation: pulse-btn 3s ease-in-out infinite;
}
.btn-primary:hover:not(:disabled) {
  background: var(--blue-lt);
  filter: brightness(1.06);
  transform: translateY(-2px);
  animation: none;
}
.btn-primary:disabled { opacity: 0.38; cursor: not-allowed; animation: none; }
.btn-primary.btn-xl   { width: 100%; font-size: 1.05rem; padding: 18px 32px; }
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,157,224,0); }
  50%       { box-shadow: 0 0 0 6px rgba(0,157,224,0.22); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gray);
  font-size: 14px;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 12px;
  width: 100%;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

/* ── WELCOME SCREEN ──────────────────────────────────────────── */
#screen-welcome.active { display: flex; flex-direction: column; min-height: 100vh; }

.welcome-wrap {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 52px 28px 68px;
  text-align: center;
}

.welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.welcome-h1 {
  font-family: 'Novelin', sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.welcome-h1 em { font-style: normal; color: var(--blue); }

.welcome-sub {
  font-size: clamp(0.93rem, 2vw, 1.05rem);
  color: var(--gray);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* Feature cards (3 col) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}
.feature-card {
  background: var(--navy2);
  border: 1px solid rgba(0,157,224,0.15);
  border-radius: 14px;
  padding: 18px 16px;
}
.feature-card-icon  { font-size: 26px; margin-bottom: 10px; display: block; }
.feature-card-title { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.feature-card-desc  { font-size: 11px; color: var(--gray); line-height: 1.6; }

/* Stats row */
.w-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.wsr-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.wsr-num  { font-size: 1.45rem; font-weight: 800; color: var(--accent); line-height: 1; }
.wsr-lbl  { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; }
.wsr-sep  { width: 1px; background: var(--border); height: 36px; margin: 0 4px; }

.trust-note {
  font-size: 12px;
  color: var(--gray2);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

/* ── FORM SCREEN ─────────────────────────────────────────────── */
#screen-form.active { display: flex; flex-direction: column; min-height: 100vh; }

.form-wrap {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  width: 100%;
}
.form-header         { margin-bottom: 28px; }
.form-header h2 {
  font-family: 'Novelin', sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--white);
  margin-bottom: 6px;
}
.form-header p { font-size: 14px; color: var(--gray); }

.field-group { margin-bottom: 22px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.55;
}

/* Choice grids (eta / programma attuale) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.choice-grid--4 { grid-template-columns: repeat(4, 1fr); }
.choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
}
.choice-btn:hover  { border-color: var(--accent); color: var(--white); }
.choice-btn.active { background: rgba(0,157,224,0.12); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* Form section divider */
.form-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 28px 0 20px;
}
.form-section-label::before,
.form-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* Input con prefisso */
.input-prefix-wrap {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.input-prefix-wrap:focus-within { border-color: var(--accent); }
.input-prefix {
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  height: 48px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  user-select: none;
}
.input-prefix-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 14px;
  height: 48px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
}
.input-prefix-wrap input::placeholder { color: var(--text-muted); }
.input-prefix-wrap input::-webkit-outer-spin-button,
.input-prefix-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-prefix-wrap input[type=number] { -moz-appearance: textfield; }

/* Slider */
.slider-wrap {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}
.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.slider-label-min, .slider-label-max {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.slider-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Novelin', sans-serif;
}
input[type=range].slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin: 4px 0 2px;
}
input[type=range].slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--navy);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0,157,224,0.18);
}
input[type=range].slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--navy);
  cursor: pointer;
}

/* ── LOADING SCREEN ──────────────────────────────────────────── */
#screen-loading.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.loading-wrap { text-align: center; padding: 40px 24px; }
.loading-spinner {
  width: 56px; height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap h3    { font-size: 1.15rem; color: var(--text-primary); margin: 0 0 8px; }
.loading-sub        { color: var(--text-muted); font-size: 0.8rem; margin: 0 0 24px; }
.loading-progress   { width: 260px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto; overflow: hidden; }
.loading-bar        { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; transition: width 0.3s ease; }

/* ── RESULTS SCREEN ──────────────────────────────────────────── */
#screen-results.active { display: flex; flex-direction: column; min-height: 100vh; }

.results-wrap {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CLV section (ring + numero grande) */
.score-section {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.score-ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 130px; height: 130px;
}
.score-ring { width: 130px; height: 130px; transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: var(--border); stroke-width: 10; }
.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
}
.score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-value { font-size: 1.55rem; font-weight: 900; color: var(--text-primary); line-height: 1; font-family: 'Novelin', sans-serif; }
.score-label { font-size: 0.58rem; color: var(--text-muted); text-align: center; line-height: 1.3; margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.score-meta  { flex: 1; }
.score-meta h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.score-meta p  { color: var(--text-secondary); font-size: 0.85rem; margin: 0 0 12px; line-height: 1.55; }
.score-pills   { display: flex; gap: 8px; flex-wrap: wrap; }
.s-pill {
  display: inline-block;
  background: rgba(0,157,224,0.13);
  border: 1px solid rgba(0,157,224,0.28);
  color: var(--accent);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
}

/* Result card generic */
.result-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
.card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}

/* CLV Breakdown — 4 leve */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 6px;
}
.breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 8px;
  position: relative;
}
.breakdown-item:not(:last-child)::after {
  content: '\00D7';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}
.breakdown-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.breakdown-value { font-family: 'Novelin', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--white); line-height: 1; }
.breakdown-foot { font-size: 12px; color: var(--gray); text-align: center; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 10px; }

/* Archetipo card */
.arche-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.arche-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: rgba(200,144,48,0.12);
  border: 1px solid rgba(200,144,48,0.32);
}
.arche-body { flex: 1; }
.arche-name {
  font-family: 'Novelin', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 4px;
}
.arche-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lt);
  background: rgba(200,144,48,0.1);
  border: 1px solid rgba(200,144,48,0.26);
  padding: 3px 9px;
  border-radius: 99px;
}
.arche-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Programma fedeltà card */
.prog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.prog-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,157,224,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.prog-name {
  font-family: 'Novelin', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--blue);
  line-height: 1.15;
}
.prog-impatto {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2ecc71;
  background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.3);
  padding: 3px 9px;
  border-radius: 99px;
  margin-top: 4px;
}
.prog-meccanica {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}
.prog-meccanica strong { color: var(--white); font-weight: 700; }
.prog-current {
  font-size: 13px;
  color: var(--gray);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: 1.6;
}
.prog-current--ok      { color: #2ecc71; }
.prog-current--warn    { color: #f87171; }

/* Insight section */
.insight-section  { }
.insight-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.insight-cards { display: flex; flex-direction: column; gap: 12px; }
.insight-card {
  display: flex;
  gap: 14px;
  background: var(--navy2);
  border: 1px solid rgba(0,157,224,0.15);
  border-radius: 14px;
  padding: 16px;
}
.ic-icon  { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.ic-body  { flex: 1; }
.ic-title { font-size: 0.87rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.ic-desc  { font-size: 0.79rem; color: var(--gray); line-height: 1.55; }

/* ── CON MAGICSTORE PUOI ─────────────────────────────────────── */
.precta-section {
  padding: 0 0 8px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.precta-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,157,224,0.4), transparent);
  margin-bottom: 32px;
}
.precta-header     { text-align: center; margin-bottom: 26px; }
.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', sans-serif;
  font-size: 22px;
  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: 22px;
}
.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: 18px 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.14);
}
.precta-icon-wrap {
  font-size: 24px;
  width: 48px; height: 48px;
  background: rgba(0,157,224,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.precta-card-title { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 5px; line-height: 1.35; }
.precta-card-desc  { font-size: 12px; color: rgba(255,255,255,0.5); 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: 24px 26px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.precta-lead { font-size: 15px; font-weight: 600; color: var(--white); line-height: 1.6; }
.precta-sub  { font-size: 14px; color: rgba(255,255,255,0.72); 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: 14px; font-style: italic; color: rgba(255,255,255,0.55); }

/* ── FINAL CTA ───────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 32px 22px;
  background: var(--navy2);
  border-radius: 18px;
  border: 1px solid rgba(0,157,224,0.15);
}
.final-cta h3 {
  font-family: 'Novelin', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}
.final-cta > p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── GOOGLE REVIEWS ──────────────────────────────────────────── */
.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.14) 0%, transparent 100%);
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}
.rev-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  text-align: center;
  margin-bottom: 22px;
}
.rev-inner { display: flex; gap: 22px; align-items: flex-start; }
.rev-summary {
  flex: 0 0 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-right: 4px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.rev-rating-word { font-size: 19px; font-weight: 900; color: var(--white); }
.rev-stars-row   { display: flex; gap: 1px; }
.rev-star        { font-size: 19px; 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.48); 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-size: 12px; font-weight: 700; letter-spacing: 0.01em; }

.rev-carousel    { flex: 1; position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rev-viewport    { overflow: hidden; flex: 1; min-width: 0; }
.rev-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.rev-card {
  flex: 0 0 260px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
}
.rev-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rev-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.rev-meta     { flex: 1; min-width: 0; }
.rev-name     { font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-date     { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.rev-g-icon   { width: 16px; height: 16px; flex-shrink: 0; margin-left: auto; }
.rev-stars-card { font-size: 13px; color: #F9AB00; margin-bottom: 8px; }
.rev-verified   { font-size: 11px; color: var(--accent); }
.rev-text       { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.rev-nav {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.rev-nav:hover:not(:disabled) { background: var(--bg-secondary); border-color: var(--accent); }
.rev-nav:disabled { opacity: 0.3; cursor: default; }

.rev-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.rev-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.rev-dot--active { background: var(--accent); transform: scale(1.3); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .welcome-wrap  { padding: 36px 18px 52px; }
  .feature-cards { grid-template-columns: 1fr; }
  .w-stats-row   { max-width: 100%; }
  .form-wrap     { padding: 28px 18px 48px; }
  .results-wrap  { padding: 20px 14px 32px; gap: 16px; }
  .score-section { flex-direction: column; align-items: center; text-align: center; }
  .score-pills   { justify-content: center; }
  .precta-grid   { grid-template-columns: repeat(2, 1fr); }
  .breakdown-grid { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .breakdown-item:nth-child(2)::after { display: none; }
  .choice-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .arche-main    { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rev-inner     { flex-direction: column; }
  .rev-summary   { flex-direction: row; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 14px; padding-right: 0; width: 100%; justify-content: center; }
  .rev-card      { flex: 0 0 80vw; }
}
@media (max-width: 420px) {
  .precta-grid { grid-template-columns: 1fr; }
}

/* ── 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; }
}
