/* Font self-hosted (nessuna chiamata a Google Fonts — privacy/GDPR) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/space-grotesk-var.woff2) format('woff2');
}
:root {
  --bg: #0B0C10;
  --bg-2: #101218;
  --surface: #14161E;
  --surface-2: #181B24;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);

  --text: #F3F4F7;
  --text-soft: #A7ADBA;
  --text-faint: #6B7280;

  --accent: #7C5CFF;        /* glows, borders, highlights */
  --accent-soft: #B4A6FF;   /* text/links/em on dark */
  --accent-strong: #5B34E8; /* button fills (white text safe) */
  --accent-glow: rgba(124,92,255,.45);
  --accent-tint: rgba(124,92,255,.14);

  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --r: 16px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.display { font-family: var(--display); }
.accent { color: var(--accent-soft); }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 46px;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--text); color: #0B0C10; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255,255,255,.25); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 0 4px var(--accent-tint); }
.btn-accent { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 24px -10px var(--accent-glow); }
.btn-accent:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 36px -10px var(--accent-glow); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { font-family: var(--display); display: flex; align-items: baseline; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-1px); box-shadow: 0 0 12px var(--accent-glow); }
.brand small { font-family: var(--sans); font-weight: 500; color: var(--text-faint); font-size: 13.5px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.link { font-size: 15px; font-weight: 500; color: var(--text-soft); transition: color .2s var(--ease); position: relative; }
.nav-links a.link:hover { color: var(--text); }
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--accent); transition: width .25s var(--ease);
}
.nav-links a.link:hover::after { width: 100%; }
.nav-links > .btn { display: none; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 116px) 0 clamp(40px, 6vw, 76px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 0 0; z-index: -1;
  background:
    radial-gradient(46% 42% at 82% -5%, rgba(124,92,255,.28), transparent 70%),
    radial-gradient(40% 38% at 0% 26%, rgba(124,92,255,.12), transparent 70%);
  pointer-events: none; filter: saturate(120%);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 6.3vw, 78px);
  line-height: 1.03;
  letter-spacing: -.03em;
  margin: 22px 0 0;
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero .sub {
  margin: 26px 0 0;
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--text-soft);
  max-width: 52ch;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 42px; align-items: center; }
.avail { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--text-soft); }
.avail .pulse { width: 9px; height: 9px; border-radius: 50%; background: #36E27E; position: relative; box-shadow: 0 0 10px rgba(54,226,126,.7); }
.avail .pulse::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid #36E27E; opacity:.5; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{transform:scale(.6);opacity:.6} 100%{transform:scale(1.5);opacity:0} }

/* ---------- Hero layout + portrait + motion ---------- */
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.hero .aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero .aurora span { position: absolute; border-radius: 50%; filter: blur(64px); }
.hero .aurora .a1 { width: 440px; height: 440px; top: -130px; right: -40px; background: radial-gradient(circle, rgba(124,92,255,.5), transparent 70%); animation: drift1 16s ease-in-out infinite; }
.hero .aurora .a2 { width: 360px; height: 360px; bottom: -160px; left: -90px; background: radial-gradient(circle, rgba(56,189,248,.26), transparent 70%); animation: drift2 20s ease-in-out infinite; }

.hero h1 em { position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .08em;
  border-radius: 3px; background: linear-gradient(90deg, var(--accent), #8b5cf6);
  transform: scaleX(1); transform-origin: left; animation: draw 1.1s var(--ease) .9s both;
}

.hero-portrait { display: flex; justify-content: center; position: relative; }
.portrait { position: relative; width: min(360px, 78vw); aspect-ratio: 1 / 1; animation: floatY 6s ease-in-out infinite; }
.portrait .glow { position: absolute; inset: -12%; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, var(--accent), #38bdf8, #c084fc, var(--accent));
  filter: blur(28px); opacity: .42; animation: spin 9s linear infinite; }
.portrait .ring { position: absolute; inset: 0; border-radius: 50%; z-index: 1; padding: 3px;
  background: conic-gradient(from 200deg, var(--accent), #8b5cf6, #38bdf8, var(--accent));
  animation: spin 18s linear infinite; box-shadow: 0 36px 90px -34px rgba(124,92,255,.65); }
.portrait .ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); }
.portrait img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px);
  object-fit: cover; object-position: 50% 20%; border-radius: 50%; z-index: 2; }
