/* =========================================================
   DualisStudio — 2026
   Monocromo duale (nero lacca / bianco carta) + un accento.
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --ink: #f1eee8;
  --ink-2: #b9b5ad;
  --muted: #84817a;   /* ≥ 4.8:1 anche sulle schede scure */
  --line: rgba(241, 238, 232, .12);
  --line-2: rgba(241, 238, 232, .22);
  --card: rgba(255, 255, 255, .035);
  --accent: #ff4a1c;

  --f-display: "Jost", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --nav-h: 76px;
}

body.is-light {
  --bg: #eeebe5;
  --bg-2: #e4e0d8;
  --ink: #0d0d0e;
  --ink-2: #3b3a37;
  --muted: #6f6c66;
  --line: rgba(13, 13, 14, .12);
  --line-2: rgba(13, 13, 14, .24);
  --card: rgba(0, 0, 0, .03);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .9s var(--ease), color .9s var(--ease);
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

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

/* ---------- layer globali ---------- */
#gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}
.no-webgl #gl { display: none; }
.no-webgl .gl-fallback { display: block; }
.gl-fallback {
  display: none; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 62% 45%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(30vmax 30vmax at 40% 60%, rgba(255,74,28,.10), transparent 60%);
}

.grain {
  /* margine del 4%: basta per lo spostamento massimo dell'animazione (3%) e la scheda video
     compone ogni frame il 19% di pixel in meno rispetto al vecchio -10% */
  position: fixed; inset: -4%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
body.is-light .grain { opacity: .05; mix-blend-mode: multiply; filter: invert(1); }
/* dispositivi lenti (rilevati dal regolatore della scena 3D): niente sfocature
   dietro i pannelli e grana ferma — sono gli effetti più costosi durante lo scroll */
.lite * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite .grain { animation: none; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

main, .nav, footer { position: relative; z-index: 2; }

.progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 120; pointer-events: none;
}

/* elementi che JS anima a ogni frame: con un livello proprio il browser aggiorna solo la
   trasformazione, invece di ricomporre i livelli di tutta la pagina a ogni frame */
.progress, .hs-progress i, .steps__line i, .print__bar i, .case__media img { will-change: transform; }

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: #070708; color: #f1eee8;
  display: grid; grid-template-rows: 1fr auto; padding: var(--gutter);
  clip-path: inset(0 0 0 0);
}
.loader__mark {
  align-self: center; justify-self: center; text-align: left;
  font: 300 clamp(48px, 9vw, 150px)/.86 var(--f-display); letter-spacing: -.04em; text-transform: uppercase;
}
.loader__mark .row { display: block; overflow: hidden; }
.loader__mark .row > span { display: inline-block; transform: translateY(105%); }
.loader__mark .row:nth-child(2) { padding-left: .9em; }
.loader__mark b { font-weight: 600; }
.loader__foot {
  display: flex; justify-content: space-between; align-items: end;
  font: 400 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8b8780;
}
.loader__count { font: 300 clamp(56px, 10vw, 140px)/.8 var(--f-display); color: #f1eee8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #f1eee8; transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- utilità tipografiche ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.label.plain::before { display: none; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h-xl {
  font: 300 clamp(44px, 7.4vw, 128px)/.92 var(--f-display); letter-spacing: -.045em; margin: 0;
}
.h-lg {
  font: 300 clamp(38px, 5.4vw, 92px)/.95 var(--f-display); letter-spacing: -.04em; margin: 0;
}
.h-md { font: 400 clamp(26px, 2.6vw, 40px)/1.08 var(--f-display); letter-spacing: -.025em; margin: 0; }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-mask > span { display: inline-block; will-change: transform; }

/* ---------- bottoni ---------- */
.btn {
  --h: 58px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 10px 0 26px; border-radius: 999px;
  font: 500 15px/1 var(--f-body); letter-spacing: -.005em; white-space: nowrap;
  background: var(--ink); color: var(--bg); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), background-color .9s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; }
.btn__ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); transition: transform .6s var(--ease), background-color .9s var(--ease), color .9s;
}
.btn:hover .btn__ico { transform: rotate(-45deg); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 26px; }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
.btn--sm { --h: 46px; padding: 0 8px 0 20px; font-size: 14px; }
.btn--sm .btn__ico { width: 32px; height: 32px; }
.btn svg { width: 16px; height: 16px; }

.link-u { position: relative; display: inline-block; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  transition: transform .7s var(--ease), background-color .5s, backdrop-filter .5s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  display: inline-flex; flex-direction: column; font: 300 19px/.9 var(--f-display); letter-spacing: .02em; text-transform: uppercase;
}
.logo b { font-weight: 600; }
.logo span:last-child { padding-left: .95em; }
.nav__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(10px); }
.nav__links a {
  display: block; padding: 10px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: color .3s, background-color .3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: var(--card); }
.nav__links a sup { font: 500 9px var(--f-mono); color: var(--muted); margin-right: 4px; vertical-align: 4px; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.clock { font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.clock b { color: var(--ink); font-weight: 500; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:first-child { top: 19px; } .burger i:last-child { top: 26px; }
.menu-open .burger i:first-child { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 22.5px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .mmenu { clip-path: inset(0 0 0 0); visibility: visible; }
.mmenu ul { list-style: none; margin: 0; padding: 0; }
.mmenu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mmenu a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font: 300 clamp(36px, 10vw, 64px)/1 var(--f-display); letter-spacing: -.04em; transform: translateY(100%); transition: transform .8s var(--ease); }
.menu-open .mmenu a { transform: none; }
.mmenu a small { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .14em; }
.mmenu__foot { display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }

@media (max-width: 1080px) {
  .nav__links, .clock { display: none; }
  .burger { display: block; }
  .nav .btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 3vh) 0 clamp(28px, 5vh, 56px);
  display: flex; flex-direction: column;
}
.hero .wrap { flex: 1; display: grid; grid-template-rows: auto 1fr auto; position: relative; z-index: 1; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 78%, transparent) 70%);
}
.hero__top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
/* titolo statico "DUALIS": occupa sempre la riga centrale della griglia, visibile solo senza 3D */
.hero__brand {
  display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0;
  font: 300 clamp(68px, 16.5vw, 300px)/.8 var(--f-display); letter-spacing: -.05em; text-transform: uppercase;
  color: var(--ink); pointer-events: none; user-select: none;
}
.hero__brand img { height: .74em; width: auto; margin-right: .03em; }
.hero__brand b { font-weight: 600; }
.no-webgl .hero__brand { visibility: visible; opacity: 1; transition: opacity .8s var(--ease); }
@media (max-width: 899px) { .hero__brand { font-size: clamp(64px, 21vw, 200px); } }
.hero__meta { font: 500 11.5px/1.7 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__meta b { color: var(--ink); font-weight: 500; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

.hero__bottom { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 80px); align-items: end; }
.hero h1 { font: 300 clamp(46px, 7.2vw, 132px)/.9 var(--f-display); letter-spacing: -.05em; margin: 0; }
.hero h1 .serif { letter-spacing: -.02em; }
.hero__side { display: grid; gap: 28px; padding-bottom: 8px; }
.hero__side p { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.15vw, 18px); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 10px;
  font: 500 10.5px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__top .hero__meta:last-child { display: none; }
  .scroll-hint { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; padding: clamp(40px, 8vh, 90px) 0; overflow: hidden; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); }
