/* =========================================================
   NovaWeb — brand tokens
   Void #05070A · Ion #2EC5FF · Deep #0077C8 · azzurro su bianco #0091D5
   Font titoli: Unbounded · testo: Manrope
   ========================================================= */
/* Font ospitati sul sito (nessuna richiesta a Google: più veloce e conforme GDPR) */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/unbounded-latin.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/manrope-latin.woff2") format("woff2"); }

:root {
  --void: #05070A;
  --void-2: #0A0E14;
  --void-3: #111723;
  --line: #1E2633;
  --line-2: #2A3140;
  --ion: #2EC5FF;
  --deep: #0077C8;
  --azure: #0091D5;
  --white: #FFFFFF;
  --text: #E8EDF4;
  --muted: #8E9AAD;

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ion); color: var(--void); }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--white); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--ion); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ion); color: var(--void); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- eyebrow + sparkle ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--f-display);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ion);
  margin-bottom: 22px;
}
.spark {
  width: 12px; height: 12px; flex: none;
  background: var(--ion);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ion);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--b);
  color: var(--void);
  font: 600 .95rem/1 var(--f-body);
  border: 1px solid var(--b);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(46, 197, 255, .65); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ion); box-shadow: none; }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--full { width: 100%; }

.link-arrow { color: var(--ion); font-weight: 600; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 7, 10, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 40px; width: auto; margin-left: -8px; }
.nav__links { display: flex; align-items: center; gap: 34px; font-weight: 500; font-size: .95rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 78% 45%, rgba(0, 119, 200, .22), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(46, 197, 255, .08), transparent 70%),
    var(--void);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 54px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 38px; }
.hero__facts li { display: flex; flex-direction: column; padding-left: 16px; border-left: 1px solid var(--line-2); }
.hero__facts strong { font: 500 .95rem/1.3 var(--f-display); color: var(--white); }
.hero__facts span { font-size: .88rem; color: var(--muted); }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ion); animation: scrolly 2s infinite var(--ease); }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* orbit visual */
.hero__visual { display: flex; justify-content: center; }
.orbit { position: relative; width: min(480px, 90%); aspect-ratio: 1; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.orbit__ring--1 { inset: 30%; border-color: rgba(46, 197, 255, .25); }
.orbit__ring--2 { inset: 14%; animation: spin 26s linear infinite; }
.orbit__ring--3 { inset: 0; border-style: dashed; border-color: #1A2230; animation: spin 48s linear infinite reverse; }
.orbit__moon { position: absolute; top: 14.6%; right: 14.6%; width: 18px; height: 18px; margin: -9px -9px 0 0; border-radius: 50%; background: var(--ion); box-shadow: 0 0 22px 4px rgba(46, 197, 255, .7); }
.orbit__moon--sm { top: 50%; right: auto; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--white); box-shadow: 0 0 12px 2px rgba(255, 255, 255, .5); }
.orbit__star { position: absolute; inset: 0; margin: auto; width: 44%; height: 44%; filter: drop-shadow(0 0 24px rgba(46, 197, 255, .75)); animation: pulse 4.5s ease-in-out infinite; }
.orbit__glow { position: absolute; inset: 32%; border-radius: 50%; background: radial-gradient(circle, rgba(46, 197, 255, .35), transparent 70%); filter: blur(20px); z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.07) rotate(8deg); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--alt { background: var(--void-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: clamp(44px, 6vw, 68px); max-width: 760px; }
.section__head h2 { margin-bottom: 18px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: 32px 30px 34px;
  background: linear-gradient(180deg, var(--void-3), var(--void-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .35s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 197, 255, .18), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: rgba(46, 197, 255, .45); transform: translateY(-4px); }
.card:hover::after { opacity: 1; }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(46, 197, 255, .1); border: 1px solid rgba(46, 197, 255, .25); margin-bottom: 26px; }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ion); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 0; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 14px rgba(46, 197, 255, .8); }
.step__num { display: block; font: 500 .8rem/1 var(--f-display); color: var(--ion); letter-spacing: .1em; margin-bottom: 18px; }
.step h3 { font-size: 1.45rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .97rem; }

