/* =========================================================
   WEH QUIZ — Stylesheet v1.0
   Colori: solo arancioni progressivi. Niente rosso giudicante.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --weh-orange:       #D97706;
  --weh-orange-light: #F59E0B;
  --weh-orange-pale:  #FFFBEB;
  --weh-orange-mid:   #FDE68A;
  --weh-orange-dark:  #B45309;
  --weh-orange-deep:  #92400E;
  --weh-bg:           #FAFAF8;
  --weh-surface:      #FFFFFF;
  --weh-text:         #1C1A16;
  --weh-muted:        #78716C;
  --weh-border:       #E7E5E0;
  --weh-green:        #059669;
  --weh-green-pale:   #D1FAE5;
  --weh-radius:       20px;
  --weh-highlight:    #FFFBEB;
  --weh-border-warm:  #FDE68A;
}

/* ── Wrapper generale ─────────────────────────────────────── */
.weh-quiz-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--weh-text);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Topbar ───────────────────────────────────────────────── */
.weh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--weh-border);
  margin-bottom: 40px;
  position: sticky;
  top: 0;
  background: var(--weh-bg);
  z-index: 50;
}
.weh-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--weh-orange);
  letter-spacing: 1px;
}
.weh-logo span { color: var(--weh-text); }
.weh-topbar-center { display: flex; align-items: center; gap: 16px; }

/* ── Timer ────────────────────────────────────────────────── */
.weh-timer-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--weh-bg); border: 1px solid var(--weh-border);
  border-radius: 30px; padding: 7px 16px;
}
.weh-timer-dot {
  width: 7px; height: 7px;
  background: var(--weh-orange-light);
  border-radius: 50%;
  animation: weh-pulse 1.2s infinite;
}
.weh-timer-dot.weh-urgent { background: var(--weh-orange-dark); }
@keyframes weh-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.weh-timer-display {
  font-size: 0.9rem; font-weight: 500;
  color: var(--weh-text);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
}
.weh-timer-display.weh-urgent { color: var(--weh-orange-dark); }

/* ── Score live ───────────────────────────────────────────── */
.weh-score-live {
  font-size: 0.82rem; color: var(--weh-muted);
  display: flex; align-items: center; gap: 5px;
}
.weh-score-live-num { font-weight: 500; color: var(--weh-text); }

.weh-section-tag {
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--weh-orange); background: var(--weh-orange-pale);
  border: 1px solid var(--weh-orange-mid);
  padding: 5px 12px; border-radius: 40px;
}

/* ── Screens ──────────────────────────────────────────────── */
.weh-screen { display: none; }
.weh-screen.weh-active {
  display: block;
  animation: weh-fadein 0.3s ease;
}
@keyframes weh-fadein {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Progress bar ─────────────────────────────────────────── */
.weh-progress-wrap {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.weh-progress-bg {
  flex: 1; height: 6px;
  background: var(--weh-border);
  border-radius: 10px; overflow: hidden;
}
.weh-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--weh-orange-light), var(--weh-orange));
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}
.weh-progress-text { font-size: 0.78rem; color: var(--weh-muted); white-space: nowrap; }

/* ── Card generica ────────────────────────────────────────── */
.weh-card {
  background: var(--weh-surface);
  border-radius: var(--weh-radius);
  border: 1px solid var(--weh-border);
  padding: 40px;
  margin-bottom: 20px;
}
.weh-card-center { text-align: center; }

/* ── Intro ────────────────────────────────────────────────── */
.weh-intro-tag {
  display: inline-block;
  background: var(--weh-orange-pale); color: var(--weh-orange);
  border: 1px solid var(--weh-orange-mid);
  border-radius: 40px; padding: 6px 16px;
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; margin-bottom: 28px;
}
.weh-cert-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--weh-green-pale); color: var(--weh-green);
  border: 1px solid #A7F3D0;
  border-radius: 40px; padding: 6px 16px;
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 500; margin-bottom: 28px;
}
.weh-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; line-height: 1.25; font-weight: 600;
  margin-bottom: 14px; color: var(--weh-text);
}
.weh-title em { font-style: italic; color: var(--weh-orange); }
.weh-sub {
  font-size: 0.92rem; color: var(--weh-muted);
  line-height: 1.8; font-weight: 300;
  max-width: 420px; margin: 0 auto 28px;
}
.weh-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding: 18px;
  background: var(--weh-bg); border-radius: 14px;
  margin: 0 auto 32px;
}
.weh-meta-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--weh-orange); line-height: 1;
}
.weh-meta-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--weh-muted); margin-top: 3px;
}
.weh-meta-div { width: 1px; height: 36px; background: var(--weh-border); }

