/* =========================================================================
   Autoassessment — "Scopri il tuo livello di leadership"
   Builds on colors_and_type.css + styles.css (tokens + .btn/.wrap/.eyebrow)
   ========================================================================= */

.asx { min-height: 100vh; background: var(--lead-navy); color: #fff; display: flex; flex-direction: column; }
.asx :is(h1, h2, h3) { color: #fff; }

/* Top bar */
.asx-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.asx-bar .brand { color: #fff; }
.asx-bar__right { display: flex; align-items: center; gap: 22px; }
.asx-bar__link { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); text-decoration: none; }
.asx-bar__link:hover { color: #fff; }

/* Progress */
.asx-prog { height: 4px; background: rgba(255,255,255,0.12); position: relative; }
.asx-prog__fill { height: 100%; width: 0%; background: var(--lead-accent); transition: width 0.4s var(--cp-ease-out); }

.asx-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.asx-stage { width: 100%; max-width: 760px; }

/* Generic screen fade (transform-only so content is never left invisible) */
.asx-screen { animation: asxIn 0.45s var(--cp-ease-out); }
@keyframes asxIn { from { transform: translateY(16px); } to { transform: none; } }
[data-motion="off"] .asx-screen { animation: none; }

/* ---------- Intro ---------- */
.asx-intro { text-align: center; }
.asx-intro .eyebrow { color: var(--lead-accent); justify-content: center; }
.asx-intro h1 {
  font-family: var(--cp-font-display); font-weight: 900;
  font-size: clamp(38px, 6vw, 68px); line-height: 0.98; letter-spacing: -0.025em;
  margin: 0 0 22px; text-wrap: balance;
}
.asx-intro h1 .accent { color: var(--lead-accent); }
.asx-intro p { font-size: clamp(17px,1.5vw,20px); line-height: 1.6; color: rgba(255,255,255,0.76); max-width: 54ch; margin: 0 auto 36px; }
.asx-facts { display: flex; gap: 0; justify-content: center; margin: 0 auto 40px; max-width: 560px; border: 1px solid rgba(255,255,255,0.14); }
.asx-fact { flex: 1; padding: 22px 16px; text-align: center; border-left: 1px solid rgba(255,255,255,0.14); }
.asx-fact:first-child { border-left: none; }
.asx-fact b { display: block; font-family: var(--cp-font-display); font-weight: 900; font-size: 30px; line-height: 1; color: #fff; }
.asx-fact b .u { color: var(--lead-accent); }
.asx-fact span { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 9px; font-weight: 600; }
.asx-intro__note { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 22px; }

/* ---------- Question ---------- */
.asx-q__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.asx-q__dim {
  font-family: var(--cp-font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--lead-accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.asx-q__dim::before { content: ""; width: 26px; height: 2px; background: var(--lead-accent); }
.asx-q__count { font-family: var(--cp-font-display); font-weight: 700; font-size: 14px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; }
.asx-q__count b { color: #fff; }
.asx-q__text {
  font-family: var(--cp-font-display); font-weight: 800;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.18; letter-spacing: -0.015em;
  margin: 0 0 36px; text-wrap: balance;
}
.asx-opts { display: flex; flex-direction: column; gap: 10px; }
.asx-opt {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16);
  color: #fff; padding: 17px 20px; cursor: pointer; border-radius: 0;
  font-family: var(--cp-font-body); font-size: 16.5px; font-weight: 500;
  transition: background var(--cp-dur-fast) var(--cp-ease-out), border-color var(--cp-dur-fast) var(--cp-ease-out);
}
.asx-opt:hover { background: rgba(239,160,46,0.10); border-color: var(--lead-accent); }
.asx-opt.is-sel { background: var(--lead-accent); border-color: var(--lead-accent); color: var(--lead-navy); font-weight: 600; }
.asx-opt__key {
  flex-shrink: 0; width: 30px; height: 30px; border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--cp-font-display); font-weight: 800; font-size: 13px;
}
.asx-opt.is-sel .asx-opt__key { border-color: var(--lead-navy); background: var(--lead-navy); color: var(--lead-accent); }
.asx-q__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.asx-back {
  background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer;
  font-family: var(--cp-font-body); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 0;
}
.asx-back:hover { color: #fff; }
.asx-back svg { width: 16px; height: 16px; }
.asx-back[disabled] { opacity: 0.3; cursor: default; }
.asx-q__hint { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ---------- Email gate ---------- */
.asx-gate { text-align: center; max-width: 560px; margin: 0 auto; }
.asx-gate__ring { width: 92px; height: 92px; margin: 0 auto 28px; position: relative; }
.asx-gate__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.asx-gate__ring .bg { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 6; }
.asx-gate__ring .fg { fill: none; stroke: var(--lead-accent); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--cp-ease-out); }
.asx-gate__ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--cp-font-display); font-weight: 900; font-size: 13px; letter-spacing: 0.06em; color: var(--lead-accent); }
.asx-gate h2 { font-family: var(--cp-font-display); font-weight: 900; font-size: clamp(28px,3.6vw,44px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.asx-gate p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.76); margin: 0 0 30px; }
.asx-gate form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.asx-gate input {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 18px; color: #fff; font-family: var(--cp-font-body); font-size: 15px; border-radius: 0; text-align: center;
}
.asx-gate input::placeholder { color: rgba(255,255,255,0.4); }
.asx-gate input:focus { outline: none; border-color: var(--lead-accent); }
.asx-gate__note { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; margin: 6px 0 0; }

/* ---------- Result ---------- */
.asx-res { max-width: 720px; margin: 0 auto; }
.asx-res__head { text-align: center; margin-bottom: 40px; }
.asx-res__ey { font-family: var(--cp-font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lead-accent); margin-bottom: 18px; }
.asx-gauge { width: 200px; height: 200px; margin: 0 auto 26px; position: relative; }
.asx-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.asx-gauge .bg { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 10; }
.asx-gauge .fg { fill: none; stroke: var(--lead-accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--cp-ease-out); }
.asx-gauge__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.asx-gauge__num { font-family: var(--cp-font-display); font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.asx-gauge__num span { font-size: 26px; color: var(--lead-accent); }
.asx-gauge__lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 6px; font-weight: 600; }
.asx-res__profile { font-family: var(--cp-font-display); font-weight: 900; font-size: clamp(28px,4vw,46px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 16px; text-align: center; text-wrap: balance; }
.asx-res__profile .accent { color: var(--lead-accent); }
.asx-res__desc { font-size: 17px; line-height: 1.62; color: rgba(255,255,255,0.78); text-align: center; max-width: 56ch; margin: 0 auto 40px; }

.asx-rec {
  display: grid; grid-template-columns: auto 1fr; gap: 0 28px; align-items: center;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.03); padding: 28px 30px; margin-bottom: 24px;
}
.asx-rec__badge {
  width: 92px; height: 92px; border: 1.5px solid var(--lead-accent); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; background: radial-gradient(circle at 50% 35%, rgba(239,160,46,0.16), transparent 70%);
}
.asx-rec__badge b { font-family: var(--cp-font-display); font-weight: 900; font-size: 30px; color: var(--lead-accent); line-height: 1; }
.asx-rec__badge span { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 700; }
.asx-rec__txt .l { font-family: var(--cp-font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lead-accent); margin-bottom: 6px; }
.asx-rec__txt h3 { font-family: var(--cp-font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 6px; }
.asx-rec__txt p { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.7); margin: 0; }

.asx-weak { border: 1px solid rgba(255,255,255,0.16); padding: 24px 28px 26px; margin-bottom: 36px; }
.asx-weak__l { font-family: var(--cp-font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lead-accent); margin-bottom: 16px; }
.asx-weak__row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.asx-weak__row:first-of-type { border-top: none; }
.asx-weak__name { flex-shrink: 0; width: 200px; font-weight: 600; font-size: 15px; }
.asx-weak__bar { flex: 1; height: 8px; background: rgba(255,255,255,0.12); position: relative; }
.asx-weak__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lead-accent); width: 0; transition: width 1s var(--cp-ease-out); }
.asx-weak__pct { flex-shrink: 0; width: 48px; text-align: right; font-family: var(--cp-font-display); font-weight: 800; font-size: 15px; color: rgba(255,255,255,0.8); }

.asx-res__cta { text-align: center; }
.asx-res__cta .lead-line { font-family: var(--cp-font-display); font-weight: 800; font-size: clamp(20px,2.4vw,28px); line-height: 1.2; margin: 0 0 22px; letter-spacing: -0.01em; text-wrap: balance; }
.asx-res__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.asx-retake { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 13px; font-weight: 600; margin-top: 26px; text-decoration: underline; }
.asx-retake:hover { color: #fff; }

@media (max-width: 680px) {
  .asx-bar { padding: 16px 22px; }
  .asx-bar__link { display: none; }
  .asx-main { padding: 36px 20px; }
  .asx-facts { flex-direction: column; }
  .asx-fact { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); }
  .asx-fact:first-child { border-top: none; }
  .asx-rec { grid-template-columns: 1fr; gap: 18px; justify-items: start; }
  .asx-weak__name { width: 130px; font-size: 13.5px; }
}
