/* =====================================================================
   Industria Grafica Simeoni — foglio di stile del sito
   Palette: lastra (fondo scuro), ciano del marchio, inchiostri di
   processo usati solo come segni tecnici (registro, barre colore).
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"), url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --lastra: #061320;
  --lastra-2: #0a1c2c;
  --lastra-3: #0f2639;
  --linea: rgba(150, 195, 230, 0.15);
  --linea-forte: rgba(150, 195, 230, 0.3);
  --testo: #e9f1f7;
  --testo-2: #a3b6c6;
  --testo-3: #7690a5;
  --ciano: #009fe3;
  --ciano-luce: #43c7ff;
  --magenta: #e5007d;
  --giallo: #ffe600;
  --carta: #f3f6f8;
  --errore: #ff7a8a;
  --ok: #4fdba0;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 122%;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;
  --r-s: 10px;
  --r-m: 18px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--lastra);
  color: var(--testo);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ciano-luce); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ciano); color: #fff; }
:focus-visible { outline: 2px solid var(--ciano-luce); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ciano); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-s); }
.skip:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: 1.05; letter-spacing: -0.015em; }
.display, h1 { font-stretch: var(--wide); font-weight: 780; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 4.7vw, 4.6rem); line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-stretch: var(--wide); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--testo-2); max-width: 38em; }
.muted { color: var(--testo-2); }
.small { font-size: 0.9rem; }
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--testo-2); font-size: 0.95rem; margin-bottom: 1.1rem; }
.kicker svg { color: var(--ciano-luce); }

/* ---------- Pulsanti ---------- */
.btn {
  --bg: var(--ciano);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.5rem;
  background: var(--bg); color: #fff; border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 650; font-size: 1rem; letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #0bb2fb; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--linea-forte); color: var(--testo); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--testo-2); }
.btn--small { min-height: 42px; padding: 0.55rem 1.05rem; font-size: 0.95rem; }
.btn--light { background: #fff; color: var(--lastra); }
.btn--light:hover { background: var(--carta); color: var(--lastra); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; text-decoration: none; color: var(--testo); }
.link-arrow svg { transition: transform 0.25s var(--ease); color: var(--ciano-luce); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Segni di stampa (crocini di taglio) ---------- */
.crop { position: relative; }
.crop::before, .crop::after, .crop > .crop__b::before, .crop > .crop__b::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--crop-color, var(--linea-forte)); border-style: solid; border-width: 0;
}
.crop::before { top: -10px; left: -10px; border-top-width: 1px; border-left-width: 1px; }
.crop::after { top: -10px; right: -10px; border-top-width: 1px; border-right-width: 1px; }
.crop > .crop__b::before { bottom: -10px; left: -10px; border-bottom-width: 1px; border-left-width: 1px; }
.crop > .crop__b::after { bottom: -10px; right: -10px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(6, 19, 32, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--linea); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav > a:not(.btn), .nav__group > button {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.55rem 0.85rem;
  color: var(--testo); text-decoration: none; font-size: 0.98rem; font-weight: 520;
  background: none; border: 0; border-radius: var(--r-s); cursor: pointer;
}
.nav > a:not(.btn):hover, .nav__group > button:hover, .nav > a[aria-current="page"] { color: var(--ciano-luce); }
.nav .btn { margin-left: 0.6rem; }
.nav__group { position: relative; }
.nav__group > button svg { transition: transform 0.2s; }
.nav__group[data-open] > button svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(900px, 94vw); padding: 1.25rem; display: none;
  background: #0b1d2e; border: 1px solid var(--linea); border-radius: var(--r-m);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem 1.5rem;
}
.nav__group[data-open] .mega { display: grid; }
.mega h4 { grid-column: span 1; font-size: 0.85rem; font-weight: 600; color: var(--testo-3); margin: 0.4rem 0.6rem 0.4rem; }
.mega__col { display: flex; flex-direction: column; }
.mega a { display: flex; gap: 0.75rem; align-items: center; padding: 0.55rem 0.6rem; border-radius: var(--r-s); color: var(--testo); text-decoration: none; font-weight: 550; }
.mega a svg { color: var(--ciano-luce); flex: none; }
.mega a:hover { background: rgba(255, 255, 255, 0.05); }
.mega__all { grid-column: 1 / -1; border-top: 1px solid var(--linea); margin-top: 0.5rem; padding-top: 0.75rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--linea-forte); border-radius: var(--r-pill); width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; background: var(--lastra); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--lastra); }
  .nav > a:not(.btn), .nav__group > button { font-size: 1.35rem; padding: 0.9rem 0; border-bottom: 1px solid var(--linea); border-radius: 0; width: 100%; justify-content: space-between; font-stretch: 110%; }
  .nav .btn { margin: 1.5rem 0 0; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; background: none; padding: 0.25rem 0 0.75rem; grid-template-columns: 1fr; }
  .mega h4 { margin-left: 0; }
  .mega a { padding-left: 0; }
}

