/* ==========================================================================
   q.dot Robotics — stile glassmorphism su base charcoal brand
   ========================================================================== */

:root {
  /* Palette dal brand (placeholder grafica) */
  --bg-dark-1: #191c22;
  --bg-dark-2: #2f3238;
  --bg-light: #f4f5f7;

  --ink-light: #eef0f4;
  --ink-light-2: #c7ccd8;
  --ink-dark: #23262c;
  --ink-dark-2: #454a55;

  /* Accento "arco di saldatura". Il verde fosfori CRT anni '90 vive SOLO
     negli sfondi (glow/separatori): su pulsanti, testi e grafica fa effetto
     arcobaleno — lì si resta in famiglia blu. */
  --accent: #4da3ff;
  --accent-deep: #2e7fe6;
  --accent-green: #00cc44; /* solo sfondi */
  --grad-accent: linear-gradient(120deg, var(--accent), var(--accent-deep));

  /* Vetro */
  --glass-dark: rgba(255, 255, 255, 0.055);
  --glass-dark-border: rgba(255, 255, 255, 0.13);
  --glass-light: rgba(255, 255, 255, 0.58);
  --glass-light-border: rgba(255, 255, 255, 0.85);

  --radius: 18px;
  --header-h: 72px;

  --font-head: "Jost", sans-serif;
  --font-body: "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-light);
  background: var(--bg-dark-1);
  -webkit-font-smoothing: antialiased;
}

/* Fondo unico continuo fisso: velo scuro semi-trasparente sulla texture del
   brand. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(175deg, rgba(25, 28, 34, 0.74), rgba(35, 39, 47, 0.78)),
    url("background_only.webp") center / cover no-repeat;
}

/* Anti-banding: grana fissa dietro il contenuto, con opacità reale (forza
   prevedibile, identica ovunque) e SENZA mix-blend-mode (che ripaintava a
   ogni frame di scroll). Layer statico = scroll leggero. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px repeat;
}

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

/* Commutazione lingua: entrambe le lingue nel DOM, mostrata solo quella attiva */
html[data-lang="it"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="it"] { display: none !important; }

::selection { background: rgba(77, 163, 255, 0.35); }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* I bagliori sconfinano oltre le sezioni per fondersi ai bordi: qui li
   conteniamo in orizzontale senza tagliarli in verticale. */
main { overflow: clip; }

/* Sezioni trasparenti: il fondo continuo del body traspare ovunque.
   Le vecchie classi --dark/--light restano nell'HTML ma non cambiano più
   lo sfondo; la distinzione è affidata a spazio, etichette e separatori. */
.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background: transparent;
  color: var(--ink-light);
}

/* Separatore tra sezioni: linea a gradiente che sfuma ai bordi — l'elemento
   di stacco al posto del taglio netto. Salta la prima sezione (hero). */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 92vw);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(122, 162, 255, 0.28) 22%,
    rgba(0, 204, 68, 0.35) 50%,
    rgba(122, 162, 255, 0.28) 78%,
    transparent
  );
  z-index: 3;
  pointer-events: none;
}

.section > .container { position: relative; z-index: 2; }

/* Mesh gradient washes — pre-renderizzati in WebP trasparenti (vedi
   media/glow_*.webp): niente radial-gradient né filter:blur a runtime, il
   browser compone solo una texture. Gli asset sono la "cottura" degli stessi
   5 radiali + blur(52px) saturate(125%) di prima, resi a 625px e riscalati.
   Per rigenerarli: pagina temporanea con i gradienti a metà scala e blur
   dimezzato, screenshot chromium con --default-background-color=00000000. */