.weh-rules {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; max-width: 420px; margin: 0 auto 32px;
}
.weh-rule {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--weh-bg); border-radius: 12px; padding: 14px; text-align: left;
}
.weh-rule-icon { font-size: 1.1rem; flex-shrink: 0; }
.weh-rule-text { font-size: 0.8rem; color: var(--weh-muted); line-height: 1.4; }
.weh-rule-text strong { display: block; color: var(--weh-text); font-weight: 500; margin-bottom: 2px; }

/* ── Buttons ──────────────────────────────────────────────── */
.weh-btn-primary {
  display: inline-block;
  background: var(--weh-orange); color: #fff;
  border: none; padding: 15px 38px; border-radius: 40px;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.weh-btn-primary:hover { background: var(--weh-orange-dark); transform: translateY(-1px); color: #fff; }
.weh-btn-primary:disabled { background: var(--weh-border); color: var(--weh-muted); cursor: not-allowed; transform: none; }

.weh-btn-outline {
  display: inline-block;
  background: transparent; color: var(--weh-orange);
  border: 1.5px solid var(--weh-orange); padding: 13px 32px; border-radius: 40px;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.weh-btn-outline:hover { background: var(--weh-orange-pale); color: var(--weh-orange); }

.weh-btn-ghost {
  background: none; border: none; font-size: 0.85rem;
  color: var(--weh-muted); cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.weh-btn-ghost:hover { color: var(--weh-text); }

.weh-btn-white {
  display: inline-block;
  background: #fff; color: var(--weh-orange);
  border: none; padding: 13px 28px; border-radius: 40px;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s; text-decoration: none;
}
.weh-btn-white:hover { opacity: 0.9; color: var(--weh-orange); }

.weh-btn-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.weh-btn-row .weh-btn-primary,
.weh-btn-row .weh-btn-outline { flex: 1; min-width: 140px; text-align: center; }

/* ── Question ─────────────────────────────────────────────── */
.weh-q-section {
  font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--weh-orange); margin-bottom: 6px; font-weight: 500;
}
.weh-q-context {
  font-size: 0.85rem; color: var(--weh-muted); line-height: 1.7;
  background: var(--weh-orange-pale);
  border-left: 3px solid var(--weh-orange-light);
  padding: 12px 16px; border-radius: 0 8px 8px 0;
  margin-bottom: 18px; font-style: italic;
}
.weh-q-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 600;
  color: var(--weh-orange-mid); line-height: 1;
  margin-bottom: 12px; letter-spacing: -2px;
}
.weh-q-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; line-height: 1.4; font-weight: 600;
  margin-bottom: 26px; color: var(--weh-text);
}
.weh-options { display: flex; flex-direction: column; gap: 10px; }
.weh-option {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border: 1.5px solid var(--weh-border);
  border-radius: 12px; cursor: pointer; transition: all 0.18s;
  background: var(--weh-surface);
}
.weh-option:hover { border-color: var(--weh-orange-light); background: var(--weh-orange-pale); }
.weh-option.weh-selected { border-color: var(--weh-orange); background: var(--weh-orange-pale); }
.weh-option-letter {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--weh-bg); border: 1.5px solid var(--weh-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 500; color: var(--weh-muted);
  flex-shrink: 0; transition: all 0.18s;
}
.weh-option.weh-selected .weh-option-letter {
  background: var(--weh-orange); border-color: var(--weh-orange); color: #fff;
}
.weh-option-text { font-size: 0.92rem; line-height: 1.4; color: var(--weh-text); }
.weh-q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }

/* ── Riepilogo ────────────────────────────────────────────── */
.weh-recap-header { text-align: center; margin-bottom: 28px; }
.weh-recap-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.weh-recap-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--weh-surface); border: 1px solid var(--weh-border);
  border-radius: 12px; padding: 13px 18px;
}
.weh-recap-num { font-size: 0.72rem; color: var(--weh-muted); width: 20px; text-align: center; flex-shrink: 0; }
.weh-recap-q { flex: 1; font-size: 0.85rem; line-height: 1.35; color: var(--weh-text); }
.weh-recap-q small { display: block; font-size: 0.78rem; color: var(--weh-muted); margin-top: 2px; }
.weh-recap-icon { font-size: 0.9rem; flex-shrink: 0; color: var(--weh-muted); }
.weh-recap-actions { display: flex; gap: 12px; }

