/* Cyber-Space sviluppi — foglio di stile unico, nessuna dipendenza esterna.
   Direzione: notte blu, pioggia binaria, accenti magenta/viola. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/DMMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/DMMono-Medium.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;

  --void: #04050b;
  --void-2: #070a13;
  --panel: #0a0e1a;
  --panel-2: #0c1222;

  --ink: #eef1f9;
  --ink-2: #a7b2c8;
  --muted: #6e7a95;
  --line: #161d31;
  --line-strong: #253150;

  --blue: #3d7bff;
  --blue-2: #7aa2ff;
  --violet: #8b5cf6;
  --magenta: #ff6ae3;
  --accent: #7aa2ff;
  --accent-soft: rgba(61, 123, 255, 0.14);

  --grad-brand: linear-gradient(104deg, #ff6ae3 0%, #b95cff 48%, #6c5cff 100%);
  --grad-cta: linear-gradient(104deg, #2f6bff 0%, #7b5cff 100%);
  --grad-sheen: linear-gradient(180deg, #ffffff 0%, #c6cee2 100%);

  /* alias storici: li usano le pagine interne */
  --paper: var(--void);
  --paper-2: var(--void-2);
  --card: var(--panel);
  --dark: var(--void-2);
  --dark-2: var(--panel);
  --dark-line: var(--line);

  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: var(--sans);
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --glow-magenta: 0 24px 70px -34px rgba(224, 64, 251, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--void);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(47, 107, 255, 0.16), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(185, 92, 255, 0.12), transparent 60%),
    var(--void);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 106, 227, 0.3); color: #fff; }

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

h1 em, h2 em, h3 em { font-style: normal; }

.grad, .page-hero h1 em, .contact h2 em, .ai h2 em, .section-label b, .brand span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #05060c; padding: 12px 16px; z-index: 100;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--void) 78%, transparent);
  border-bottom: 1px solid rgba(126, 158, 255, 0.14);
  backdrop-filter: saturate(140%) blur(14px);
}

.site-head .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}

.brand {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.brand::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px; margin-right: 10px;
  border-radius: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(255, 106, 227, 0.8);
  vertical-align: 1px;
}
.brand span { font-weight: 500; }

.nav {
  display: flex; gap: 26px; margin-left: auto;
  font-size: 0.9rem;
}
.nav a {
  text-decoration: none; color: var(--ink-2); position: relative;
  padding: 4px 0; transition: color 160ms ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.head-cta { margin-left: 4px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--grad-cta); color: #fff;
  font-family: var(--sans); font-size: 0.96rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 34px -18px rgba(47, 107, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 160ms ease, box-shadow 200ms ease, filter 200ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.btn:hover {
  color: #fff; transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 18px 44px -18px rgba(123, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(160, 180, 230, 0.28);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn.ghost:hover {
  border-color: rgba(255, 106, 227, 0.6);
  background: rgba(255, 106, 227, 0.08);
  color: #fff;
  box-shadow: 0 14px 30px -20px rgba(255, 106, 227, 0.8);
}

.btn.sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; border-radius: 10px; }

.btn.on-dark { background: var(--grad-cta); border-color: transparent; }
.btn.on-dark:hover { filter: brightness(1.1); color: #fff; }

/* ---------------------------------------------------------------- eyebrow / labels */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--grad-brand);
  box-shadow: 0 0 10px rgba(255, 106, 227, 0.7);
}

.section-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.section-label b { font-weight: 500; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(84px, 12vh, 132px) 0 92px;
  overflow: hidden;
  border-bottom: 1px solid rgba(126, 158, 255, 0.12);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: url("/assets/hero-rain.webp");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.92;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(62% 58% at 50% 44%, rgba(4, 5, 11, 0.88) 0%, rgba(4, 5, 11, 0.56) 55%, rgba(4, 5, 11, 0.12) 100%),
    linear-gradient(180deg, rgba(4, 5, 11, 0.74) 0%, rgba(4, 5, 11, 0.3) 30%, rgba(4, 5, 11, 0.58) 72%, var(--void) 100%);
}

.hero-inner { text-align: center; max-width: 1040px; }

.hero .eyebrow { margin-bottom: 26px; }