.glow {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background: center / 100% 100% no-repeat;
  opacity: 0.4;
  /* schiacciate a ellisse + rotazione (variata sotto per un effetto random) */
  transform: rotate(-15deg) scaleY(0.88);
}
.glow--blue { background-image: url("media/glow_blue.webp"); }
.glow--green {
  background-image: url("media/glow_green.webp");
  transform: rotate(19deg) scaleY(0.9);
}
/* Rotazioni/schiacciamenti diversi per sezioni pari → varietà "random" */
.section:nth-of-type(even) .glow--blue { transform: rotate(27deg) scaleY(0.86); }
.section:nth-of-type(even) .glow--green { transform: rotate(-23deg) scaleY(0.92); }
/* Etichetta di sezione — maiuscolo, tracking largo come "ROBOTICS" nel logo */
.section-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}

.section-intro {
  max-width: 620px;
  font-size: 1.06rem;
  font-weight: 300;
  color: var(--ink-light-2);
}

.where-intro { max-width: none; }

/* Pannelli di vetro (unica variante, scura, su fondo continuo) */
.glass {
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 40px rgba(10, 12, 16, 0.35);
}

/* Pulsanti */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.8em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn--primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(77, 163, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(77, 163, 255, 0.5);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Header sticky glass
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(25, 28, 34, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 30px rgba(10, 12, 16, 0.3);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.header__logo img { height: 34px; width: auto; }

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.nav a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light-2);
  padding: 0.4em 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

/* Copia del toggle lingua che vive dentro la tendina mobile: su desktop
   resta quella nella barra, questa è nascosta. */
.nav__lang { display: none; }

.header__tools { display: flex; align-items: center; gap: 0.7rem; }

/* Hamburger — solo mobile */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Toggle lingua — pillola di vetro */
.lang-toggle {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-toggle button {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35em 0.95em;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-light-2);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.lang-toggle button.active {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(77, 163, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.hero .glow--blue { width: 1250px; height: 1250px; top: -400px; right: -320px; }
.hero .glow--green { width: 1050px; height: 1050px; bottom: -480px; left: -360px; }

.hero__content { max-width: 780px; }

/* Hero a due colonne: testo a sinistra, logo grande a destra centrato
   verticalmente. Su mobile si impila col logo sopra il testo. */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Logo grande in hero: riserva lo spazio in flusso. Quando il morph JS è
   attivo, l'immagine qui e quella nell'header sono nascoste e al loro posto
   vive un unico elemento fixed che scivola dall'una all'altra con lo scroll. */
.hero__logo {
  width: min(100%, 360px);
  aspect-ratio: 185.255 / 81.593; /* viewBox del logotipo */
  justify-self: center;
}
.hero__logo img { width: 100%; height: 100%; }

.morph-active .hero__logo img,
.morph-active .header__logo img { visibility: hidden; }

.logo-morph {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  transform-origin: 0 0;
  will-change: transform;
  transition: opacity 0.25s ease;
}

/* A menù mobile aperto il morph (che sta sopra l'header) coprirebbe la
   tendina: lo si nasconde finché il menù è aperto. */
.header.nav-open ~ .logo-morph {
  opacity: 0;
  pointer-events: none;
}
.logo-morph img {
  width: auto;
  animation: logo-fade-in 0.9s ease 0.1s both;
}
@keyframes logo-fade-in {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin-bottom: 1.4rem;
}

.hero__title .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-light-2);
  max-width: 560px;
  margin-bottom: 2.4rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Card griglie (pilastri, team)
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}

.card {
  padding: 2rem 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 50px rgba(10, 12, 16, 0.5);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-accent);
  box-shadow: 0 6px 20px rgba(77, 163, 255, 0.35);
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 24px; height: 24px; stroke: #fff; }

/* Scenari applicativi: ritmo editoriale alternato, immagine e spiegazione. */
.scenarios {
  margin-top: 3.4rem;
  display: grid;
  gap: clamp(4rem, 9vw, 7rem);
}

.scenario {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.2rem, 6vw, 5.5rem);
  align-items: center;
}

.scenario:nth-child(even) .scenario__visual { order: 2; }

.scenario__visual {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(77, 163, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(9, 12, 18, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 60px rgba(10, 12, 16, 0.38);
}

.scenario__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.scenario:hover .scenario__visual img {
  transform: scale(1.018);
  filter: brightness(1.05);
}

.scenario__content { max-width: 470px; }

.scenario:nth-child(even) .scenario__content { justify-self: end; }

.scenario__number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(77, 163, 255, 0.4);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(77, 163, 255, 0.07);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.scenario__content h3 {
  margin-bottom: 0.9rem;
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
}

.scenario__content > p {
  color: var(--ink-light-2);
  font-size: 1rem;
}

.scenario__outcome {
  position: relative;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem 1rem 1.3rem;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(77, 163, 255, 0.09), transparent);
  color: var(--ink-light) !important;
}

.scenario__outcome strong {
  font-family: var(--font-head);
  font-weight: 500;
}

@media (max-width: 760px) {
  .scenarios { gap: 4.5rem; }
  .scenario { grid-template-columns: 1fr; gap: 1.8rem; }
  .scenario:nth-child(even) .scenario__visual { order: 0; }
  .scenario:nth-child(even) .scenario__content { justify-self: auto; }
  .scenario__content { max-width: none; }
}

.card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}

.card p { font-size: 0.97rem; font-weight: 300; color: var(--ink-light-2); }


/* --------------------------------------------------------------------------
   Timeline verticale (Metodo)
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin-top: 3.2rem;
  max-width: 760px;
}

.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.4rem;
  padding-bottom: 2.6rem;
}
.tl-step:last-child { padding-bottom: 0; }

/* Segmento di linea che collega un nodo al successivo. Ogni segmento sfuma dal
   colore del proprio nodo a quello del nodo seguente: nell'insieme la timeline
   è un unico gradiente continuo blu→verde, un percorso solo dall'inizio alla fine. */
.tl-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--tl-c), var(--tl-c-next));
  opacity: 0.55;
  z-index: 0;
}