/* ── Risultato: score ─────────────────────────────────────── */
.weh-result-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 40px; padding: 6px 20px;
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; margin-bottom: 22px;
}
/* Solo arancioni: niente verde giudicante, niente rosso */
.weh-badge-pass   { background: var(--weh-orange-pale); color: var(--weh-orange-deep); border: 1px solid var(--weh-orange-mid); }
.weh-badge-solid  { background: #FEF3C7; color: var(--weh-orange-deep); border: 1px solid var(--weh-orange-mid); }
.weh-badge-fail   { background: #FEF3C7; color: var(--weh-orange-deep); border: 1px solid var(--weh-orange-mid); }
.weh-badge-p1     { background: var(--weh-orange-pale); color: var(--weh-orange-deep); border: 1px solid var(--weh-orange-mid); }
.weh-badge-p2     { background: #FEF3C7;               color: var(--weh-orange-deep); border: 1px solid var(--weh-orange-mid); }
.weh-badge-p3     { background: #FFEDD5;               color: var(--weh-orange-deep); border: 1px solid #FED7AA; }

.weh-score-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; font-weight: 600; color: var(--weh-orange);
  line-height: 1; letter-spacing: -3px;
}
.weh-score-denom { font-size: 1.1rem; color: var(--weh-muted); font-weight: 300; }
.weh-score-level {
  display: inline-block;
  background: var(--weh-orange-pale); color: var(--weh-orange);
  border: 1px solid var(--weh-orange-mid); border-radius: 40px;
  padding: 5px 16px; font-size: 0.75rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 500; margin: 12px 0 16px;
}
.weh-result-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600; margin-bottom: 10px;
}
.weh-result-msg {
  font-size: 0.9rem; color: var(--weh-muted); line-height: 1.8;
  max-width: 400px; margin: 0 auto 16px;
}
.weh-result-psych {
  font-size: 0.82rem; color: var(--weh-muted); font-style: italic;
  border-top: 1px solid var(--weh-border); padding-top: 16px; margin-top: 8px;
}

/* ── Dettagli risultato (profilo) ─────────────────────────── */
.weh-detail-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--weh-muted); margin-bottom: 10px; margin-top: 18px;
}
.weh-detail-label:first-child { margin-top: 0; }
.weh-detail-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.weh-detail-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--weh-text); }
.weh-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.weh-dot-on  { background: var(--weh-orange); }
.weh-dot-off { background: var(--weh-border); }

/* ── Fail screen ──────────────────────────────────────────── */
.weh-fail-areas { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 24px; }
.weh-fail-area {
  display: flex; align-items: center; gap: 12px;
  background: var(--weh-orange-pale); border: 1px solid var(--weh-orange-mid);
  border-radius: 10px; padding: 12px 16px; font-size: 0.88rem; color: var(--weh-text);
}
.weh-fail-area-icon { font-size: 1rem; flex-shrink: 0; }
.weh-retry-note {
  font-size: 0.82rem; color: var(--weh-muted); text-align: center;
  margin-top: 12px; font-style: italic;
}

/* ── Email section ────────────────────────────────────────── */
.weh-email-label {
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--weh-muted); margin-bottom: 14px;
}
.weh-email-form { display: flex; gap: 10px; }
.weh-email-input {
  flex: 1; padding: 13px 18px;
  border: 1.5px solid var(--weh-border); border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  color: var(--weh-text); background: var(--weh-bg); outline: none;
  transition: border-color 0.2s;
}
.weh-email-input:focus { border-color: var(--weh-orange); background: var(--weh-surface); }
.weh-email-input::placeholder { color: var(--weh-muted); }
.weh-email-sent {
  display: none; align-items: center; gap: 10px;
  background: var(--weh-orange-pale); border: 1px solid var(--weh-orange-mid);
  border-radius: 12px; padding: 14px 18px;
  font-size: 0.85rem; color: var(--weh-orange-deep);
}
.weh-email-sent.weh-visible { display: flex; }