/* ---------- Struttura ---------- */
main { display: block; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin: 0; color: var(--testo-2); max-width: 34em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.rule { border: 0; border-top: 1px solid var(--linea); margin: 0; }

/* =====================================================================
   HOME — racconto 3D
   ===================================================================== */
.story { position: relative; }
.story__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 55% at 70% 45%, rgba(0, 159, 227, 0.16), transparent 70%),
    radial-gradient(40% 40% at 20% 85%, rgba(229, 0, 125, 0.06), transparent 70%),
    var(--lastra);
}
.story__stage canvas { position: relative; width: 100%; height: 100%; touch-action: pan-y; }
.story__backdrop { position: absolute; inset: -4% 0; display: block; pointer-events: none; }
.story__backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transform: translate3d(0, calc(var(--k, 0) * -1.2%), 0) scale(1.06); will-change: transform; }
.story__backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 19, 32, 0.85) 0%, rgba(6, 19, 32, 0.35) 45%, rgba(6, 19, 32, 0.1) 100%), linear-gradient(180deg, transparent 70%, var(--lastra)); }
@media (max-width: 959px) { .story__backdrop::after { background: linear-gradient(180deg, rgba(6, 19, 32, 0.1) 0%, rgba(6, 19, 32, 0.6) 55%, var(--lastra) 100%); } }
/* showroom fotografico: velatura sul lato del testo per la leggibilità */
.story__stage[data-showroom]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 19, 32, 0.94) 0%, rgba(6, 19, 32, 0.84) 36%, rgba(6, 19, 32, 0) 58%); }
@media (max-width: 959px), (max-aspect-ratio: 9/10) { .story__stage[data-showroom]::after { background: linear-gradient(180deg, rgba(6, 19, 32, 0) 42%, rgba(6, 19, 32, 0.88) 62%); } }
.story__stage.can-drag canvas { cursor: grab; }
.story__stage.is-dragging canvas { cursor: grabbing; }
.story__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.no-webgl .story__fallback { display: block; }
.no-webgl .story__stage canvas { display: none; }
.story__drag {
  position: absolute; right: calc(var(--gutter) + 72px); bottom: 2rem; margin: 0;
  display: flex; align-items: center; gap: 0.5rem; color: var(--testo-2); font-size: 0.9rem;
  opacity: 0; transition: opacity 0.4s;
}
.story__stage.can-drag .story__drag { opacity: 1; }
.story__panels { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; }
.panel { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; pointer-events: none; }
.panel > .container > * { pointer-events: auto; }
.panel__body { max-width: 34rem; }
.panel--hero .panel__body { max-width: 40rem; padding-top: var(--header-h); }
@media (min-width: 960px) {
  .panel--hero .panel__body { max-width: min(46rem, 47vw); }
  h1.hero-title { font-size: clamp(2.5rem, 4.1vw, 4.4rem); }
}
.panel h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 1.2rem; }
.panel p { color: var(--testo-2); font-size: 1.12rem; max-width: 31em; }
.panel__num { display: flex; align-items: center; gap: 0.8rem; color: var(--ciano-luce); font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.panel__num::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: 0.6; }
.hero-title { margin-bottom: 1.4rem; }
.hero-title span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.quick { margin-top: 2.6rem; }
.quick__label { font-size: 0.92rem; color: var(--testo-3); margin-bottom: 0.7rem; }
.quick__list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.quick__list a {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem;
  border: 1px solid var(--linea-forte); border-radius: 100px; color: var(--testo); text-decoration: none; font-size: 0.93rem;
  background: rgba(6, 19, 32, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s;
}
.quick__list a svg { color: var(--ciano-luce); }
.quick__list a:hover { border-color: var(--ciano-luce); background: rgba(0, 159, 227, 0.14); }
.hero-hint { display: flex; align-items: center; gap: 0.55rem; margin-top: 2.2rem; color: var(--testo-3); font-size: 0.9rem; }
.hero-hint .inks { display: inline-flex; gap: 3px; }
.hero-hint .inks i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.spec-chips li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border-radius: var(--r-pill); background: rgba(0, 159, 227, 0.12); color: var(--testo); font-size: 0.92rem; border: 1px solid rgba(67, 199, 255, 0.25); }
.spec-chips svg { color: var(--ok); }
.panel .link-arrow { margin-top: 1.4rem; }