/* servizi: costellazione + carte interattive */
.services-head { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; }
.services-head .section__head { margin-bottom: clamp(44px, 6vw, 68px); }
.constellation { width: 100%; height: auto; overflow: visible; margin-bottom: 40px; }
.constellation__lines path { fill: none; stroke: rgba(46, 197, 255, .55); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.constellation__stars circle { fill: #fff; transform-box: fill-box; transform-origin: center; transform: scale(0); filter: drop-shadow(0 0 4px rgba(46, 197, 255, .9)); }
.constellation__nova { fill: var(--ion); transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-90deg); filter: drop-shadow(0 0 8px var(--ion)); }
.constellation__dust circle { fill: #8E9AAD; opacity: .5; animation: twinkle 3s ease-in-out infinite; }
.constellation__dust circle:nth-child(2n) { animation-delay: 1.4s; }
.constellation.is-on .constellation__lines path { animation: drawLine .9s var(--ease) forwards; }
.constellation.is-on .constellation__stars circle { animation: starPop .6s cubic-bezier(.34, 1.56, .64, 1) forwards, twinkle 4s 2.5s ease-in-out infinite; }
.constellation.is-on .constellation__nova { animation: novaIgnite 1.2s 2.2s cubic-bezier(.34, 1.56, .64, 1) forwards, novaPulse 4s 3.4s ease-in-out infinite; }
.constellation__lines path:nth-child(1) { animation-delay: .2s !important; } .constellation__lines path:nth-child(2) { animation-delay: .55s !important; }
.constellation__lines path:nth-child(3) { animation-delay: .9s !important; } .constellation__lines path:nth-child(4) { animation-delay: 1.25s !important; }
.constellation__lines path:nth-child(5) { animation-delay: 1.6s !important; } .constellation__lines path:nth-child(6) { animation-delay: 1.9s !important; }
.constellation__stars circle:nth-child(1) { animation-delay: 0s, 2.5s !important; } .constellation__stars circle:nth-child(2) { animation-delay: .4s, 3s !important; }
.constellation__stars circle:nth-child(3) { animation-delay: .8s, 2.7s !important; } .constellation__stars circle:nth-child(4) { animation-delay: 1.1s, 3.3s !important; }
.constellation__stars circle:nth-child(5) { animation-delay: 1.5s, 2.9s !important; } .constellation__stars circle:nth-child(6) { animation-delay: 1.85s, 3.6s !important; }
.constellation__stars circle:nth-child(7) { animation-delay: 2.05s, 3.1s !important; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes starPop { to { transform: scale(1); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes novaIgnite { 0% { transform: scale(0) rotate(-90deg); } 60% { transform: scale(1.5) rotate(10deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes novaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15) rotate(8deg); } }

.card { transform-style: preserve-3d; will-change: transform; }
.card::after { inset: 0; width: auto; height: auto; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 80%) var(--my, 100%), rgba(46, 197, 255, .16), transparent 65%); }
.card.is-tilting { transition: border-color .3s, transform .12s linear; }
.card__icon { transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover .card__icon { transform: translateZ(30px) scale(1.06); box-shadow: 0 0 22px rgba(46, 197, 255, .35); }

/* metodo: rotta della cometa */
.steps { position: relative; }
.steps__track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); list-style: none; pointer-events: none; --p: 0; }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep), var(--ion)); transform-origin: 0 50%; transform: scaleX(var(--p)); box-shadow: 0 0 10px rgba(46, 197, 255, .6); }
.steps__comet { position: absolute; top: 0; left: calc(var(--p) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(46, 197, 255, .9), 0 0 30px 8px rgba(46, 197, 255, .35); transition: opacity .5s; }
.steps__comet::before { content: ""; position: absolute; right: 50%; top: 50%; width: 110px; height: 2px; margin-top: -1px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(46, 197, 255, .9)); }
.steps.is-done .steps__comet { opacity: 0; }
.js .step { opacity: .35; transition: opacity .6s var(--ease); }
.js .step.is-lit { opacity: 1; }
.step { border-top: 0; }
.step::before { background: var(--line-2); box-shadow: none; transition: background .4s, box-shadow .4s; }
.step.is-lit::before { background: var(--ion); box-shadow: 0 0 14px rgba(46, 197, 255, .8); }
.no-anim .step::before, html:not(.js) .step::before { background: var(--ion); }
.step__orbit { position: absolute; top: -17px; left: -12px; width: 33px; height: 33px; border-radius: 50%; border: 1px solid rgba(46, 197, 255, .45); opacity: 0; transform: scale(.4); transition: opacity .6s, transform .8s cubic-bezier(.34, 1.56, .64, 1); }
.step__orbit i { position: absolute; inset: 0; animation: spin 3.2s linear infinite; }
.step__orbit i::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(46, 197, 255, .9); }
.steps.is-done .step__orbit { opacity: 1; transform: none; }