/* ── CTA card arancione ───────────────────────────────────── */
.weh-cta-card {
  background: var(--weh-orange); border-radius: var(--weh-radius);
  padding: 36px; text-align: center; color: #fff;
}
.weh-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600; margin-bottom: 8px;
}
.weh-cta-sub { font-size: 0.88rem; opacity: 0.85; margin-bottom: 22px; }
.weh-cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Timeout ──────────────────────────────────────────────── */
.weh-timeout-icon { font-size: 3rem; margin-bottom: 20px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .weh-card { padding: 24px 18px; }
  .weh-title { font-size: 1.9rem; }
  .weh-q-num { font-size: 2.8rem; }
  .weh-q-text { font-size: 1.25rem; }
  .weh-score-big { font-size: 4rem; }
  .weh-rules { grid-template-columns: 1fr; }
  .weh-email-form { flex-direction: column; }
  .weh-btn-row { flex-direction: column; }
  .weh-score-live { display: none; }
  .weh-meta { gap: 14px; }
  .weh-cta-buttons { flex-direction: column; }
}

/* ─────────────────────────────────────────────────────────────
   REGISTRAZIONE
   ───────────────────────────────────────────────────────────── */
.weh-reg-form {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}
.weh-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.weh-field {
  margin-bottom: 18px;
}
.weh-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--weh-muted);
  margin-bottom: 7px;
  font-weight: 500;
}
.weh-input-wrap {
  position: relative;
}
.weh-input {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--weh-border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--weh-text);
  background: var(--weh-bg);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.weh-input:focus {
  border-color: var(--weh-orange);
  background: var(--weh-surface);
}
.weh-input.weh-input-error {
  border-color: var(--weh-orange-dark);
}
.weh-input::placeholder { color: var(--weh-muted); }
.weh-pwd-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 1rem;
  line-height: 1; color: var(--weh-muted);
}
.weh-field-error {
  font-size: 0.78rem;
  color: var(--weh-orange-dark);
  margin-top: 5px;
  min-height: 18px;
}
.weh-err-general {
  text-align: center;
  margin-bottom: 14px;
  font-size: 0.85rem;
}
.weh-privacy-wrap {
  margin-bottom: 20px;
}
.weh-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--weh-muted);
  line-height: 1.5;
}
.weh-checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--weh-orange);
  flex-shrink: 0;
  cursor: pointer;
}
.weh-link {
  color: var(--weh-orange);
  text-decoration: underline;
}
.weh-link:hover { color: var(--weh-orange-dark); }
.weh-btn-full {
  width: 100%;
  text-align: center;
  padding: 15px;
  margin-bottom: 16px;
}
.weh-already-login {
  text-align: center;
  font-size: 0.82rem;
  color: var(--weh-muted);
  margin: 0;
}

/* Spinner */
.weh-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--weh-border);
  border-top-color: var(--weh-orange);
  border-radius: 50%;
  animation: weh-spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes weh-spin { to { transform: rotate(360deg); } }

/* Success icon */
.weh-success-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .weh-field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ─────────────────────────────────────────────────────────────
   DASHBOARD UTENTE
   ───────────────────────────────────────────────────────────── */

.weh-dash-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 40px;
  background: var(--weh-surface);
  border-bottom: 1px solid var(--weh-border);
}
.weh-dash-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--weh-orange);
  color: #fff; font-size: 1.4rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 1px;
}
.weh-dash-welcome { flex: 1; }

/* CTA row */
.weh-dash-cta-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; padding: 24px 40px;
}
.weh-dash-cta-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; padding: 22px 24px; border-radius: 16px;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
  border: 1.5px solid transparent;
}
.weh-dash-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217,119,6,0.15); }
.weh-dash-cta-primary {
  background: var(--weh-orange);
  border-color: var(--weh-orange-dark);
}
.weh-dash-cta-outline {
  background: var(--weh-surface);
  border-color: var(--weh-border);
}
.weh-dash-cta-icon { font-size: 1.6rem; }
.weh-dash-cta-label {
  font-size: 1rem; font-weight: 600;
  color: var(--weh-text);
}
.weh-dash-cta-primary .weh-dash-cta-label { color: #fff; }
.weh-dash-cta-sub {
  font-size: 0.78rem; color: var(--weh-muted);
}
.weh-dash-cta-primary .weh-dash-cta-sub { color: rgba(255,255,255,0.8); }

/* Card */
.weh-card {
  margin: 0 40px 20px;
  background: #fff;
  border: 1px solid var(--weh-border);
  border-radius: 16px;
  padding: 24px;
}

/* Track items */
.weh-dash-track-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--weh-border);
}
.weh-dash-track-item:last-child { border-bottom: none; }
.weh-dash-track-icon { font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; }
.weh-dash-track-body { flex: 1; }
.weh-dash-track-title { font-size: 0.88rem; font-weight: 500; color: var(--weh-text); margin-bottom: 3px; }
.weh-dash-track-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.weh-track-locked .weh-dash-track-title { color: var(--weh-muted); }