/* Avanzamento del processo (tappe con segno di registro) */
.story__rail {
  position: fixed; right: clamp(14px, 2vw, 32px); top: 50%; transform: translateY(-50%);
  z-index: 3; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.story-past-hero .story__rail { opacity: 1; }
.story__rail li { display: flex; flex-direction: row-reverse; align-items: center; gap: 0.6rem; color: var(--testo-3); font-size: 0.78rem; }
.story__rail li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor;
  background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px), linear-gradient(currentColor, currentColor) center/1px 100% no-repeat, linear-gradient(currentColor, currentColor) center/100% 1px no-repeat;
  opacity: 0.6;
}
.story__rail li.is-done { color: var(--testo-2); }
.story__rail li.is-current { color: var(--ciano-luce); }
.story__rail li.is-current::before { opacity: 1; }
@media (max-width: 959px) { .story__rail { display: none; } }

@media (min-width: 960px) {
  .panel:not(.panel--hero) .panel__body { padding: 2rem 0; }
}
@media (max-width: 959px) {
  .panel { align-items: flex-end; padding-bottom: 6vh; }
  .panel--hero { align-items: flex-start; padding-bottom: 2rem; }
  .panel__body {
    background: linear-gradient(180deg, rgba(6, 19, 32, 0.0), rgba(6, 19, 32, 0.88) 18%, rgba(6, 19, 32, 0.94));
    padding: 2.2rem 0 0.5rem; max-width: none;
  }
  .panel--hero .panel__body { padding-top: 42svh; background: linear-gradient(180deg, transparent 0, transparent 36svh, rgba(6, 19, 32, 0.9) 44svh); }
  .panel--hero .kicker { display: none; }
  .panel--hero .lead { font-size: 1.02rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-actions .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 1rem; }
  .quick__list { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .quick__list::-webkit-scrollbar { display: none; }
  .quick__list a { white-space: nowrap; }
  .panel h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .panel p { font-size: 1.02rem; }
  h1.hero-title { font-size: clamp(2.1rem, 9.6vw, 3.4rem); }
  .quick { margin-top: 1.6rem; }
  .hero-hint { display: none; }
  .story__drag { bottom: auto; top: calc(var(--header-h) + 8px); }
}

/* =====================================================================
   Servizi
   ===================================================================== */
.svc-groups { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.svc-group__title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.svc-group__title h3 { font-size: 1.05rem; color: var(--testo-2); font-weight: 600; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); border-top: 1px solid var(--linea); }
.svc-list li { border-bottom: 1px solid var(--linea); }
.svc {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 1.1rem; align-items: start;
  padding: 1.6rem 0.25rem; color: var(--testo); text-decoration: none; position: relative;
}
.svc__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(0, 159, 227, 0.1); color: var(--ciano-luce); transition: background 0.25s, color 0.25s; }
.svc h4 { font-size: 1.3rem; font-weight: 700; font-stretch: 112%; margin: 0.15rem 0 0.35rem; }
.svc p { margin: 0; color: var(--testo-2); font-size: 0.98rem; }
.svc__go { color: var(--testo-3); margin-top: 0.3rem; transition: transform 0.25s var(--ease), color 0.25s; }
.svc:hover { color: #fff; }
.svc:hover .svc__icon { background: var(--ciano); color: #fff; }
.svc:hover .svc__go { color: var(--ciano-luce); transform: translateX(4px); }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } .svc { grid-template-columns: 44px minmax(0, 1fr) auto; } .svc__icon { width: 44px; height: 44px; } }

/* Perché noi */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: why; }
.why > div { border-top: 2px solid var(--ciano); padding-top: 1.2rem; }
.why h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.why p { color: var(--testo-2); font-size: 0.98rem; margin: 0; }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* Scheda tecnica (specifiche file) */
.spec-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(1.75rem, 4vw, 3.25rem); border: 1px solid var(--linea); border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(15, 38, 57, 0.6), rgba(10, 28, 44, 0.3));
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.spec-table th { color: var(--testo-2); font-weight: 500; padding-right: 1rem; }
.spec-table td { font-weight: 650; font-variant-numeric: tabular-nums; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.color-bar { display: flex; height: 10px; margin-top: 1.5rem; border-radius: 2px; overflow: hidden; max-width: 260px; }
.color-bar i { flex: 1; }
@media (max-width: 860px) { .spec-card { grid-template-columns: 1fr; } }

/* Numeri */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.numbers div { border-left: 1px solid var(--linea-forte); padding-left: 1.25rem; }
.numbers strong { display: block; font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-stretch: var(--wide); font-weight: 760; line-height: 1; color: #fff; }
.numbers span { color: var(--testo-2); }

/* Lavori */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.work { margin: 0; }
.work__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-m); background: var(--lastra-3); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work:hover .work__img img { transform: scale(1.03); }
.work figcaption { padding-top: 0.85rem; }
.work h3 { font-size: 1.1rem; }
.work p { color: var(--testo-2); font-size: 0.93rem; margin: 0.25rem 0 0; }
@media (max-width: 900px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } }

/* Recensioni */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.quote { margin: 0; padding: 1.75rem; border: 1px solid var(--linea); border-radius: var(--r-m); background: var(--lastra-2); display: flex; flex-direction: column; gap: 1.25rem; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.quote figcaption { margin-top: auto; color: var(--testo-2); font-size: 0.93rem; }
.quote figcaption strong { color: var(--testo); display: block; font-weight: 650; }
.stars { display: flex; gap: 2px; color: var(--giallo); }

/* Articoli (anteprime) */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; color: var(--testo); text-decoration: none; }
.post-card__img { aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; background: var(--lastra-3); position: relative; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(67, 199, 255, 0.55);
  background-image: radial-gradient(circle at 1px 1px, rgba(67, 199, 255, 0.22) 1px, transparent 1.4px); background-size: 14px 14px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; color: var(--testo-3); font-size: 0.88rem; margin: 1rem 0 0.4rem; }
.post-card__meta span:first-child { color: var(--ciano-luce); }
.post-card h3 { font-size: 1.22rem; line-height: 1.25; }
.post-card:hover h3 { color: var(--ciano-luce); }
.post-card p { color: var(--testo-2); font-size: 0.96rem; margin: 0.6rem 0 0; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* Invito finale */
.cta {
  --crop-color: rgba(255, 255, 255, 0.5);
  position: relative; overflow: hidden; border-radius: var(--r-m);
  padding: clamp(2.5rem, 6vw, 5rem); background: var(--ciano); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end;
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.22;
  background-image: radial-gradient(circle at 1px 1px, #fff 1.1px, transparent 1.5px); background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(105deg, transparent 45%, #000); mask-image: linear-gradient(105deg, transparent 45%, #000);
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.cta p { margin: 1rem 0 0; font-size: 1.15rem; max-width: 30em; color: rgba(255, 255, 255, 0.9); }
.cta .btn { position: relative; z-index: 1; white-space: nowrap; justify-self: start; }
.cta > .crop__b { position: absolute; inset: 0; pointer-events: none; }
.cta::before, .cta > .crop__b::before, .cta > .crop__b::after { display: none; }
.cta-wrap { padding: 12px; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* =====================================================================
   Pagine interne
   ===================================================================== */
.page-hero { padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 85% 0%, rgba(0, 159, 227, 0.18), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); max-width: 16em; }
.page-hero .lead { margin-top: 1.4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.75rem; font-size: 0.9rem; color: var(--testo-3); }
.crumbs a { color: var(--testo-2); text-decoration: none; }
.crumbs a:hover { color: var(--ciano-luce); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }

.prose { max-width: 44rem; font-size: 1.08rem; line-height: 1.72; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2.6rem 0 1rem; font-stretch: 115%; }
.prose h3 { margin: 2rem 0 0.7rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--ciano-luce); }
.prose blockquote { margin: 1.6rem 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 2px solid var(--ciano); color: var(--testo-2); }
.prose img { border-radius: var(--r-m); margin: 1.6rem 0; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { color: var(--testo-3); font-size: 0.9rem; margin-top: -0.9rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.98rem; }
.prose th, .prose td { border-bottom: 1px solid var(--linea); padding: 0.65rem 0.5rem 0.65rem 0; text-align: left; vertical-align: top; }
.prose th { color: var(--testo-2); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--linea); margin: 2.5rem 0; }
.prose code { background: var(--lastra-3); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.92em; }

/* Servizio */
.svc-cover { margin: 0 0 clamp(2.5rem, 5vw, 4rem); aspect-ratio: 21 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--lastra-3); }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .svc-cover { aspect-ratio: 4 / 3; } }
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.offer { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--linea); }
.offer li { padding: 1.35rem 0; border-bottom: 1px solid var(--linea); }
.offer h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.offer p { margin: 0; color: var(--testo-2); font-size: 0.97rem; }
.aside-box { position: sticky; top: calc(var(--header-h) + 24px); padding: 1.75rem; border-radius: var(--r-m); background: var(--lastra-2); border: 1px solid var(--linea); }
.aside-box h2 { font-size: 1.35rem; font-stretch: 110%; margin-bottom: 0.75rem; }
.aside-box p { color: var(--testo-2); font-size: 0.97rem; }
.aside-box .btn { width: 100%; margin-top: 0.5rem; }
.aside-box__contact { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--linea); font-size: 0.95rem; display: grid; gap: 0.45rem; }
.aside-box__contact a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--testo); text-decoration: none; }
.aside-box__contact a:hover { color: var(--ciano-luce); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 1rem; border-top: 1px solid var(--linea-forte); }
.steps li::before { content: "0" counter(s); display: block; color: var(--ciano-luce); font-weight: 650; font-variant-numeric: tabular-nums; margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.steps p { color: var(--testo-2); font-size: 0.95rem; margin: 0; }
.faq { border-top: 1px solid var(--linea); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 620; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--ciano-luce); border-bottom: 1.5px solid var(--ciano-luce); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--testo-2); margin: 0 0 1.4rem; max-width: 42em; }
@media (max-width: 960px) {
  .svc-detail { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) { .offer { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } }

/* Indice dei servizi */
.svc-index { display: grid; gap: 0; border-top: 1px solid var(--linea); }
.svc-row {
  display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.3fr) 40px; gap: 1.5rem; align-items: center;
  padding: 1.75rem 0.25rem; border-bottom: 1px solid var(--linea); color: var(--testo); text-decoration: none;
}
.svc-row h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-stretch: 115%; }
.svc-row p { margin: 0; color: var(--testo-2); }
.svc-row .svc__icon { width: 64px; height: 64px; }
.svc-row:hover h2 { color: var(--ciano-luce); }
.svc-row:hover .svc__icon { background: var(--ciano); color: #fff; }
.svc-row:hover .svc__go { color: var(--ciano-luce); transform: translateX(4px); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 48px minmax(0, 1fr); } .svc-row .svc__icon { width: 48px; height: 48px; } .svc-row p { grid-column: 2; } .svc-row .svc__go { display: none; } }

