/* ==========================================================================
   Teema Software — design system
   Glassmorphism · depth · monochrome + viola brand
   ========================================================================== */

/* Inter (variabile 300–800) ospitato localmente: nessuna richiesta a Google Fonts */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #4d2deb;
  --brand-light: #7a5cff;
  --brand-glow: rgba(77, 45, 235, 0.45);
  --ink: #101010;
  --ink-2: #18181b;
  --white: #ffffff;
  --silver: #cccccc;
  --bg-light: #f4f4f5;
  --zinc-100: #ececee;
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);

  --r-xl: 2.5rem;
  --r-lg: 2rem;
  --r-md: 1.5rem;
  --r-sm: 1rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 2.5vw, 2rem);
  --frame: clamp(0.5rem, 1vw, 0.875rem);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: #fff; color: var(--ink); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; transition: top .3s var(--ease); }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.frame { margin: var(--frame); }

/* ---------- Typography helpers ---------- */
.label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.label--light { color: rgba(255, 255, 255, .7); }
.label--dark { color: var(--zinc-500); }
.display { font-size: clamp(2.75rem, 7vw, 6.5rem); font-weight: 600; letter-spacing: -0.055em; line-height: .98; }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); }
.h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.035em; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); font-weight: 300; color: var(--zinc-500); max-width: 38rem; }
.lead--light { color: rgba(255, 255, 255, .65); }
.text-brand { color: var(--brand); }
.text-grad {
  background: linear-gradient(100deg, #fff 0%, #cfc6ff 45%, var(--brand-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--zinc-500); font-weight: 300; }

/* ---------- Glass & grain ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain); opacity: .15; mix-blend-mode: overlay; border-radius: inherit;
}
.dark {
  color: #fff;
  background: linear-gradient(180deg, #161618 0%, #111112 55%, #0a0a0b 100%);
}

/* ---------- Buttons ---------- */
.btn-action {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .5rem .5rem .5rem 1.5rem; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 500; font-size: .975rem; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.btn-action .ico {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--ink); color: #fff; transition: background-color .3s, transform .3s var(--ease);
}
.btn-action .ico svg { width: 18px; height: 18px; }
.btn-action:hover { transform: scale(1.05); }
.btn-action:hover .ico { background: var(--brand); transform: rotate(-45deg); }
.btn-action--brand { background: var(--brand); color: #fff; box-shadow: 0 10px 40px -10px var(--brand-glow); }
.btn-action--brand .ico { background: #fff; color: var(--brand); }
.btn-action--brand:hover .ico { background: var(--ink); color: #fff; }
.btn-action--dark { background: var(--ink); color: #fff; }
.btn-action--dark .ico { background: #fff; color: var(--ink); }
.btn-action--dark:hover .ico { background: var(--brand); color: #fff; }
.btn-action--block { width: 100%; justify-content: space-between; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.4rem; border-radius: 999px; font-weight: 500; font-size: .95rem; line-height: 1;
  color: #fff; transition: background-color .3s, transform .3s var(--ease);
}
.btn-ghost svg { width: 18px; height: 18px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: scale(1.03); }

/* ---------- Navbar ---------- */
.nav-wrap {
  position: fixed; top: calc(var(--frame) + .75rem); left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 calc(var(--frame) + .75rem); pointer-events: none;
}
.nav {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: .25rem; width: 100%; max-width: 1080px;
  padding: 6px; border-radius: 999px;
  background: rgba(16, 16, 16, .55);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px -15px rgba(0, 0, 0, .5);
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(16, 16, 16, .78); }
.nav__brand { display: flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .75rem; border-radius: 999px; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .15rem; margin: 0 auto; }
.nav__links a {
  display: block; padding: .6rem 1.05rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .8);
  transition: background-color .3s, color .3s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.nav__cta { margin-left: auto; }
.nav__cta .btn-action { padding: .3rem .3rem .3rem 1.1rem; font-size: .88rem; }
.nav__cta .btn-action .ico { width: 2.1rem; height: 2.1rem; }
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; place-items: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .35s var(--ease), background-color .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end;
  color: #fff; background: #0c0c0d;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; opacity: .75; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 78% 28%, rgba(77, 45, 235, .95) 0%, transparent 62%),
    radial-gradient(40% 45% at 12% 88%, rgba(122, 92, 255, .6) 0%, transparent 60%),
    radial-gradient(28% 30% at 55% 60%, rgba(204, 204, 204, .18) 0%, transparent 70%),
    conic-gradient(from 210deg at 70% 40%, #101010, #2a1a8f, #101010 40%, #1b1b1f 70%, #101010);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.blob--1 { width: 42vw; height: 42vw; right: -8vw; top: -10vw; background: var(--brand); animation: drift 18s ease-in-out infinite alternate; }
.blob--2 { width: 28vw; height: 28vw; left: 5vw; bottom: -12vw; background: #7a5cff; animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob--3 { width: 18vw; height: 18vw; left: 45vw; top: 20vh; background: #cccccc; opacity: .35; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4vw, 3vw, 0) scale(1.1); }
  100% { transform: translate3d(3vw, -2vw, 0) scale(.95); }
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero__overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(9, 9, 11, .4) 0%, rgba(9, 9, 11, .55) 50%, rgba(9, 9, 11, .92) 100%); }
.hero__word {
  position: absolute; left: 50%; top: 46%; z-index: 0; transform: translate(-50%, -50%);
  font-size: 22vw; font-weight: 800; letter-spacing: -0.06em; line-height: 1;
  color: #fff; opacity: .03; filter: blur(2px); white-space: nowrap; user-select: none; pointer-events: none;
}
.hero__rings { position: absolute; right: -10%; top: 50%; z-index: 0; width: min(70vw, 900px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.hero__rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); }
.hero__rings span:nth-child(2) { inset: 12%; border-color: rgba(255, 255, 255, .09); }
.hero__rings span:nth-child(3) { inset: 24%; border-color: rgba(122, 92, 255, .25); border-style: dashed; animation: spin 60s linear infinite; }
.hero__rings span:nth-child(4) { inset: 36%; border-color: rgba(255, 255, 255, .1); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end;
  padding: clamp(7.5rem, 14vh, 10rem) clamp(1.25rem, 4vw, 4rem) clamp(2rem, 5vw, 4rem);
}
.hero__content { max-width: 58rem; }
.hero__content .label { margin-bottom: 1.75rem; }
.hero__content h1 { margin-bottom: 1.75rem; }
.hero__content .lead { margin-bottom: 2.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: rgba(255, 255, 255, .85);
}
.pill__dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); }
.pill__dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }


/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; background: #0c0c0d;
  min-height: 62vh; display: flex; align-items: flex-end;
}
.page-hero .hero__inner { grid-template-columns: 1fr; padding-top: clamp(9rem, 20vh, 12rem); }
.page-hero .hero__word { font-size: 18vw; top: 42%; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .8rem; color: rgba(255, 255, 255, .55); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Clients marquee ---------- */
.clients { padding: clamp(3rem, 6vw, 5rem) 0; }
.clients__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.clients__head p { max-width: 28rem; }
.marquee {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: 1rem; padding-right: 1rem; }
.marquee__item {
  flex: none; display: grid; place-items: center; width: 15rem; height: 6.5rem; padding: 1.5rem 2rem;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--zinc-100);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .3s;
}
.marquee__item img { width: auto; height: auto; max-width: 100%; max-height: 3.25rem; object-fit: contain; opacity: .75; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.marquee__item:hover { transform: translateY(-3px); border-color: var(--zinc-200); box-shadow: 0 12px 30px -18px rgba(16, 16, 16, .35); }
.marquee__item:hover img { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.features__sticky { position: sticky; top: 7.5rem; }
.features__sticky .label { margin-bottom: 1.5rem; }
.features__sticky h2 { margin-bottom: 1.5rem; }
.features__sticky .lead { margin-bottom: 2.5rem; }
.icon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 2.5rem; }
.icon-item {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem .85rem .85rem; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--zinc-100); font-weight: 500; font-size: .92rem; letter-spacing: -0.01em;
  transition: transform .4s var(--ease), border-color .3s;
}
.icon-item:hover { transform: translateY(-3px); border-color: rgba(77, 45, 235, .35); }
.icon-item__ico { flex: none; width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: grid; place-items: center; background: rgba(77, 45, 235, .08); color: var(--brand); }
.icon-item__ico svg { width: 18px; height: 18px; }

.display-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 40rem; background: #0c0c0d; color: #fff;
}
.display-card__img { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.display-card:hover .display-card__img { transform: scale(1.05); }
.art {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 55% at 30% 25%, rgba(122, 92, 255, .9), transparent 60%),
    radial-gradient(50% 50% at 85% 75%, rgba(77, 45, 235, .95), transparent 60%),
    radial-gradient(30% 35% at 70% 20%, rgba(255, 255, 255, .35), transparent 65%),
    linear-gradient(160deg, #1a1a1f, #101010);
}
.art::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.art--b { background:
    radial-gradient(60% 50% at 80% 20%, rgba(77, 45, 235, .95), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(204, 204, 204, .35), transparent 60%),
    linear-gradient(200deg, #1b1b20, #0e0e10); }
.art--c { background:
    radial-gradient(50% 60% at 50% 110%, rgba(122, 92, 255, 1), transparent 60%),
    radial-gradient(35% 40% at 15% 15%, rgba(77, 45, 235, .8), transparent 60%),
    linear-gradient(180deg, #121214, #0b0b0c); }
.art--d { background:
    conic-gradient(from 90deg at 70% 50%, #101010, #4d2deb, #101010 45%, #26263a 75%, #101010); }
.art__shape { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.display-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 12, 0) 30%, rgba(10, 10, 12, .85) 100%); }
.display-card__head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 1.75rem; }
.display-card__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.5rem, 3vw, 2.5rem); }
.display-card__caption h3 { max-width: 26rem; margin-bottom: .75rem; }
.display-card__caption p { color: rgba(255, 255, 255, .65); font-weight: 300; max-width: 30rem; }

.analysis {
  position: absolute; z-index: 3; top: 5.5rem; right: clamp(1rem, 3vw, 2.5rem); width: min(22rem, calc(100% - 2rem));
  padding: 1.35rem; border-radius: var(--r-md); color: #fff;
  background: rgba(16, 16, 16, .25);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.analysis__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.analysis__title { font-size: .9rem; font-weight: 600; letter-spacing: -0.01em; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #cfc6ff; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: pulse 2s infinite; }
.bar { margin-bottom: .95rem; }
.bar:last-of-type { margin-bottom: 0; }
.bar__row { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(255, 255, 255, .7); margin-bottom: .4rem; }
.bar__row b { color: #fff; font-weight: 600; }
.bar__track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #a794ff); transition: width 1.6s var(--ease); }
.is-visible .bar__fill { width: var(--w); }
.analysis__foot { display: flex; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.chip { font-size: .72rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }

/* ---------- Service cards ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .label { margin-bottom: 1.25rem; }
.section-head h2 { max-width: 44rem; }
.section-head .lead { max-width: 30rem; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--zinc-100);
  min-height: 21rem; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.service::before {
  content: ""; position: absolute; width: 18rem; height: 18rem; right: -9rem; top: -9rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 45, 235, .18), transparent 70%); opacity: 0; transition: opacity .5s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(77, 45, 235, .25); box-shadow: 0 30px 60px -35px rgba(77, 45, 235, .45); }
.service:hover::before { opacity: 1; }
.service__top { display: flex; justify-content: space-between; align-items: start; margin-bottom: auto; padding-bottom: 2.5rem; }
.service__ico { width: 3.25rem; height: 3.25rem; border-radius: 1rem; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .3s, transform .5s var(--ease); }
.service__ico svg { width: 22px; height: 22px; }
.service:hover .service__ico { background: var(--brand); transform: rotate(-6deg) scale(1.05); }
.service__num { font-size: .75rem; font-weight: 600; color: var(--zinc-400); letter-spacing: .1em; }
.service h3 { font-size: 1.45rem; letter-spacing: -0.035em; margin-bottom: .75rem; }
.service p { color: var(--zinc-500); font-weight: 300; font-size: .95rem; margin-bottom: 1.5rem; }
.service__link { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.service__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.service:hover .service__link { color: var(--brand); }
.service:hover .service__link svg { transform: translate(3px, -3px); }
.service--dark { background: var(--ink); color: #fff; border-color: transparent; }
.service--dark p { color: rgba(255, 255, 255, .6); }
.service--dark .service__ico { background: var(--brand); }
.service--dark .service__link { color: #fff; }
.service--dark .service__num { color: rgba(255, 255, 255, .4); }

/* ---------- Dark process block ---------- */
.process { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; background: linear-gradient(180deg, #1c1c20 0%, #18181b 45%, #0d0d0f 100%); }
.process__lines {
  position: absolute; inset: 0; z-index: 0; filter: grayscale(1); opacity: .6;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.process__glow { position: absolute; z-index: 0; width: 50rem; height: 50rem; right: -15rem; bottom: -25rem; border-radius: 50%; background: radial-gradient(circle, rgba(77, 45, 235, .45), transparent 65%); }
.process__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem); }
.process__inner .label { margin-bottom: 1.5rem; }
.process__inner h2 { margin-bottom: 1.25rem; }
.process__inner .lead { margin-bottom: 2.5rem; }
.steps { display: grid; gap: .75rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem; border-radius: var(--r-md);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .08); border-color: rgba(122, 92, 255, .4); transform: translateX(6px); }
.step__num { width: 2.75rem; height: 2.75rem; border-radius: .9rem; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: rgba(255, 255, 255, .08); color: #cfc6ff; transition: background-color .3s, color .3s; }
.step:hover .step__num { background: var(--brand); color: #fff; }
.step h3 { font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: .3rem; }
.step p { font-size: .9rem; color: rgba(255, 255, 255, .55); font-weight: 300; }

.mock-stage { perspective: 1600px; position: relative; }
.mock {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, rgba(40, 40, 46, .9), rgba(18, 18, 20, .95));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03), 0 40px 100px -50px var(--brand-glow);
  transform: rotateY(-8deg) rotateX(4deg) rotateZ(3deg);
  transition: transform 1s var(--ease);
}
.mock-stage:hover .mock { transform: rotateY(-2deg) rotateX(1deg) rotateZ(1deg); }
.mock__bar { display: flex; align-items: center; gap: .45rem; padding: .9rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.mock__bar i:first-child { background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__url { margin-left: 1rem; flex: 1; font-size: .72rem; color: rgba(255, 255, 255, .45); padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .05); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.mock__body { display: grid; grid-template-columns: 9rem 1fr; min-height: 24rem; }
.mock__side { padding: 1.1rem .8rem; border-right: 1px solid rgba(255, 255, 255, .06); display: grid; align-content: start; gap: .35rem; }
.mock__side span { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: rgba(255, 255, 255, .45); padding: .45rem .6rem; border-radius: .6rem; }
.mock__side span.is-active { background: rgba(77, 45, 235, .25); color: #fff; }
.mock__side svg { width: 13px; height: 13px; }
.mock__main { position: relative; padding: 1.25rem; display: grid; gap: .85rem; align-content: start; }
.code {
  border-radius: var(--r-sm); padding: 1rem 1.1rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .76rem; line-height: 1.75; color: rgba(255, 255, 255, .75); overflow: hidden; white-space: pre;
}
.code .k { color: #a794ff; } .code .s { color: #86efac; } .code .f { color: #7dd3fc; } .code .c { color: rgba(255, 255, 255, .35); }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mini { padding: .8rem; border-radius: .85rem; }
.mini b { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.mini span { font-size: .65rem; color: rgba(255, 255, 255, .5); }
.spark { display: flex; align-items: end; gap: 3px; height: 26px; margin-top: .5rem; }
.spark i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, #a794ff, var(--brand)); }
.bounce-tag {
  position: absolute; right: -1rem; bottom: -1.25rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem .7rem .7rem; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .6);
  animation: bounce 2.6s var(--ease) infinite;
}
.bounce-tag__ico { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.bounce-tag__ico svg { width: 14px; height: 14px; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Tech stack ---------- */
.stack { display: flex; flex-wrap: wrap; gap: .6rem; align-content: flex-start; align-items: flex-start; }
.stack span {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--zinc-100); font-size: .9rem; font-weight: 500;
  transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.stack span:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.stack span i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); }
.stack-group { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem 2rem; padding: 1.75rem 0; border-top: 1px solid var(--zinc-200); }
.stack-groups { border-bottom: 1px solid var(--zinc-200); }
@media (min-width: 1200px) {
  .stack-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .stack-group { grid-template-columns: 9.5rem 1fr; }
}
.stack-group h3 { font-size: 1.1rem; letter-spacing: -0.02em; padding-top: .6rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; background: #0c0c0d; }
.cta .art { opacity: .75; }
.cta__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 9, 11, .35), rgba(9, 9, 11, .85)); }
.cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: end; padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem); }
.cta__inner h2 { font-size: clamp(2.4rem, 6vw, 5.5rem); letter-spacing: -0.055em; line-height: .98; max-width: 16ch; margin-bottom: 1.5rem; }
.cta__side { display: grid; gap: .75rem; justify-items: start; }
.cta__contact { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.25rem .9rem .9rem; border-radius: var(--r-sm); min-width: 17rem; transition: background-color .3s, transform .4s var(--ease); }
.cta__contact:hover { background: rgba(255, 255, 255, .1); transform: translateX(-4px); }
.cta__contact span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .8rem; background: rgba(255, 255, 255, .1); }
.cta__contact svg { width: 18px; height: 18px; }
.cta__contact small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .55); }
.cta__contact b { font-weight: 500; font-size: .95rem; }

/* ---------- Service detail (servizi.html) ---------- */
.svc-index { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-index a { padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: rgba(255, 255, 255, .8); transition: background-color .3s, color .3s; }
.svc-index a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--zinc-200); }
.svc:last-child { border-bottom: 0; }
.svc:nth-child(even) .svc__visual { order: -1; }
.svc__num { font-size: .8rem; font-weight: 600; color: var(--zinc-400); letter-spacing: .1em; margin-bottom: 1rem; display: block; }
.svc h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 1.25rem; }
.svc .lead { margin-bottom: 2rem; }
.svc__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.5rem; margin-bottom: 2rem; }
.svc__cols li { display: flex; gap: .6rem; align-items: start; font-size: .93rem; color: var(--zinc-600); }
.svc__cols svg { flex: none; width: 18px; height: 18px; margin-top: .15rem; color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags span { font-size: .78rem; font-weight: 500; padding: .38rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--zinc-200); color: var(--zinc-600); }
.svc__visual { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 5 / 4; background: #0c0c0d; color: #fff; }
.svc__visual .art { transition: transform 1.2s var(--ease); }
.svc__visual:hover .art { transform: scale(1.05); }
.svc__glass { position: absolute; z-index: 2; padding: 1.1rem 1.25rem; border-radius: var(--r-md); color: #fff; background: rgba(16, 16, 16, .22); }
.svc__glass--tl { top: 1.5rem; left: 1.5rem; }
.svc__glass .label { margin-bottom: .5rem; }
.svc__glass b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; }
.svc__glass p { font-size: .82rem; color: rgba(255, 255, 255, .65); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); }
.faq { display: grid; gap: .6rem; }
.faq details { border-radius: var(--r-md); background: #fff; border: 1px solid var(--zinc-100); transition: border-color .3s; }
.faq details[open] { border-color: rgba(77, 45, 235, .3); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg-light); font-size: 1.1rem; transition: transform .4s var(--ease), background-color .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { padding: 0 1.5rem 1.35rem; color: var(--zinc-500); font-weight: 300; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; align-items: stretch; }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.info-card {
  display: flex; gap: 1rem; align-items: center; padding: 1.5rem; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--zinc-100); transition: transform .4s var(--ease), border-color .3s;
}
a.info-card:hover { transform: translateY(-4px); border-color: rgba(77, 45, 235, .35); }
.info-card__ico { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 1rem; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .3s; }
a.info-card:hover .info-card__ico { background: var(--brand); }
.info-card__ico svg { width: 20px; height: 20px; }
.info-card small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--zinc-500); margin-bottom: .2rem; }
.info-card b { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; word-break: break-word; }
.info-card p { font-size: .88rem; color: var(--zinc-500); font-weight: 300; }
.info-dark { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 2rem; color: #fff; background: #0c0c0d; min-height: 15rem; display: flex; flex-direction: column; justify-content: end; }
.info-dark .art { opacity: .7; }
.info-dark > *:not(.art) { position: relative; z-index: 2; }
.info-dark h3 { font-size: 1.5rem; margin: .75rem 0 .5rem; }
.info-dark p { color: rgba(255, 255, 255, .65); font-weight: 300; font-size: .92rem; }

.form-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3rem); color: #fff; }
.form-card > * { position: relative; z-index: 2; }
.form-card__glow { position: absolute; z-index: 0; width: 40rem; height: 40rem; right: -18rem; top: -20rem; border-radius: 50%; background: radial-gradient(circle, rgba(77, 45, 235, .5), transparent 65%); }
.form-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 1rem 0 .75rem; }
.form-card > p.lead { margin-bottom: 2rem; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.consent), .field > legend { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); padding: 0; }
.field label .req { color: #a794ff; }
.input {
  width: 100%; padding: .95rem 1.1rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.input::placeholder { color: rgba(255, 255, 255, .35); }
.input:hover { border-color: rgba(255, 255, 255, .2); }
.input:focus { outline: none; border-color: var(--brand-light); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(77, 45, 235, .25); }
textarea.input { min-height: 9rem; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
select.input option { color: var(--ink); background: #fff; }
.input.is-invalid { border-color: #f87171; }
.field__error { font-size: .78rem; color: #fca5a5; min-height: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; cursor: pointer; padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8);
  transition: background-color .3s, border-color .3s, color .3s;
}
.choice span:hover { border-color: rgba(255, 255, 255, .3); }
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--brand-light); outline-offset: 2px; }
.consent { display: flex; gap: .75rem; align-items: start; font-size: .85rem; color: rgba(255, 255, 255, .65); cursor: pointer; }
.consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--brand); }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form__foot small { color: rgba(255, 255, 255, .45); font-size: .8rem; }
.btn-action[disabled] { opacity: .6; pointer-events: none; }
.btn-action.is-loading .ico svg { animation: spin 1s linear infinite; }
.form-status { grid-column: 1 / -1; display: none; gap: .75rem; align-items: start; padding: 1rem 1.25rem; border-radius: var(--r-sm); font-size: .92rem; }
.form-status.is-shown { display: flex; }
.form-status svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; }
.form-status--ok { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); color: #a7f3d0; }
.form-status--err { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; }
.form-status a { color: #fff; text-decoration: underline; }

/* ---------- Legal ---------- */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.prose p, .prose li { color: var(--zinc-600); margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.notice { padding: 1rem 1.25rem; border-radius: var(--r-sm); background: rgba(77, 45, 235, .07); border: 1px solid rgba(77, 45, 235, .2); color: var(--ink); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; }
.footer__glow { position: absolute; z-index: 0; width: 60rem; height: 30rem; left: 50%; bottom: -22rem; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(77, 45, 235, .5), transparent 65%); }
.footer__inner { position: relative; z-index: 2; padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__brand img { height: 56px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { color: rgba(255, 255, 255, .55); font-weight: 300; font-size: .92rem; max-width: 22rem; }
.footer h4 { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 1.25rem; }
.footer ul { display: grid; gap: .6rem; }
.footer ul a { font-size: .92rem; color: rgba(255, 255, 255, .8); transition: color .3s; }
.footer ul a:hover { color: #a794ff; }
.footer__word { font-size: clamp(4rem, 15vw, 15rem); font-weight: 800; letter-spacing: -0.07em; line-height: .8; text-align: center; margin: 3rem 0 1.5rem; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: rgba(255, 255, 255, .45); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.fade-in-up { animation: fadeInUp .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .features, .process__inner, .faq-layout, .contact-layout, .svc { grid-template-columns: 1fr; }
  .features__sticky { position: static; }
  .display-card { min-height: 34rem; }
  .svc:nth-child(even) .svc__visual { order: 0; }
  .cta__inner { grid-template-columns: 1fr; }
  .mock-stage { padding: 0 1rem 2rem; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav.is-open { border-radius: 1.75rem; flex-wrap: wrap; background: rgba(16, 16, 16, .92); }
  .nav.is-open .nav__links { display: grid; order: 3; width: 100%; margin: .25rem 0 0; padding: .5rem; gap: .15rem; }
  .nav.is-open .nav__links a { padding: .9rem 1rem; font-size: 1rem; }
  .nav.is-open .nav__cta { display: block; order: 4; width: 100%; padding: 0 .5rem .5rem; margin: 0; }
  .nav.is-open .nav__cta .btn-action { width: 100%; justify-content: space-between; padding: .45rem .45rem .45rem 1.25rem; font-size: .95rem; }
  .stack-group { grid-template-columns: 1fr; }
  .stack-group h3 { padding-top: 0; }
}
@media (max-width: 680px) {
  .services, .icon-grid, .svc__cols, .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .service { min-height: 0; }
  .marquee__item { width: 11.5rem; height: 5.5rem; padding: 1.25rem 1.5rem; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__cards { grid-template-columns: repeat(2, 1fr); }
  .mock__cards .mini:nth-child(3) { display: none; }
  .code { white-space: pre-wrap; font-size: .68rem; }
  .bounce-tag { right: 0; }
  .analysis { top: 5rem; }
  .display-card { min-height: 38rem; }
  .hero__rings { right: -45%; width: 120vw; }
  .cta__contact { min-width: 0; width: 100%; }
  .cta__side { justify-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Settori ---------- */
.industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step--row { align-items: center; }
.step--row h3 { margin: 0; font-size: 1rem; }
.step--row .step__num svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .industries { grid-template-columns: 1fr; } }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero: animazione sviluppo web ---------- */
.devanim { position: relative; width: 35rem; max-width: 100%; padding: 1.25rem 1.5rem 5.5rem 0; font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace; }
.devanim__editor {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: rgba(14, 14, 18, .45);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 30px 80px -40px var(--brand-glow);
}
.devanim__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.devanim__bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.devanim__bar > i:nth-child(1) { background: #ff5f57; }
.devanim__bar > i:nth-child(2) { background: #febc2e; }
.devanim__bar > i:nth-child(3) { background: #28c840; margin-right: .6rem; }
.devanim__tab { font-size: .7rem; color: rgba(255, 255, 255, .4); padding: .3rem .7rem; border-radius: .5rem; }
.devanim__tab.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.devanim__code { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 1.1rem 1.1rem .9rem; height: calc(11 * 1.85em + 2.1rem); font-size: .8rem; line-height: 1.85; }
.devanim__gutter { color: rgba(255, 255, 255, .22); text-align: right; user-select: none; min-width: 1.4em; }
.devanim__lines { color: rgba(255, 255, 255, .82); white-space: pre; overflow: hidden; }
.devanim__lines > div { min-height: 1.85em; border-radius: 4px; transition: background-color .3s; }
.devanim__lines > div.is-current { background: rgba(122, 92, 255, .12); }
.devanim__lines .k { color: #c4b5fd; }
.devanim__lines .f { color: #7dd3fc; }
.devanim__lines .t { color: #f9a8d4; }
.devanim__lines .a { color: #fcd34d; }
.devanim__lines .s { color: #86efac; }
.devanim__lines .p { color: rgba(255, 255, 255, .45); }
.devanim__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: #a794ff; box-shadow: 0 0 8px #a794ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.devanim__status { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 1rem; font-size: .66rem; color: rgba(255, 255, 255, .45); border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .02); }
.devanim__state { display: inline-flex; align-items: center; gap: .45rem; }
.devanim__state b { width: 7px; height: 7px; border-radius: 50%; background: #febc2e; box-shadow: 0 0 8px #febc2e; }
.devanim.is-done .devanim__state b { background: #34d399; box-shadow: 0 0 8px #34d399; }

.devanim__preview {
  position: absolute; right: 0; bottom: 0; width: 16.5rem; z-index: 2;
  border-radius: 1rem; overflow: hidden; background: #fff; color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .15);
  transform: rotate(3deg); animation: float 7s ease-in-out infinite;
}
.devanim__pbar { display: flex; align-items: center; gap: .3rem; padding: .45rem .6rem; background: var(--bg-light); border-bottom: 1px solid var(--zinc-200); }
.devanim__pbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--zinc-200); }
.devanim__pbar span { margin-left: .4rem; flex: 1; font-size: .58rem; color: var(--zinc-500); background: #fff; border-radius: 999px; padding: .15rem .5rem; }
.devanim__page { display: grid; gap: .5rem; padding: .7rem; min-height: 11.5rem; align-content: start; }
.pv { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pv.is-on { opacity: 1; transform: none; }
.pv-nav { display: flex; justify-content: space-between; align-items: center; }
.pv-logo { width: 2.2rem; height: .55rem; border-radius: 999px; background: var(--brand); }
.pv-links { display: flex; gap: .3rem; }
.pv-links i { width: 1.1rem; height: .35rem; border-radius: 999px; background: var(--zinc-200); }
.pv-hero { display: grid; gap: .3rem; padding: .75rem; border-radius: .6rem; background: radial-gradient(80% 120% at 90% 0%, #7a5cff, transparent 60%), linear-gradient(135deg, #1b1b22, #101010); }
.pv-title { font-size: .78rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.pv-sub { height: .3rem; width: 85%; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.pv-sub--short { width: 55%; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.pv-cards i { position: relative; height: 2.3rem; border-radius: .45rem; background: var(--bg-light); border: 1px solid var(--zinc-100); }
.pv-cards i::before { content: ""; position: absolute; left: .35rem; top: .35rem; width: .55rem; height: .55rem; border-radius: .2rem; background: rgba(77, 45, 235, .25); }
.pv-cards i::after { content: ""; position: absolute; left: .35rem; right: .35rem; bottom: .4rem; height: .25rem; border-radius: 999px; background: var(--zinc-200); }
.pv-cards.is-on i { animation: pop .5s var(--ease) both; }
.pv-cards.is-on i:nth-child(2) { animation-delay: .08s; }
.pv-cards.is-on i:nth-child(3) { animation-delay: .16s; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.pv-btn { justify-self: start; font-size: .6rem; font-weight: 600; color: #fff; background: var(--brand); padding: .35rem .75rem; border-radius: 999px; box-shadow: 0 6px 14px -6px var(--brand-glow); }

.devanim__toast {
  position: absolute; top: 0; right: 2.75rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px;
  background: #fff; color: var(--ink); font-family: "Inter", system-ui, sans-serif; font-size: .78rem; font-weight: 600;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.devanim__toast span { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.devanim__toast svg { width: 12px; height: 12px; }
.devanim.is-done .devanim__toast { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .devanim { width: 100%; max-width: 36rem; }
}
@media (max-width: 560px) {
  .devanim { padding-right: 0; padding-bottom: 8.5rem; }
  .devanim__code { font-size: .68rem; gap: .6rem; }
  .devanim__preview { left: auto; right: .5rem; width: 14rem; transform: rotate(2deg); }
  .devanim__status span:last-child { display: none; }
}
.hero .display { font-size: clamp(2.75rem, 5vw, 5.5rem); }

/* ---------- Form: servizi a scelta multipla ---------- */
.field__hint { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .78rem; color: rgba(255, 255, 255, .45); }
.choice--check span { display: inline-flex; align-items: center; gap: .45rem; }
.choice--check span::before {
  content: ""; flex: none; width: 1rem; height: 1rem; border-radius: .3rem;
  border: 1.5px solid rgba(255, 255, 255, .35); background-position: center; background-repeat: no-repeat; background-size: .7rem;
  transition: background-color .2s, border-color .2s;
}
.choice--check input:checked + span::before {
  border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d2deb' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Servizi: anteprime animate (una scena per servizio)
   Le dimensioni sono in em e scalano con la larghezza della card (container query).
   Stato base = scena completa; i keyframe la costruiscono e la smontano in loop.
   ========================================================================== */
.svc__visual { container-type: inline-size; }
.svc__glass--tl { display: flex; align-items: center; gap: .65rem; padding: .5rem 1rem .5rem .85rem; border-radius: 999px; max-width: calc(100% - 3rem); }
.svc__glass--tl .label { margin: 0; }
.svc__glass--tl b { display: inline; font-size: .95rem; letter-spacing: -0.02em; white-space: nowrap; }
.svc__glass--tl p { font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sc {
  --dur: 12s;
  position: absolute; inset: 4.75rem 1.5rem 1.5rem; z-index: 1;
  display: grid; place-items: center;
  font-family: "Inter", system-ui, sans-serif; font-size: clamp(9px, 2.6cqi, 17px); line-height: 1.35; color: #fff;
}
.sc > * { width: 100%; max-width: 34em; }
.sc svg { display: block; }

/* utility di animazione, sincronizzate su --dur con ritardo --at */
.sc .a-in, .sc .a-x, .sc .a-xs, .sc .a-y, .sc .a-draw, .sc .a-pop, .sc .a-flash, .sc .a-drop {
  animation-duration: var(--dur); animation-delay: var(--at, 0s); animation-iteration-count: infinite;
  animation-fill-mode: both; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.sc .a-in { animation-name: sc-in; }
.sc .a-x { animation-name: sc-x; transform-origin: left center; }
.sc .a-xs { animation-name: sc-xs; transform-origin: left center; animation-timing-function: linear; }
.sc .a-y { animation-name: sc-y; transform-origin: center bottom; }
.sc .a-draw { animation-name: sc-draw; stroke-dasharray: 1; }
.sc .a-pop { animation-name: sc-pop; }
.sc .a-flash { animation-name: sc-flash; }
.sc .a-drop { animation-name: sc-drop; }
.sc svg .a-in, .sc svg .a-pop { transform-box: fill-box; transform-origin: center; }
@keyframes sc-in { 0% { opacity: 0; transform: translateY(.8em) scale(.97); } 5%, 72% { opacity: 1; transform: none; } 77%, 100% { opacity: 0; transform: translateY(-.3em); } }
@keyframes sc-x { 0% { transform: scaleX(0); } 8%, 72% { transform: scaleX(1); } 77%, 100% { transform: scaleX(0); } }
@keyframes sc-xs { 0% { transform: scaleX(0); } 25%, 72% { transform: scaleX(1); } 77%, 100% { transform: scaleX(0); } }
@keyframes sc-y { 0% { transform: scaleY(0); } 8%, 72% { transform: scaleY(1); } 77%, 100% { transform: scaleY(0); } }
@keyframes sc-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 14%, 72% { stroke-dashoffset: 0; opacity: 1; } 77% { opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes sc-pop { 0% { opacity: 0; transform: scale(0); } 4% { opacity: 1; transform: scale(1.18); } 7%, 72% { opacity: 1; transform: scale(1); } 77%, 100% { opacity: 0; transform: scale(0); } }
@keyframes sc-flash { 0% { opacity: 0; } 3%, 12% { opacity: 1; } 15%, 100% { opacity: 0; } }
@keyframes sc-drop { 0% { opacity: 0; transform: translateY(-140%); } 5%, 72% { opacity: 1; transform: none; } 77%, 100% { opacity: 0; transform: translateY(-140%); } }
@keyframes sc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes sc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.35em); } }
@keyframes sc-dash { to { stroke-dashoffset: -16; } }
@keyframes sc-scroll { to { transform: translateX(-50%); } }

/* pausa quando la card non è visibile */
.svc__visual:not(.is-playing) .sc *, .svc__visual:not(.is-playing) .sc *::before, .svc__visual:not(.is-playing) .sc *::after { animation-play-state: paused !important; }

/* componenti comuni */
.sc-win { border-radius: 1em; overflow: hidden; background: rgba(14, 14, 18, .6); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 2em 4em -1.5em rgba(0, 0, 0, .75); }
.sc-bar { display: flex; align-items: center; gap: .35em; padding: .6em .8em; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .75em; color: rgba(255, 255, 255, .55); }
.sc-bar > i { width: .65em; height: .65em; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.sc-bar > i:nth-child(1) { background: #ff5f57; } .sc-bar > i:nth-child(2) { background: #febc2e; } .sc-bar > i:nth-child(3) { background: #28c840; }
.sc-bar > span { margin-left: .6em; }
.sc-bar svg { width: 1.1em; height: 1.1em; color: #a794ff; }
.sc-line { display: block; height: .45em; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.sc-chip { display: inline-flex; align-items: center; gap: .3em; font-size: .68em; font-weight: 600; padding: .3em .7em; border-radius: 999px; white-space: nowrap; }
.sc-chip svg { width: 1em; height: 1em; }
.chip-ok { background: rgba(52, 211, 153, .16); color: #34d399; }
.chip-wait { background: rgba(251, 191, 36, .16); color: #fbbf24; }
.chip-brand { background: var(--brand); color: #fff; box-shadow: 0 .6em 1.4em -.5em var(--brand-glow); }
.sc-swap { position: relative; display: inline-grid; justify-items: start; }
.sc-swap > * { grid-area: 1 / 1; justify-self: stretch; justify-content: center; }
.sc-swap > .chip-ok { background: #0f2c24; }
.sc-ico { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .6em; background: rgba(255, 255, 255, .08); color: #cfc6ff; flex: none; }
.sc-ico svg { width: 1em; height: 1em; }

/* 01 — Web app */
.sc-web { display: grid; grid-template-columns: 5.5em 1fr; }
.sc-web__side { display: grid; gap: .6em; align-content: start; padding: .9em .7em; border-right: 1px solid rgba(255, 255, 255, .07); }
.sc-web__side b { height: .7em; width: 65%; margin-bottom: .4em; border-radius: 999px; background: var(--brand); }
.sc-web__side i { height: .45em; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.sc-web__side i:first-of-type { background: rgba(167, 148, 255, .7); }
.sc-web__main { display: grid; gap: .7em; padding: .9em; }
.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.sc-kpi { padding: .55em .7em; border-radius: .7em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.sc-kpi small { display: block; font-size: .65em; color: rgba(255, 255, 255, .5); }
.sc-kpi b { font-size: 1.05em; letter-spacing: -0.02em; }
.sc-kpi em { font-style: normal; font-size: .62em; color: #34d399; margin-left: .3em; }
.sc-chart { position: relative; padding: .6em; border-radius: .7em; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.sc-chart svg { width: 100%; height: auto; overflow: visible; }
.sc-chart .line { fill: none; stroke: #a794ff; stroke-width: 2.5; stroke-linecap: round; }
.sc-chart .area { fill: rgba(122, 92, 255, .18); }
.sc-chart .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.sc-rows { display: grid; gap: .45em; }
.sc-rows i { height: .5em; border-radius: 999px; background: rgba(255, 255, 255, .12); }

/* 02 — App mobile */
.sc-phones { display: flex; justify-content: center; align-items: center; }
.sc-phone { position: relative; flex: none; width: 12.5em; height: 23em; padding: .45em; border-radius: 2em; background: #0b0b0d; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 2em 4em -1em rgba(0, 0, 0, .8); }
.sc-phone--back { width: 10.5em; height: 19.5em; margin-right: -3em; transform: rotate(-8deg) translateY(1em); opacity: .65; }
.sc-phone--back .sc-phone__screen { background: linear-gradient(160deg, #7a5cff, #4d2deb 55%, #1b1b22); }
.sc-phone__screen { position: relative; display: grid; gap: .6em; align-content: start; height: 100%; padding: 1.9em .75em .75em; overflow: hidden; border-radius: 1.6em; background: #f4f4f5; color: #101010; }
.sc-phone__screen::before { content: ""; position: absolute; top: .45em; left: 50%; width: 3.6em; height: .95em; border-radius: 999px; background: #0b0b0d; transform: translateX(-50%); z-index: 3; }
.sc-app-head { display: flex; justify-content: space-between; align-items: center; }
.sc-app-head small { display: block; font-size: .62em; color: var(--zinc-500); }
.sc-app-head b { font-size: .95em; letter-spacing: -0.02em; }
.sc-app-head i { width: 1.8em; height: 1.8em; border-radius: 50%; background: linear-gradient(135deg, #a794ff, #4d2deb); }
.sc-app-card { padding: .75em; border-radius: 1em; color: #fff; background: linear-gradient(135deg, #4d2deb, #7a5cff); box-shadow: 0 1em 2em -1em rgba(77, 45, 235, .8); }
.sc-app-card small { font-size: .62em; opacity: .8; }
.sc-app-card b { display: block; font-size: 1.4em; letter-spacing: -0.03em; }
.sc-spark { display: flex; align-items: end; gap: .2em; height: 1.6em; margin-top: .3em; }
.sc-spark i { flex: 1; border-radius: .15em; background: rgba(255, 255, 255, .55); }
.sc-app-item { display: flex; align-items: center; gap: .55em; padding: .5em; border-radius: .8em; background: #fff; box-shadow: 0 .3em .8em -.4em rgba(0, 0, 0, .15); }
.sc-app-item > i { flex: none; width: 1.8em; height: 1.8em; border-radius: .6em; background: rgba(77, 45, 235, .12); }
.sc-app-item > span { flex: 1; display: grid; gap: .3em; }
.sc-app-item .sc-line { background: #e4e4e7; height: .4em; }
.sc-app-item .sc-line + .sc-line { width: 60%; }
.sc-app-tabs { position: absolute; left: .7em; right: .7em; bottom: .7em; display: flex; justify-content: space-around; padding: .55em; border-radius: 999px; background: #fff; box-shadow: 0 .4em 1em -.4em rgba(0, 0, 0, .2); }
.sc-app-tabs i { width: .9em; height: .9em; border-radius: .3em; background: #d4d4d8; }
.sc-app-tabs i:first-child { background: var(--brand); }
.sc-push { position: absolute; z-index: 4; top: .5em; left: .45em; right: .45em; display: flex; align-items: center; gap: .5em; padding: .55em .6em; border-radius: 1em; background: rgba(255, 255, 255, .97); box-shadow: 0 .8em 1.6em -.6em rgba(0, 0, 0, .45); font-size: .78em; }
.sc-push > span:first-child { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: .6em; background: var(--brand); color: #fff; }
.sc-push svg { width: 1em; height: 1em; }
.sc-push b { display: block; font-size: .9em; }
.sc-push small { color: var(--zinc-500); font-size: .8em; }

/* 03 — UI/UX */
.sc-canvas { position: relative; height: 21em; overflow: hidden; border-radius: 1em; border: 1px solid rgba(255, 255, 255, .12); background-color: rgba(14, 14, 18, .6); background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 1.2em 1.2em; }
.sc-tools { position: absolute; top: .7em; left: .7em; display: flex; gap: .3em; padding: .3em; border-radius: .6em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.sc-tools i { width: 1.3em; height: 1.3em; border-radius: .35em; background: rgba(255, 255, 255, .12); }
.sc-tools i:first-child { background: var(--brand); }
.sc-board { position: absolute; left: 8%; top: 18%; width: 50%; height: 68%; }
.sc-wire, .sc-styled { position: absolute; inset: 0; display: grid; gap: .5em; align-content: start; padding: .7em; border-radius: .8em; }
.sc-wire { border: 1.5px dashed rgba(255, 255, 255, .35); }
.sc-wire > * { border: 1.5px dashed rgba(255, 255, 255, .3); border-radius: .4em; }
.sc-wire .img, .sc-styled .img { height: 5.5em; }
.sc-wire .t { height: .9em; width: 70%; }
.sc-wire .s { height: .6em; }
.sc-wire .s2 { height: .6em; width: 55%; }
.sc-wire .btn { height: 1.9em; width: 50%; border-radius: 999px; }
.sc-styled { background: #fff; color: #101010; box-shadow: 0 1.5em 3em -1em rgba(0, 0, 0, .6); }
.sc-styled .img { border-radius: .55em; background: radial-gradient(circle at 70% 30%, #a794ff, #4d2deb 55%, #1b1b22); }
.sc-styled b { font-size: .95em; letter-spacing: -0.02em; }
.sc-styled .sc-line { background: #e4e4e7; }
.sc-styled .sc-line + .sc-line { width: 60%; }
.sc-styled .btn { justify-self: start; padding: .45em 1em; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72em; font-weight: 600; }
.sc-select { position: absolute; inset: -.45em; border: 1.5px solid #a794ff; border-radius: .2em; pointer-events: none; }
.sc-select i { position: absolute; width: .6em; height: .6em; background: #fff; border: 1.5px solid #a794ff; }
.sc-select i:nth-child(1) { top: -.35em; left: -.35em; }
.sc-select i:nth-child(2) { top: -.35em; right: -.35em; }
.sc-select i:nth-child(3) { bottom: -.35em; left: -.35em; }
.sc-select i:nth-child(4) { bottom: -.35em; right: -.35em; }
.sc-size { position: absolute; left: 50%; bottom: -2em; margin-left: -2.6em; font-size: .68em; font-weight: 600; padding: .2em .55em; border-radius: .3em; background: #a794ff; color: #101010; white-space: nowrap; }
.sc-panel { position: absolute; top: .7em; right: .7em; bottom: .7em; width: 30%; display: grid; gap: .55em; align-content: start; padding: .75em; border-radius: .8em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.sc-panel small { font-size: .6em; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.sc-swatches { display: flex; gap: .35em; }
.sc-swatches i { width: 1.4em; height: 1.4em; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); }
.sc-cursor { position: absolute; z-index: 5; display: flex; align-items: start; gap: .1em; animation: sc-cursor-ux var(--dur) cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.sc-cursor svg { width: 1.4em; height: 1.4em; filter: drop-shadow(0 .2em .3em rgba(0, 0, 0, .5)); }
.sc-cursor span { margin-top: 1em; font-size: .62em; font-weight: 600; padding: .2em .5em; border-radius: .3em; background: var(--brand); color: #fff; }
@keyframes sc-cursor-ux { 0% { left: 75%; top: 85%; } 8% { left: 50%; top: 78%; } 18% { left: 52%; top: 82%; } 30% { left: 84%; top: 32%; } 40% { left: 88%; top: 32%; } 52% { left: 38%; top: 50%; } 70%, 100% { left: 75%; top: 85%; } }

/* 04 — E-commerce */
.sc-shop { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1em; align-items: center; }
.sc-product { position: relative; overflow: hidden; border-radius: 1em; background: #fff; color: #101010; box-shadow: 0 2em 4em -1.5em rgba(0, 0, 0, .8); }
.sc-product__img { position: relative; display: grid; place-items: center; height: 9em; background: radial-gradient(circle at 30% 25%, #a794ff, #4d2deb 55%, #1b1b22); color: #fff; }
.sc-product__img > svg { width: 3.6em; height: 3.6em; stroke-width: 1.4; animation: sc-bob 3s ease-in-out infinite; }
.sc-product__body { display: grid; gap: .35em; padding: .8em; }
.sc-product__body b { font-size: .95em; letter-spacing: -0.02em; }
.sc-product__row { display: flex; justify-content: space-between; align-items: center; font-size: .8em; }
.sc-product__row strong { font-size: 1.15em; }
.sc-stars { color: #f59e0b; letter-spacing: .05em; font-size: .9em; }
.sc-buy { display: grid; margin-top: .3em; font-size: .75em; font-weight: 600; }
.sc-buy > span { grid-area: 1 / 1; display: grid; place-items: center; height: 2.6em; border-radius: 999px; background: #101010; color: #fff; }
.sc-buy > span + span { background: #16a34a; }
.sc-cart { position: absolute; top: .6em; right: .6em; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #fff; color: #101010; }
.sc-cart svg { width: 1.1em; height: 1.1em; }
.sc-badge { position: absolute; top: -.35em; right: -.35em; display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: #ef4444; color: #fff; font-size: .7em; font-weight: 700; }
.sc-checkout { display: grid; gap: .55em; padding: .9em; }
.sc-checkout h4 { margin: 0; font-size: .85em; letter-spacing: -0.01em; }
.sc-steps { display: flex; justify-content: space-between; font-size: .6em; color: rgba(255, 255, 255, .55); }
.sc-track { height: .35em; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sc-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #a794ff); }
.sc-sum { display: flex; justify-content: space-between; font-size: .72em; color: rgba(255, 255, 255, .7); }
.sc-sum b { color: #fff; }
.sc-sum--total { padding-top: .5em; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82em; }
.sc-pay { display: flex; align-items: center; gap: .5em; padding: .5em .6em; border-radius: .6em; background: rgba(255, 255, 255, .06); font-size: .7em; }
.sc-pay svg { width: 1.2em; height: 1.2em; color: #a794ff; }

/* 05 — Gestionale */
.sc-erp { display: grid; grid-template-columns: 1.7fr 1fr; }
.sc-table { display: grid; gap: .45em; padding: .8em; }
.sc-thead, .sc-tr { display: grid; grid-template-columns: 1.6fr .9fr 1.2fr; align-items: center; gap: .6em; }
.sc-thead { font-size: .58em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .4); padding: 0 .4em; }
.sc-tr { padding: .5em .4em; border-radius: .55em; background: rgba(255, 255, 255, .04); }
.sc-tr > span:first-child { display: flex; align-items: center; gap: .45em; }
.sc-tr > span:first-child i { flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: linear-gradient(135deg, #a794ff, #4d2deb); }
.sc-tr .sc-line { flex: 1; }
.sc-side { display: grid; gap: .5em; align-content: start; padding: .8em; border-left: 1px solid rgba(255, 255, 255, .07); }
.sc-side small { font-size: .62em; color: rgba(255, 255, 255, .5); }
.sc-side b { font-size: 1.25em; letter-spacing: -0.03em; }
.sc-bars { display: flex; align-items: end; gap: .3em; height: 7em; padding-top: .4em; }
.sc-bars i { flex: 1; border-radius: .25em .25em .1em .1em; background: linear-gradient(180deg, #a794ff, var(--brand)); }

/* 06 — API */
.sc-api { display: grid; gap: .8em; justify-items: center; }
.sc-api svg { width: 100%; height: auto; overflow: visible; }
.sc-api .link { fill: none; stroke: rgba(167, 148, 255, .45); stroke-width: 1.5; stroke-dasharray: 4 4; animation: sc-dash 1.2s linear infinite; }
.sc-api .node rect { fill: rgba(20, 20, 26, .85); stroke: rgba(255, 255, 255, .22); }
.sc-api text { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.sc-api .ring { fill: none; stroke: rgba(167, 148, 255, .4); animation: sc-blink 2s ease-in-out infinite; }
.sc-api .pkt { fill: #a794ff; }
.sc-api .pkt--back { fill: #34d399; }
.sc-req { display: flex; align-items: center; gap: .6em; padding: .55em .8em; border-radius: .7em; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .72em; }
.sc-req .m { color: #7dd3fc; font-weight: 700; }
.sc-req .ms { color: rgba(255, 255, 255, .45); }

/* 07 — Cloud & DevOps */
.sc-cloud { display: grid; gap: .9em; }
.sc-pipe { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .4em; }
.sc-pipe > hr { width: 1.2em; margin: 0; border: 0; border-top: 1.5px dashed rgba(255, 255, 255, .25); }
.sc-stage { position: relative; display: grid; gap: .5em; padding: .7em; border-radius: .8em; }
.sc-stage > div { display: flex; align-items: center; gap: .45em; font-size: .75em; font-weight: 600; }
.sc-stage .sc-track i { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.sc-check { position: absolute; top: -.5em; right: -.5em; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #34d399; color: #064e3b; }
.sc-check svg { width: .9em; height: .9em; stroke-width: 3; }
.sc-infra { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: .5em; }
.sc-rack { display: grid; gap: .3em; align-content: start; padding: .5em; border-radius: .7em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.sc-rack > div { display: flex; align-items: center; gap: .3em; padding: .35em .4em; border-radius: .35em; background: rgba(0, 0, 0, .35); }
.sc-rack .sc-line { flex: 1; height: .3em; }
.sc-led { width: .45em; height: .45em; border-radius: 50%; background: #34d399; box-shadow: 0 0 .5em #34d399; animation: sc-blink 1.4s ease-in-out infinite; }
.sc-led.b { background: #a794ff; box-shadow: 0 0 .5em #a794ff; animation-duration: .9s; }
.sc-uptime { display: grid; gap: .2em; align-content: start; padding: .6em; border-radius: .7em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.sc-uptime small { font-size: .6em; color: rgba(255, 255, 255, .5); }
.sc-uptime b { font-size: 1.15em; letter-spacing: -0.03em; }
.sc-uptime .sc-bars { height: 2.4em; gap: .15em; }
.sc-uptime .sc-bars i { background: #34d399; opacity: .8; }
.sc-release { justify-self: center; }

/* 08 — AI */
.sc-chat { display: grid; gap: .6em; padding: .9em; }
.sc-msg { max-width: 82%; padding: .6em .8em; border-radius: 1em; font-size: .78em; line-height: 1.45; }
.sc-msg--me { justify-self: end; border-bottom-right-radius: .3em; background: var(--brand); }
.sc-msg--ai { justify-self: start; display: grid; gap: .45em; border-bottom-left-radius: .3em; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.sc-msg--ai > div { display: flex; justify-content: space-between; align-items: center; gap: .8em; padding: .35em .5em; border-radius: .5em; background: rgba(0, 0, 0, .25); font-size: .92em; }
.sc-typing { justify-self: start; display: flex; gap: .3em; padding: .75em .9em; border-radius: 1em; background: rgba(255, 255, 255, .08); }
.sc-typing i { width: .45em; height: .45em; border-radius: 50%; background: rgba(255, 255, 255, .7); animation: sc-bob .9s ease-in-out infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; }
.sc-typing i:nth-child(3) { animation-delay: .3s; }
.sc-thread { position: relative; display: grid; gap: .6em; }
.sc-thread .sc-typing { position: absolute; left: 0; top: 3.2em; }
.sc-input { display: flex; align-items: center; gap: .5em; margin: 0 .9em .9em; padding: .45em .45em .45em .8em; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .72em; color: rgba(255, 255, 255, .4); }
.sc-input span { flex: 1; }
.sc-input b { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--brand); color: #fff; }
.sc-input svg { width: 1em; height: 1em; }

/* 09 — Monitoraggio */
.sc-mon { display: grid; gap: .7em; padding: .9em; }
.sc-mon__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5em; }
.sc-mon__kpis > div { display: flex; align-items: center; gap: .55em; padding: .55em .7em; border-radius: .7em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.sc-mon__kpis small { display: block; font-size: .6em; color: rgba(255, 255, 255, .5); }
.sc-mon__kpis b { font-size: 1.05em; letter-spacing: -0.02em; }
.sc-ecg { position: relative; height: 4.2em; overflow: hidden; border-radius: .7em; background: rgba(52, 211, 153, .05); border: 1px solid rgba(52, 211, 153, .15); }
.sc-ecg svg { position: absolute; left: 0; top: 0; width: 200%; max-width: none; height: 100%; animation: sc-scroll 3s linear infinite; }
.sc-ecg path { fill: none; stroke: #34d399; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sc-events { display: grid; gap: .4em; }
.sc-event { display: flex; align-items: center; gap: .55em; padding: .4em .5em; border-radius: .6em; background: rgba(255, 255, 255, .04); font-size: .74em; }
.sc-event > span:nth-child(2) { flex: 1; }
.sc-event .sc-ico { width: 1.8em; height: 1.8em; }

/* 10 — Consulenza & MVP */
.sc-road { display: grid; gap: 1em; padding: 1em; }
.sc-road__head { display: flex; justify-content: space-between; align-items: center; font-size: .8em; font-weight: 600; }
.sc-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.sc-timeline::before, .sc-timeline > .fill { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: .85em; height: .25em; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.sc-timeline > .fill { background: linear-gradient(90deg, var(--brand), #a794ff); }
.sc-ms { position: relative; display: grid; justify-items: center; gap: .35em; text-align: center; }
.sc-ms > i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 .3em rgba(77, 45, 235, .3); }
.sc-ms > i svg { width: .95em; height: .95em; }
.sc-ms b { font-size: .75em; }
.sc-ms small { font-size: .6em; color: rgba(255, 255, 255, .5); }
.sc-road__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.sc-road__cards > div { display: grid; gap: .45em; align-content: start; padding: .7em; border-radius: .8em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.sc-road__cards small { font-size: .6em; color: rgba(255, 255, 255, .5); }
.sc-road__cards .sc-sum { font-size: .7em; }
.sc-growth { position: relative; }
.sc-growth .sc-bars { height: 4.2em; }
.sc-rocket { position: absolute; right: 0; top: -.4em; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: #fff; color: var(--brand); }
.sc-rocket svg { width: 1.1em; height: 1.1em; animation: sc-bob 1.6s ease-in-out infinite; }

@media (max-width: 680px) {
  .svc__visual { aspect-ratio: auto; min-height: 20rem; }
  .svc__glass--tl p { display: none; }
  .sc { inset: 4.25rem 1rem 1rem; }
  .sc-phone--back { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sc *, .sc *::before, .sc *::after { animation: none !important; }
  .sc .a-flash, .sc .sc-cursor { display: none; }
}