/* Stats grid */
.weh-dash-stats-grid {
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: wrap; gap: 8px;
}
.weh-dash-stat { text-align: center; padding: 10px 16px; }
.weh-meta-num {
  font-size: 1.8rem; font-weight: 600; color: var(--weh-orange);
  font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1;
  margin-bottom: 4px;
}
.weh-meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--weh-muted); }
.weh-dash-stat-div { width: 1px; height: 40px; background: var(--weh-border); }

/* Attestato */
.weh-dash-attestato {
  display: flex; align-items: center; gap: 16px;
  background: var(--weh-highlight); border: 1px solid var(--weh-border-warm);
  border-radius: 12px; padding: 18px 20px;
}
.weh-dash-att-icon { font-size: 2rem; flex-shrink: 0; }
.weh-dash-att-body { flex: 1; }

/* Score level badge */
.weh-score-level {
  display: inline-block; background: var(--weh-orange);
  color: #fff; border-radius: 20px; padding: 4px 12px;
  font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase;
}

/* Buttons */
.weh-btn-ghost {
  display: inline-block; background: none;
  border: 1px solid var(--weh-border); color: var(--weh-muted);
  padding: 7px 14px; border-radius: 20px; font-size: 0.8rem;
  text-decoration: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.weh-btn-ghost:hover { border-color: var(--weh-orange); color: var(--weh-orange); }

.weh-btn-outline {
  display: inline-block; background: none;
  border: 1.5px solid var(--weh-orange); color: var(--weh-orange);
  padding: 10px 22px; border-radius: 40px; font-size: 0.85rem;
  text-decoration: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.weh-btn-outline:hover { background: var(--weh-orange); color: #fff; }

.weh-detail-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 2px; color: var(--weh-muted); font-weight: 500;
}

@media (max-width: 640px) {
  .weh-dash-header       { padding: 24px 20px; }
  .weh-dash-cta-row      { grid-template-columns: 1fr; padding: 16px 20px; }
  .weh-card              { margin: 0 16px 16px; padding: 18px; }
  .weh-dash-stats-grid   { gap: 4px; }
  .weh-dash-stat         { padding: 8px 10px; }
  .weh-dash-stat-div     { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   DASHBOARD UTENTE
   ───────────────────────────────────────────────────────────── */

/* Header personale */
.weh-dash-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 40px;
  background: var(--weh-surface);
  border-bottom: 1px solid var(--weh-border);
}
.weh-dash-avatar {
  width: 64px; height: 64px;
  background: var(--weh-orange);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; font-weight: 600;
  flex-shrink: 0;
}
.weh-dash-welcome { flex: 1; }

/* CTA row — due pulsanti grandi */
.weh-dash-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px 40px;
}
.weh-dash-cta-btn {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; text-decoration: none;
  padding: 28px 20px; border-radius: 20px;
  transition: transform 0.15s, box-shadow 0.15s;
  gap: 6px;
}
.weh-dash-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.weh-dash-cta-primary {
  background: var(--weh-orange);
  color: #fff;
}
.weh-dash-cta-outline {
  background: var(--weh-surface);
  border: 2px solid var(--weh-orange);
  color: var(--weh-orange);
}
.weh-dash-cta-icon { font-size: 2rem; line-height: 1; }
.weh-dash-cta-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem; font-weight: 600; line-height: 1.2;
}
.weh-dash-cta-sub { font-size: 0.75rem; opacity: 0.8; }

/* Track percorso */
.weh-dash-track-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--weh-border);
}
.weh-dash-track-item:last-child { border-bottom: none; }
.weh-dash-track-icon { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }
.weh-dash-track-body { flex: 1; }
.weh-dash-track-title {
  font-size: 0.9rem; font-weight: 500; color: var(--weh-text);
  margin-bottom: 4px;
}
.weh-dash-track-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.weh-track-locked .weh-dash-track-title { color: var(--weh-muted); }
.weh-track-locked .weh-dash-track-icon { opacity: 0.4; }

/* Statistiche grid */
.weh-dash-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  gap: 0;
}
.weh-dash-stat { text-align: center; padding: 10px 8px; }
.weh-dash-stat-div { background: var(--weh-border); width: 1px; }
.weh-meta-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem; font-weight: 600;
  color: var(--weh-orange); line-height: 1;
  margin-bottom: 4px;
}
.weh-meta-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--weh-muted);
}