.hero-title {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  width: fit-content;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 21ch;
  margin-inline: auto;
  background: var(--grad-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.55));
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* parentesi uncinate in gradiente, come nel riferimento */
.bracket {
  flex: 0 0 auto;
  width: clamp(26px, 3.6vw, 52px);
  height: clamp(120px, 17vw, 250px);
  background: var(--grad-brand);
  clip-path: polygon(100% 0, 56% 0, 0 50%, 56% 100%, 100% 100%, 44% 50%);
  filter: drop-shadow(0 0 26px rgba(224, 64, 251, 0.55));
  opacity: 0.95;
}
.bracket--r { transform: scaleX(-1); }

.hero .lead {
  margin: 28px auto 0;
  max-width: 56ch;
  color: #b7c1d6;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

.hero-note {
  margin-top: 26px; font-family: var(--mono); font-size: 0.76rem; color: #8d99b3;
  letter-spacing: 0.03em;
}
.hero-note::before { content: "// "; color: rgba(255, 106, 227, 0.75); }

/* striscia di prove sotto l'headline */
.hero-shots {
  margin: 62px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 960px;
}
.hero-shot { display: block; text-decoration: none; }
.hero-shot:hover .browser {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 227, 0.55);
  box-shadow: 0 34px 70px -44px rgba(224, 64, 251, 0.8), 0 0 0 1px rgba(255, 106, 227, 0.12);
}
.hero-shots .browser { box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(126, 158, 255, 0.08); }
.hero-shots .browser img { aspect-ratio: 1280 / 577; object-fit: cover; object-position: top center; }

.hero-caption {
  margin: 16px auto 0; max-width: 960px; text-align: center;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--muted);
}
.hero-caption a { color: #9fb6e8; }

/* screenshot generici (pagine interne) */
.shot {
  margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  overflow: hidden; background: var(--void-2);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}
.shot img { width: 100%; }
.shot-main { position: relative; z-index: 2; }
.shot-sub { position: absolute; left: -20px; bottom: -6px; width: 44%; z-index: 3; }
.shot-caption { margin: 42px 0 0; text-align: right; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

/* ---------------------------------------------------------------- facts strip */

.facts {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.9), rgba(7, 10, 19, 0.9));
}
.facts ul {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  list-style: none; margin: 0; padding: 16px 0;
}
.facts li {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); display: flex; align-items: center; gap: 10px;
}
.facts li::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 10px rgba(255, 106, 227, 0.65);
}

/* ---------------------------------------------------------------- sections */

.section { padding: 100px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  margin-bottom: 16px;
}
.section-head p { color: var(--ink-2); max-width: 62ch; }
.section-head a { color: var(--blue-2); text-decoration-color: rgba(122, 162, 255, 0.4); }

.band-white {
  background:
    radial-gradient(800px 400px at 88% 0%, rgba(139, 92, 246, 0.1), transparent 65%),
    var(--void-2);
  border-block: 1px solid var(--line);
}

/* ---------------------------------------------------------------- metodo */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 1px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(255, 106, 227, 0.6);
}
.step .num {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: transparent;
}
.step h3 { font-size: 1.45rem; margin: 12px 0 10px; }
.step p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------------------------------------------------------------- prezzi */

.prices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch;
}

