/* ─────────────────────────────────────────────────────────────
   Closentia — sito vetrina · stile
   Tema scuro, accento blu del logo (#38bdf8 → #2563eb).
   Nessuna dipendenza: solo CSS + main.js.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --surface: #0f172a;
  --surface-2: #131c30;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .28);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --brand: #38bdf8;
  --brand-2: #2563eb;
  --grad: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  --green: #22c55e;
  --wa: #25d366;
  --radius: 20px;
  --radius-sm: 12px;
  --font-d: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
  --gutter: 20px;
  --shadow-xl: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
}

/* ── reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .h2 { font-family: var(--font-d); letter-spacing: -.025em; line-height: 1.08; }
::selection { background: rgba(56, 189, 248, .35); }

.container { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--row { max-width: none; display: grid; gap: 20px 48px; align-items: end; }
@media (min-width: 900px) { .section__head--row { grid-template-columns: 1fr 1fr; } .section__head--row .lead { margin-bottom: 8px; } }

.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 56ch; margin-top: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(56, 189, 248, .18); }

/* ── bottoni ───────────────────────────────────────────────── */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font-d); font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(37, 99, 235, .8); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, #7dd3fc, #3b82f6); opacity: 0; transition: opacity .3s;
}
.btn--primary:hover::after { opacity: 1; }
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(37, 99, 235, .9); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .02); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.btn--sm { padding: 12px 20px; font-size: .9rem; }
.btn--full { width: 100%; }

/* ── preloader ─────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg); color: var(--brand);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader__mark { width: 72px; height: 72px; }
.preloader__box, .preloader__check { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease) forwards; }
.preloader__check { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ── cursore ───────────────────────────────────────────────── */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor { cursor: none; }
  html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor input, html.has-cursor textarea { cursor: none; }
  .cursor, .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none;
    border-radius: 50%; transform: translate(-50%, -50%);
  }
  .cursor { width: 8px; height: 8px; background: var(--brand); mix-blend-mode: difference; }
  .cursor-ring {
    width: 40px; height: 40px; border: 1.5px solid rgba(56, 189, 248, .7);
    transition: width .4s var(--ease), height .4s var(--ease), background .4s, border-color .4s, opacity .3s;
  }
  .cursor-ring.hover { width: 64px; height: 64px; background: rgba(56, 189, 248, .12); border-color: transparent; }
  .cursor-ring.text { width: 4px; height: 28px; border-radius: 2px; background: var(--brand); border-color: transparent; }
  .cursor.hidden, .cursor-ring.hidden { opacity: 0; }
}