/* Attestato card */
.weh-dash-attestato {
  display: flex; align-items: center; gap: 16px;
  background: var(--weh-surface);
  border: 1px solid var(--weh-border);
  border-radius: 14px; padding: 18px;
}
.weh-dash-att-icon { font-size: 2.2rem; flex-shrink: 0; }
.weh-dash-att-body { flex: 1; }

/* Score level pill */
.weh-score-level {
  display: inline-block;
  background: var(--weh-orange-pale);
  color: var(--weh-orange-dark);
  border: 1px solid var(--weh-orange-mid);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Btn variants */
.weh-btn-ghost {
  background: none;
  border: 1px solid var(--weh-border);
  color: var(--weh-muted);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.weh-btn-ghost:hover { border-color: var(--weh-orange); color: var(--weh-orange); }
.weh-btn-outline {
  background: none;
  border: 1.5px solid var(--weh-orange);
  color: var(--weh-orange);
  border-radius: 20px;
  padding: 10px 22px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
}
.weh-btn-outline:hover { background: var(--weh-orange); color: #fff; }

/* Card wrapper */
.weh-quiz-wrap .weh-card {
  background: #fff;
  border: 1px solid var(--weh-border);
  border-radius: 20px;
  padding: 24px 32px;
  margin: 0 40px 20px;
}
.weh-detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--weh-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .weh-dash-header      { padding: 24px 20px; }
  .weh-dash-cta-row     { grid-template-columns: 1fr; padding: 16px 20px; }
  .weh-quiz-wrap .weh-card { margin: 0 16px 16px; padding: 18px 20px; }
  .weh-dash-stats-grid  { grid-template-columns: 1fr 1px 1fr; }
  .weh-dash-stats-grid .weh-dash-stat:nth-child(n+5) { display: none; }
  .weh-dash-stats-grid .weh-dash-stat-div:nth-child(n+5) { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   DASHBOARD UTENTE
   ───────────────────────────────────────────────────────────── */
#weh-dashboard .weh-topbar { margin-bottom: 0; }

.weh-dash-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 40px;
  background: var(--weh-surface);
  border-bottom: 1px solid var(--weh-border);
}
.weh-dash-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--weh-orange);
  color: #fff;
  font-size: 1.3rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.weh-dash-welcome { flex: 1; }

/* CTA row */
.weh-dash-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px 24px 0;
}
.weh-dash-cta-btn {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 28px 20px;
  border-radius: 20px; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.weh-dash-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,119,6,.18); }
.weh-dash-cta-primary {
  background: var(--weh-orange);
  border: 2px solid var(--weh-orange);
}
.weh-dash-cta-outline {
  background: var(--weh-surface);
  border: 2px solid var(--weh-border);
}
.weh-dash-cta-icon { font-size: 2rem; margin-bottom: 8px; }
.weh-dash-cta-label {
  font-size: 1rem; font-weight: 600; margin-bottom: 4px;
}
.weh-dash-cta-primary .weh-dash-cta-label { color: #fff; }
.weh-dash-cta-outline .weh-dash-cta-label { color: var(--weh-text); }
.weh-dash-cta-sub {
  font-size: 0.75rem;
  line-height: 1.4;
}
.weh-dash-cta-primary .weh-dash-cta-sub { color: rgba(255,255,255,.8); }
.weh-dash-cta-outline .weh-dash-cta-sub { color: var(--weh-muted); }

/* Track items */
.weh-dash-track-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--weh-border);
}
.weh-dash-track-item:last-child { border-bottom: none; }
.weh-dash-track-icon { font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }
.weh-dash-track-body { flex: 1; }
.weh-dash-track-title { font-size: 0.88rem; font-weight: 500; color: var(--weh-text); margin-bottom: 4px; }
.weh-dash-track-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.weh-track-locked .weh-dash-track-title { color: var(--weh-muted); }

/* Stats grid */
.weh-dash-stats-grid {
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: wrap; gap: 16px;
}
.weh-dash-stat { text-align: center; }
.weh-meta-num {
  font-size: 1.8rem; font-weight: 600; color: var(--weh-orange);
  font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1;
  margin-bottom: 4px;
}
.weh-meta-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--weh-muted);
}
.weh-dash-stat-div {
  width: 1px; height: 40px; background: var(--weh-border);
}