/* works */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work__meta p { margin-top: 4px; color: var(--muted); font-size: .92rem; }
.work__meta > span { color: var(--ion) !important; white-space: nowrap; }
.work { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--void-2); transition: border-color .3s; }
.work:hover { border-color: rgba(46, 197, 255, .45); }
.work__img { aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden; transition: transform .6s var(--ease); }
.work:hover .work__img { transform: scale(1.03); }
.work__img span { font: 500 .75rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.work__img--a { background: radial-gradient(circle at 30% 30%, rgba(46, 197, 255, .45), transparent 55%), linear-gradient(135deg, #0B1A2A, #05070A); }
.work__img--b { background: radial-gradient(circle at 70% 40%, rgba(0, 119, 200, .6), transparent 55%), linear-gradient(135deg, #07101A, #0D1420); }
.work__img--c { background: radial-gradient(circle at 50% 80%, rgba(46, 197, 255, .35), transparent 55%), linear-gradient(135deg, #111723, #05070A); }
.work__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mock { width: 78%; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: rgba(5, 7, 10, .75); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); transform: translateY(8%); transition: transform .6s var(--ease); }
.work:hover .mock { transform: translateY(2%); }
.mock__bar { display: flex; align-items: center; gap: 5px; padding: 9px 11px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: #2A3140; }
.mock__bar b { margin-left: 8px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); font: 500 .68rem/1.2 var(--f-body); color: var(--muted); }
.mock__body { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.mock__body strong { font: 500 clamp(1rem, 2vw, 1.3rem)/1 var(--f-display); color: var(--white); letter-spacing: -0.01em; }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 22px; }
.work__meta span { color: var(--muted); font-size: .9rem; }

/* lavori: dispositivi */
.work__stage { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.laptop { position: absolute; left: 7%; top: 11%; width: 74%; transition: transform .7s var(--ease); }
.laptop__screen { aspect-ratio: 16 / 10; overflow: hidden; border: 7px solid #161B24; border-bottom-width: 9px; border-radius: 12px 12px 2px 2px; background: #0d1118; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9), 0 0 0 1px #2A3140; }
.laptop__base { position: relative; height: 10px; margin: 0 -8%; border-radius: 2px 2px 12px 12px; background: linear-gradient(180deg, #3A4558, #1A2029); box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .8); }
.laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 4px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #12161E; }
.phone { position: absolute; right: 7%; bottom: 9%; width: 19%; padding: 4px; border-radius: 18px; background: #161B24; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .95), 0 0 0 1px #2A3140; transition: transform .7s var(--ease); }
.phone__screen { aspect-ratio: 9 / 19; overflow: hidden; border-radius: 14px; background: #0d1118; }
.laptop__screen img, .phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position 7s cubic-bezier(.45, 0, .55, 1); }
.phone__screen img { transition-duration: 8s; }
.work:hover .laptop__screen img, .work:focus-visible .laptop__screen img,
.work:hover .phone__screen img, .work:focus-visible .phone__screen img { object-position: 50% 100%; }
.work:hover .laptop { transform: translateY(-6px); }
.work:hover .phone { transform: translateY(-12px) rotate(-2deg); }
.work__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(5, 7, 10, .7); border: 1px solid var(--line-2); font-size: .74rem; color: var(--muted); white-space: nowrap; transition: opacity .4s; backdrop-filter: blur(6px); }
.work:hover .work__hint { opacity: 0; }
@media (hover: none) {
  .work__hint { display: none; }
  .work.is-playing .laptop__screen img { animation: pageScroll 14s ease-in-out infinite; }
  .work.is-playing .phone__screen img { animation: pageScroll 16s ease-in-out infinite; }
}
@keyframes pageScroll { 0%, 12% { object-position: 50% 0; } 50%, 62% { object-position: 50% 100%; } 100% { object-position: 50% 0; } }

/* why */
.why { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.why__logo { display: grid; place-items: center; aspect-ratio: 1; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(0, 119, 200, .25), transparent 65%), var(--void); }
.why__logo { position: relative; overflow: hidden; }
.logo-anim { width: 66%; height: auto; overflow: visible; }
.why__ring { position: absolute; left: 50%; top: 42%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ion); transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.js .logo-anim__orbit { stroke-dasharray: 100; stroke-dashoffset: 100; }
.js .logo-anim__star, .js .logo-anim__flash { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.js .logo-anim__flash { opacity: 0; }
.js .logo-anim__word > g { opacity: 0; }
.why__logo.is-on .logo-anim__orbit { animation: orbitDraw 1.3s .2s cubic-bezier(.65, 0, .35, 1) forwards; }
.why__logo.is-on .logo-anim__star { animation: starIgnite 1s 1.35s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.why__logo.is-on .logo-anim__flash { animation: starFlash 1s 1.35s ease-out forwards; }
.why__logo.is-on .why__ring { animation: ringWave 1.6s 1.4s var(--ease) forwards; }
.why__logo.is-on .logo-anim__word > g { animation: letterIn .6s var(--ease) forwards; }
.why__logo.is-on .logo-anim__word > g:nth-child(1) { animation-delay: 1.9s; } .why__logo.is-on .logo-anim__word > g:nth-child(2) { animation-delay: 1.98s; }
.why__logo.is-on .logo-anim__word > g:nth-child(3) { animation-delay: 2.06s; } .why__logo.is-on .logo-anim__word > g:nth-child(4) { animation-delay: 2.14s; }
.why__logo.is-on .logo-anim__word > g:nth-child(5) { animation-delay: 2.22s; } .why__logo.is-on .logo-anim__word > g:nth-child(6) { animation-delay: 2.3s; }
.why__logo.is-on .logo-anim__word > g:nth-child(7) { animation-delay: 2.38s; }
@keyframes orbitDraw { to { stroke-dashoffset: 0; } }
@keyframes starIgnite { 0% { transform: scale(0) rotate(-120deg); } 55% { transform: scale(2.2) rotate(15deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes starFlash { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(3.5); } }
@keyframes ringWave { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3); } }
@keyframes letterIn { from { opacity: 0; } to { opacity: 1; } }
.why__replay { position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5, 7, 10, .6); color: var(--muted); font-size: 1.1rem; cursor: pointer; opacity: 0; transition: opacity .3s, color .2s, border-color .2s, transform .5s var(--ease); }
.why__logo:hover .why__replay, .why__replay:focus-visible { opacity: 1; }
.why__replay:hover { color: var(--ion); border-color: var(--ion); transform: rotate(-180deg); }
@media (hover: none) { .why__replay { opacity: 1; } }

/* stelle cadenti */
.shooting { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.shooting i { position: absolute; width: 140px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9)); transform-origin: 100% 50%; opacity: 0; animation: shoot var(--d, 1.1s) ease-out forwards; }
.shooting i::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(46, 197, 255, .9); }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(0) scaleX(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--len, 420px)) scaleX(1); }
}
.why__copy h2 { margin-bottom: 22px; }
.why__copy > p { color: var(--muted); margin-bottom: 30px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--ion); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--void-2); transition: border-color .3s; }
.faq details[open] { border-color: rgba(46, 197, 255, .4); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative; font: 500 1.02rem/1.35 var(--f-display); color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--f-body); color: var(--ion); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); }

/* contact */
.contact { overflow: hidden; }
.contact__glow { position: absolute; width: 900px; height: 900px; left: -300px; bottom: -500px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 119, 200, .25), transparent 65%); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__copy h2 { margin-bottom: 20px; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact__list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact__list span { font: 500 .75rem/1.9 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__list a:hover { color: var(--ion); }

.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: rgba(10, 14, 20, .85); backdrop-filter: blur(8px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--text); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--void);
  color: var(--white); font: 400 1rem/1.4 var(--f-body);
  transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ion) 50%), linear-gradient(135deg, var(--ion) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form textarea { resize: vertical; min-height: 130px; }
.form ::placeholder { color: #5A6578; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ion); box-shadow: 0 0 0 3px rgba(46, 197, 255, .18); }
.form .is-invalid { border-color: #FF6B7A !important; }
.form__check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; color: var(--muted) !important; }
.form__check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ion); }
.form__check a { color: var(--ion); text-decoration: underline; text-underline-offset: 3px; }
.form__status { min-height: 1.4em; font-size: .92rem; color: var(--ion); text-align: center; }
.form__status.is-error { color: #FF8A96; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--void); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__logo { height: 34px; width: auto; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.footer__links a:hover { color: var(--white); }
.footer__links { align-items: center; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); transition: border-color .2s, color .2s, box-shadow .2s; }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer__social svg .dot { fill: currentColor; stroke: none; }
.footer__social:hover { color: var(--ion) !important; border-color: var(--ion); box-shadow: 0 0 18px -4px rgba(46, 197, 255, .6); }
.footer__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; color: #5A6578; }
.footer__legal a:hover { color: var(--muted); }