/* Chi siamo */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.manifesto { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Specifiche file */
.specs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.95rem; }
.toc p { color: var(--testo-3); margin-bottom: 0.6rem; font-size: 0.88rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; border-left: 1px solid var(--linea); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; color: var(--testo-2); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--ciano-luce); border-left-color: var(--ciano-luce); }
.spec-section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--linea); }
.spec-section:last-child { border-bottom: 0; }
.spec-section > h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-stretch: 115%; margin-bottom: 1rem; }
.note { display: flex; gap: 0.8rem; padding: 1rem 1.15rem; border-radius: var(--r-m); background: rgba(255, 230, 0, 0.07); border: 1px solid rgba(255, 230, 0, 0.22); color: var(--testo); font-size: 0.97rem; margin: 1.25rem 0; }
.note svg { color: var(--giallo); flex: none; margin-top: 0.15rem; }
.note--info { background: rgba(0, 159, 227, 0.08); border-color: rgba(67, 199, 255, 0.25); }
.note--info svg { color: var(--ciano-luce); }
@media (max-width: 860px) { .specs-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* Blog */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filters a { padding: 0.45rem 0.9rem; border: 1px solid var(--linea-forte); border-radius: 100px; color: var(--testo-2); text-decoration: none; font-size: 0.93rem; }
.filters a[aria-current="true"], .filters a:hover { border-color: var(--ciano-luce); color: #fff; background: rgba(0, 159, 227, 0.12); }
.pager { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3.5rem; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--linea); border-radius: var(--r-pill); color: var(--testo); text-decoration: none; }
.pager span[aria-current] { background: var(--ciano); border-color: var(--ciano); }
.article-head { max-width: 50rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--testo-3); font-size: 0.93rem; margin-top: 1.5rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-cover { border-radius: var(--r-m); overflow: hidden; margin-bottom: clamp(2rem, 5vw, 3.5rem); aspect-ratio: 21 / 9; background: var(--lastra-3); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article-layout .toc { order: 2; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-layout .toc { display: none; } }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.contact-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.9rem; padding: 1.15rem 0; border-bottom: 1px solid var(--linea); }
.contact-list svg { color: var(--ciano-luce); margin-top: 0.2rem; }
.contact-list small { display: block; color: var(--testo-3); font-size: 0.85rem; }
.contact-list a { color: var(--testo); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--ciano-luce); }
.contact-list .pre { white-space: pre-line; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Moduli
   ===================================================================== */
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-m); background: var(--lastra-2); border: 1px solid var(--linea); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.25rem; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.field--half { grid-column: span 1; }
@media (max-width: 620px) { .field--half { grid-column: 1 / -1; } }
.field > label, .field > .label, fieldset.field > legend { font-weight: 600; font-size: 0.97rem; color: var(--testo); padding: 0; }
.field .req { color: var(--ciano-luce); margin-left: 0.15rem; }
.field .help { font-size: 0.87rem; color: var(--testo-3); }
.field .err { font-size: 0.9rem; color: var(--errore); display: flex; gap: 0.4rem; align-items: center; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="url"], .field input[type="date"], .field input[type="password"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem; border-radius: var(--r-s);
  background: rgba(3, 12, 20, 0.6); border: 1px solid var(--linea-forte); color: var(--testo); font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #5f7a90; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(150, 195, 230, 0.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ciano-luce); background: rgba(3, 12, 20, 0.85); box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--errore); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2343c7ff' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input[type="date"] { color-scheme: dark; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.55rem 0.95rem;
  border: 1px solid var(--linea-forte); border-radius: var(--r-pill); cursor: pointer; font-size: 0.96rem; user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.choice span::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--testo-3); border-radius: 50%; flex: none; transition: all 0.15s; }