.chip-float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: rgba(20,22,30,.74);
  border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600; color: var(--text); box-shadow: 0 16px 34px -18px rgba(0,0,0,.85);
}
.chip-float.c1 { top: 6%; left: -7%; animation: floatChip 5s ease-in-out infinite; }
.chip-float.c2 { bottom: 9%; right: -9%; animation: floatChip 5.6s ease-in-out .6s infinite; }
.chip-float .gdot { width: 9px; height: 9px; border-radius: 50%; background: #36E27E; box-shadow: 0 0 8px rgba(54,226,126,.85); }
.chip-float .stars { color: #FFC93C; letter-spacing: 1px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatChip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-34px,28px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(42px,-22px); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Stats strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.strip-grid > div:first-child { border-left: none; }
.strip .k { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.strip .l { font-size: 13.5px; color: var(--text-soft); margin-top: 10px; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 124px) 0; position: relative; }
.section-head { max-width: 62ch; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.07;
  letter-spacing: -.03em;
  margin: 16px 0 0;
}
.section-head h2 em { font-style: normal; color: var(--accent-soft); }
.section-head p { color: var(--text-soft); margin: 18px 0 0; font-size: 18px; }

/* ---------- Flagship case study ---------- */
#lavori::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 90% 8%, rgba(124,92,255,.10), transparent 70%);
}
#lavori .wrap { position: relative; z-index: 1; }
.case {
  margin-top: 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 50px 100px -60px rgba(0,0,0,.9);
}
.case-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; }
.case-info { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .03em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text-soft); border: 1px solid var(--line); }
.tag.live { background: var(--accent-tint); color: var(--accent-soft); border-color: rgba(124,92,255,.4); }
.case-info h3 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -.02em; margin: 20px 0 0; }
.case-info h3 em { font-style: normal; color: var(--accent-soft); }
.case-info .lede { color: var(--text-soft); margin: 16px 0 0; font-size: 16.5px; }