/* Attestato card */
.weh-dash-attestato {
  display: flex; align-items: center; gap: 16px;
  background: var(--weh-orange-pale);
  border: 1px solid var(--weh-border);
  border-radius: 14px; padding: 18px 20px;
}
.weh-dash-att-icon { font-size: 2rem; flex-shrink: 0; }
.weh-dash-att-body { flex: 1; }

/* Buttons extra */
.weh-btn-ghost {
  background: none; border: 1.5px solid var(--weh-border);
  color: var(--weh-muted); padding: 7px 16px; border-radius: 40px;
  font-size: 0.82rem; cursor: pointer; text-decoration: none;
  font-family: 'DM Sans', sans-serif; transition: border-color 0.2s;
  white-space: nowrap;
}
.weh-btn-ghost:hover { border-color: var(--weh-orange); color: var(--weh-orange); }
.weh-btn-outline {
  background: none; border: 1.5px solid var(--weh-orange);
  color: var(--weh-orange); padding: 10px 22px; border-radius: 40px;
  font-size: 0.85rem; cursor: pointer; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
}
.weh-btn-outline:hover { background: var(--weh-orange); color: #fff; }

.weh-score-level {
  display: inline-block;
  background: #FFFBEB; border: 1px solid #FDE68A;
  color: #92400E; border-radius: 20px;
  padding: 4px 12px; font-size: 0.72rem; letter-spacing: 1px;
  text-transform: uppercase;
}

/* Card layout */
.weh-card { background: #fff; border: 1px solid var(--weh-border); border-radius: 20px; padding: 28px; }
.weh-detail-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--weh-muted); font-weight: 500;
}

/* Padding delle card in dashboard */
#weh-dashboard .weh-card { margin: 0 24px; }
#weh-dashboard .weh-dash-cta-row { margin-bottom: 16px; }
#weh-dashboard .weh-card { margin-bottom: 16px; }
#weh-dashboard .weh-card:last-child { margin-bottom: 40px; }

@media (max-width: 600px) {
  .weh-dash-header { padding: 20px; flex-direction: column; text-align: center; }
  .weh-dash-cta-row { grid-template-columns: 1fr; padding: 16px 16px 0; }
  .weh-dash-stats-grid { gap: 10px; }
  .weh-dash-stat-div { display: none; }
  #weh-dashboard .weh-card { margin: 0 12px; }
  .weh-dash-attestato { flex-direction: column; text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   DASHBOARD UTENTE
   ───────────────────────────────────────────────────────────── */

/* Header personale */
.weh-dash-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 40px 0;
  max-width: 700px;
  margin: 0 auto;
}
.weh-dash-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--weh-orange);
  color: #fff; font-size: 1.4rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}
.weh-dash-welcome { flex: 1; }

/* CTA buttons row */
.weh-dash-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 28px auto 0;
  padding: 0 20px;
}
.weh-dash-cta-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-decoration: none;
  padding: 24px 20px; border-radius: 20px;
  text-align: center; transition: transform 0.15s, box-shadow 0.15s;
}
.weh-dash-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,119,6,0.18); }
.weh-dash-cta-primary {
  background: var(--weh-orange);
  border: 2px solid var(--weh-orange);
}
.weh-dash-cta-outline {
  background: var(--weh-surface);
  border: 2px solid var(--weh-border);
}
.weh-dash-cta-icon { font-size: 2rem; }
.weh-dash-cta-label {
  font-weight: 600; font-size: 0.95rem;
  color: #fff;
}
.weh-dash-cta-outline .weh-dash-cta-label { color: var(--weh-text); }
.weh-dash-cta-sub {
  font-size: 0.75rem; color: rgba(255,255,255,0.8);
}
.weh-dash-cta-outline .weh-dash-cta-sub { color: var(--weh-muted); }

/* Percorso track items */
.weh-dash-track-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--weh-border);
}
.weh-dash-track-item:last-child { border-bottom: none; padding-bottom: 0; }
.weh-dash-track-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }
.weh-dash-track-body { flex: 1; }
.weh-dash-track-title { font-size: 0.88rem; font-weight: 500; color: var(--weh-text); }
.weh-dash-track-meta { margin-top: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.weh-track-locked .weh-dash-track-title { color: var(--weh-muted); }
.weh-track-locked .weh-dash-track-icon { opacity: 0.4; }

/* Statistiche personali */
.weh-dash-stats-grid {
  display: flex; align-items: center;
  gap: 0; flex-wrap: wrap;
}
.weh-dash-stat {
  flex: 1; text-align: center; padding: 8px 12px;
  min-width: 80px;
}
.weh-dash-stat-div {
  width: 1px; height: 40px;
  background: var(--weh-border);
  flex-shrink: 0;
}
.weh-meta-num {
  font-size: 1.6rem; font-weight: 600; color: var(--weh-orange);
  font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1;
}
.weh-meta-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--weh-muted); margin-top: 4px;
}