.choice input[type="checkbox"] + span::before { border-radius: 3px; }
.choice input:checked + span { border-color: var(--ciano-luce); background: rgba(0, 159, 227, 0.14); }
.choice input:checked + span::before { border-color: var(--ciano-luce); background: var(--ciano-luce); box-shadow: inset 0 0 0 3px var(--lastra-2); }
.choice input:checked[type="checkbox"] + span::before { box-shadow: none; background: var(--ciano-luce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23061320' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; }
.choice input:focus-visible + span { outline: 2px solid var(--ciano-luce); outline-offset: 2px; }
.choice:hover span { border-color: rgba(150, 195, 230, 0.5); }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.93rem; color: var(--testo-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--ciano); flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--r-m); margin-bottom: 1.5rem; font-size: 0.98rem; }
.alert svg { flex: none; margin-top: 0.1rem; }
.alert--error { background: rgba(255, 122, 138, 0.1); border: 1px solid rgba(255, 122, 138, 0.35); }
.alert--error svg { color: var(--errore); }
.alert--ok { background: rgba(79, 219, 160, 0.1); border: 1px solid rgba(79, 219, 160, 0.35); }
.alert--ok svg { color: var(--ok); }

/* Preventivo guidato */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 1000px) { .quote-layout { grid-template-columns: 1fr; } .quote-summary { display: none; } }
.progress { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; counter-reset: p; }
.progress li { counter-increment: p; font-size: 0.88rem; color: var(--testo-3); padding-top: 0.75rem; border-top: 3px solid var(--linea); transition: border-color 0.3s, color 0.3s; }
.progress li::before { content: "0" counter(p) " "; font-variant-numeric: tabular-nums; font-weight: 650; }
.progress li.is-done { border-color: rgba(0, 159, 227, 0.55); color: var(--testo-2); }
.progress li.is-current { border-color: var(--ciano-luce); color: var(--testo); }
@media (max-width: 560px) { .progress li span { display: none; } }
.qstep { display: block; }
.qstep + .qstep { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--linea); }
.js .qstep + .qstep { margin-top: 0; padding-top: 0; border-top: 0; }
.js .qstep:not(.is-current) { display: none; }
.qstep__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-stretch: 112%; margin-bottom: 0.5rem; }
.qstep__intro { color: var(--testo-2); margin-bottom: 2rem; }
.svc-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.svc-pick label { position: relative; cursor: pointer; }
.svc-pick input { position: absolute; opacity: 0; }
.svc-pick__card {
  display: flex; flex-direction: column; gap: 0.75rem; height: 100%; padding: 1.15rem;
  border: 1px solid var(--linea-forte); border-radius: var(--r-m); background: rgba(3, 12, 20, 0.35);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.svc-pick__card svg { color: var(--ciano-luce); }
.svc-pick__card strong { font-size: 1.04rem; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.svc-pick__card small { color: var(--testo-3); font-size: 0.85rem; line-height: 1.4; }
.svc-pick label:hover .svc-pick__card { border-color: rgba(150, 195, 230, 0.5); }
.svc-pick input:checked + .svc-pick__card { border-color: var(--ciano-luce); background: rgba(0, 159, 227, 0.15); }
.svc-pick input:focus-visible + .svc-pick__card { outline: 2px solid var(--ciano-luce); outline-offset: 2px; }
@media (max-width: 760px) { .svc-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-pick__card small { display: none; } }
.svc-fields { display: none; }
.svc-fields.is-shown { display: block; }
.no-js .svc-fields { display: block; margin-bottom: 2.5rem; }
.svc-fields__name { display: none; }
.no-js .svc-fields__name { display: block; font-size: 1.15rem; margin-bottom: 1rem; color: var(--ciano-luce); }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linea); }
.no-js .qnav [data-prev], .no-js .qnav [data-next] { display: none; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; text-align: center;
  padding: 2rem 1.25rem; border: 1.5px dashed var(--linea-forte); border-radius: var(--r-m); cursor: pointer;
  background: rgba(3, 12, 20, 0.35); transition: border-color 0.2s, background 0.2s;
}
.dropzone svg { color: var(--ciano-luce); }
.dropzone strong { font-size: 1.02rem; }
.dropzone small { color: var(--testo-3); }
.dropzone.is-over, .dropzone:hover { border-color: var(--ciano-luce); background: rgba(0, 159, 227, 0.08); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone:focus-within { outline: 2px solid var(--ciano-luce); outline-offset: 2px; }
.file-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.4rem; }
.file-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border-radius: var(--r-s); background: rgba(255, 255, 255, 0.04); font-size: 0.93rem; }
.file-list li svg { color: var(--ciano-luce); flex: none; }
.file-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li small { color: var(--testo-3); }
.file-list button { background: none; border: 0; color: var(--testo-3); cursor: pointer; padding: 0.2rem; display: grid; }
.file-list button:hover { color: var(--errore); }
.file-list li.is-bad { background: rgba(255, 122, 138, 0.1); }
.quote-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.quote-summary h2 { font-size: 1.05rem; font-stretch: 100%; color: var(--testo-2); font-weight: 600; margin-bottom: 1rem; }
.quote-summary dl { margin: 0; display: grid; gap: 0.85rem; }
.quote-summary dt { font-size: 0.82rem; color: var(--testo-3); }
.quote-summary dd { margin: 0.1rem 0 0; font-size: 0.95rem; word-break: break-word; }
.quote-summary .empty { color: var(--testo-3); font-size: 0.93rem; }
.quote-summary__box { padding: 1.5rem; border: 1px solid var(--linea); border-radius: var(--r-m); background: linear-gradient(180deg, var(--lastra-2), transparent); }
.quote-summary__help { margin-top: 1.25rem; font-size: 0.92rem; color: var(--testo-2); }
.quote-summary__help a { color: var(--testo); font-weight: 600; text-decoration: none; }