/* ---------- configuratore ---------- */
.cfg { --tint: var(--ion); background: radial-gradient(50% 40% at 20% 30%, rgba(0, 119, 200, .14), transparent 70%), var(--void); }
.cfg__app {
  display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.15fr; gap: 0;
  border: 1px solid var(--line); border-radius: 28px; overflow: clip;
  background: var(--void-2);
}
.cfg__viz {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 28px; border-right: 1px solid var(--line);
  background: radial-gradient(70% 55% at 50% 42%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 70%), var(--void);
  transition: background .6s;
}
.cfg__sticky { position: sticky; top: 100px; display: grid; gap: 22px; }
#cfg-svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
.cfg-ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.cfg-ring--0 { stroke: color-mix(in srgb, var(--tint) 35%, transparent); }
.cfg-ring--2 { stroke-dasharray: 3 6; }
.cfg-halo { transition: r .8s var(--ease), opacity .8s; }
.cfg-core > g { transition: transform .9s cubic-bezier(.34, 1.56, .64, 1); filter: drop-shadow(0 0 10px var(--tint)); }
.cfg-core { transform-origin: 200px 200px; animation: cfgTwinkle 5s ease-in-out infinite; }
#cfg-svg.is-idle .cfg-core { opacity: .45; }
.cfg-orbit { transform-origin: 200px 200px; animation: spin linear infinite; }
.cfg-moon { transform-box: fill-box; transform-origin: center; animation: cfgMoonIn .6s cubic-bezier(.34, 1.56, .64, 1) both; transition: fill .6s; }
.cfg-moon.is-out { animation: cfgMoonOut .4s ease-in both; }
.cfg-lang { fill: #fff; opacity: .8; }
.cfg-burst { fill: none; stroke: var(--tint); stroke-width: 2; opacity: 0; transform-origin: 200px 200px; }
#cfg-svg.is-burst .cfg-burst { animation: cfgBurst 1.1s var(--ease); }
#cfg-svg.is-burst .cfg-core { animation: cfgFlash 1.1s var(--ease); }
#cfg-svg.is-pop .cfg-core { animation: cfgFlash .7s var(--ease); }
@keyframes cfgTwinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(6deg) scale(1.04); } }
@keyframes cfgMoonIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes cfgMoonOut { to { transform: scale(0); opacity: 0; } }
@keyframes cfgBurst { 0% { opacity: .9; transform: scale(.4); stroke-width: 6; } 100% { opacity: 0; transform: scale(5.5); stroke-width: .5; } }
@keyframes cfgFlash { 0% { transform: scale(1); } 30% { transform: scale(1.35); filter: brightness(1.8); } 100% { transform: scale(1); } }