/* Colore di ciascun nodo campionato lungo il gradiente del brand (blu chiaro
   → blu profondo): la posizione nel processo determina il colore. */
.tl-step:nth-child(1) { --tl-c: #4da3ff; --tl-c-next: #459af9; }
.tl-step:nth-child(2) { --tl-c: #459af9; --tl-c-next: #3e91f3; }
.tl-step:nth-child(3) { --tl-c: #3e91f3; --tl-c-next: #3688ec; }
.tl-step:nth-child(4) { --tl-c: #3688ec; --tl-c-next: #2e7fe6; }
.tl-step:nth-child(5) { --tl-c: #2e7fe6; }

/* Nodo circolare numerato, dimensione uniforme; colore preso dal punto del
   percorso in cui si trova, con soft-sphere e glow tinti dello stesso colore. */
.tl-node {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 55%),
    var(--tl-c);
  box-shadow:
    0 6px 22px color-mix(in srgb, var(--tl-c) 42%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tl-content { padding-top: 0.7rem; }
.tl-content h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.22rem;
  margin-bottom: 0.5rem;
}
.tl-content p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-light-2);
}

/* stagger esteso a 5-6 passi */
.stagger > :nth-child(5) { transition-delay: 0.4s; }
.stagger > :nth-child(6) { transition-delay: 0.5s; }

@media (max-width: 560px) {
  .tl-step { gap: 1rem; }
}

/* --------------------------------------------------------------------------
   Prodotti — dot.Arc
   -------------------------------------------------------------------------- */

.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  margin-top: 3rem;
  overflow: hidden;
}

.product-hero__body { padding: clamp(2rem, 4vw, 3.2rem); }

.product-hero__name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.product-hero__name .dot { color: var(--accent); }

.product-hero__type {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-light-2);
  margin-bottom: 1.6rem;
}

.product-hero__desc {
  color: var(--ink-light-2);
  font-size: 1.02rem;
  margin-bottom: 1.8rem;
}

.feature-list { list-style: none; display: grid; gap: 0.85rem; margin-bottom: 2.2rem; }

.feature-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.99rem;
  color: var(--ink-light);
}

.feature-list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(77, 163, 255, 0.8);
  transform: translateY(-1px);
}