.thanks { text-align: left; max-width: 40rem; }
.thanks__ref { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.1rem; border-radius: var(--r-pill); background: rgba(0, 159, 227, 0.12); border: 1px solid rgba(67, 199, 255, 0.3); font-variant-numeric: tabular-nums; margin: 1.5rem 0; }
.thanks__ref strong { font-size: 1.1rem; letter-spacing: 0.02em; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { border-top: 1px solid var(--linea); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; background: #040e18; margin-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid h2 { font-size: 0.95rem; font-stretch: 100%; color: var(--testo-3); font-weight: 600; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--testo-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ciano-luce); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--testo-2); max-width: 22em; }
.socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--linea-forte); border-radius: 50%; color: var(--testo-2); }
.socials a:hover { border-color: var(--ciano-luce); color: var(--ciano-luce); }
.footer-legal { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.86rem; color: var(--testo-3); }
.footer-legal a { color: var(--testo-3); }
.footer-legal nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-cmyk { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 0.5rem; }
.footer-cmyk i { width: 8px; height: 8px; border-radius: 50%; display: block; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #1fae5b; color: #fff; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s var(--ease);
}
@media (max-width: 700px) { body.is-quote .wa { display: none; } }
.wa:hover { transform: scale(1.06); color: #fff; }

/* Errore 404 */
.notfound { min-height: 80vh; display: grid; align-items: center; }
.notfound__code { font-size: clamp(5rem, 16vw, 12rem); font-stretch: 125%; font-weight: 800; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--linea-forte); margin-bottom: 1rem; }