.cfg__readout { position: relative; }
.cfg__name { font: 500 1.15rem/1.3 var(--f-display); color: var(--white); margin-bottom: 14px; }
.cfg__meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.cfg__meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--deep), var(--tint)); box-shadow: 0 0 14px var(--tint); transition: width .8s var(--ease); }
.cfg__class { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .88rem; color: var(--muted); }
.cfg__class span:last-child { color: var(--tint); font-weight: 700; }

.cfg__panel { display: flex; flex-direction: column; padding: clamp(22px, 3.5vw, 40px); min-width: 0; }
.cfg__progress { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cfg__progress::-webkit-scrollbar { display: none; }
.cfg__progress button {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 7px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: 600 .8rem/1 var(--f-body); white-space: nowrap; cursor: pointer;
}
.cfg__progress button span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); font-size: .7rem; color: var(--text); }
.cfg__progress button:disabled { cursor: default; opacity: .5; }
.cfg__progress .is-done button { color: var(--text); }
.cfg__progress .is-done button span { background: color-mix(in srgb, var(--ion) 25%, transparent); color: var(--ion); }
.cfg__progress .is-current button { border-color: var(--ion); color: var(--white); }
.cfg__progress .is-current button span { background: var(--ion); color: var(--void); }

.cfg__step { flex: 1; }
.cfg__step.is-entering { animation: cfgStepIn .5s var(--ease); }
@keyframes cfgStepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.cfg-step__count { font: 500 .72rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ion); margin-bottom: 12px; }
.cfg-step__title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 10px; outline: none; }
.cfg-step__hint { color: var(--muted); font-size: .97rem; margin-bottom: 26px; }