/* ── barra di avanzamento ──────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ── nav ───────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 11, 20, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links > a:not(.btn) { position: relative; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .3s; padding: 6px 0; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.nav__links > a:not(.btn):hover, .nav__links > a.active { color: var(--text); }
.nav__links > a:not(.btn):hover::after, .nav__links > a.active::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; z-index: 2; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav.open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(7, 11, 20, .96); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav__links > a:not(.btn) { font-family: var(--font-d); font-size: 1.75rem; font-weight: 700; color: var(--text); transform: translateY(18px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
  .nav__cta { margin: 12px 0 0; transform: translateY(18px); opacity: 0; transition: transform .6s var(--ease) .3s, opacity .6s .3s; }
  .nav.open .nav__links { opacity: 1; visibility: visible; }
  .nav.open .nav__links > a { transform: none; opacity: 1; }
  .nav.open .nav__links > a:nth-child(1) { transition-delay: .08s; }
  .nav.open .nav__links > a:nth-child(2) { transition-delay: .14s; }
  .nav.open .nav__links > a:nth-child(3) { transition-delay: .2s; }
  .nav.open .nav__links > a:nth-child(4) { transition-delay: .26s; }
  .nav.open .nav__links > a:nth-child(5) { transition-delay: .32s; }
  body.menu-open { overflow: hidden; }
}

/* ── hero ──────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 96px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .55; }
.hero__glow--1 { width: 560px; height: 560px; left: -160px; top: -120px; background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--2 { width: 640px; height: 640px; right: -200px; bottom: -220px; background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.hero__inner { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 40px; } }
.hero__eyebrow { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease) .1s, transform .8s var(--ease) .1s; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.hero__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w__i { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(.25s + var(--i) * .07s); }
.hero__sub { margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 54ch; opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease) .65s, transform .9s var(--ease) .65s; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease) .8s, transform .9s var(--ease) .8s; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; font-size: .9rem; color: var(--muted); opacity: 0; transition: opacity 1s var(--ease) 1.05s; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(34, 197, 94, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat; }
body.ready .hero__eyebrow, body.ready .hero__sub, body.ready .hero__ctas { opacity: 1; transform: none; }
body.ready .hero__trust { opacity: 1; }
body.ready .hero__title .w__i { transform: none; }

.hero__visual { position: relative; padding: 24px 0 40px; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
body.ready .hero__visual { opacity: 1; transform: none; }
.hero__visual .mock--browser { margin-left: auto; width: min(100%, 640px); }
.hero__visual .mock--phone { position: absolute; left: -8px; bottom: 0; width: clamp(150px, 20vw, 210px); }
@media (min-width: 1024px) { .hero__visual { padding-left: 72px; } .hero__visual .mock--phone { left: 0; } }
.hero__visual [data-depth] { will-change: transform; }
@media (max-width: 1023px) { .hero { padding-bottom: 72px; } .hero__visual { padding-bottom: 60px; } .hero__visual .mock--phone { left: 0; width: 140px; } }

.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; opacity: 0; transition: opacity 1s 1.4s; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
body.ready .hero__scroll { opacity: .8; }
@media (max-width: 1023px) { .hero__scroll { display: none; } }

/* ── mockup ────────────────────────────────────────────────── */
.mock { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xl); }
.mock--browser { border: 1px solid var(--line); }
.mock__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #111a2e; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.mock__bar i:nth-child(1) { background: #f87171; } .mock__bar i:nth-child(2) { background: #fbbf24; } .mock__bar i:nth-child(3) { background: #34d399; }
.mock__bar span { margin-left: 10px; flex: 1; height: 18px; line-height: 18px; padding: 0 10px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: .68rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock__screen { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.mock__screen img { width: 100%; height: auto; }
.mock--phone { border-radius: 30px; border: 6px solid #1e293b; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); position: relative; }
.mock--phone .mock__screen { aspect-ratio: 390 / 844; border-radius: 24px; }
.mock__notch { position: absolute; z-index: 2; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 16px; border-radius: 10px; background: #0b1220; }
.mock__screen--scroll img { transition: transform 5.5s cubic-bezier(.4, 0, .2, 1); }
.work__media:hover .mock__screen--scroll img, .work__media:focus-visible .mock__screen--scroll img { transform: translateY(calc(-100% + 62.5%)); }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(15, 23, 42, .78); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7);
  font-size: .8rem; line-height: 1.2; white-space: nowrap;
}
.chip b { display: block; font-weight: 600; } .chip small { color: var(--muted); font-size: .72rem; }
.chip__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(56, 189, 248, .15); color: var(--brand); }
.chip__icon--green { background: rgba(34, 197, 94, .15); color: var(--green); }
.chip__stars { color: #fbbf24; letter-spacing: .05em; font-size: .85rem; }
.chip--1 { top: 0; right: 4%; animation: float 6s ease-in-out infinite; }
.chip--2 { bottom: 26%; left: 26%; animation: float 7s ease-in-out infinite 1s; }
.chip--3 { bottom: 12px; right: 8%; animation: float 8s ease-in-out infinite 2s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 600px) { .chip--1, .chip--2 { display: none; } .chip--3 { right: 0; bottom: 24px; } }

/* ── marquee ───────────────────────────────────────────────── */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; background: var(--bg-2); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ── come funziona ─────────────────────────────────────────── */
.steps__grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .steps__grid { grid-template-columns: 1fr 1.15fr; gap: 96px; } .steps__sticky { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; } }
.steps__bar { position: relative; width: 3px; height: 120px; margin-top: 40px; border-radius: 3px; background: var(--line); overflow: hidden; }
.steps__bar i { position: absolute; inset: 0; background: var(--grad); transform-origin: 50% 0; transform: scaleY(0); }
.step { position: relative; padding: 44px 0 44px 88px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { position: absolute; left: 0; top: 40px; font-family: var(--font-d); font-weight: 800; font-size: 2.4rem; letter-spacing: -.04em; color: var(--line-strong); transition: color .5s; }
.step.active .step__num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 46ch; }
@media (max-width: 600px) { .step { padding-left: 0; padding-top: 88px; } .step__num { top: 30px; } }

/* ── servizi ───────────────────────────────────────────────── */
.services { background: var(--bg-2); }
.services__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  position: relative; overflow: hidden; padding: 32px 30px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, .16), transparent 45%);
}
[data-glow]:hover::before { opacity: 1; }
.card__icon { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(56, 189, 248, .1); color: var(--brand); margin-bottom: 26px; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }

/* ── lavori ────────────────────────────────────────────────── */
.works__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .works__grid { grid-template-columns: 2fr 1fr; } .work--featured { grid-row: span 2; } }
.work { display: flex; flex-direction: column; gap: 18px; }
.work__media { position: relative; display: block; border-radius: 16px; transition: transform .7s var(--ease); }
.work__media:hover { transform: translateY(-6px); }
.work--featured .mock--phone-sm { position: absolute; right: 22px; bottom: -18px; width: clamp(110px, 12vw, 160px); }
.work__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 0 4px; }
.work__meta h3 { font-size: 1.2rem; font-weight: 700; }
.work__meta p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .78rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.tag--live { color: var(--green); border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
.tag--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.work--cta {
  justify-content: center; align-items: flex-start; gap: 14px; padding: 36px 32px; min-height: 280px;
  border-radius: 16px; border: 1px dashed var(--line-strong); background: linear-gradient(160deg, rgba(56, 189, 248, .06), transparent 60%);
  transition: border-color .4s, background .4s, transform .6s var(--ease);
}
.work--cta:hover { border-color: var(--brand); transform: translateY(-6px); }
.work--cta__plus { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.work--cta h3 { font-size: 1.35rem; font-weight: 700; }
.work--cta p { color: var(--muted); font-size: .98rem; }
.work--cta .btn { margin-top: 8px; }

/* ── numeri ────────────────────────────────────────────────── */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 56px 0; }
.numbers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 800px) { .numbers__grid { grid-template-columns: repeat(4, 1fr); } .num + .num { border-left: 1px solid var(--line); padding-left: 32px; } }
.num b { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num > span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* ── confronto ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .98rem; }
.table th, .table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-family: var(--font-d); font-weight: 700; color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.table tbody th { font-weight: 500; color: var(--text); width: 34%; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table td { color: var(--muted); }
.table__us { background: rgba(56, 189, 248, .07); border-left: 1px solid rgba(56, 189, 248, .25); border-right: 1px solid rgba(56, 189, 248, .25); }
.table thead .table__us { color: var(--brand); }
.yes { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.yes::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: rgba(34, 197, 94, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.no { display: inline-flex; align-items: center; gap: 8px; }
.no::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: rgba(148, 163, 184, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/9px no-repeat; }

/* ── prezzi ────────────────────────────────────────────────── */
.pricing { background: var(--bg-2); }
.pricing__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .pricing__grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.price { position: relative; overflow: hidden; padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-xl); }
.price::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(56, 189, 248, .8), transparent 40%, transparent 60%, rgba(37, 99, 235, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price__head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.price__value { font-family: var(--font-d); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.035em; margin-top: 18px; line-height: 1; }
.price__note { color: var(--muted); margin-top: 10px; }
.price__list { display: grid; gap: 14px; margin-bottom: 32px; }
.price__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 1rem; }
.price__list li::before { content: ""; flex: none; margin-top: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(56, 189, 248, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
@media (max-width: 500px) { .price { padding: 28px 22px; } }

/* ── faq ───────────────────────────────────────────────────── */
.faq__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: start; } }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; list-style: none; font-family: var(--font-d); font-weight: 700; font-size: 1.15rem; cursor: pointer; transition: color .3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand); }
.faq__plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); }
.faq__plus::before { width: 12px; height: 2px; } .faq__plus::after { width: 2px; height: 12px; transition: transform .4s var(--ease); }
.faq__item[open] .faq__plus { background: var(--grad); border-color: transparent; color: #fff; transform: rotate(180deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__body { overflow: hidden; }
.faq__body p { color: var(--muted); padding: 0 48px 26px 0; max-width: 60ch; }
.faq__body strong { color: var(--text); font-weight: 600; }

/* ── contatti ──────────────────────────────────────────────── */
.contact { background: radial-gradient(900px 500px at 15% 20%, rgba(37, 99, 235, .14), transparent 60%), var(--bg-2); }
.contact__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; } }
.contact__direct { display: grid; gap: 14px; margin-top: 36px; max-width: 420px; }
.contact__link { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .4s, transform .5s var(--ease), background .3s; }
.contact__link:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); transform: translateX(6px); }
.contact__link b { display: block; font-weight: 600; } .contact__link small { color: var(--muted); font-size: .88rem; }
.contact__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(56, 189, 248, .12); color: var(--brand); }
.contact__ico--wa { background: rgba(37, 211, 102, .14); color: var(--wa); }