/* Attestato card */
.weh-dash-attestato {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--weh-orange-pale);
  border: 1px solid var(--weh-border); border-radius: 14px;
}
.weh-dash-att-icon { font-size: 2rem; flex-shrink: 0; }
.weh-dash-att-body { flex: 1; }

/* Score level badge */
.weh-score-level {
  display: inline-block;
  background: var(--weh-orange-pale); border: 1px solid var(--weh-orange-mid);
  color: var(--weh-orange-dark); border-radius: 20px;
  padding: 3px 12px; font-size: 0.72rem; letter-spacing: 1px;
  text-transform: uppercase;
}

/* Button ghost & outline */
.weh-btn-ghost {
  display: inline-block; background: none;
  border: 1px solid var(--weh-border); color: var(--weh-muted);
  padding: 7px 16px; border-radius: 30px; font-size: 0.8rem;
  text-decoration: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: border-color 0.2s;
}
.weh-btn-ghost:hover { border-color: var(--weh-orange); color: var(--weh-orange); }
.weh-btn-outline {
  display: inline-block; background: none;
  border: 1.5px solid var(--weh-orange); color: var(--weh-orange);
  padding: 10px 22px; border-radius: 30px; font-size: 0.85rem;
  text-decoration: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.2s, color 0.2s;
}
.weh-btn-outline:hover { background: var(--weh-orange); color: #fff; }

/* Detail label */
.weh-detail-label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--weh-muted);
  font-weight: 500;
}

@media (max-width: 560px) {
  .weh-dash-header { padding: 24px 20px 0; flex-direction: column; text-align: center; }
  .weh-dash-cta-row { grid-template-columns: 1fr; padding: 0 16px; }
  .weh-dash-stats-grid { justify-content: center; }
  .weh-dash-attestato { flex-direction: column; text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   SISTEMA DOPPIO TENTATIVO
   ───────────────────────────────────────────────────────────── */

/* Alert secondo tentativo */
.weh-attempt-alert {
  background: #FFFBEB;
  border: 1.5px solid var(--weh-orange-mid);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--weh-orange-dark);
  margin: 0 0 16px;
  font-weight: 500;
  animation: weh-shake 0.3s ease;
}
@keyframes weh-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* Opzione bloccata (primo tentativo sbagliato) */
.weh-opt-locked {
  opacity: 0.38;
  pointer-events: none !important;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: var(--weh-border) !important;
  background: var(--weh-bg) !important;
}
.weh-opt-locked .weh-option-letter {
  background: var(--weh-border) !important;
  color: var(--weh-muted) !important;
}

/* ─────────────────────────────────────────────────────────────
   DETTAGLIO RISULTATO FINALE (tutte le domande)
   ───────────────────────────────────────────────────────────── */
.weh-result-detail-wrap {
  margin-top: 28px;
}
.weh-result-detail-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--weh-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.weh-result-item {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--weh-border);
}
.weh-result-ok { background: #F0FDF4; border-color: #BBF7D0; }
.weh-result-ko { background: #FFF7ED; border-color: var(--weh-orange-mid); }

.weh-result-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.weh-result-icon  { font-size: 1rem; flex-shrink: 0; }
.weh-result-qnum  { font-size: 0.72rem; color: var(--weh-muted); font-weight: 500; }
.weh-result-qtitle,
.weh-result-qsec  { font-size: 0.78rem; color: var(--weh-text); font-weight: 500; flex: 1; }
.weh-result-att   {
  font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase;
  background: #D1FAE5; color: #065F46;
  border-radius: 20px; padding: 2px 8px; margin-left: auto;
}
.weh-result-qtext {
  font-size: 0.83rem; color: var(--weh-text);
  margin-bottom: 10px; font-weight: 500;
}
.weh-result-answers { display: flex; flex-direction: column; gap: 5px; }
.weh-result-user    { font-size: 0.8rem; }
.weh-result-correct { font-size: 0.8rem; color: #065F46; font-weight: 500; }
.weh-ans-ok { color: #065F46; }
.weh-ans-ko { color: var(--weh-orange-dark); }