.cfg-group { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.cfg-group legend { padding: 0; margin-bottom: 12px; font-size: .85rem; font-weight: 700; color: var(--text); }
.cfg-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.cfg-group--cards .cfg-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cfg-group--swatches .cfg-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.cfg-opt { position: relative; cursor: pointer; }
.cfg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg-opt__box {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--void);
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.cfg-opt:hover .cfg-opt__box { border-color: #3A4558; }
.cfg-opt input:focus-visible + .cfg-opt__box { outline: 2px solid var(--ion); outline-offset: 2px; }
.cfg-opt input:checked + .cfg-opt__box {
  border-color: var(--ion); background: color-mix(in srgb, var(--ion) 10%, var(--void));
  box-shadow: 0 0 0 1px var(--ion), 0 8px 26px -12px rgba(46, 197, 255, .7);
}
.cfg-opt input:disabled + .cfg-opt__box { cursor: default; }
.cfg-opt__l { font-weight: 700; font-size: .95rem; color: var(--white); }
.cfg-opt__d { font-size: .84rem; color: var(--muted); line-height: 1.4; }

.cfg-group--cards .cfg-opt__box { padding: 16px; }
.cfg-opt__icon { width: 26px; height: 26px; margin-bottom: 10px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.cfg-opt input:checked + .cfg-opt__box .cfg-opt__icon { stroke: var(--ion); }

.cfg-group--chips .cfg-opt__box { flex-direction: row; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; }
.cfg-group--chips .cfg-opt__l { font-size: .9rem; font-weight: 600; }
.cfg-opt__tick { width: 12px; height: 12px; flex: none; background: var(--line-2); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); transition: background .2s, transform .3s var(--ease); }
.cfg-opt input:checked + .cfg-opt__box .cfg-opt__tick { background: var(--ion); transform: scale(1.35); filter: drop-shadow(0 0 4px var(--ion)); }

.cfg-group--swatches .cfg-opt__box { padding: 14px; }
.cfg-opt__sw { width: 100%; height: 40px; border-radius: 9px; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, .08); }

.cfg-range { display: flex; align-items: center; gap: 20px; }
.cfg-range input {
  flex: 1; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, var(--ion) var(--p, 0%), var(--line-2) var(--p, 0%));
}
.cfg-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 5px solid var(--ion); box-shadow: 0 0 16px rgba(46, 197, 255, .7); }
.cfg-range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 5px solid var(--ion); box-shadow: 0 0 16px rgba(46, 197, 255, .7); }
.cfg-range__out { min-width: 104px; text-align: right; color: var(--muted); font-size: .92rem; }
.cfg-range__out strong { font: 500 1.6rem/1 var(--f-display); color: var(--white); }

.cfg__nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line); }
.cfg__nav[hidden] { display: none; }
.cfg__nav .btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