.form { display: grid; gap: 18px; padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xl); }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); outline: 0;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(56, 189, 248, .15); background: rgba(255, 255, 255, .06); }
.field.invalid input { border-color: #f87171; }
.form__error { color: #fca5a5; font-size: .9rem; }
.form__privacy { color: var(--muted); font-size: .82rem; text-align: center; }
.form__privacy a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 500px) { .form { padding: 24px 18px; } }

/* ── richiami a «Ordina» ───────────────────────────────────── */
.steps__cta { margin-top: 36px; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 64px); padding: 28px 32px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(37, 99, 235, .18), rgba(56, 189, 248, .06) 60%, transparent); border: 1px solid rgba(56, 189, 248, .3);
}
.cta-band b { display: block; font-family: var(--font-d); font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.cta-band span { color: var(--muted); }
.faq__cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 0; color: var(--muted); }
.faq__cta a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sticky-cta {
  position: fixed; left: 50%; bottom: 20px; z-index: 39; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(15, 23, 42, .9); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .8); font-size: .92rem; color: var(--muted); white-space: nowrap;
  transition: transform .5s var(--ease), opacity .4s;
}
.sticky-cta b { color: var(--text); }
.sticky-cta.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
@media (max-width: 700px) {
  .sticky-cta { left: 12px; right: 12px; bottom: 12px; transform: translateY(24px); justify-content: space-between; padding: 8px 8px 8px 16px; font-size: .85rem; white-space: normal; }
  .sticky-cta > span { line-height: 1.2; } .sticky-cta > span b { display: block; }
  .sticky-cta .btn { flex: none; padding: 11px 16px; }
  .sticky-cta.show { transform: none; }
  body.cta-visible .wa-float { bottom: 82px; } body.cta-visible .totop { bottom: 82px; }
}

