/* ===================== Forge — tema scuro al neon ===================== */
:root {
  --bg: #07070d;
  --bg-2: #0d0d17;
  --ink: #f4f3ff;
  --ink-2: #c3c1d9;
  --muted: #8b89a6;
  --line: rgba(255,255,255,.1);
  --glass: rgba(255,255,255,.04);
  --pink: #ff2d95;
  --violet: #7c3aed;
  --cyan: #00e5ff;
  --lime: #c6ff00;
  --grad: linear-gradient(100deg, var(--pink), var(--violet) 45%, var(--cyan));
  --radius: 22px;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.8rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600; color: var(--cyan); margin-bottom: 1em; }
.eyebrow .num { font-family: var(--font-head); color: var(--pink); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.lead { font-size: 1.3rem; font-weight: 500; color: var(--ink); }

/* ===================== Sfondo ===================== */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.blob--1 { background: var(--violet); top: -25vmax; left: -15vmax; }
.blob--2 { background: var(--pink); bottom: -30vmax; right: -20vmax; animation-duration: 28s; animation-delay: -8s; }
.blob--3 { background: var(--cyan); top: 30%; left: 50%; width: 40vmax; height: 40vmax; opacity: .3; animation-duration: 34s; animation-delay: -15s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(12vw, 10vh) scale(1.18); } }
.gridlines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); opacity: .5; }
.grain { position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.spot { position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(0,229,255,.16), transparent 60%); mix-blend-mode: screen; }
main, header, footer { position: relative; z-index: 1; }

/* ===================== Bottoni ===================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255,45,149,.25); }
.btn--primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); filter: blur(18px); opacity: 0; z-index: -1; transition: opacity .25s; }
.btn--primary:hover::after { opacity: .8; }
.btn--primary .arrow { transition: transform .2s; } .btn--primary:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: var(--glass); color: var(--ink); border-color: var(--line); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--pink); color: #fff; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===================== Nav ===================== */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7,7,13,.7); backdrop-filter: blur(16px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.nav__brand { font-family: var(--font-head); font-weight: 900; text-decoration: none; font-size: 1.25rem; margin-right: auto; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: .93rem; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--grad); transition: right .25s; }
.nav__links a:hover { color: #fff; } .nav__links a:hover::after { right: 0; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===================== Hero ===================== */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 0; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__title .line { display: block; }
.hero__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .7; pointer-events: none; }
.glitch::before { transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); animation: gl 3s infinite steps(2); color: var(--cyan); background: none; }
.glitch::after { transform: translate(3px, 0); clip-path: inset(60% 0 10% 0); animation: gl 2.4s infinite steps(2) reverse; color: var(--pink); background: none; }
@keyframes gl { 0%, 88%, 100% { opacity: 0; } 90%, 96% { opacity: .8; } 93% { transform: translate(-6px, 2px); } }
.hero__sub { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }

.hero__card { position: relative; display: flex; justify-content: center; perspective: 1200px; }
.phone { width: 300px; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4) inset, 0 0 80px rgba(124,58,237,.35); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out; animation: float 6s ease-in-out infinite; position: relative; }
@keyframes float { 50% { translate: 0 -14px; } }
.phone__notch { position: absolute; top: 22px; left: 50%; width: 90px; height: 24px; background: #000; border-radius: 999px; transform: translateX(-50%); z-index: 2; }
.phone__screen { background: var(--bg-2); border-radius: 32px; overflow: hidden; padding: 56px 14px 18px; }
.m-hero { height: 150px; border-radius: 18px; background: var(--grad); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; font-family: var(--font-head); font-weight: 700; }
.m-hero small { font-family: var(--font-body); font-weight: 500; opacity: .85; font-size: .78rem; }
.m-row { display: flex; gap: 8px; margin: 12px 0; }
.m-row b { flex: 1; height: 44px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.m-gallery { display: flex; gap: 8px; }
.m-gallery i { flex: 1; height: 54px; border-radius: 10px; background: linear-gradient(135deg, rgba(255,45,149,.5), rgba(0,229,255,.4)); }
.m-line { height: 9px; border-radius: 5px; background: var(--line); margin: 12px 0 0; } .m-line--short { width: 55%; margin-top: 8px; }
.m-btn { margin-top: 16px; background: #25d366; color: #fff; text-align: center; padding: 12px; border-radius: 14px; font-weight: 700; font-size: .85rem; box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.orbit { position: absolute; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.7rem; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: 0 20px 40px rgba(0,0,0,.4); animation: float 5s ease-in-out infinite; }
.orbit--1 { top: 8%; left: 4%; animation-delay: -1s; } .orbit--2 { bottom: 14%; left: 0; animation-delay: -2.5s; } .orbit--3 { top: 30%; right: 2%; animation-delay: -4s; }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); overflow: hidden; transform: rotate(-1.5deg) scale(1.03); }
.marquee__track { display: flex; gap: 3rem; padding: .9rem 0; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: .95rem; letter-spacing: .08em; }
.marquee__track span::before { content: "✦"; color: var(--lime); margin-right: 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================== Sezioni ===================== */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(124,58,237,.06), transparent); }
.section--dark { background: linear-gradient(180deg, transparent, rgba(255,45,149,.06)); }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__sub { color: var(--muted); font-size: 1.08rem; }
.section__head--light .section__sub { color: var(--ink-2); }

.grid { display: grid; gap: 1.3rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Comparsa allo scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.is-in > .card, .is-in > .plan, .is-in > .step, .is-in > .person { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ===================== Vetro: card, team, piani ===================== */
.card, .person, .plan, .inclusi, .empty, .assistenza, .work {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out, border-color .25s;
}
.card::before, .plan::before, .work::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.1), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before, .plan:hover::before, .work:hover::before { opacity: 1; }
.card:hover, .plan:hover, .work:hover { border-color: rgba(0,229,255,.5); }
.card { padding: 1.8rem 1.6rem; }
.card__icon { font-size: 2.2rem; margin-bottom: .8rem; filter: drop-shadow(0 0 14px rgba(255,255,255,.35)); }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.inclusi { margin-top: 3rem; padding: 2.2rem; }
.inclusi h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; }
.checklist li { padding-left: 2rem; position: relative; color: var(--ink-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lime); font-weight: 700; text-shadow: 0 0 10px var(--lime); }
.checklist--compact { grid-template-columns: 1fr; gap: .55rem; font-size: .93rem; }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 1.6rem; }
.person { padding: 2rem; }
.person__photo { width: 90px; height: 90px; border-radius: 28px; object-fit: cover; margin-bottom: 1rem; }
.person__photo--initials { display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; }
.person__role { color: var(--cyan); font-weight: 600; font-size: .9rem; margin-bottom: .6em; }
.person p:last-child { margin: 0; color: var(--ink-2); }

/* ===================== Portfolio ===================== */
.work { display: block; text-decoration: none; overflow: hidden; }
.work img, .work__placeholder { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: var(--bg-2); }
.work__body { padding: 1rem 1.3rem; display: flex; justify-content: space-between; }
.work__body span { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; max-width: 620px; margin: 0 auto; padding: 3.5rem 1.8rem; border-style: dashed; border-color: rgba(255,255,255,.2); }
.empty h3 { font-size: 1.4rem; } .empty p { color: var(--muted); }