.cfg-estimate { display: grid; gap: 4px; padding: 18px 20px; margin-bottom: 22px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--ion) 40%, transparent); background: color-mix(in srgb, var(--ion) 8%, transparent); }
.cfg-estimate span { font-size: .8rem; font-weight: 700; color: var(--ion); text-transform: uppercase; letter-spacing: .08em; }
.cfg-estimate strong { font: 500 1.6rem/1.2 var(--f-display); color: var(--white); }
.cfg-estimate small { color: var(--muted); font-size: .85rem; }
.cfg-summary { margin: 0 0 26px; display: grid; }
.cfg-summary > div { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cfg-summary dt { font-size: .85rem; color: var(--muted); }
.cfg-summary dd { margin: 0; font-size: .94rem; color: var(--white); }
.cfg-edit { background: none; border: 0; padding: 0; color: var(--ion); font: 600 .82rem/1 var(--f-body); cursor: pointer; }
.cfg-edit:hover { text-decoration: underline; text-underline-offset: 3px; }
.cfg-final { display: flex; flex-wrap: wrap; gap: 12px; }
.cfg-final .spark { background: var(--void); }

/* configuratore — listino */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cfg-ring { transition: stroke .6s, stroke-width .6s, filter .6s; }
.cfg-ring.is-lit { stroke: var(--tint); stroke-width: 1.6; stroke-dasharray: none; filter: drop-shadow(0 0 6px var(--tint)); }
.cfg__class span:last-child { font: 500 1.05rem/1 var(--f-display); white-space: nowrap; }

.cfg-always { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -6px 0 22px; }
.cfg-always span { font-size: .78rem; font-weight: 700; color: var(--ion); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.cfg-always em { font-style: normal; font-size: .8rem; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }

.cfg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cfg-list li { position: relative; padding-left: 20px; font-size: .86rem; color: var(--text); line-height: 1.4; }
.cfg-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; background: var(--ion); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }

.cfg-packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cfg-pack .cfg-opt__box { position: relative; padding: 20px 18px 18px; gap: 0; }
.cfg-pack__badge { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 999px; background: var(--ion); color: var(--void); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cfg-pack__star { font: 500 .7rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ion); margin-bottom: 8px; }
.cfg-pack__name { font: 500 1.25rem/1.1 var(--f-display); color: var(--white); }
.cfg-pack__price { font: 600 1.7rem/1.2 var(--f-display); color: var(--white); margin: 6px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cfg-pack--custom .cfg-pack__price { font-size: 1.15rem; padding-top: 8px; color: var(--muted); }
.cfg-pack__lead { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.cfg-pack__ideal { margin-top: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(46, 197, 255, .08); color: var(--ion); font-size: .78rem; font-weight: 700; text-align: center; }
.cfg-pack input:checked + .cfg-opt__box .cfg-pack__price { color: var(--ion); }

.cfg-extras { display: grid; gap: 10px; }
.cfg-extra .cfg-opt__box { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.cfg-extra__txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cfg-extra__price { font: 500 .95rem/1 var(--f-display); color: var(--white); white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: var(--void-3); }
.cfg-extra input:checked + .cfg-opt__box .cfg-extra__price { background: var(--ion); color: var(--void); }
.cfg-extra.is-included .cfg-opt__box { border-style: dashed; box-shadow: none; background: transparent; }
.cfg-extra.is-included .cfg-extra__price { background: transparent; color: var(--ion); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.cfg-extra.is-included .cfg-opt__tick { background: #fff; }

.cfg-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cfg-plan .cfg-opt__box { padding: 16px 18px; gap: 10px; }
.cfg-plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cfg-plan__price { font: 600 1.3rem/1 var(--f-display); color: var(--white); }
.cfg-plan__price small { font: 500 .75rem var(--f-body); color: var(--muted); margin-left: 2px; }
.cfg-plan__rings { display: flex; gap: 5px; }
.cfg-plan__rings i { width: 22px; height: 4px; border-radius: 4px; background: var(--line-2); }
.cfg-plan__rings i.on { background: var(--ion); box-shadow: 0 0 8px rgba(46, 197, 255, .7); }
.cfg-note { margin-top: -8px; font-size: .86rem; color: #FFC46B; }

.cfg-summary .is-inc dd { color: var(--ion); }
.cfg-total { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.cfg-total > div { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--ion) 40%, transparent); background: color-mix(in srgb, var(--ion) 8%, transparent); }
.cfg-total span { font-size: .75rem; font-weight: 700; color: var(--ion); text-transform: uppercase; letter-spacing: .08em; }
.cfg-total strong { font: 600 1.8rem/1.1 var(--f-display); color: var(--white); }
.cfg-total strong em { font: 500 .9rem var(--f-body); color: var(--muted); font-style: normal; }
.cfg-total small { font-size: .82rem; color: var(--muted); }
.cfg-pack__price small { font: 500 .8rem var(--f-body); color: var(--muted); }
.cfg-iva { margin: -12px 0 22px; font-size: .8rem; color: var(--muted); }

/* pagine semplici: privacy, cookie, grazie, 404 */
.page-simple .nav { background: rgba(5, 7, 10, .85); border-bottom-color: var(--line); backdrop-filter: blur(14px); }
.legal { padding: 140px 0 90px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 44px; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text); max-width: 72ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }
.legal a { color: var(--ion); text-decoration: underline; text-underline-offset: 3px; }
.legal .todo { background: rgba(255, 196, 107, .14); color: #FFC46B; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.center-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; position: relative; overflow: hidden; }
.center-page__star { width: 120px; height: 120px; margin: 0 auto 30px; filter: drop-shadow(0 0 24px rgba(46, 197, 255, .75)); animation: pulse 4.5s ease-in-out infinite; }
.center-page h1 { margin-bottom: 16px; font-size: clamp(2rem, 6vw, 3.4rem); }
.center-page .lead { margin: 0 auto 34px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards, .works { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; row-gap: 40px; padding-left: 34px; }
  .steps__track { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__fill { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .steps__comet { left: 0; top: calc(var(--p) * 100%); }
  .steps__comet::before { right: auto; top: auto; bottom: 50%; left: 50%; width: 2px; height: 90px; margin: 0 0 0 -1px; background: linear-gradient(180deg, transparent, rgba(46, 197, 255, .9)); }
  .step { padding: 0; }
  .step::before { top: 4px; left: -34px; }
  .step__orbit { top: -8px; left: -46px; }
}
@media (max-width: 860px) {
  .nav__toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: rgba(5, 7, 10, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .nav__links .btn { margin-top: 18px; }
  .nav.menu-open { background: rgba(5, 7, 10, .97); }

  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .orbit { width: min(260px, 70%); }
  .hero__scroll { display: none; }
  .why, .contact__grid { grid-template-columns: 1fr; }
  .services-head { grid-template-columns: 1fr; gap: 0; }
  .services-head .section__head { margin-bottom: 20px; }
  .constellation { max-width: 280px; margin: 0 0 36px auto; }
  .cfg__app { grid-template-columns: 1fr; }
  .cfg__viz { flex-direction: row; align-items: center; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 5; }
  .cfg__viz { display: block; }
  .cfg__sticky { position: static; display: flex; align-items: center; gap: 20px; }
  .cfg__stage { width: 120px; flex: none; }
  .cfg__readout { flex: 1; min-width: 0; }
  .cfg__name { font-size: 1rem; margin-bottom: 10px; }
  .why__logo { max-width: 380px; width: 100%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .works { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .nav__logo img { height: 34px; }
  .cfg__stage { width: 92px; }
  .cfg__class { font-size: .8rem; }
  .cfg-group--cards .cfg-opts { grid-template-columns: 1fr 1fr; }
  .cfg-group--cards .cfg-opt__box { padding: 13px; }
  .cfg-group--swatches .cfg-opts { grid-template-columns: 1fr 1fr; }
  .cfg-summary > div { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .cfg-summary dt { grid-column: 1; }
  .cfg-summary dd { grid-column: 1; }
  .cfg-summary .cfg-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .cfg-final .btn { flex: 1 1 100%; }
  .cfg-packs, .cfg-plans { grid-template-columns: 1fr; }
  .cfg-extra .cfg-opt__box { gap: 10px; padding: 12px 14px; }
  .cfg-extra .cfg-opt__tick { display: none; }
  .cfg-extra .cfg-opt__l { line-height: 1.3; }
  .cfg-extra__price { font-size: .82rem; padding: 7px 9px; }
  .cfg-always em { font-size: .74rem; }
  .cfg-range__out { min-width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .step { opacity: 1; }
  .step::before { background: var(--ion); }
  .steps__comet, .shooting, .why__replay { display: none; }
  .constellation__lines path { stroke-dashoffset: 0; }
  .constellation__stars circle, .constellation__nova { transform: none; }
  .js .logo-anim__orbit { stroke-dashoffset: 0; }
  .js .logo-anim__star { transform: none; }
  .js .logo-anim__word > g { opacity: 1; }
  .card { transform: none !important; }
}