.price-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0a0f1d 0%, #070b14 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); padding: 28px 26px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 200ms ease, box-shadow 240ms ease, transform 240ms ease;
}
.price-card:hover {
  border-color: rgba(122, 162, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -40px rgba(47, 107, 255, 0.75);
}
.price-card h3 { font-size: 1.5rem; }
.price-card .kind {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.price-card .desc { color: var(--ink-2); font-size: 0.95rem; margin-top: 8px; min-height: 3.2em; }

.price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 22px 0 6px;
  font-variant-numeric: tabular-nums;
}
.price .num {
  font-size: clamp(2.5rem, 3.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  background: var(--grad-sheen);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.price .eur { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); }
.price-note { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.includes { list-style: none; margin: 22px 0 26px; padding: 0; border-top: 1px solid var(--line); }
.includes li {
  position: relative;
  padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line);
  font-size: 0.94rem; color: var(--ink-2);
}
.includes li::before {
  content: "✓"; position: absolute; left: 2px; top: 11px;
  color: var(--magenta); font-weight: 700; font-size: 0.9rem; line-height: 1.5;
}
.price-card h3 a { text-decoration: none; }
.price-card h3 a:hover { color: var(--blue-2); }
.price-card .btn { margin-top: auto; width: 100%; }

.price-card.hot {
  background:
    linear-gradient(180deg, #0d1022 0%, #080b16 100%) padding-box,
    var(--grad-brand) border-box;
  border: 1px solid transparent;
  box-shadow: var(--glow-magenta), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.price-card.hot:hover {
  box-shadow: 0 26px 80px -34px rgba(224, 64, 251, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.price-card.hot h3, .price-card.hot .price .num {
  color: #fff; -webkit-text-fill-color: #fff; background: none;
}
.price-card.hot .desc, .price-card.hot .includes li, .price-card.hot .price .eur { color: #c3cadb; }
.price-card.hot .price-note, .price-card.hot .kind { color: #8f9bb5; }
.price-card.hot .includes, .price-card.hot .includes li { border-color: rgba(140, 130, 220, 0.22); }
.price-card.hot .includes li::before { color: var(--magenta); }

.price-foot {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 0.9rem; color: var(--muted);
}
.price-foot span { display: inline-flex; gap: 8px; align-items: center; }
.price-foot span + span::before { content: "·"; color: var(--line-strong); }

/* ---------------------------------------------------------------- portfolio */

.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 32px; }

.work { margin: 0; }
.work a.work-link { display: block; text-decoration: none; }

.browser {
  display: block;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden;
  background: var(--void-2);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.work a:hover .browser {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 227, 0.55);
  box-shadow: 0 34px 70px -44px rgba(224, 64, 251, 0.8), 0 0 0 1px rgba(255, 106, 227, 0.12);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; background: #0b1120; border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #26314c; }
.browser-bar i:first-child { background: var(--magenta); box-shadow: 0 0 8px rgba(255, 106, 227, 0.6); }
.browser-bar em {
  margin-left: 8px; font-family: var(--mono); font-style: normal;
  font-size: 0.7rem; color: #8f9bb5; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; aspect-ratio: 1280 / 577; object-fit: cover; object-position: top center; }

.work .meta h3 a { text-decoration: none; }
.work .meta h3 a:hover { color: var(--blue-2); }

.work figcaption { margin-top: 16px; }
.work .meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.work h3 { font-size: 1.35rem; }
.work .tag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--magenta);
  white-space: nowrap;
}
.work p { color: var(--ink-2); font-size: 0.95rem; margin-top: 6px; max-width: 46ch; }

/* ---------------------------------------------------------------- AI */

.ai { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.ai h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.ai-body p + p { margin-top: 18px; }
.ai-body p { color: var(--ink-2); }
.ai-body strong { color: var(--ink); }

.ai-list { list-style: none; margin: 28px 0 0; padding: 0; }
.ai-list li {
  position: relative;
  padding: 14px 0 14px 34px; border-top: 1px solid var(--line);
  font-size: 0.96rem; color: var(--ink-2);
}
.ai-list li::before {
  content: "—"; position: absolute; left: 0; top: 14px;
  color: var(--magenta); font-weight: 700;
}

/* ---------------------------------------------------------------- faq */

.faq { max-width: 880px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px;
  font-family: var(--sans); font-size: 1.12rem; font-weight: 500; letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.35rem; font-weight: 400; color: var(--magenta);
  transition: transform 180ms ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2px 22px; color: var(--ink-2); max-width: 72ch; }
.faq summary:hover { color: var(--blue-2); }

/* ---------------------------------------------------------------- contatti */

.contact {
  position: relative;
  background:
    radial-gradient(760px 420px at 12% 8%, rgba(139, 92, 246, 0.2), transparent 68%),
    radial-gradient(680px 400px at 88% 92%, rgba(224, 64, 251, 0.14), transparent 66%),
    #06090f;
  padding: 104px 0 100px;
  border-top: 1px solid rgba(126, 158, 255, 0.18);
}
.contact .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.contact h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.4rem); color: #fff; letter-spacing: -0.04em;
}
.contact h2 em { display: block; }
.contact .sub { margin-top: 18px; color: var(--ink-2); max-width: 44ch; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-mail {
  font-family: var(--mono); font-size: 0.9rem; color: #c3cadb; text-decoration: none;
  border-bottom: 1px solid #2b3550; padding-bottom: 2px;
}
.contact-mail:hover { color: #fff; border-color: var(--magenta); }
.contact .small { font-size: 0.86rem; color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.site-foot {
  padding: 44px 0 56px; border-top: 1px solid var(--line);
  background: #04050a;
}
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: baseline; justify-content: space-between;
}
.site-foot .brand { font-size: 0.82rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.84rem; color: var(--muted); }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot .legal { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); line-height: 1.7; }
.site-foot .legal .vat { color: var(--ink-2); white-space: nowrap; }

/* ---------------------------------------------------------------- reveal */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 620ms ease, transform 620ms ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .browser, .price-card { transition: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .steps { gap: 28px; }
  .bracket { opacity: 0.7; }
}

@media (max-width: 940px) {
  .hero { padding: 68px 0 76px; }
  .hero h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
  .hero-shots { margin-top: 48px; }
  .section { padding: 76px 0; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { padding-top: 18px; }
  .prices { grid-template-columns: 1fr; max-width: 560px; }
  .works { grid-template-columns: 1fr; gap: 36px; }
  .ai { grid-template-columns: 1fr; gap: 32px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 36px; align-items: start; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .bracket { display: none; }
  .nav { display: none; }
  .hero::before {
    background-image: url("/assets/hero-rain-mobile.webp");
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
  }
  .site-head .wrap { justify-content: space-between; gap: 12px; }
  .head-cta { margin-left: 0; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: clamp(2rem, 9.4vw, 2.75rem); }
  .hero .lead { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-shots { grid-template-columns: 1fr; margin-top: 38px; }
  .facts ul { gap: 10px 24px; }
  .price-card { padding: 24px 20px; }
  .work p { max-width: none; }
  .work .meta { flex-direction: column; gap: 4px; align-items: flex-start; }
  .contact { padding: 76px 0; }
  .section { padding: 64px 0; }
}

/* ---------------------------------------------------------------- modulo contatti */

.contact-points { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-points li {
  position: relative; padding-left: 22px; margin: 8px 0;
  color: var(--ink-2); font-size: 0.93rem;
}
.contact-points li::before { content: "—"; position: absolute; left: 0; color: var(--magenta); }

.lead-form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lead-form label {
  display: block;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8f9bb5;
}
.lead-form label > input,
.lead-form label > select,
.lead-form label > textarea { margin-top: 6px; }
.lead-form .opt { color: #5f6a83; letter-spacing: 0.04em; }

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0; text-transform: none;
  color: var(--ink); background: rgba(8, 12, 22, 0.85);
  border: 1px solid #26314c; border-radius: 10px;
  padding: 11px 12px; min-height: 44px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.lead-form textarea { min-height: 128px; resize: vertical; }
.lead-form select { appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #8f9bb5 50%), linear-gradient(135deg, #8f9bb5 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: rgba(255, 106, 227, 0.7); background: rgba(12, 17, 30, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 106, 227, 0.16);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #5f6a83; }

.lead-form .check {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--sans); font-size: 0.86rem; line-height: 1.5; letter-spacing: 0; text-transform: none;
  color: var(--ink-2);
}
.lead-form .check input { width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; flex: 0 0 auto; }
.lead-form .check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  border: 1px solid #33405e; border-radius: 4px; background: #0a0f1a;
  display: grid; place-content: center; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.lead-form .check input[type="checkbox"]::before {
  content: ""; width: 10px; height: 10px; transform: scale(0);
  background: var(--grad-brand);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: transform 140ms ease;
}
.lead-form .check input[type="checkbox"]:checked { border-color: rgba(255, 106, 227, 0.65); }
.lead-form .check input[type="checkbox"]:checked::before { transform: scale(1); }
.lead-form .check a { color: var(--blue-2); }

.lead-form .btn { width: 100%; margin-top: 4px; }
.form-note { color: #6e7a95; font-size: 0.76rem; line-height: 1.5; }

.form-errors {
  border: 1px solid #6c2740; background: rgba(58, 16, 30, 0.55); border-radius: 12px;
  padding: 14px 16px; font-size: 0.9rem; color: #ffd7e2;
}
.form-errors ul { margin: 8px 0 0; padding-left: 18px; }
.form-errors li { margin: 3px 0; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- pagine interne */

.crumbs {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 22px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--line-strong); margin: 0 8px; }

.page-hero { padding: 28px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); margin: 16px 0 18px; max-width: 24ch; }
.page-hero .lead { max-width: 58ch; }
.page-hero .price-tag {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 8px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em;
  color: var(--ink); background: rgba(10, 15, 27, 0.9); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 14px;
}
.page-hero .price-tag b {
  font-family: var(--sans); font-size: 1rem; font-weight: 700; white-space: nowrap;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.prose { padding: 64px 0; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 14px; }
.prose h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.prose p { color: var(--ink-2); max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose ul.plain { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); }
.prose ul.plain li { margin: 7px 0; max-width: 66ch; }
.prose a { color: var(--blue-2); text-decoration-color: rgba(122, 162, 255, 0.35); }
.prose h2 a, .split h2 a { color: inherit; text-decoration: none; }
.prose h2 a:hover, .split h2 a:hover { color: var(--blue-2); text-decoration: underline; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.split h2 { position: sticky; top: 92px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; margin-top: 22px; }
.grid-2 .item { border-top: 1px solid var(--line); padding-top: 14px; }
.grid-2 .item p { font-size: 0.95rem; }

.cta-band {
  position: relative;
  background:
    radial-gradient(700px 360px at 80% 20%, rgba(139, 92, 246, 0.22), transparent 65%),
    radial-gradient(600px 320px at 10% 90%, rgba(47, 107, 255, 0.18), transparent 65%),
    var(--void-2);
  padding: 68px 0;
  border-top: 1px solid rgba(126, 158, 255, 0.16);
}
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.4rem); max-width: 30ch; }
.cta-band p { color: var(--ink-2); margin-top: 10px; }
.cta-band .btn.on-dark { flex: 0 0 auto; }

@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split h2 { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- articoli */

.article-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-top: 18px;
}
.article { padding: 48px 0 72px; }
.article .wrap { max-width: 760px; }
.article p { font-size: 1.02rem; line-height: 1.72; }
.article h2 { margin: 38px 0 12px; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.article h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 600; margin: 22px 0 6px; }
.article ul, .article ol { color: var(--ink-2); padding-left: 20px; margin: 12px 0 0; }
.article li { margin: 7px 0; }
.article blockquote {
  margin: 26px 0; padding: 16px 20px; border-left: 2px solid transparent;
  border-image: var(--grad-brand) 1;
  background: rgba(12, 17, 30, 0.8); color: var(--ink); font-size: 1.06rem;
}
.article .note { font-size: 0.92rem; color: var(--muted); }
.article .end-cta {
  margin-top: 40px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: linear-gradient(180deg, #0a0f1d, #070b14);
}
.article .end-cta p { margin-bottom: 14px; }

/* ---------------------------------------------------------------- elenco guide */

.guide-list { border-top: 1px solid var(--line); }
.guide-card { padding: 26px 0; border-bottom: 1px solid var(--line); }
.guide-card h2 a { color: inherit; text-decoration: none; }
.guide-card h2 a:hover { color: var(--blue-2); }
.guide-card p { max-width: 64ch; }

/* ---------------------------------------------------------------- guide in home */

.guide-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-strip a {
  display: block; text-decoration: none; padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  transition: border-color 200ms ease;
}
.guide-strip a:hover { border-color: rgba(255, 106, 227, 0.55); }
.guide-strip h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; line-height: 1.28; margin-bottom: 7px; }
.guide-strip p { font-size: 0.9rem; color: var(--ink-2); }
.guide-strip a:hover h3 { color: var(--blue-2); }
@media (max-width: 720px) { .guide-strip { grid-template-columns: 1fr; gap: 18px; } }

/* ---------------------------------------------------------------- servizio aggiuntivo */

.price-extra {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: 20px; padding: 22px 26px;
  border: 1px dashed rgba(140, 160, 210, 0.32); border-radius: var(--r-lg);
  background: rgba(10, 15, 27, 0.6);
}
.price-extra .kind {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 6px;
}
.price-extra h3 { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.price-extra p { font-size: 0.94rem; color: var(--ink-2); max-width: 62ch; }
.price-extra .btn { flex: 0 0 auto; }