.case-blocks { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.case-block { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-block .lbl { font-family: var(--display); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; color: var(--accent-soft); padding-top: 2px; }
.case-block .txt { font-size: 15.5px; color: var(--text); }

.case-stage {
  background:
    radial-gradient(120% 120% at 75% 0%, #211b3e 0%, #0E0F16 62%);
  padding: clamp(22px, 3vw, 40px);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-left: 1px solid var(--line);
}
.case-stage::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 44% at 80% 92%, rgba(124,92,255,.4), transparent 70%); }

/* App mockup (faithful reproduction of "Elenco Piatti") */
.mock {
  width: 100%; max-width: 560px;
  background: #FAF7F2; border-radius: 12px;
  box-shadow: 0 36px 70px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden; position: relative; z-index: 1;
  font-size: 11px; line-height: 1.3; color: #1A1714;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.case-stage:hover .mock { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mock-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #E9E2D6; border-bottom: 1px solid #D9CFBF; }
.mock-chrome i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mock-chrome .u { flex: 1; text-align: center; font-size: 10px; color: #8a8175; font-weight: 600; letter-spacing: .02em; }
.mock-body { display: grid; grid-template-columns: 130px 1fr; min-height: 300px; }
.mock-side { background: #D9D9D9; padding: 14px 12px; border-right: 1px solid #c9c4ba; display: flex; flex-direction: column; gap: 14px; }
.mock-side .h6 { margin: 0 0 6px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #2b2926; font-weight: 700; }
.mock-nav { display: flex; flex-direction: column; gap: 3px; }
.mock-nav span { display: flex; align-items: center; gap: 7px; padding: 4px 7px; border-radius: 5px; color: #2b2926; font-weight: 500; }
.mock-nav span.on { background: rgba(0,0,0,.10); font-weight: 700; }
.mock-nav span b { width: 11px; height: 11px; border-radius: 3px; background: #2b2926; opacity: .35; display: inline-block; }
.mock-cat span { display: flex; align-items: center; gap: 7px; padding: 3px 7px; color: #44413c; }
.mock-cat .d { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #8a8175; }
.mock-cat .d.act { border-color: #B23A1F; background: #B23A1F; }
.mock-cat .n { margin-left: auto; color: #8a8175; font-variant-numeric: tabular-nums; }
.mock-logout { margin-top: auto; border: 1px solid #B23A1F; color: #B23A1F; border-radius: 6px; padding: 5px; text-align: center; font-weight: 600; }
.mock-main { background: #FAF7F2; padding: 16px 16px 8px; display: flex; flex-direction: column; }
.mock-main .count { font-size: 9px; color: #6b635a; }
.mock-main .title { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 300; line-height: 1; margin: 5px 0 0; }
.mock-main .title em { font-style: italic; text-decoration: underline; text-decoration-color: #B23A1F; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.mock-tools { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 10px; }
.mock-search { flex: 1; max-width: 180px; height: 24px; border: 1px solid #d8d2c6; border-radius: 6px; background: #fff; display: flex; align-items: center; padding: 0 8px; gap: 6px; color: #9a9186; }
.mock-search b { width: 9px; height: 9px; border: 1.5px solid #b3a99c; border-radius: 50%; display:inline-block; }
.mock-add { background: #1a1714; color: #fff; border-radius: 6px; padding: 5px 10px; font-weight: 600; font-size: 10px; }
.mock-rowhead { display: grid; grid-template-columns: 1fr 120px; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: #948a7d; font-weight: 700; padding: 6px 4px; border-bottom: 1px solid #eee4d4; background: #f6efe3; }
.mock-row { display: grid; grid-template-columns: 14px 1fr 120px; gap: 8px; align-items: center; padding: 9px 4px; border-bottom: 1px solid #f0e8da; }
.mock-row .bar { width: 3px; height: 26px; border-radius: 2px; }
.mock-row .nm { font-weight: 600; color: #2b2926; }
.mock-row .nm small { display: block; font-weight: 400; color: #9a9186; font-size: 9px; margin-top: 1px; }
.mock-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.mock-badges b { font-weight: 600; font-size: 8px; padding: 2px 6px; border-radius: 999px; background: #F2ECE2; color: #6b635a; border: 1px solid #e6dccd; }

/* feature grid */
.feat-grid { margin-top: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feat { padding: 26px clamp(20px,2.4vw,32px); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transition: background .25s var(--ease); }
.feat:nth-child(3n+1) { border-left: none; }
.feat:hover { background: rgba(255,255,255,.02); }
.feat .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-tint); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; border: 1px solid rgba(124,92,255,.25); }
.feat .ic svg { width: 20px; height: 20px; }
.feat h4 { font-family: var(--display); margin: 0 0 6px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.feat p { margin: 0; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }

.stack { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px clamp(20px,2.4vw,32px); border-top: 1px solid var(--line); align-items: center; }
.stack .sl { font-family: var(--display); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); font-weight: 500; margin-right: 6px; }
.stack b { font-weight: 500; font-size: 13.5px; color: var(--text); padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); }

/* placeholder next projects */
.next { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.next-card { border: 1.5px dashed var(--line-2); border-radius: 20px; padding: 34px; background: rgba(255,255,255,.015); transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.next-card:hover { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 4px var(--accent-tint); }
.next-card .t { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.next-card p { margin: 10px 0 0; color: var(--text-soft); font-size: 15px; }

/* ---------- Services ---------- */
.svc-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc::after { content:""; position:absolute; inset:0 0 auto 0; height:1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity:0; transition: opacity .25s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: 0 36px 70px -40px rgba(0,0,0,.9); border-color: var(--line-2); }
.svc:hover::after { opacity:.7; }
.svc .num { font-family: var(--display); font-size: 14px; color: var(--accent-soft); font-weight: 500; }
.svc h3 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; margin: 8px 0 0; }
.svc p { color: var(--text-soft); margin: 12px 0 0; font-size: 15.5px; }
.svc ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.svc li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); align-items: flex-start; }
.svc li svg { width: 17px; height: 17px; color: var(--accent-soft); flex-shrink: 0; margin-top: 2px; }
.svc .foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-faint); }
.svc .foot b { color: var(--text); font-weight: 600; }

/* ---------- Method ---------- */
#metodo .panel {
  margin-top: 52px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(124,92,255,.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 0 26px 0 0; border-top: 2px solid var(--line-2); padding-top: 26px; position: relative; }
.step::before { content:""; position:absolute; top:-2px; left:0; width:40px; height:2px; background: var(--accent); }
.step .n { font-family: var(--display); font-size: 14px; color: var(--accent-soft); font-weight: 500; }
.step h4 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 14px 0 8px; letter-spacing: -.02em; }
.step p { color: var(--text-soft); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* ---------- About ---------- */
.about-grid { margin-top: 52px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.about-body p { font-size: 18px; color: var(--text); line-height: 1.65; margin: 0 0 18px; }
.about-body p.big { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -.02em; }
.about-body p.big em { font-style: normal; color: var(--accent-soft); }
.about-body p:not(.big) { color: var(--text-soft); }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.about-card h5 { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); font-weight: 500; margin: 0 0 16px; }
.about-card h5:not(:first-child) { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips b { font-weight: 500; font-size: 13.5px; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.langs { display: flex; flex-direction: column; gap: 12px; }
.lang { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.lang span:last-child { color: var(--text-soft); font-size: 13.5px; }

/* ---------- Contact ---------- */
#contatti::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(46% 60% at 50% 0%, rgba(124,92,255,.16), transparent 70%);
}
#contatti .wrap { position: relative; z-index: 1; }
.cta-card {
  background:
    radial-gradient(70% 120% at 80% 0%, rgba(124,92,255,.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-2); border-radius: 26px;
  padding: clamp(36px, 6vw, 76px); text-align: center;
  box-shadow: 0 50px 110px -60px rgba(124,92,255,.5);
  position: relative; overflow: hidden;
}
.cta-card h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 16px auto 0; max-width: 18ch; }
.cta-card h2 em { font-style: normal; color: var(--accent-soft); }
.cta-card p { color: var(--text-soft); font-size: 18px; max-width: 46ch; margin: 20px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.contact-rows { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.crow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; padding: 11px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.crow:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 0 4px var(--accent-tint); }
.crow svg { width: 18px; height: 18px; color: var(--accent-soft); }

/* ---------- Footer ---------- */
footer.ft { border-top: 1px solid var(--line); padding: 44px 0; }
.ft-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.ft-inner .brand { font-size: 16px; }
.ft small { color: var(--text-faint); font-size: 13px; line-height: 1.6; }
.ft-links { display: flex; flex-wrap: wrap; gap: 22px; }
.ft-links a { font-size: 14px; color: var(--text-soft); }
.ft-links a:hover { color: var(--accent-soft); }
.ft-legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; max-width: 90ch; }
.ft-legal a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.ft-legal a:hover { color: var(--accent-soft); }

/* ---------- AI use cases ---------- */
.use-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.use {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.use:hover { transform: translateY(-4px); box-shadow: 0 36px 70px -40px rgba(0,0,0,.9); border-color: var(--line-2); }
.use .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-tint); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; border: 1px solid rgba(124,92,255,.25); }
.use .ic svg { width: 20px; height: 20px; }
.use h3 { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; margin: 0 0 10px; }
.use p { margin: 0; color: var(--text-soft); font-size: 15px; }
.use .ba { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; }
.use .ba > span { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text-soft); padding: 12px 0; border-top: 1px solid var(--line); }
.use .ba > span:last-child { padding-bottom: 0; }
.use .ba > span b { font-family: var(--display); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); padding-top: 2px; }
.use .ba .after { color: var(--text); }
.use .ba .after b { color: var(--accent-soft); }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; display: grid; gap: 12px; max-width: 90ch; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: border-color .25s var(--ease); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--display); font-weight: 500; font-size: 17.5px; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-soft); font-size: 24px; line-height: 1; flex-shrink: 0; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--text-soft); font-size: 15.5px; }
.faq details p a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Language switcher ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; font-family: var(--display); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; }
.lang-switch a { padding: 6px 12px; color: var(--text-soft); transition: background .2s var(--ease), color .2s var(--ease); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--accent-tint); color: var(--accent-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* staggered children */
.svc-grid .svc:nth-child(2){ --d:.08s; }
.svc-grid .svc:nth-child(3){ --d:.16s; }
.svc-grid .svc:nth-child(4){ --d:.24s; }
.next .next-card:nth-child(2){ --d:.1s; }
.use-grid .use:nth-child(2){ --d:.07s; }
.use-grid .use:nth-child(3){ --d:.14s; }
.use-grid .use:nth-child(4){ --d:.07s; }
.use-grid .use:nth-child(5){ --d:.14s; }
.use-grid .use:nth-child(6){ --d:.21s; }

.case .feat, .panel .step { opacity:0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.case.in .feat, .panel.in .step { opacity:1; transform:none; }
.case.in .feat:nth-child(2), .panel.in .step:nth-child(2){ transition-delay:.07s; }
.case.in .feat:nth-child(3), .panel.in .step:nth-child(3){ transition-delay:.14s; }
.case.in .feat:nth-child(4), .panel.in .step:nth-child(4){ transition-delay:.21s; }
.case.in .feat:nth-child(5){ transition-delay:.28s; }
.case.in .feat:nth-child(6){ transition-delay:.35s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-portrait { order: -1; }
  .portrait { width: min(300px, 70vw); }
  .case-top { grid-template-columns: 1fr; }
  .case-stage { order: -1; padding: 32px 24px 8px; border-left: none; border-bottom: 1px solid var(--line); }
  .mock { transform: none; max-width: 460px; }
  .case-stage:hover .mock { transform: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .feat:nth-child(2n+1) { border-left: none; }
  .use-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .portrait { width: min(260px, 64vw); }
  .chip-float.c1 { left: -2%; }
  .chip-float.c2 { right: -2%; }
  .chip-float { font-size: 12px; padding: 8px 12px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
  }
  .nav-links.open a.link { padding: 10px 0; width: 100%; font-size: 17px; }
  .nav-links.open > .btn { display: flex; width: 100%; margin-top: 8px; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid > div:nth-child(3) { border-left: none; }
  .strip-grid > div { border-top: 1px solid var(--line); }
  .strip-grid > div:nth-child(-n+2) { border-top: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat, .feat:nth-child(3n+1), .feat:nth-child(2n+1) { border-left: none; }
  .case-block { grid-template-columns: 1fr; gap: 4px; }
  .case-block .lbl { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn:hover, .svc:hover, .use:hover, .crow:hover { transform: none; }
}