.marquee__row { display: flex; white-space: nowrap; will-change: transform; }
.marquee__row + .marquee__row { margin-top: 6px; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .45em; padding-right: .45em;
  font: 300 clamp(48px, 8vw, 132px)/1 var(--f-display); letter-spacing: -.04em; text-transform: uppercase;
}
.marquee__item em { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: -.02em; }
.marquee__row.outline .marquee__item { color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.marquee__star { font-size: .38em; color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- sezioni ---------- */
.section { position: relative; padding: clamp(96px, 16vh, 200px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 9vh, 110px); }
.sec-head .label { margin-bottom: 26px; }
.sec-head p { margin: 0; justify-self: end; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { justify-self: start; } }

/* manifesto */
.manifesto { padding: clamp(110px, 22vh, 260px) 0; }
.manifesto__text {
  font: 300 clamp(30px, 4.3vw, 72px)/1.08 var(--f-display); letter-spacing: -.035em; margin: 32px 0 0; max-width: 20ch;
}
.manifesto__text .w { opacity: .14; transition: none; }
.manifesto__text .serif { font-size: 1.04em; }
.stats { margin-top: clamp(64px, 12vh, 140px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__n { font: 300 clamp(44px, 5vw, 84px)/1 var(--f-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat__n small { font-size: .42em; letter-spacing: -.02em; color: var(--muted); margin-left: 4px; }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; max-width: 24ch; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* servizi — carte impilate */
.stack { display: grid; gap: 0; }
.svc {
  position: sticky; top: calc(var(--nav-h) + 20px + var(--i) * 18px);
  min-height: min(76vh, 680px); margin-bottom: 7vh;
  border-radius: 28px; padding: clamp(26px, 3.4vw, 56px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg-2) 92%, #fff 8%), var(--bg-2) 55%);
  box-shadow: inset 0 0 0 1px var(--line), 0 -30px 80px -20px rgba(0,0,0,.6);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 72px);
  transform-origin: 50% 0; overflow: hidden; will-change: transform;
}
.svc:last-child { margin-bottom: 0; }
.svc__dim { position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.svc__num { font: 300 clamp(96px, 15vw, 240px)/.8 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.svc__l { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.svc h3 { font: 300 clamp(34px, 4vw, 66px)/1 var(--f-display); letter-spacing: -.04em; margin: 0 0 18px; }
.svc p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.svc ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.svc li span { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .1em; flex: none; }
.svc__r { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.svc__art { position: relative; aspect-ratio: 1.35; border-radius: 18px; overflow: hidden; background: #050506; box-shadow: inset 0 0 0 1px var(--line); }
.svc__art canvas, .svc__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; min-height: auto; position: relative; top: auto; margin-bottom: 18px; }
}

/* siti vetrina — griglia sfalsata */
.vt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.vt-grid .vt:nth-child(even) { margin-top: clamp(40px, 12vh, 140px); margin-bottom: calc(-1 * clamp(40px, 12vh, 140px)); }
.vt { position: relative; display: block; aspect-ratio: 4 / 3.3; border-radius: 26px; overflow: hidden; isolation: isolate; color: #f1eee8; background: #050506; box-shadow: inset 0 0 0 1px var(--line); }
.vt__media { position: absolute; inset: 0; z-index: -2; }
.vt__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: brightness(.86); transition: transform 1.6s var(--ease), filter 1s; }
.vt:hover .vt__media img { transform: scale(1.12); filter: brightness(1); }
.vt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 28%, transparent 50%, rgba(0,0,0,.82)); }
.vt__top, .vt__bot { position: absolute; left: clamp(20px, 2.2vw, 32px); right: clamp(20px, 2.2vw, 32px); display: flex; justify-content: space-between; gap: 20px; }
.vt__top { top: clamp(18px, 2vw, 28px); font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.vt__bot { bottom: clamp(20px, 2.2vw, 32px); align-items: end; }
.vt h3 { margin: 0; font: 300 clamp(36px, 4vw, 68px)/.9 var(--f-display); letter-spacing: -.045em; }
.vt p { margin: 10px 0 0; max-width: 36ch; color: #d6d1c9; font-size: 15px; }
.vt:hover .case__go { transform: rotate(-45deg) scale(1.08); background: var(--accent); color: #fff; }
.vetrine { padding-bottom: clamp(140px, 24vh, 300px); }
@media (max-width: 900px) {
  .vt-grid { grid-template-columns: 1fr; }
  .vt-grid .vt:nth-child(even) { margin: 0; }
  .vt { aspect-ratio: 4 / 4.6; }
  .vetrine { padding-bottom: clamp(96px, 16vh, 200px); }
}
@media (max-width: 1280px) { .clock { display: none; } }

/* ---------- card servizi interattive ---------- */
.svc--tool { grid-template-columns: .78fr 1.22fr; min-height: min(84vh, 760px); align-items: stretch; }
.svc--tool .svc__num { font-size: clamp(72px, 9vw, 150px); }
.svc--tool .svc__l { justify-content: space-between; }
.svc--tool h3 { font-size: clamp(32px, 3.2vw, 54px); }
.svc ul.svc__mini { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; border: 0; }
.svc .week li { display: block; border: 0; }
.svc .tool p { max-width: none; }
.svc__mini li { display: flex; gap: 10px; align-items: baseline; padding: 0; border: 0; font-size: 14.5px; color: var(--ink-2); }
.svc__mini li::before { content: "—"; color: var(--accent); }
.svc--tool .svc__r { justify-content: center; }
@media (max-height: 820px), (max-width: 1100px) { .svc--tool { position: relative; top: auto; } }
@media (max-width: 1100px) { .svc--tool { grid-template-columns: 1fr; } }

.tool { position: relative; border-radius: 20px; background: #0b0b0d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); padding: clamp(16px, 1.8vw, 26px); color: #f1eee8; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.seg button { padding: 9px 14px; border-radius: 999px; font: 500 13px/1 var(--f-body); color: #b9b5ad; transition: background-color .3s, color .3s; }
.seg button:hover { color: #f1eee8; }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: #f1eee8; color: #0b0b0d; }
.seg--wide { display: flex; }
.seg--wide button { flex: 1; }

/* simulatore performance */
.sim__ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; align-items: end; }
.rng { display: grid; gap: 8px; font-size: 13px; color: #a8a49c; }
.rng span { display: flex; justify-content: space-between; gap: 10px; }
.rng b { color: #f1eee8; font: 500 13px var(--f-mono); }
.rng input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --p: 50%; }
.rng input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(255,255,255,.12) var(--p)); }
.rng input::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.rng input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #f1eee8; box-shadow: 0 0 0 5px rgba(255,74,28,.25); transition: box-shadow .3s; }
.rng input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #f1eee8; box-shadow: 0 0 0 5px rgba(255,74,28,.25); }
.rng input:active::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(255,74,28,.3); }
.sim__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 12px; }
.sim__kpis div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sim__kpis span { display: block; font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8b8780; }
.sim__kpis b { display: block; margin-top: 6px; font: 400 clamp(20px, 2vw, 30px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; transition: color .4s; }
.sim__kpis b.is-neg { color: #ff6b5a; }
.sim__kpis b.is-pos { color: #9be38f; }
.sim__chart { position: relative; height: clamp(170px, 24vh, 240px); }
.sim__chart svg { position: absolute; inset: 0; width: 100%; height: calc(100% - 20px); overflow: visible; }
.sim__grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sim__grid line.zero { stroke: rgba(255,255,255,.28); }
.sim__ylab { position: absolute; left: 0; right: 0; top: 0; bottom: 20px; pointer-events: none; }
.sim__ylab span { position: absolute; left: 4px; transform: translateY(-120%); font: 500 10px var(--f-mono); color: #6f6b65; }
.sim__rev { fill: rgba(241,238,232,.07); stroke: rgba(241,238,232,.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sim__spend { fill: none; stroke: #c9c4bb; stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }   /* investment dashed, margin generated orange above it, net margin = the band (2026-10-18) */
.sim__netA { fill: rgba(255,74,28,.18); stroke: none; }
.sim__net { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sim__hover { stroke: rgba(241,238,232,.5); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .2s; }
.sim__chart:hover .sim__hover { opacity: 1; }
.sim__months { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 500 10px var(--f-mono); color: #6f6b65; }
.sim__months span { width: 0; display: flex; justify-content: center; white-space: nowrap; transition: opacity .3s; }
.sim__months span.off { opacity: .25; }
.sim__tip { position: absolute; top: 0; padding: 10px 12px; border-radius: 12px; background: #f1eee8; color: #0b0b0d; font-size: 12.5px; line-height: 1.5; pointer-events: none; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); z-index: 2; }
.sim__tip b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
.sim__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: #a8a49c; }
.sim__legend { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sim__legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-left: 6px; }
.l-rev { background: rgba(241,238,232,.45); } .l-spend { background: repeating-linear-gradient(90deg, #c9c4bb 0 4px, transparent 4px 7px); } .l-net { background: var(--accent); }
.l-band { background: rgba(255,74,28,.35); height: 8px !important; border-radius: 2px; }
.sim__verdict { color: #f1eee8; font-weight: 500; }
.sim__note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: #6f6b65; }
@media (max-width: 640px) { .sim__ctrl { grid-template-columns: 1fr; } .sim__kpis b { font-size: 19px; } }

/* social: smartphone */
.social__stage { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 2.4vw, 36px); align-items: center; margin-top: 18px; }
.phone { position: relative; width: clamp(200px, 17vw, 250px); aspect-ratio: 9 / 19; border-radius: 38px; padding: 9px; background: linear-gradient(145deg, #3a3a3e, #121214 40%, #2a2a2e); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px #000; transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .9s var(--ease); }
.social:hover .phone { transform: perspective(1200px) rotateY(0) rotateX(0); }
.phone__notch { position: absolute; top: 15px; left: 50%; width: 30%; height: 20px; border-radius: 12px; background: #000; transform: translateX(-50%); z-index: 5; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; font-family: var(--f-body); }
.scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); visibility: hidden; transition: opacity .6s var(--ease), transform .9s var(--ease), visibility 0s linear .6s; color: #fff; }
.scr.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.scr:not(.is-on) > img { animation-play-state: paused; }
.scr > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr--reel > img { animation: kb 9s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1.22) translate(-3%, 2%); } }
.scr--reel::after, .scr--creator::after, .scr--story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 25%, transparent 55%, rgba(0,0,0,.7)); }
.scr__bar { position: absolute; left: 14px; right: 14px; top: 44px; height: 2px; background: rgba(255,255,255,.3); z-index: 2; border-radius: 2px; overflow: hidden; }
.scr__bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; animation: bar 6s linear infinite; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scr__side { position: absolute; right: 10px; bottom: 90px; display: grid; gap: 14px; z-index: 2; text-align: center; font-size: 18px; }
.scr__side small { display: block; font-size: 9px; margin-top: 2px; }
.scr__cap { position: absolute; left: 14px; right: 50px; bottom: 18px; z-index: 2; font-size: 11px; line-height: 1.4; }
.scr__cap b { font-size: 11.5px; }
.scr__cap p { margin: 4px 0; }
.scr__cap small { opacity: .8; font-size: 9.5px; }
.scr--creator .scr__cap { right: 14px; }
.scr__head { display: flex; align-items: center; gap: 7px; padding: 46px 12px 10px; font-size: 11px; background: #000; position: relative; z-index: 2; }
.scr__head i { width: 22px; height: 22px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1.5px #ff4a1c; }
.scr__head span { opacity: .7; }
.scr__head--over { background: transparent; }
.scr--caro { background: #000; }
.caro { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.caro__track { display: flex; height: 100%; transition: transform .8s var(--ease); }
.caro__track img { flex: none; width: 100%; height: 100%; object-fit: cover; }
.caro__dots { position: absolute; bottom: -18px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.caro__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background-color .3s; }
.caro__dots i.on { background: #4aa3ff; }
.scr__actions { display: flex; gap: 12px; padding: 26px 12px 6px; font-size: 15px; }
.scr__actions span { margin-left: auto; }
.scr__txt { padding: 0 12px; font-size: 10.5px; line-height: 1.45; color: #e8e8e8; }
.story__bars { position: absolute; top: 40px; left: 10px; right: 10px; display: flex; gap: 3px; z-index: 2; }
.story__bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.story__bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.scr--story.is-on .story__bars i:nth-child(1)::after { animation: bar 2s linear forwards; }
.scr--story.is-on .story__bars i:nth-child(2)::after { animation: bar 2s linear 2s forwards; }
.scr--story.is-on .story__bars i:nth-child(3)::after { animation: bar 2s linear 4s forwards; }
.story__user { position: absolute; top: 50px; left: 12px; display: flex; align-items: center; gap: 7px; font-size: 11px; z-index: 2; }
.story__user i { width: 24px; height: 24px; border-radius: 50%; background-size: cover; box-shadow: 0 0 0 1.5px #fff; }
.story__user small { opacity: .7; }
.poll { position: absolute; left: 14%; right: 14%; bottom: 22%; z-index: 3; background: #fff; color: #111; border-radius: 14px; padding: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.35); text-align: center; }
.poll p { margin: 0 0 8px; font-weight: 600; font-size: 11.5px; }
.poll button { position: relative; display: flex; justify-content: space-between; width: 100%; padding: 8px 10px; margin-top: 6px; border-radius: 10px; background: #f0f0f0; font: 600 11px var(--f-body); color: #111; overflow: hidden; }
.poll button span, .poll button em { position: relative; z-index: 1; font-style: normal; }
.poll button em { opacity: 0; transition: opacity .3s; }
.poll button i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #ffd35a, #ff4a1c); opacity: .55; transition: width .9s var(--ease); }
.poll.voted button em { opacity: 1; }
.poll.voted button i { width: var(--w); }
.scr__collab { position: absolute; top: 74px; left: 12px; z-index: 2; font-size: 9.5px; opacity: .85; }
.social__side { display: grid; gap: 14px; }
.goal { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.goal__k { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #8b8780; }
.goal b { display: block; margin: 8px 0 6px; font: 400 clamp(24px, 2.2vw, 34px)/1 var(--f-display); letter-spacing: -.03em; color: #fff; }
.goal p { margin: 0; font-size: 13.5px; color: #b9b5ad; }
.week ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.week li { padding: 9px 10px; border-radius: 12px; font-size: 12.5px; background: rgba(255,255,255,.04); color: #8b8780; transition: background-color .4s, color .4s; }
.week li span { display: block; font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.week li.on { background: var(--accent); color: #0a0a0b; }
@media (max-width: 640px) { .social__stage { grid-template-columns: 1fr; justify-items: center; } .social__side { width: 100%; } }

/* branding: generatore */
.brand { --b-bg: #f4ede3; --b-ink: #2a221c; --b-acc: #86662f; --b-mid: #d9cbb4; --b-font: "Cormorant Garamond", serif; --b-w: 500; --b-track: .14em; --b-case: uppercase; --b-style: normal; --b-r: 50%; }
.brand[data-style="audace"] { --b-bg: #0f0f10; --b-ink: #d7ff3a; --b-acc: #ff4a1c; --b-mid: #2b2b2e; --b-font: "Syne", sans-serif; --b-w: 800; --b-track: -.03em; --b-case: uppercase; --b-r: 10px; }
.brand[data-style="naturale"] { --b-bg: #ece5d6; --b-ink: #2f4a37; --b-acc: #8f5a2c; --b-mid: #b9c4a8; --b-font: "Fraunces", serif; --b-w: 500; --b-track: -.02em; --b-case: none; --b-style: italic; --b-r: 58% 42% 55% 45% / 48% 55% 45% 52%; }
.brand[data-style="tecnico"] { --b-bg: #0c1a2b; --b-ink: #e8f1f8; --b-acc: #27b4e6; --b-mid: #1d3550; --b-font: "Jost", sans-serif; --b-w: 500; --b-track: .22em; --b-case: uppercase; --b-r: 4px; }
.brand__ctrl { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; align-items: end; }
.field-b { display: grid; gap: 8px; font-size: 13px; color: #a8a49c; }
.field-b input { height: 44px; border-radius: 999px; border: 0; padding: 0 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #fff; font: 500 15px var(--f-body); outline: none; transition: box-shadow .3s; }
.field-b input:focus { box-shadow: inset 0 0 0 1px #f1eee8; }
.brand__board { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 10px; margin-top: 16px; }
.bb { position: relative; border-radius: 16px; overflow: hidden; background: var(--b-bg); color: var(--b-ink); display: flex; align-items: center; justify-content: center; min-height: 130px; transition: background-color .7s var(--ease), color .7s var(--ease); }
.bb__word, .bb__mark { font-family: var(--b-font); font-weight: var(--b-w); letter-spacing: var(--b-track); text-transform: var(--b-case); font-style: var(--b-style); transition: letter-spacing .7s var(--ease); }
.bb--logo { grid-row: span 2; flex-direction: column; gap: 14px; min-height: 280px; text-align: center; padding: 20px; }
.bb--logo .bb__word { font-size: clamp(24px, 2.6vw, 40px); line-height: 1; }
.bb__tag { font: 500 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--b-acc); transition: color .7s; }
.bb__mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--b-r); background: var(--b-acc); color: var(--b-bg); font-size: 32px; letter-spacing: 0; transition: border-radius .8s var(--ease), background-color .7s, color .7s; }
.brand[data-style="tecnico"] .bb__mark { background: transparent; color: var(--b-acc); box-shadow: inset 0 0 0 2px var(--b-acc); }
.brand[data-style="elegante"] .bb__mark { background: transparent; color: var(--b-acc); box-shadow: inset 0 0 0 1.5px var(--b-acc); font-style: italic; }
.bb--card { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 16px; gap: 8px; background: var(--b-ink); color: var(--b-bg); }
.bb--card .bb__word { font-size: 17px; }
.bb__line { width: 28px; height: 2px; background: var(--b-acc); transition: background-color .7s; }
.bb__meta { font: 500 9.5px var(--f-mono); letter-spacing: .08em; opacity: .7; }
.bb--icon { background: var(--b-mid); }
.bb--icon .bb__mark { width: 74px; height: 74px; border-radius: 20px; font-size: 36px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.bb--pal { padding: 0; align-items: stretch; }
.bb--pal i { flex: 1; position: relative; transition: background-color .7s var(--ease); }
.bb--pal em { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 500 8.5px var(--f-mono); font-style: normal; letter-spacing: .04em; writing-mode: vertical-rl; transform: rotate(180deg); bottom: auto; top: 50%; translate: 0 -50%; }
.bb--type { flex-direction: column; gap: 4px; background: var(--b-mid); }
.bb__aa { font-family: var(--b-font); font-weight: var(--b-w); font-style: var(--b-style); font-size: 52px; line-height: 1; }
.bb__fname { font: 500 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
/* insegna orizzontale a tutta larghezza */
.bb--bag { grid-column: 1 / -1; min-height: 84px; flex-direction: row; justify-content: flex-start; gap: 16px; padding: 0 24px; background: var(--b-acc); color: var(--b-bg); }
.bb--bag::after { content: "Insegna"; margin-left: auto; font: 500 9.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.bb--bag .bb__mark { width: 44px; height: 44px; font-size: 22px; background: var(--b-bg); color: var(--b-acc); box-shadow: none; }
.bb--bag .bb__word { font-size: clamp(18px, 1.8vw, 26px); }
.brand .bb--bag .bb__mark { background: var(--b-bg); color: var(--b-acc); box-shadow: none; }
.brand.is-swap .bb__word, .brand.is-swap .bb__mark, .brand.is-swap .bb__aa { animation: swap .7s var(--ease); }
@keyframes swap { 0% { opacity: 0; transform: translateY(10px); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
@media (max-width: 640px) {
  .brand__ctrl { grid-template-columns: 1fr; }
  .brand__board { grid-template-columns: 1fr 1fr; }
  .bb--logo { grid-column: span 2; grid-row: auto; min-height: 200px; }
}

/* studio stampa 3D (sezione servizi) */
.print { margin: 0 0 clamp(64px, 12vh, 140px); }
.print__stage {
  position: relative; height: min(86svh, 920px); border-radius: 28px; overflow: hidden; color: #1d1915;
  background:
    radial-gradient(70% 60% at 50% 38%, #f6f3ee 0%, rgba(246,243,238,0) 70%),
    linear-gradient(180deg, #e7e2da 0%, #d6d0c6 62%, #c7c0b5 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 100px -50px rgba(0,0,0,.8);
}
.print__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(60,50,40,.22)); }
.print__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.print__top { position: absolute; top: 22px; left: 26px; right: 26px; display: flex; justify-content: space-between; gap: 16px; z-index: 2; }
.print__kicker { font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6d655b; }
.print__caps { position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(36px, 5vw, 60px); width: min(380px, calc(100% - 40px)); min-height: 150px; z-index: 2; }
.print__cap { position: absolute; left: 0; bottom: 0; opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease), translate .8s var(--ease); pointer-events: none; }
.print__cap.is-on { opacity: 1; translate: none; }
.print__cap span { font: 500 11px var(--f-mono); letter-spacing: .14em; color: var(--accent); }
.print__cap h3 { margin: 10px 0 8px; font: 400 clamp(26px, 2.6vw, 40px)/1.02 var(--f-display); letter-spacing: -.03em; }
.print__cap p { margin: 0; font-size: 15px; color: #4d463e; }
.print__bar { position: absolute; left: 26px; right: 26px; bottom: 18px; height: 2px; background: rgba(29,25,21,.12); z-index: 2; }
.print__bar i { position: absolute; inset: 0; background: #1d1915; transform-origin: 0 50%; transform: scaleX(0); }
/* senza 3D (o su dispositivi troppo lenti): le quattro didascalie diventano una scheda statica */
.print.is-static .print__stage { height: auto; padding: clamp(84px, 9vw, 120px) clamp(20px, 3vw, 44px) clamp(36px, 5vw, 60px); }
.print.is-static .print__gl, .print.is-static .print__bar { display: none; }
.print.is-static .print__caps { position: relative; left: auto; bottom: auto; width: auto; min-height: 0; display: grid; gap: clamp(22px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.print.is-static .print__cap { position: relative; opacity: 1; translate: none; }
@media (max-width: 899px) {
  .print__stage { height: 78svh; }
  .print__top span:last-child { display: none; }
  .print__caps { min-height: 130px; }
}

/* showcase orizzontale */
.showcase { padding-bottom: 0; }
.hscroll { position: relative; overflow: hidden; }
.hscroll__track { display: flex; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gutter) clamp(80px, 12vh, 140px); width: max-content; will-change: transform; }
.case {
  position: relative; width: min(64vw, 980px); flex: none; border-radius: 26px; overflow: hidden;
  aspect-ratio: 16 / 10.4; background: #050506; box-shadow: inset 0 0 0 1px var(--line);
  transform-style: preserve-3d; isolation: isolate;
}
.case__media { position: absolute; inset: -6% -12%; z-index: -2; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.92) brightness(.82); }
.case:hover .case__media img { transform: scale(1.1); filter: saturate(1.05) brightness(.95); }
.case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 30%, transparent 50%, rgba(0,0,0,.85)); }
.case__top, .case__bot { position: absolute; left: clamp(20px, 2.4vw, 36px); right: clamp(20px, 2.4vw, 36px); color: #f1eee8; display: flex; justify-content: space-between; gap: 20px; }
.case__top { top: clamp(20px, 2.4vw, 32px); font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.case__top span:last-child { display: inline-flex; gap: 8px; align-items: center; color: #d9d5ce; }
.case__bot { bottom: clamp(20px, 2.4vw, 34px); align-items: end; }
.case h3 { margin: 0; font: 300 clamp(38px, 4.6vw, 80px)/.9 var(--f-display); letter-spacing: -.045em; }
.case h3 i { font-family: var(--f-serif); color: var(--accent); margin: 0 .12em; }
.case p { margin: 12px 0 0; max-width: 40ch; color: #cfcac2; font-size: 15px; }
.case__go { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #f1eee8; color: #0a0a0b; display: grid; place-items: center; transition: transform .6s var(--ease), background-color .3s; }
.case:hover .case__go { transform: rotate(-45deg) scale(1.08); background: var(--accent); color: #fff; }
.case__go svg { width: 20px; height: 20px; }
.case--cta { display: grid; place-items: center; text-align: center; background: var(--accent); color: #0a0a0b; width: min(42vw, 620px); }
.case--cta::after { display: none; }
.case--cta h3 { font-size: clamp(40px, 4.4vw, 76px); }
.case--cta p { color: #2a0a02; margin: 18px auto 30px; }
.case--cta .btn { background: #0a0a0b; color: #f1eee8; }
.case--cta .btn__ico { background: #f1eee8; color: #0a0a0b; }
.case--cta .btn::before { background: #f1eee8; }
.case--cta .btn:hover { color: #0a0a0b; }
.case--cta .btn:hover .btn__ico { background: #0a0a0b; color: #f1eee8; }
.hs-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 6vh, 64px); height: 1px; background: var(--line); }
.hs-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.showcase__note { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .hscroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll__track { padding-bottom: 80px; }
  .case { width: 84vw; aspect-ratio: 4 / 5.2; scroll-snap-align: center; }
  .case--cta { width: 84vw; }
  .hs-progress { display: none; }
}

/* metodo */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 120px); }
.method__sticky { position: sticky; top: calc(var(--nav-h) + 6vh); align-self: start; }
.method__sticky p { margin-top: 28px; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 56px; }
.steps__line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; transform: scaleY(0); }
.step { position: relative; padding: 0 0 clamp(64px, 12vh, 130px); }
.step h3, .step p { opacity: .7; transition: opacity .7s var(--ease); }   /* fase non ancora raggiunta: attenuata ma leggibile */
.step.is-on h3, .step.is-on p { opacity: 1; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -51px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .5s, box-shadow .5s; }
.step.is-on::before { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.step__when { font: 500 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.step h3 { margin: 14px 0 16px; font: 300 clamp(40px, 4.6vw, 76px)/.95 var(--f-display); letter-spacing: -.045em; }
.step h3 sup { font: 500 12px var(--f-mono); letter-spacing: .1em; color: var(--muted); vertical-align: 2.6em; margin-right: 10px; }
.step p { margin: 0; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; } .method__sticky { position: relative; top: 0; } }

/* domande frequenti */
.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 120px); }
.faq__head { position: sticky; top: calc(var(--nav-h) + 6vh); align-self: start; }
.faq__head p { margin-top: 28px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: grid; grid-template-columns: 44px 1fr 22px; gap: 14px; align-items: baseline; padding: 26px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq__n { font: 500 11.5px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.faq__item h3 { margin: 0; font: 500 clamp(18px, 1.5vw, 22px)/1.3 var(--f-body); letter-spacing: -.01em; transition: color .4s var(--ease); }
.faq__item summary:hover h3 { color: var(--ink-2); }
.faq__ico { position: relative; width: 14px; height: 14px; align-self: center; }
.faq__ico::before, .faq__ico::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.faq__ico::after { transform: rotate(90deg); }
.faq__item[open] .faq__ico::after { transform: rotate(0deg); }
.faq__item[open] .faq__ico::before { background: var(--accent); }
.faq__a { padding: 0 36px 28px 58px; }
.faq__a p { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.faq__a b { color: var(--ink); font-weight: 500; }
.faq__item[open] .faq__a { animation: faq-in .6s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .faq__item[open] .faq__a { animation: none; } }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; } .faq__head { position: relative; top: 0; }
  .faq__item summary { grid-template-columns: 34px 1fr 18px; padding: 22px 0; }
  .faq__a { padding: 0 0 24px 48px; }
}

/* principi */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.rule { padding: 36px 32px 8px 0; }
.rule + .rule { padding-left: 32px; border-left: 1px solid var(--line); }
.rule span { font: 500 11px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.rule h4 { margin: 22px 0 12px; font: 400 clamp(22px, 1.9vw, 30px)/1.12 var(--f-display); letter-spacing: -.02em; }
.rule p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr; } .rule + .rule { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* pricing */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 18px 18px 18px 26px; border-radius: 20px; margin-bottom: 28px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.promo strong { font: 400 clamp(18px, 1.5vw, 23px)/1.2 var(--f-display); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 14px; }
.promo__slots { display: flex; align-items: center; gap: 12px; font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.promo__slots i { width: 22px; height: 6px; border-radius: 3px; background: var(--accent); display: inline-block; }
.promo__slots i.off { background: color-mix(in srgb, var(--ink) 18%, transparent); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 1400px; }
.plan {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; border-radius: 24px; padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 22px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .4s;
}
.plan::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.10), transparent 45%);
}
.plan:hover::before { opacity: 1; }
.plan:hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0,0,0,.8); }
.plan.is-featured { background: var(--ink); color: var(--bg); box-shadow: none; }
.plan.is-featured .plan__tier, .plan.is-featured .plan__old, .plan.is-featured .plan__time { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.plan.is-featured li { border-color: color-mix(in srgb, var(--bg) 14%, transparent); }
.plan.is-featured .btn { background: var(--bg); color: var(--ink); }
.plan.is-featured .btn__ico { background: var(--ink); color: var(--bg); }
.plan.is-featured::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0,0,0,.07), transparent 45%); }
.plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan__name { margin: 0; font: 400 26px/1 var(--f-display); letter-spacing: -.02em; }
.plan__tier { font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan__tag { position: absolute; top: -12px; right: 22px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #0a0a0b; font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.plan__price { font: 300 clamp(48px, 4.6vw, 74px)/.9 var(--f-display); letter-spacing: -.05em; transform: translateZ(30px); }
.plan__price small { font-size: .34em; letter-spacing: -.01em; }
.plan__old { margin-top: 10px; font-size: 14px; color: var(--muted); }
.plan__old s { text-decoration-thickness: 1px; }
.plan__time { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.plan li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; display: flex; gap: 10px; }
.plan li::before { content: "+"; font-family: var(--f-mono); color: var(--accent); }
.plan .btn { width: 100%; justify-content: space-between; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* servizi a parte */
.addons { margin-top: clamp(40px, 7vh, 72px); }
.addons__head { display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: baseline; margin-bottom: 20px; }
.addons__head p { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 15.5px; justify-self: end; text-align: right; }
.addons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.addon { position: relative; padding: 26px 26px 28px; border-radius: 22px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .4s, transform .6s var(--ease); }
.addon:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-4px); }
.addon__k { font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.addon h3 { margin: 4px 0 0; font: 400 clamp(22px, 1.9vw, 28px)/1.1 var(--f-display); letter-spacing: -.02em; }
.addon__price { font: 300 clamp(34px, 3vw, 46px)/1 var(--f-display); letter-spacing: -.04em; margin: 6px 0 4px; }
.addon__price small { font-size: .42em; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.addon__price .pre { font-size: .42em; letter-spacing: 0; color: var(--muted); margin-right: 8px; }
.addon p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .addons__head { grid-template-columns: 1fr; }
  .addons__head p { justify-self: start; text-align: left; }
  .addons__grid { grid-template-columns: 1fr; }
}

.compare { margin-top: 28px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(10px); }
.compare summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; font: 400 clamp(18px, 1.5vw, 22px)/1.2 var(--f-display); }
.compare summary::-webkit-details-marker { display: none; }
.compare summary i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-style: normal; transition: transform .5s var(--ease); flex: none; }
.compare[open] summary i { transform: rotate(45deg); }
.table-wrap { overflow-x: auto; padding: 0 28px 28px; }
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 12px; text-align: center; border-top: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; }
.compare thead th { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.compare td small { display: block; color: var(--muted); font-size: 12.5px; }
.compare .y { color: var(--accent); font-weight: 600; }
.compare .n { color: var(--muted); }
.payinfo { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.payinfo > div { padding: 22px 24px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; color: var(--ink-2); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.payinfo b { display: block; color: var(--ink); font: 400 18px/1.2 var(--f-display); margin-bottom: 8px; }
@media (max-width: 900px) { .payinfo { grid-template-columns: 1fr; } }

/* software — nuovo ramo in arrivo */
.soft__badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.soft__sectors { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 clamp(28px, 5vh, 48px); }
.soft__sectors span { padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--ink-2); }
.soft__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sw { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 26px; border-radius: 26px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s, transform .6s var(--ease); }
.sw:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-6px); }
.sw > :not(.sw__ui) { margin-left: 12px; margin-right: 12px; }
.sw__k { margin-top: 14px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sw h3 { margin: 2px 0 0; font: 400 clamp(22px, 1.9vw, 28px)/1.1 var(--f-display); letter-spacing: -.025em; }
.sw p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* finta interfaccia del gestionale */
.sw__ui { position: relative; border-radius: 18px; padding: 14px; min-height: 250px; background: linear-gradient(160deg, #17181c, #0e0f12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -40px rgba(0,0,0,.9); color: #e9e7e2; font-size: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.ui__bar { display: flex; align-items: center; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ui__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ui__bar i:first-child { background: #ff5f57; } .ui__bar i:nth-child(2) { background: #febc2e; } .ui__bar i:nth-child(3) { background: #28c840; }
.ui__bar span { margin-left: 8px; font: 500 10.5px var(--f-mono); letter-spacing: .06em; color: #8b8780; }
.ui__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui__kpis div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.ui__kpis small { display: block; color: #8b8780; font-size: 10px; }
.ui__kpis b { font: 500 17px var(--f-body); letter-spacing: -.02em; }
.ui__chart { flex: 1; min-height: 70px; display: flex; align-items: flex-end; gap: 6px; padding: 4px 2px 0; }
.ui__chart i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); transform-origin: bottom; transform: scaleY(.05); transition: transform 1.2s var(--ease); }
.ui__chart i:nth-child(2) { transition-delay: .06s; } .ui__chart i:nth-child(3) { transition-delay: .12s; } .ui__chart i:nth-child(4) { transition-delay: .18s; } .ui__chart i:nth-child(5) { transition-delay: .24s; } .ui__chart i:nth-child(6) { transition-delay: .3s; }
.ui__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ui__list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.ui__list em { font-style: normal; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; }
.ui__list .ok { background: rgba(40,200,64,.16); color: #6be07f; }
.ui__list .warn { background: rgba(254,188,46,.16); color: #ffd37a; }
.ui__site { display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.ui__site div { display: flex; justify-content: space-between; gap: 8px; }
.ui__site b { font-family: var(--f-mono); font-weight: 500; }
.ui__site > i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.ui__site > i::after { content: ""; position: absolute; inset: 0; width: var(--p); background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.ui__team { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8b8780; font-size: 10.5px; }
.ui__team div { display: flex; }
.ui__team i { width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font: 600 9px var(--f-body); font-style: normal; color: #0e0f12; background: #e9e7e2; box-shadow: 0 0 0 2px #14151a; }
.ui__team i:nth-child(2) { background: #ffb08f; } .ui__team i:nth-child(3) { background: #9fd4ff; } .ui__team i:nth-child(4) { background: #2a2b31; color: #e9e7e2; }
.ui__team em { font-style: normal; color: #e9e7e2; }
.ui__doc { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #f4f1ec; color: #1b1a17; }
.ui__row, .ui__tot { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.12); opacity: 0; transform: translateX(-8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ui__row b { font-family: var(--f-mono); font-weight: 500; font-size: 11px; }
.ui__tot { border: 0; padding-top: 8px; font-weight: 600; }
.ui__tot b { color: #c8330a; font-size: 14px; }   /* arancio più profondo: leggibile sul fondo chiaro */
.ui__row:nth-child(2) { transition-delay: .1s; } .ui__row:nth-child(3) { transition-delay: .2s; } .ui__row:nth-child(4) { transition-delay: .3s; } .ui__tot { transition-delay: .45s; }
.ui__actions { display: flex; gap: 6px; margin-top: auto; }
.ui__actions span { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 11px; background: rgba(255,255,255,.06); }
.ui__actions .on { background: var(--accent); color: #0a0a0b; }
/* l'interfaccia si "accende" quando la card entra in vista */
.sw.is-in .ui__chart i { transform: none; }
.sw.is-in .ui__site > i::after { transform: none; }
.sw.is-in .ui__row, .sw.is-in .ui__tot { opacity: 1; transform: none; }
.soft__cta { margin-top: clamp(32px, 6vh, 56px); display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding: 26px 28px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.soft__cta p { margin: 0; max-width: 60ch; color: var(--ink-2); }
@media (max-width: 1000px) { .soft__grid { grid-template-columns: 1fr; } .sw__ui { min-height: 230px; } }
@media (prefers-reduced-motion: reduce) {
  .ui__chart i, .ui__site > i::after, .ui__row, .ui__tot { transform: none; opacity: 1; transition: none; }
}

/* chi siamo */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.about__story p { color: var(--ink-2); margin: 0 0 18px; max-width: 54ch; }
.about__story p:first-child { font: 300 clamp(22px, 2vw, 30px)/1.3 var(--f-display); color: var(--ink); letter-spacing: -.015em; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(56px, 10vh, 110px); }
.founder { position: relative; border-radius: 24px; padding: 28px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #0d0d0e; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(13, 13, 14, .08), 0 40px 80px -48px rgba(13, 13, 14, .28); }   /* white cards, orange monograms (2026-10-18) */
.founder__mono { font: 300 clamp(110px, 12vw, 190px)/.8 var(--f-display); letter-spacing: -.07em; color: var(--accent); }
.founder__role { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6f6c66; }
.founder h3 { margin: 10px 0 10px; font: 400 clamp(28px, 2.6vw, 40px)/1 var(--f-display); letter-spacing: -.03em; }
.founder p { margin: 0; color: #3b3a37; font-size: 15.5px; max-width: 40ch; }
.founder a { display: inline-block; margin-top: 16px; font: 500 13px var(--f-mono); letter-spacing: .06em; }
.more { margin-top: 10px; }
.more summary { cursor: pointer; list-style: none; display: inline-flex; gap: 10px; align-items: center; font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 16px; transition: transform .4s var(--ease); }
.more[open] summary::after { transform: rotate(45deg); }
.more > div { padding-top: 18px; }
@media (max-width: 900px) { .about__grid, .founders { grid-template-columns: 1fr; } .founder { min-height: 280px; } }

/* contatti */
.contact { padding-bottom: clamp(60px, 10vh, 120px); }
.contact__title { font: 300 clamp(56px, 11vw, 210px)/.86 var(--f-display); letter-spacing: -.06em; margin: 28px 0 0; }
.contact__title .serif { letter-spacing: -.03em; }
.contact__row { margin-top: clamp(48px, 9vh, 100px); display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.orb {
  width: clamp(170px, 17vw, 240px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--accent); color: #0a0a0b; font: 400 18px/1.15 var(--f-display); letter-spacing: -.01em; position: relative;
  transition: background-color .4s;
}
.orb span { display: block; max-width: 9ch; }
.orb::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: inset .6s var(--ease); }
.orb:hover::after { inset: -26px; }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.channel { position: relative; padding: 24px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 32px; justify-content: space-between; min-height: 200px; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(10px); overflow: hidden; transition: box-shadow .4s, transform .6s var(--ease); }
.channel:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-4px); }
.channel b { font: 400 22px/1.15 var(--f-display); letter-spacing: -.02em; display: block; }
.channel span { color: var(--muted); font-size: 14.5px; }
.channel__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .4s, color .4s, transform .6s var(--ease); }
.channel:hover .channel__ico { background: var(--accent); color: #fff; transform: rotate(-45deg); }
.channel__ico svg { width: 18px; height: 18px; }
.guarantees { margin-top: clamp(48px, 8vh, 90px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.guarantees div { padding: 24px 24px 0 0; display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); font-size: 15.5px; }
.guarantees div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.guarantees span { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .12em; }
.people { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 15px; }
.people span { display: block; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 1000px) {
  .contact__row { grid-template-columns: 1fr; }
  .channels, .guarantees { grid-template-columns: 1fr; }
  .guarantees div + div { padding-left: 0; border-left: 0; }
  .people { grid-template-columns: 1fr 1fr; }
}

/* pulsanti social */
.socials { margin-top: clamp(40px, 7vh, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.soc {
  position: relative; display: flex; align-items: center; gap: 18px; min-height: 96px; padding: 18px 18px 18px 22px;
  border-radius: 24px; color: #fff; overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .5s var(--ease);
}
.soc--li { background: #0a66c2; box-shadow: 0 24px 50px -28px rgba(10,102,194,.9); }
.soc--ig { background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); box-shadow: 0 24px 50px -28px rgba(238,42,123,.9); }
.soc::before {  /* riflesso che attraversa il pulsante al passaggio */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.soc:hover::before { transform: translateX(120%); }
.soc:hover { box-shadow: 0 34px 70px -28px rgba(0,0,0,.7); }
.soc__ico { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.16); }
.soc__ico svg { width: 26px; height: 26px; }
.soc__txt { display: grid; gap: 4px; min-width: 0; }
.soc__txt b { font: 400 clamp(24px, 2.2vw, 32px)/1 var(--f-display); letter-spacing: -.03em; }
.soc__txt small { font-size: 13.5px; opacity: .85; }
.soc__go { margin-left: auto; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; transition: transform .6s var(--ease); }
.soc--li .soc__go { color: #0a66c2; }
.soc--ig .soc__go { color: #ee2a7b; }
.soc__go svg { width: 18px; height: 18px; }
.soc:hover .soc__go { transform: rotate(-45deg) scale(1.08); }
@media (max-width: 700px) { .socials { grid-template-columns: 1fr; } .soc { min-height: 84px; } }

/* footer */
footer { padding: 0 0 28px; overflow: hidden; }
.foot__word {
  font: 300 clamp(50px, 12.4vw, 250px)/.8 var(--f-display); letter-spacing: -.06em; text-transform: uppercase;
  white-space: nowrap; margin: 0 0 clamp(20px, 3vh, 40px); display: flex; justify-content: space-between;
}
.foot__word b { font-weight: 600; }
.foot__word .ch { display: inline-block; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot__bar nav { display: flex; gap: 22px; flex-wrap: wrap; }
/* "Questo sito, misurato" */
.proof { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(28px, 5vh, 48px) 0; margin-bottom: clamp(28px, 5vh, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__head p { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 36ch; }
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proof__list li { display: grid; gap: 8px; align-content: start; }
.proof__list b { font: 300 clamp(34px, 3.4vw, 52px)/1 var(--f-display); letter-spacing: -.04em; white-space: nowrap; }
.proof__list b small { font: 500 12px var(--f-mono); letter-spacing: .08em; color: var(--muted); margin-left: 4px; }
.proof__list li > span { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.proof__cta { grid-column: 2; justify-self: start; font-size: 14px; }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } .proof__list { grid-template-columns: 1fr 1fr; gap: 24px 18px; } .proof__cta { grid-column: 1; } }

.foot__bar a:hover { color: var(--ink); }

/* ---------- modale prenotazione ---------- */
.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: rgba(5,5,6,.6); backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal__bg { opacity: 1; }
.modal__card {
  position: relative; width: min(640px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: 28px;
  background: #111113; color: #f1eee8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 50px 120px -30px rgba(0,0,0,.9);
  padding: clamp(24px, 4vw, 40px); transform: translateY(30px) scale(.97); opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.modal.is-open .modal__card { transform: none; opacity: 1; }
.modal__x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); display: grid; place-items: center; font-size: 18px; }
.modal h3 { font: 300 clamp(30px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -.035em; margin: 14px 0 8px; }
.modal p.note { margin: 0 0 24px; color: #8b8780; font-size: 14px; }
.modal fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.modal legend { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8b8780; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: 14px; line-height: 1.15; text-align: center; transition: background-color .25s, color .25s, box-shadow .25s; }
.chip small { display: block; font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8b8780; }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.chip[aria-pressed="true"] { background: #f1eee8; color: #0a0a0b; box-shadow: none; }
.chip[aria-pressed="true"] small { color: #555; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8b8780; }
.field input, .field select {
  height: 52px; border-radius: 14px; border: 0; padding: 0 16px; font: 400 16px var(--f-body); color: #f1eee8;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); outline: none; transition: box-shadow .25s;
}
.field input:focus, .field select:focus { box-shadow: inset 0 0 0 1px #f1eee8; }
.field select option { background: #111113; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
/* call con il calendario Google: al posto del modulo, la pagina di prenotazione */
.modal__cal { display: none; }
.modal__card.is-cal .modal__cal { display: block; }
.modal__card.is-cal [data-only="call"], .modal__card.is-cal .field, .modal__card.is-cal .modal__actions, .modal__card.is-cal .form-msg { display: none; }
.modal--cal .modal__card { width: min(980px, 100%); }
.modal__cal iframe { display: block; width: 100%; height: min(660px, calc(100svh - 250px)); min-height: 420px; border: 0; border-radius: 18px; background: #fff; }
.modal__cal .note { margin: 14px 0 0; }
.modal__privacy { margin: 16px 0 0; font-size: 12.5px; }
.modal .btn { background: #f1eee8; color: #0a0a0b; }
.modal .btn__ico { background: #0a0a0b; color: #f1eee8; }
.modal .btn--ghost { background: transparent; color: #f1eee8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.modal .btn--ghost::before { background: #f1eee8; }
.modal .btn--ghost:hover { color: #0a0a0b; }
.modal .btn[disabled] { opacity: .35; pointer-events: none; }
.form-msg { margin-top: 14px; font-size: 13.5px; color: #8b8780; min-height: 1.2em; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; translate: 0 42px; transition: opacity 1.2s var(--ease), translate 1.3s var(--ease), transform .5s var(--ease), box-shadow .4s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s; }
.js [data-reveal].is-in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  .grain, .pulse::after, .scroll-hint i { animation: none; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .manifesto__text .w { opacity: 1; }
  .step { opacity: 1; }
}

/* voce di menu "Software" in arrivo */
.nav__links a.nav__new sup { color: var(--accent); font-size: 8px; animation: blink 1.6s ease-in-out infinite; }
.nav.is-hidden .nav__links a.nav__new sup { animation-play-state: paused; }   /* menu nascosto: niente lavoro a vuoto */
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 1240px) and (min-width: 1081px) { .nav__links a { padding: 10px 11px; font-size: 13.5px; } }

/* ---------- Dualis AI: guida vocale ---------- */
.ai { position: fixed; left: 18px; bottom: 18px; z-index: 95; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; pointer-events: none; opacity: 0; translate: 0 20px; transition: opacity .8s var(--ease), translate .9s var(--ease); --e: 0; }
.ai.is-ready { opacity: 1; translate: none; }
.ai > * { pointer-events: auto; }
.ai__orb { position: relative; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2a30, #0b0b0d 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 18px 40px -12px rgba(0,0,0,.8), 0 0 calc(18px + var(--e) * 40px) rgba(255,74,28,calc(.15 + var(--e) * .45)); display: grid; place-items: center; transition: transform .5s var(--ease); }
.ai__orb:hover { transform: scale(1.06); }
.ai__orb canvas { width: 74px; height: 74px; border-radius: 50%; }
.ai__ring { position: absolute; inset: -6px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,74,28,.5); transform: scale(calc(1 + var(--e) * .14)); opacity: calc(.3 + var(--e) * .7); transition: transform .15s linear; pointer-events: none; }
.ai__panel {
  width: min(360px, calc(100vw - 36px)); padding: 16px 16px 14px; border-radius: 22px; color: #f1eee8;
  background: rgba(14,14,16,.82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px -30px rgba(0,0,0,.9);
  transform-origin: 0 100%; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .6s;
}
.ai.is-min .ai__panel, .ai.is-closed .ai__panel { opacity: 0; transform: translateY(10px) scale(.92); visibility: hidden; }
/* pannello chiuso: le piccole animazioni in loop (punto che lampeggia, pulsante che pulsa)
   si fermano. Continuavano invisibili e costringevano il browser a ricomporre la pagina a ogni frame */
.ai.is-min .ai__panel *, .ai.is-min .ai__panel *::before, .ai.is-closed .ai__panel *, .ai.is-closed .ai__panel *::before { animation-play-state: paused; }
.ai.is-closed .ai__orb { transform: scale(.78); opacity: .8; }
.ai__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ai__head b { display: block; font: 500 15px var(--f-display); letter-spacing: -.01em; }
.ai__status { font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #ff8a62; }
.ai__x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #a8a49c; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ai__x:hover { color: #fff; }
.ai__text { margin: 0; min-height: 3em; font-size: 15px; line-height: 1.5; }
.ai__text span { color: rgba(241,238,232,.35); transition: color .25s; }
.ai__text span.is-said { color: #f1eee8; }
.ai__text span.is-now { color: #ff8a62; }
.ai[data-mode="text"] .ai__text span, .ai[data-mode="intro"] .ai__text span { transition: color .4s; }
.ai__actions { display: flex; gap: 8px; margin-top: 14px; }
.ai__btn { flex: 1; height: 42px; border-radius: 999px; font: 500 13.5px var(--f-body); color: #f1eee8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .3s, color .3s; }
.ai__btn:hover { background: rgba(255,255,255,.08); }
.ai__btn--main { background: var(--accent); box-shadow: none; color: #fff; }
.ai__btn--main:hover { background: #ff6a43; }
.ai__btn--main i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; position: relative; }
.ai__ctrl { display: none; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.ai[data-mode="voice"] .ai__ctrl, .ai[data-mode="text"] .ai__ctrl { display: flex; }
.ai[data-mode="voice"] .ai__actions, .ai[data-mode="text"] .ai__actions { display: none; }
.ai__ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #d9d5ce; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ai__ic:hover { background: rgba(255,255,255,.08); }
.ai[data-mode="text"] [data-act="pause"] { display: none; }
.ai__dots { margin-left: auto; display: flex; gap: 4px; }
.ai__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); transition: background-color .3s, transform .3s; }
.ai__dots i.on { background: rgba(255,138,98,.6); }
.ai__dots i.now { background: #ff8a62; transform: scale(1.4); }
body.menu-open .ai, .modal.is-open ~ .ai { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .ai { left: 12px; bottom: 12px; } .ai__orb, .ai__orb canvas { width: 60px; height: 60px; } }
/* sfera ridotta: etichetta che invita a riaprire la guida */
.ai__orb::after { content: "Guida vocale"; position: absolute; left: calc(100% + 12px); top: 50%; translate: 0 -50%; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: rgba(14,14,16,.85); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font: 500 12px var(--f-body); color: #f1eee8; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.ai.is-min.is-hint .ai__orb::after, .ai.is-min .ai__orb:hover::after { opacity: 1; transform: none; }
.ai[data-mode="intro"] .ai__panel { width: min(330px, calc(100vw - 36px)); }

/* ---------- Dualis AI v2: HUD in stile assistente di sistema ---------- */
.ai__orb { width: 84px; height: 84px; background: radial-gradient(circle at 50% 50%, #1b1310 0%, #0a0a0b 70%); box-shadow: inset 0 0 0 1px rgba(255,106,60,.25), 0 18px 40px -12px rgba(0,0,0,.85), 0 0 calc(20px + var(--e) * 46px) rgba(255,90,40,calc(.18 + var(--e) * .5)); }
.ai__orb canvas { width: 100%; height: 100%; border-radius: 50%; display: block; }
.ai__head b { font: 500 16px var(--f-display); letter-spacing: .01em; }
.ai__head b em { font: 500 11px var(--f-mono); font-style: normal; letter-spacing: .14em; color: #ff8a62; margin-left: 4px; vertical-align: 2px; }
.ai__status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #ff8a62; vertical-align: 1px; animation: blink 1.4s ease-in-out infinite; }
.ai__panel { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(20,14,12,.88), rgba(10,10,12,.9)); box-shadow: inset 0 0 0 1px rgba(255,106,60,.18), 0 30px 70px -30px rgba(0,0,0,.9); }
/* angoli a mirino */
.ai__panel::before, .ai__panel::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border-color: rgba(255,138,98,.8); border-style: solid; }
.ai__panel::before { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.ai__panel::after { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }
/* linea di scansione mentre parla */
.ai[data-mode="voice"] .ai__panel { background-image: linear-gradient(180deg, rgba(20,14,12,.88), rgba(10,10,12,.9)), linear-gradient(180deg, transparent, rgba(255,106,60,.06) 50%, transparent); }
.ai__hud { display: none; justify-content: space-between; gap: 10px; margin: 2px 0 8px; padding: 6px 0; border-block: 1px solid rgba(255,106,60,.14); font: 500 9.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #a8a49c; }
.ai[data-mode="voice"] .ai__hud, .ai[data-mode="text"] .ai__hud { display: flex; }
.ai__wave { display: none; height: 34px; margin-top: 8px; }
.ai__wave canvas { width: 100%; height: 100%; display: block; }
.ai[data-mode="voice"] .ai__wave { display: block; }
.ai__text { font-size: 15.5px; }
.ai__text span.is-now { color: #ffb48f; text-shadow: 0 0 12px rgba(255,120,70,.55); }
@media (max-width: 600px) { .ai__orb { width: 68px; height: 68px; } }

/* Dualis AI: pulsante d'azione proposto mentre la guida parla */
/* domande libere a Dualis (chat AI) */
.ai__ask[hidden], .ai__q[hidden] { display: none; }
.ai__ask { display: flex; gap: 6px; margin-top: 12px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: box-shadow .3s; }
.ai__ask:focus-within { box-shadow: inset 0 0 0 1px rgba(255,138,98,.7); }
.ai__ask input { flex: 1; min-width: 0; height: 36px; border: 0; background: transparent; padding: 0 12px; color: #f1eee8; font: 400 16px var(--f-body); outline: none; }
.ai__ask input::placeholder { color: #8b8780; font-size: 14px; }
.ai__ask button { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0a0a0b; font-size: 16px; transition: transform .3s var(--ease); }
.ai__ask button:hover { transform: translateX(2px); }
.ai__ask.is-busy button { opacity: .5; pointer-events: none; }
.ai__q { margin: 0 0 8px; padding-left: 10px; border-left: 2px solid rgba(255,138,98,.6); font-size: 13px; line-height: 1.4; color: #a8a49c; }
.ai__cta[hidden] { display: none; }   /* senza questa riga il pulsante vuoto restava raggiungibile con Tab */
.ai__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--accent); color: #0a0a0b; font: 500 14px var(--f-body); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s; pointer-events: none; }
.ai__cta.is-on { opacity: 1; transform: none; pointer-events: auto; animation: cta-glow 2.4s ease-in-out infinite; }
.ai__cta:hover { background: #ff6a43; }
.ai__cta i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(0,0,0,.22); transition: transform .4s var(--ease); }
.ai__cta:hover i { transform: translateX(3px); }
.ai[data-mode="intro"] .ai__cta { display: none; }
@keyframes cta-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,74,28,.35); } 50% { box-shadow: 0 0 0 8px rgba(255,74,28,0); } }

/* Dualis AI: versione compatta, per lasciare più spazio al sito */
.ai { left: 14px; bottom: 14px; gap: 10px; }
.ai__orb { width: 54px; height: 54px; box-shadow: inset 0 0 0 1px rgba(255,106,60,.25), 0 10px 24px -10px rgba(0,0,0,.85), 0 0 calc(10px + var(--e) * 24px) rgba(255,90,40,calc(.15 + var(--e) * .45)); }
.ai__orb::after { left: calc(100% + 10px); padding: 6px 12px; font-size: 11.5px; }
.ai__panel, .ai[data-mode="intro"] .ai__panel { width: min(300px, calc(100vw - 28px)); padding: 12px 13px 11px; border-radius: 18px; }
.ai__panel::before { top: 6px; left: 6px; width: 10px; height: 10px; }
.ai__panel::after { bottom: 6px; right: 6px; width: 10px; height: 10px; }
.ai__head { margin-bottom: 4px; }
.ai__head b { font-size: 14.5px; }
.ai__x { width: 26px; height: 26px; font-size: 11px; }
.ai__hud { margin: 0 0 6px; padding: 4px 0; font-size: 8.5px; }
.ai__text { font-size: 13.5px; line-height: 1.45; min-height: 2.6em; }
.ai__wave { height: 22px; margin-top: 6px; }
.ai__actions { margin-top: 10px; gap: 6px; }
.ai__btn { height: 36px; font-size: 12.5px; }
.ai__cta { height: 38px; margin-top: 9px; padding: 0 6px 0 14px; font-size: 13px; }
.ai__cta i { width: 26px; height: 26px; }
.ai__ctrl { margin-top: 9px; padding-top: 9px; }
.ai__ic { width: 28px; height: 28px; font-size: 11px; }
.ai__dots i { width: 5px; height: 5px; }
@media (max-width: 600px) {
  .ai { left: 10px; bottom: 10px; }
  .ai__orb { width: 46px; height: 46px; }
  .ai__panel, .ai[data-mode="intro"] .ai__panel { width: min(280px, calc(100vw - 20px)); }
}
.lite .nav.is-solid, .lite .ai__panel { background: color-mix(in srgb, var(--bg) 95%, transparent); }
.lite .addon, .lite .compare, .lite .sw { background: color-mix(in srgb, var(--bg-2) 94%, transparent); }
.lite .channel, .lite .marquee { background: color-mix(in srgb, var(--bg) 92%, transparent); }

/* ---------- comandi tattili: almeno 44 px di area toccabile sui touch screen ----------
   l'aspetto non cambia: si allarga solo la zona sensibile */
@media (pointer: coarse) {
  .rng input { height: 44px; }
  .seg button, .poll button, .logo { position: relative; }
  .seg button::after, .poll button::after, .logo::after { content: ""; position: absolute; inset: -7px -2px; }
}

/* ---------- movimento ridotto: si fermano anche le animazioni decorative in loop ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav__links a.nav__new sup, .ai__status::before, .ai__btn--main i, .ai__cta.is-on,
  .scr--reel > img, .scr__bar i { animation: none; }
  .scr--story .story__bars i::after { animation: none !important; transform: none; }
}

/* =========================================================
   Analisi gratuita del sito (strumenti.js → /api/analisi)
   ========================================================= */
.analisi { --ok: #8fd19e; --warn: #ffb35c; --ko: var(--accent); }
.scan { margin-top: clamp(36px, 6vh, 64px); max-width: 860px; }
.scan__bar { display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s; }
.scan__bar:focus-within { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); }
.scan__bar input { flex: 1; min-width: 0; height: 58px; border: 0; background: transparent; padding: 0 22px; color: var(--ink); font: 400 clamp(17px, 1.4vw, 20px) var(--f-body); outline: none; }
.scan__bar input::placeholder { color: var(--muted); }
.scan__bar .btn { flex: none; }
.scan.is-busy .btn { opacity: .6; pointer-events: none; }
.scan__note { margin: 14px 0 0 24px; font-size: 13.5px; color: var(--muted); }
.scan__live { min-height: 28px; margin-top: 18px; display: flex; align-items: center; gap: 12px; font: 500 13px var(--f-mono); letter-spacing: .06em; color: var(--ink-2); }
.scan__spin { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); border-top: 2px solid var(--accent); animation: scan-spin .8s linear infinite; }
@keyframes scan-spin { to { transform: rotate(360deg); } }
.scan__out { margin-top: clamp(28px, 5vh, 48px); padding: clamp(22px, 3.4vw, 44px); border-radius: 28px; background: color-mix(in srgb, var(--bg-2) 78%, transparent); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); scroll-margin-top: calc(var(--nav-h) + 20px); }
.scan__out.is-on { opacity: 1; transform: none; }
.rep { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.rep__score { position: relative; width: clamp(150px, 15vw, 200px); aspect-ratio: 1; }
.rep__score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rep__track { fill: none; stroke: var(--line); stroke-width: 8; }
.rep__arc { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease) .15s; }
.rep__score.is-ok .rep__arc { stroke: var(--ok); }
.rep__score.is-warn .rep__arc { stroke: var(--warn); }
.rep__score.is-ko .rep__arc { stroke: var(--ko); }
.rep__n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rep__n b { font: 300 clamp(52px, 5.4vw, 72px)/.9 var(--f-display); letter-spacing: -.04em; }
.rep__n span { font: 500 12px var(--f-mono); letter-spacing: .12em; color: var(--muted); }
.rep__host { font: 500 12px var(--f-mono); letter-spacing: .1em; color: var(--muted); word-break: break-all; }
.rep__sum h3 { margin: 10px 0 6px; font: 400 clamp(30px, 3vw, 44px)/1 var(--f-display); letter-spacing: -.03em; }
.rep__sum > p { margin: 0 0 22px; color: var(--ink-2); max-width: 52ch; }
.rep__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rep__cats li { display: grid; grid-template-columns: 128px 1fr 34px; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-2); }
.rep__cats i { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rep__cats em { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.4s var(--ease) .3s; }
.scan__out.is-on .rep__cats em { width: var(--w); }
.rep__cats .is-ok em { background: var(--ok); }
.rep__cats .is-warn em { background: var(--warn); }
.rep__cats .is-ko em { background: var(--ko); }
.rep__cats b { font: 500 13px var(--f-mono); text-align: right; color: var(--ink); }
.rep__title { margin: clamp(32px, 5vh, 48px) 0 16px; font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.rep__top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rep__top li { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.rep__top li.is-ko { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ko) 45%, transparent); }
.rep__k { font: 500 12px var(--f-mono); color: var(--muted); }
.rep__top b { font: 500 17px/1.25 var(--f-body); }
.rep__top p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.rep__top .rep__fix { color: var(--ink); }
.rep__all { margin-top: 18px; border-top: 1px solid var(--line); }
.rep__all summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 18px 0; font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.rep__all summary::-webkit-details-marker { display: none; }
.rep__all summary i { font-style: normal; font-size: 16px; transition: transform .4s var(--ease); }
.rep__all[open] summary i { transform: rotate(45deg); }
.rep__all ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.rep__all li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rep__all li b { color: var(--ink); font-weight: 500; }
.rep__dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--f-body); color: #0a0a0b; margin-top: 1px; }
.is-ok > .rep__dot { background: var(--ok); }
.is-warn > .rep__dot { background: var(--warn); }
.is-ko > .rep__dot { background: var(--ko); }
.rep__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 40px); }
.rep__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .rep { grid-template-columns: 1fr; justify-items: start; }
  .rep__top { grid-template-columns: 1fr; }
  .rep__all ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scan__bar { flex-direction: column; border-radius: 26px; }
  .scan__bar input { height: 52px; padding: 0 16px; }
  .scan__bar .btn { justify-content: space-between; }
  .scan__note { margin-left: 4px; }
  .rep__cats li { grid-template-columns: 96px 1fr 30px; gap: 10px; }
  .rep__cta .btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .scan__out, .rep__arc, .rep__cats em { transition: none; }
  .scan__spin { animation-duration: 2.4s; }
}

/* =========================================================
   Preventivo immediato (strumenti.js, PDF con vendor/jspdf)
   ========================================================= */
.quote { margin-top: clamp(48px, 8vh, 88px); scroll-margin-top: calc(var(--nav-h) + 20px); }
.quote__head h3 { margin: 18px 0 10px; font: 400 clamp(28px, 2.8vw, 42px)/1.05 var(--f-display); letter-spacing: -.03em; }
.quote__head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.quote__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 18px; margin-top: 28px; align-items: start; }
.quote__form, .quote__sum { padding: clamp(20px, 2.6vw, 32px); border-radius: 24px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); }
.quote__form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.quote__form fieldset:last-child { margin-bottom: 0; }
.quote__form legend { padding: 0; margin-bottom: 12px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.quote__form legend small { text-transform: none; letter-spacing: 0; color: var(--muted); }
.quote__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.qopt { position: relative; display: block; cursor: pointer; }
.qopt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qopt span { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background-color .3s; }
.qopt b { font: 500 15px var(--f-body); }
.qopt small { font-size: 12.5px; color: var(--muted); }
.qopt:hover span { box-shadow: inset 0 0 0 1px var(--line-2); }
.qopt input:checked + span { box-shadow: inset 0 0 0 1.5px var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.qopt input:focus-visible + span { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.qopt.is-incl small::after { content: " · già incluso"; color: var(--ink-2); }
.quote__who { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.quote__who .field { margin-bottom: 0; }
.quote__sum { position: sticky; top: calc(var(--nav-h) + 16px); }
.qrow { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.qrow span { display: grid; gap: 3px; }
.qrow small { font-size: 12.5px; color: var(--muted); }
.qrow b { font-weight: 500; white-space: nowrap; text-align: right; }
.qrow s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.qrow.is-incl b { color: var(--ink-2); }
.qrow__empty { margin: 0; padding: 12px 0; color: var(--muted); font-size: 14px; }
.quote__tot, .quote__mese { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; }
.quote__tot span, .quote__mese span { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.quote__tot b { font: 300 clamp(36px, 3.4vw, 48px)/1 var(--f-display); letter-spacing: -.03em; }
.quote__mese b { font: 500 17px var(--f-body); }
.quote__mese[hidden], .quote__save[hidden] { display: none; }
.quote__save { margin: 12px 0 0; font-size: 13.5px; color: var(--accent); }
.quote__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.quote__btns .btn[disabled] { opacity: .35; pointer-events: none; }
.quote__msg { min-height: 1.4em; margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 1000px) { .quote__grid { grid-template-columns: 1fr; } .quote__sum { position: relative; top: 0; } }
@media (max-width: 560px) { .quote__who { grid-template-columns: 1fr; } .quote__who .field + .field { margin-top: 10px; } .quote__btns .btn { width: 100%; justify-content: space-between; } }
@media (pointer: coarse) { .qopt span { padding: 16px; } }
