/* ==========================================================================
   CYBERIUM — foglio di stile principale
   Palette: #070b14 nero · #00f5ff blu neon · #7b2cff viola · #ff00c8 magenta
   ========================================================================== */

:root {
  --void: #070b14;
  --surface: #0e1526;
  --surface-2: #131c33;
  --line: rgba(0, 245, 255, 0.14);
  --cyan: #00f5ff;
  --violet: #7b2cff;
  --magenta: #ff00c8;
  --ink: #eaf2ff;
  --muted: #8fa3c8;
  --ok: #22e39a;
  --warn: #ffb020;

  --grad-neon: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --glass: rgba(14, 21, 38, 0.62);
  --blur: saturate(150%) blur(16px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--magenta); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--magenta); color: #fff; }

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

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad-neon);
}
.lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

.head { max-width: 720px; margin-bottom: 3rem; }

/* fondale a griglia per le sezioni scure */
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* ---------- particelle di sfondo ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.page { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 20, 0.9);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--grad-neon);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.5);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #070b14;
  font-weight: 700;
}
.nav__links { display: flex; gap: 1.6rem; align-items: center; }
.nav__links a {
  color: var(--muted);
  font-size: 0.93rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-neon);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

/* ---------- bottoni ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad-neon);
  color: #06090f;
  border-color: transparent;
  box-shadow: 0 0 0 rgba(0, 245, 255, 0);
}
.btn--primary:hover {
  color: #06090f;
  box-shadow: 0 12px 34px -8px rgba(123, 44, 255, 0.75), 0 0 22px rgba(0, 245, 255, 0.35);
}
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 24px -6px rgba(0, 245, 255, 0.6); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 5rem 0 3rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -35%; right: -18%;
  background: radial-gradient(circle, rgba(123, 44, 255, 0.28), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__glow--2 {
  right: auto; left: -22%; top: 32%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.18), transparent 62%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .glitch {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.hero__sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 54ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero__stats {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* canvas 3D */
.hero__canvas {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--r-lg);
}
.hero__canvas canvas { width: 100% !important; height: 100% !important; border-radius: var(--r-lg); }
.hero__canvas-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 45%, rgba(123, 44, 255, 0.22), transparent 60%);
}
.hero__canvas-fallback img { width: 72%; filter: drop-shadow(0 0 40px rgba(0, 245, 255, 0.45)); }
.hero__canvas.is-live .hero__canvas-fallback { display: none; }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 42px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drop 2.2s var(--ease) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- card in vetro ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0, 245, 255, 0.5), transparent 35%, transparent 65%, rgba(255, 0, 200, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.glass:hover::before { opacity: 1; }

/* ---------- pilastri ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.pillar { padding: 1.8rem; transition: transform 0.35s var(--ease); }
.pillar:hover { transform: translateY(-6px); }
.pillar__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
  color: var(--cyan);
}
.pillar h3 { margin-bottom: 0.4rem; }
.pillar p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- catalogo ---------- */
.shop__bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
}
.search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 22px -6px rgba(0, 245, 255, 0.7); }
.search input { flex: 1; background: none; border: 0; outline: none; }
.search svg { color: var(--muted); flex: none; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--cyan); }
.chip[aria-pressed="true"] {
  background: var(--grad-neon);
  color: #06090f;
  border-color: transparent;
  box-shadow: 0 0 20px -6px rgba(123, 44, 255, 0.9);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(123, 44, 255, 0.6); }