/* Comparsa al caricamento dell'hero (un solo momento orchestrato) */
@media (prefers-reduced-motion: no-preference) {
  .panel--hero .panel__body > * { animation: rise 0.9s var(--ease) both; }
  .panel--hero .panel__body > *:nth-child(2) { animation-delay: 0.08s; }
  .panel--hero .panel__body > *:nth-child(3) { animation-delay: 0.16s; }
  .panel--hero .panel__body > *:nth-child(4) { animation-delay: 0.24s; }
  .panel--hero .panel__body > *:nth-child(5) { animation-delay: 0.32s; }
  .story__stage canvas { animation: fade 1.4s 0.15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

@media print {
  .site-header, .site-footer, .wa, .story__stage { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
   Ottimizzazione responsive
   ===================================================================== */
h1, h2, .manifesto { hyphens: manual; }
@media (max-width: 600px) { h1, h2, .manifesto { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; } }
h1.hero-title { hyphens: manual; overflow-wrap: normal; text-wrap: balance; }
h2 { text-wrap: balance; }
img, video, canvas, table { max-width: 100%; }

/* Schermi molto grandi */
@media (min-width: 1600px) {
  :root { --container: 1360px; }
  body { font-size: 1.1rem; }
}

/* Tablet e telefoni: tabelle scorrevoli invece di uscire dallo schermo */
@media (max-width: 760px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: normal; }
  .prose th, .prose td { min-width: 9rem; }
  .section-head { margin-bottom: 2rem; }
  .cta { padding: 2rem 1.5rem; }
  .cta .btn { width: 100%; }
  .qnav { flex-wrap: wrap; }
  .qnav .btn { flex: 1 1 auto; }
  .qnav > span { display: none; }
  .hero-actions .btn { width: 100%; }
  .page-hero { padding-top: calc(var(--header-h) + 2.5rem); }
}

/* Telefoni piccoli (320–380 px) */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  body { font-size: 1rem; }
  h1, .page-hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  h1.hero-title { font-size: clamp(1.9rem, 9.4vw, 2.4rem); }
  .brand img { height: 34px; }
  .btn { padding-inline: 1.1rem; }
  .svc { gap: 0.8rem; }
  .svc h4 { font-size: 1.15rem; }
  .form-card { padding: 1.15rem; }
  .svc-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .svc-pick__card { padding: 0.85rem; }
  .svc-pick__card strong { font-size: 0.95rem; }
  .progress { gap: 0.35rem; }
}

/* Telefoni e tablet in orizzontale (schermo basso): testo a sinistra, scena a destra */
@media (max-width: 1180px) and (orientation: landscape) and (max-height: 620px) {
  :root { --header-h: 64px; }
  .panel { align-items: center; padding-bottom: 0; }
  .panel--hero { align-items: center; }
  .panel__body,
  .panel--hero .panel__body {
    max-width: min(30rem, 52vw);
    padding: calc(var(--header-h) + 1rem) 0 1.5rem;
    background: linear-gradient(90deg, rgba(6, 19, 32, 0.92) 70%, rgba(6, 19, 32, 0));
  }
  .panel--hero .kicker { display: none; }
  h1.hero-title { font-size: clamp(1.7rem, 4.6vw, 2.4rem); margin-bottom: 0.8rem; }
  .panel h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); margin-bottom: 0.6rem; }
  .panel p, .panel--hero .lead { font-size: 0.95rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-actions .btn { width: auto; flex: 0 0 auto; min-height: 44px; }
  .quick { margin-top: 1rem; }
  .quick__list { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .spec-chips { margin-top: 0.8rem; }
  .hero-hint { display: none; }
  .story__drag { top: auto; bottom: 1rem; }
  .page-hero { padding-top: calc(var(--header-h) + 2rem); }
}

/* Tablet in verticale: un po' più di aria per i testi della storia */
@media (min-width: 600px) and (max-width: 959px) and (orientation: portrait) {
  .panel__body { padding-left: 0; padding-right: 0; }
  h1.hero-title { font-size: clamp(2.6rem, 7.4vw, 3.8rem); }
  .panel h2 { font-size: clamp(2rem, 5.2vw, 2.8rem); }
  .hero-actions .btn { width: auto; flex: 0 0 auto; }
}

/* Dispositivi touch: niente effetti che richiedono il passaggio del mouse */
@media (hover: none) {
  .svc:hover .svc__go, .link-arrow:hover svg { transform: none; }
}

/* Telefoni in verticale con schermo basso: testi dei pannelli più compatti */
@media (max-width: 959px) and (orientation: portrait) and (max-height: 760px) {
  .panel .spec-chips { display: none; }
  .panel p { font-size: 0.98rem; margin-bottom: 0.6rem; }
  .panel h2 { font-size: clamp(1.55rem, 6.6vw, 2rem); margin-bottom: 0.7rem; }
  .panel .link-arrow { margin-top: 0.4rem; }
  .panel__num { margin-bottom: 0.6rem; }
}
@media (max-width: 959px) and (orientation: portrait) {
  .panel { padding-bottom: 4vh; }
  .panel__body { padding-top: 1.6rem; background: linear-gradient(180deg, rgba(6, 19, 32, 0), rgba(6, 19, 32, 0.9) 1.6rem, rgba(6, 19, 32, 0.96)); }
}
/* Orizzontale basso: hero essenziale */
@media (max-width: 1180px) and (orientation: landscape) and (max-height: 620px) {
  .panel--hero .quick, .panel .spec-chips { display: none; }
  .panel--hero .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { padding-inline: 1rem; font-size: 0.92rem; }
}
/* Indicatore delle tappe: solo pallini, il nome compare per la tappa in corso */
.story__rail li { font-size: 0; gap: 0; }
.story__rail li.is-current { font-size: 0.78rem; gap: 0.6rem; }
.story__rail { right: clamp(10px, 1.4vw, 24px); }