/* ── percorso d'ordine ─────────────────────────────────────── */
.order { background: var(--bg-2); }
.wizard { max-width: 880px; margin: 0 auto; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xl); }
.wizard__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.wizard__step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: .85rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); transition: color .3s, border-color .3s, background .3s; }
.wizard__step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(148, 163, 184, .12); font-size: .8rem; flex: none; }
.wizard__step.is-active { color: var(--text); border-color: rgba(56, 189, 248, .5); background: rgba(56, 189, 248, .08); }
.wizard__step.is-active span { background: var(--grad); color: #fff; }
.wizard__step.is-done { color: var(--green); } .wizard__step.is-done span { background: rgba(34, 197, 94, .18); color: var(--green); }
.wizard__panel { display: none; } .wizard__panel.is-active { display: grid; gap: 18px; }
.wizard__panel h3 { font-size: 1.4rem; font-weight: 700; }
.wizard__hint { color: var(--muted); font-size: .95rem; margin-top: -8px; }
.wizard__hint a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.field select { width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); outline: 0; transition: border-color .3s, box-shadow .3s; }
.field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(56, 189, 248, .15); }
.field select option { color: #0f172a; }
.field.invalid select { border-color: #f87171; }
.wizard__scroll { height: 380px; overflow-y: auto; padding: 20px 22px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-strong); overscroll-behavior: contain; }
.wizard__scroll:focus-visible { outline: 2px solid var(--brand); }
[data-step="3"] .wizard__scroll { height: 240px; }
.wizard__doc h2 { font-size: 1.05rem; margin: 20px 0 8px; }
.wizard__doc .legale { margin-top: 0; }
.wizard__doc p, .wizard__doc li { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.wizard__doc strong { color: var(--text); font-weight: 600; }
.wizard__doc ul { list-style: disc; padding-left: 20px; margin-bottom: 10px; }
.wizard__doc .page__versione { margin: 0 0 12px; }
.wizard__scroll [data-scroll-end] { display: block; height: 2px; }
.wizard__progress { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--muted); margin-top: -6px; }
.wizard__progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wizard__progress b { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s; }
.is-read .wizard__progress { color: var(--green); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #2563eb; }
.check input:disabled + span { opacity: .5; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wizard__nav .btn:only-child { margin-left: auto; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none; }
.wizard__riepilogo { display: grid; gap: 0; margin: 0; }
.wizard__riepilogo div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.wizard__riepilogo dt { color: var(--muted); } .wizard__riepilogo dd { margin: 0; overflow-wrap: anywhere; }
.wizard__prezzo { font-family: var(--font-d); font-weight: 700; font-size: 1.15rem; }
.nota { color: var(--muted); font-size: .88rem; margin-top: 16px; max-width: 78ch; scroll-margin-top: 120px; }
.asterisco { color: var(--brand); text-decoration: none; font-weight: 700; margin-left: 2px; }
@media (max-width: 600px) {
  .wizard { padding: 22px 16px; } .wizard__steps { grid-template-columns: repeat(2, 1fr); } .wizard__step { font-size: .8rem; }
  .wizard__scroll { height: 320px; padding: 16px; } .wizard__riepilogo div { grid-template-columns: 1fr; gap: 2px; }
}

/* ── footer ────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg); }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); max-width: 32ch; }
.footer__nav, .footer__contact { display: grid; gap: 12px; align-content: start; }
.footer__nav a, .footer__contact a { color: var(--muted); transition: color .3s; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--text); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer__legal a { color: var(--muted); } .footer__legal a:hover { color: var(--text); }

/* ── flottanti ─────────────────────────────────────────────── */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 16px 36px -10px rgba(37, 211, 102, .7); transition: transform .5s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.totop { position: fixed; left: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease), border-color .3s; pointer-events: none; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--brand); }

/* ── reveal ────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }

/* ── pagina privacy ────────────────────────────────────────── */
.page { padding: calc(var(--nav-h) + 56px) 0 96px; max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 24px; }
.page h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; }
.page p, .page li { color: var(--muted); }
.page ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 0 0 14px; }
.page a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.page__intro { font-size: 1.05rem; }
.page__versione { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .2); font-size: .88rem; color: var(--text); }
.legale { margin-top: 36px; } .legale p { margin-bottom: 12px; } .legale h2 { margin-top: 0; }
.footer__legal-links { display: flex; gap: 18px; }