.product.is-hidden { display: none; }
.product__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 60%, rgba(123, 44, 255, 0.2), transparent 65%), var(--void);
  overflow: hidden;
}
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product:hover .product__media img { transform: scale(1.06); }
.product__badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  backdrop-filter: blur(6px);
}
.product__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; gap: 0.7rem; }
.product__body h3 { margin: 0; font-size: 1.12rem; }
.product__tagline { color: var(--muted); font-size: 0.9rem; margin: 0; }
.product__specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.product__specs li {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.5;
}
.product__specs li::before { content: "▸"; position: absolute; left: 0; color: var(--violet); }
.product__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.product__price { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.product__price small { display: block; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* ---------- configuratore ---------- */
.configurator { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; align-items: start; }
.form-shell { padding: clamp(1.4rem, 3vw, 2.4rem); }

.fieldset { border: 0; padding: 0; margin: 0 0 2.4rem; }
.fieldset:last-of-type { margin-bottom: 1.4rem; }
.fieldset__head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.2rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.fieldset__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--void);
  background: var(--cyan);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font-weight: 700;
  flex: none;
}
.fieldset__head h3 { margin: 0; font-size: 1.15rem; }
.fieldset__note { color: var(--muted); font-size: 0.82rem; margin-left: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > label, .field__legend {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__req { color: var(--magenta); }
.field__help { font-size: 0.76rem; color: var(--muted); }
.field__error { font-size: 0.78rem; color: var(--magenta); font-family: var(--mono); }
.field--full { grid-column: 1 / -1; }

.input, select.input, textarea.input {
  width: 100%;
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  font-size: 0.95rem;
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238fa3c8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.12), 0 0 22px -8px var(--cyan); }
.input[aria-invalid="true"] { border-color: var(--magenta); }
textarea.input { resize: vertical; min-height: 110px; }
.input::placeholder { color: rgba(143, 163, 200, 0.5); }
input[type="file"].input { padding: 0.6rem; cursor: pointer; }
input[type="file"]::file-selector-button {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--cyan);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  margin-right: 0.8rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* card di categoria */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
.card-opt { position: relative; }
.card-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.card-opt__box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.6);
  cursor: pointer;
  height: 100%;
  transition: all 0.3s var(--ease);
}
.card-opt__box:hover { border-color: rgba(0, 245, 255, 0.5); transform: translateY(-3px); }
.card-opt input:checked + .card-opt__box {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.07);
  box-shadow: 0 0 0 1px var(--cyan), 0 14px 40px -18px var(--cyan);
}
.card-opt input:focus-visible + .card-opt__box { outline: 2px solid var(--cyan); outline-offset: 3px; }
.card-opt__icon { color: var(--violet); margin-bottom: 0.3rem; }
.card-opt input:checked + .card-opt__box .card-opt__icon { color: var(--cyan); }
.card-opt__label { font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.card-opt__desc { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }

/* checkbox */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 0.6rem; }
.check { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(7, 11, 20, 0.5); transition: all 0.25s var(--ease); font-size: 0.88rem; }
.check:hover { border-color: rgba(0, 245, 255, 0.45); }
.check input { accent-color: var(--cyan); width: 16px; height: 16px; flex: none; }
.check:has(input:checked) { border-color: var(--cyan); background: rgba(0, 245, 255, 0.06); }
.check__price { margin-left: auto; font-family: var(--mono); font-size: 0.74rem; color: var(--cyan); }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.consent input { accent-color: var(--cyan); margin-top: 0.25rem; width: 16px; height: 16px; flex: none; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- pannello stima ---------- */
.estimate {
  position: sticky;
  top: 96px;
  padding: 1.6rem;
  overflow: hidden;
}
.estimate::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-neon);
}
.estimate__title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.estimate__total {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  transition: opacity 0.15s linear;
}
.estimate__total.is-updating { opacity: 0.35; }
.estimate__range { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 1.2rem; }
.estimate__lines { list-style: none; margin: 0 0 1.2rem; padding: 0; max-height: 260px; overflow-y: auto; border-block: 1px solid var(--line); padding-block: 0.8rem; }
.estimate__lines li { display: flex; gap: 0.8rem; justify-content: space-between; font-size: 0.8rem; padding: 0.22rem 0; color: var(--muted); }
.estimate__lines b { color: var(--ink); font-family: var(--mono); font-size: 0.76rem; font-weight: 500; flex: none; }
.estimate__lines li.is-new { animation: flashline 0.6s var(--ease); }
@keyframes flashline {
  from { background: rgba(0, 245, 255, 0.16); }
  to { background: transparent; }
}
.estimate__rows { display: grid; gap: 0.35rem; margin-bottom: 1.2rem; font-size: 0.84rem; }
.estimate__row { display: flex; justify-content: space-between; color: var(--muted); }
.estimate__row b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.estimate__row--save b { color: var(--ok); }
.estimate__note { font-size: 0.74rem; color: var(--muted); line-height: 1.5; margin: 1rem 0 0; }
.estimate__lines::-webkit-scrollbar { width: 4px; }
.estimate__lines::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 4px; }

/* ---------- avvisi ---------- */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
}
.alert--ok { border-color: rgba(34, 227, 154, 0.45); background: rgba(34, 227, 154, 0.08); }
.alert--err { border-color: rgba(255, 0, 200, 0.45); background: rgba(255, 0, 200, 0.08); }
.alert h3 { margin-bottom: 0.3rem; }
.alert ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.code-pill {
  font-family: var(--mono);
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  color: var(--cyan);
  font-size: 0.9em;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; background: rgba(7, 11, 20, 0.7); position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer__grid p { color: var(--muted); font-size: 0.88rem; }
.footer__col h4 { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.9rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer__col a { color: var(--muted); font-size: 0.88rem; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); font-family: var(--mono); }

/* ---------- animazioni allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .configurator { grid-template-columns: 1fr; }
  .estimate { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__canvas { max-width: 460px; margin-inline: auto; order: -1; }
  .scroll-hint { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.85rem 0; border-bottom: 1px solid rgba(0, 245, 255, 0.08); }
  .nav__links .btn { margin-top: 0.8rem; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
  .fieldset__note { display: none; }
}

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

/* ---------- stampa ---------- */
@media print {
  .site-header, .site-footer, #particles, .hero__canvas, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