/* Visual astratto: arco luminoso su vetro */
.product-hero__visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 65% 35%, rgba(77, 163, 255, 0.16), transparent 55%),
    radial-gradient(circle at 30% 75%, rgba(139, 123, 255, 0.13), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.product-hero__visual svg { width: 72%; height: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chip {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink-light-2);
}

/* Card "prossimi moduli" */
.product-next {
  margin-top: 1.4rem;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.025);
}

.product-next__plus {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 400;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: var(--ink-light-2);
}

.product-next p { color: var(--ink-light-2); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Azienda
   -------------------------------------------------------------------------- */

.about-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-hero__copy .section-intro { max-width: 520px; }

.about-hero__value {
  max-width: 520px;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-hero__value h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 500;
}

.about-hero__value p {
  color: var(--ink-light-2);
  font-size: 0.94rem;
}

.about-hero__visual {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(77, 163, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(9, 12, 18, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(10, 12, 16, 0.42);
}

.about-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.about-hero:hover .about-hero__visual img {
  transform: scale(1.012);
  filter: brightness(1.04);
}

.capabilities {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: clamp(2.8rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.capabilities__heading {
  max-width: 650px;
}

.capabilities__heading h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.capabilities__heading p {
  color: var(--ink-light-2);
  font-size: 0.98rem;
}

.capabilities__list {
  list-style: none;
  margin-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.capabilities__list li {
  display: grid;
  grid-template-columns: 54px minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.capabilities__number {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.capabilities__list strong {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
}

.capabilities__list p {
  max-width: 650px;
  color: var(--ink-light-2);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 2.6rem; }
  .about-hero__copy .section-intro,
  .about-hero__value { max-width: 680px; }
}

@media (max-width: 680px) {
  .capabilities__list li {
    grid-template-columns: 40px 1fr;
    gap: 0.45rem 1rem;
  }
  .capabilities__list p { grid-column: 2; }
}

.team { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.team .card { display: flex; flex-direction: column; gap: 0.2rem; }

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #3c4048, #23262c);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  margin-bottom: 1.2rem;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.role {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Contatti
   -------------------------------------------------------------------------- */

.contact-panel {
  margin-top: 3rem;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
}

.contact-email {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  letter-spacing: 0.01em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin: 1rem 0 1.8rem;
  transition: filter 0.25s ease;
}
.contact-email:hover { filter: brightness(1.25); }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--bg-dark-1);
  color: var(--ink-light-2);
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: center;
  text-align: center;
}

.footer a { color: var(--ink-light); }
.footer a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Animazioni reveal (IntersectionObserver)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger per le griglie di card */
.stagger > :nth-child(2) { transition-delay: 0.1s; }
.stagger > :nth-child(3) { transition-delay: 0.2s; }
.stagger > :nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero__logo { order: -1; width: clamp(180px, 44vw, 260px); justify-self: start; }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero__visual {
    min-height: 260px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    order: -1;
  }
}

@media (max-width: 720px) {
  /* Header su una riga: logo · lingua · hamburger. Il nav diventa una
     tendina di vetro a tutta larghezza sotto la barra. */
  .header__inner { flex-wrap: nowrap; }
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 4vw 1rem;
    background: rgba(25, 28, 34, 0.92);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  .nav-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    font-size: 0.95rem;
    padding: 0.9em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }

  /* A menù aperto la barra ha sempre il fondo di vetro, anche a scroll 0 */
  .header.nav-open {
    background: rgba(25, 28, 34, 0.92);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }

  /* Hero mobile: header su una riga → si può ri-centrare a tutta altezza */
  .hero { padding: calc(var(--header-h) + 2rem) 0 3.5rem; }
  .hero__grid { gap: 2rem; }
  .hero__tagline { font-size: 1.02rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Lingua dentro la tendina hamburger, via dalla barra */
  .header__tools > .lang-toggle { display: none; }
  .nav__lang { display: flex; padding: 1rem 0 0.2rem; }
}