/* ===================== Prezzi ===================== */
.pricing { align-items: stretch; }
.plan { padding: 2.2rem; display: flex; flex-direction: column; overflow: hidden; }
.plan--featured { background: rgba(124,58,237,.12); border-color: transparent; }
.plan--featured::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--a, 0deg), var(--pink), var(--violet), var(--cyan), var(--lime), var(--pink)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; pointer-events: none; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.plan__badge { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--lime); color: #111; font-size: .72rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 20px rgba(198,255,0,.5); }
.plan h3 { font-size: 1.3rem; }
.plan__price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; margin: .3em 0 0; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__price--text { font-size: 1.5rem; padding-top: .5em; }
.plan__price small { font-size: 1rem; font-weight: 500; -webkit-text-fill-color: var(--muted); }
.plan__period { color: var(--muted); font-size: .85rem; margin-bottom: 1em; }
.plan__desc { color: var(--ink-2); min-height: 3.2em; }
.plan .checklist { margin: .5rem 0 1.8rem; flex: 1; }
.nota { max-width: 780px; color: var(--muted); font-size: .92rem; margin-top: 2rem; }
.assistenza { margin-top: 1.5rem; padding: 1.5rem 1.8rem; max-width: 780px; border-color: rgba(198,255,0,.35); }
.assistenza:empty { display: none; }
.assistenza h3 { margin-bottom: .3em; color: var(--lime); }
.assistenza p { margin: 0; color: var(--ink-2); }

/* ===================== Passi ===================== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.step { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--grad); transition: width .6s; }
.is-in .step::before { width: 60px; }
.step__n { font-family: var(--font-head); font-weight: 900; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.45); }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ===================== Form ===================== */
.form { background: rgba(13,13,23,.75); border: 1px solid var(--line); backdrop-filter: blur(18px); color: var(--ink); border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.8rem); max-width: 860px; position: relative; }
.form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--grad); z-index: -1; opacity: .35; filter: blur(22px); }
fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; }
legend { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.2rem; padding: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.form label { display: block; font-weight: 500; font-size: .93rem; margin-bottom: 1rem; color: var(--ink-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; background: rgba(255,255,255,.05); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form select option { background: var(--bg-2); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.2), 0 0 24px rgba(0,229,255,.25); }
.form textarea { resize: vertical; }
.form__hint { color: var(--muted); font-size: .9rem; margin-top: -.5rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; margin-bottom: 1.2rem; }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; margin-bottom: .3rem !important; }
.check input { margin-top: .3rem; accent-color: var(--pink); flex: none; width: 18px; height: 18px; }
.check--consent { font-size: .88rem; margin-top: .5rem; }
.honey { position: absolute; left: -9999px; }
.form__error { color: #ff6b6b; font-weight: 500; }
.form__actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form__small { margin: 0; color: var(--muted); font-size: .88rem; }

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; font-size: .92rem; color: var(--muted); background: rgba(0,0,0,.35); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start; }
.footer strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer p { margin: .2em 0 0; }
.footer__contacts { display: flex; flex-direction: column; gap: .3rem; text-align: right; }
.footer__contacts a { color: var(--ink); text-decoration: none; } .footer__contacts a:hover { color: var(--cyan); }
.footer__founders { grid-column: 1 / -1; margin-top: 1rem; }

/* ===================== Pagina grazie ===================== */
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.thanks__box { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); border-radius: 28px; padding: 3rem 2rem; text-align: center; max-width: 540px; position: relative; z-index: 1; }
.thanks__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 1.2rem; font-weight: 700; box-shadow: 0 0 40px rgba(255,45,149,.5); }
.thanks h1 { font-size: 1.8rem; } .thanks p { color: var(--muted); margin-bottom: 1.6rem; }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { margin-top: 1rem; }
  .orbit--1 { left: 8%; } .orbit--3 { right: 8%; }
}
@media (max-width: 720px) {
  .nav__inner { height: 68px; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(7,7,13,.95); backdrop-filter: blur(16px); flex-direction: column; padding: 1rem 16px 1.4rem; border-bottom: 1px solid var(--line); gap: 1rem; }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .nav__cta { padding: .6rem 1rem; font-size: .88rem; }
  .grid--3, .grid--4, .team, .steps, .checklist, .checks, .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__contacts { text-align: left; }
  .phone { width: 260px; }
  .orbit { width: 52px; height: 52px; font-size: 1.4rem; }
  .spot { display: none; }
  .blob { filter: blur(60px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
