@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.sc-autoscuola { --k-bg: #f4f4f2; --k-ink: #1b1c1f; --k-muted: #5e6168; --k-ac: #1f5fbf; --k-ac-ink: #fff; --k-surface: #fff; --k-line: rgba(27,28,31,.12);
  --k-display: "Barlow Condensed", Impact, sans-serif; --k-body: "DM Sans", system-ui, sans-serif; --k-dw: 800; --k-track: 0; --k-case: uppercase; --k-lh: .9; --k-r: 14px; --yel: #ffd400; --red: #d7141a; --green: #22c55e; }

.hero { position: relative; min-height: calc(100vh - 110px); padding: 60px var(--k-pad) 60px; overflow: hidden; isolation: isolate; }
.road { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.dash { fill: var(--yel); }
.hero-copy { max-width: 640px; padding: 24px 28px; border-radius: 20px; background: rgba(244,244,242,.88); backdrop-filter: blur(10px); }
.hero h1 { margin: 0 0 14px; font-size: clamp(60px, 8.6vw, 140px); }
.hero h1 span { color: var(--ac, var(--k-ac)); }
.lead { max-width: 480px; color: var(--k-muted); font-size: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.light { position: absolute; right: max(30px, calc((100vw - 1320px) / 2)); top: 60px; width: 90px; }
.light circle { fill: #2a2a2a; transition: fill .3s, filter .3s; }
.light.r .l-r { fill: var(--red); filter: drop-shadow(0 0 10px var(--red)); }
.light.y .l-y { fill: var(--yel); filter: drop-shadow(0 0 10px var(--yel)); }
.light.g .l-g { fill: var(--green); filter: drop-shadow(0 0 12px var(--green)); }

.quiz { background: #2b2d31; color: #fff; --k-muted: #b3b6bd; }
.q-card { max-width: 900px; padding: 28px; border-radius: 22px; background: #1e1f23; }
.q-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font: 600 18px "Barlow Condensed"; text-transform: uppercase; }
.q-bar { flex: 1; height: 8px; border-radius: 4px; background: #3a3c42; overflow: hidden; } .q-bar i { display: block; height: 100%; width: 0; background: var(--yel); transition: width .5s; }
.q-body { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.sign { width: 200px; animation: signIn .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes signIn { from { transform: rotate(-30deg) scale(.6); opacity: 0; } }
.q-text { margin: 0 0 20px; font-size: 22px; font-weight: 600; line-height: 1.35; }
.q-btns { display: flex; gap: 12px; }
.vf { min-width: 120px; min-height: 56px; border: 3px solid #fff; border-radius: 12px; background: transparent; color: #fff; font: 800 26px "Barlow Condensed"; text-transform: uppercase; transition: transform .2s, background .2s; }
.vf:hover:not(:disabled) { transform: translateY(-2px); }
.vf.ok { background: var(--green); border-color: var(--green); } .vf.ko { background: var(--red); border-color: var(--red); }
.vf:disabled { cursor: default; }
.q-exp { min-height: 1.5em; color: var(--k-muted); }
.q-card .k-btn { background: var(--yel); color: #1b1c1f; }
.q-card.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.cards-sign .k-card-ic { width: 64px; height: 64px; border: 5px solid var(--red); border-radius: 50%; background: #fff; color: #1b1c1f; font: 800 26px "Barlow Condensed"; }
.path { background: var(--k-surface); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 70px 0 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 26px; border-radius: 6px; background: #2b2d31 repeating-linear-gradient(90deg, transparent 0 30px, var(--yel) 30px 60px) 0 50% / 100% 3px no-repeat; }
.car { position: absolute; top: 18px; left: var(--x, 0%); font-size: 40px; transform: scaleX(-1); transition: left .1s linear; }
.steps b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--k-ac); color: #fff; font: 800 24px "Barlow Condensed"; }
.steps h3 { margin: 12px 0 6px; font-size: 32px; } .steps p { margin: 0; color: var(--k-muted); }

@media (max-width: 899px) { .q-body { grid-template-columns: 1fr; justify-items: center; text-align: center; } .q-btns { justify-content: center; } .steps { grid-template-columns: 1fr 1fr; } .light { width: 60px; top: auto; bottom: 30px; } }

/* fx · rifacimento */
.hero h1 b { font-weight: inherit; display: block; } .hero h1 span { --fx-delay: 200ms; }
.as-lessons { --fx-h-gap: 20px; background: #f4f4f2; }
.as-ls-head { flex: none; width: min(420px, 74vw); align-self: center; } .as-ls-head h2 { margin: 0; font-size: clamp(60px, 7vw, 120px); } .as-ls-head h2 span { color: var(--k-ac); }
.as-l { flex: none; width: clamp(300px, 30vw, 460px); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px rgba(27,28,31,.08); }
.as-l .fx-ph { aspect-ratio: 4 / 3; } .as-l > div { display: grid; gap: 2px; padding: 18px 22px 22px; border-top: 6px solid var(--yel); }
.as-l span { color: var(--k-ac); font: 800 14px "Barlow Condensed"; letter-spacing: .14em; text-transform: uppercase; } .as-l b { font: 800 34px/1 "Barlow Condensed"; text-transform: uppercase; } .as-l p { margin: 0; color: var(--k-muted); }
.as-zoom { --fx-zi: 20%; --fx-zx: 28%; }
.as-zoom-t { position: absolute; left: var(--k-pad); bottom: 10vh; margin: 0; color: #fff; font: 800 clamp(70px, 11vw, 200px)/.85 "Barlow Condensed"; text-transform: uppercase; text-shadow: 0 10px 40px rgba(0,0,0,.4); opacity: clamp(0, calc((var(--p, 0) - .5) * 3), 1); }
.as-zoom-t span, .as-zoom-t b { display: block; } .as-zoom-t b { color: var(--yel); }
@media (max-width: 899px) { .as-l { width: 76vw; } }
@media (prefers-reduced-motion: reduce) { .as-zoom-t { opacity: 1; } }
.hero h1 b span { color: inherit; }