/* ── movimento ridotto ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal-stagger] > *, .hero__eyebrow, .hero__sub, .hero__ctas, .hero__trust, .hero__visual, .hero__title .w__i { opacity: 1; transform: none; }
  .hero__canvas, .cursor, .cursor-ring, .preloader { display: none; }
  .marquee__track { animation: none; }
}

/* ── hero 3D e ventaglio «Lavori» (dal 23-09-26) ── */.hero { min-height: 100svh; }
.hero3d { position: absolute; inset: 0; z-index: 0; }
.hero3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 11, 20, .82) 0%, rgba(7, 11, 20, .45) 38%, rgba(7, 11, 20, 0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 20, 0) 24%); }
.hero__inner { position: relative; z-index: 1; }
.hero__copy { text-shadow: 0 2px 28px rgba(0, 0, 0, .55); }
.hero3d__hint { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 1; margin: 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 1s 1.6s; white-space: nowrap; }
body.ready .hero3d__hint { opacity: .8; }
.hero__scroll { z-index: 1; }
/* ── ventaglio «Lavori» ── */
.fan { --fan-ease: ease; --fan-speed: .62s; --fan-w: 27cqw; container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1.7; overflow: hidden; border-radius: 24px; background: radial-gradient(120% 120% at 50% 0%, #131c30 0%, var(--surface) 56%, var(--bg) 100%); border: 1px solid var(--line); cursor: grab; touch-action: pan-y; user-select: none; -webkit-tap-highlight-color: transparent; }
.fan:active { cursor: grabbing; } .fan:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
.fan-card { position: absolute; top: 50%; left: 50%; width: var(--fan-w); height: calc(var(--fan-w) * 1.25); border-radius: 2.7cqw; text-decoration: none; transition: transform var(--fan-speed) var(--fan-ease), opacity .4s ease; will-change: transform; }
.fan--dragging .fan-card, .fan--static .fan-card { transition: none; }
.fan-frame { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; background: #0b0d12; box-shadow: 0 2.4cqw 5cqw -1.6cqw rgba(0, 0, 0, .65); }
.fan-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1); transition: transform .7s var(--ease); -webkit-user-drag: none; }
.fan:not(.fan--dragging) .fan-card.is-focused:hover .fan-image { transform: scale(1.05); }
.fan-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 14, .66) 0%, rgba(6, 8, 14, .18) 34%, rgba(6, 8, 14, 0) 58%); pointer-events: none; }
.fan-text { position: absolute; top: 6.5%; left: 7%; right: 28%; display: flex; flex-direction: column; gap: .35em; pointer-events: none; }
.fan-title { font-family: var(--font-d); font-size: clamp(12px, 1.6cqw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.fan-subtitle { font-size: clamp(9px, .95cqw, 14px); font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, .72); }
.fan-tag { position: absolute; top: 6.5%; right: 7%; padding: .45em .9em; border-radius: 999px; background: rgba(34, 197, 94, .35); color: #fff; font-size: clamp(8px, .75cqw, 12px); font-weight: 600; white-space: nowrap; backdrop-filter: blur(8px); pointer-events: none; }
.fan-tag--demo { background: rgba(148, 163, 184, .3); } .fan-tag--tuo { background: rgba(56, 189, 248, .4); }
.fan-cta { display: grid; place-items: center; align-content: center; gap: 4%; padding: 10%; text-align: center; background: linear-gradient(165deg, #1e3a8a 0%, #2563eb 46%, #38bdf8 100%); color: #fff; font-family: var(--font-d); }
.fan-cta b { font-size: clamp(14px, 2cqw, 30px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; } .fan-cta span { font-size: clamp(9px, 1cqw, 15px); opacity: .85; }
.fan-dots { position: absolute; left: 50%; bottom: clamp(10px, 2.2cqw, 30px); z-index: 200; display: flex; gap: 8px; transform: translateX(-50%); }
.fan-dot { width: 12px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .35s var(--fan-ease), background-color .35s ease; }
.fan-dot.is-on { width: 24px; background: #fff; }
.fan-caption { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); }
.fan-caption b { color: var(--text); font-family: var(--font-d); font-size: 1.15rem; } .fan-caption a { color: var(--brand); font-weight: 600; }
.fan-hint { margin-top: 8px; font-size: .82rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .fan-card, .fan-image, .fan-dot { transition: none; } }

@media (max-width: 1023px) {
  .hero { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 50vh; align-items: start; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 20, .72) 46%, rgba(7, 11, 20, .35) 100%); }
  .hero3d__hint { display: none; }
}

.hero3d__fallback { display: none; }
.hero3d--fallback canvas { display: none; }
.hero3d--fallback .hero3d__fallback { display: block; position: absolute; right: 4%; top: 22%; width: 46%; border-radius: 12px; border: 6px solid #111827; box-shadow: var(--shadow-xl); }
@media (max-width: 1023px) { .hero3d--fallback .hero3d__fallback { right: 8%; left: 8%; width: auto; top: auto; bottom: 6%; } }
