/* =========================================================
   AI&VOLUTIONS — WEBSITE
   style.css · v1.0 · Maggio 2026
   ========================================================= */

/* =========================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   =========================================================
   Modifica questi valori per cambiare colori, tipografia
   e spaziature in tutto il sito da un unico punto.
   ========================================================= */
:root {
  /* Sfondi — dal più scuro al più chiaro */
  --bg-0: #050508;
  --bg-1: #080d1a;
  --bg-2: #0c1226;
  --surface: rgba(10, 15, 32, 0.62);
  --surface-2: rgba(14, 20, 40, 0.78);

  /* Linee / bordi */
  --line: rgba(124, 58, 237, 0.22);
  --line-2: rgba(124, 58, 237, 0.45);

  /* Palette brand — viola, indaco, ciano */
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --violet-3: #9333ea;
  --violet-glow: #c084fc;
  --indigo: #818cf8;
  --cyan: #06b6d4;
  --cyan-soft: #22d3ee;

  /* Testo */
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-faint: #5b6478;

  /* Raggi bordo */
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  /* Larghezza massima contenuto */
  --maxw: 1240px;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: "DM Sans", "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(900px 700px at 0% 30%, rgba(6, 182, 212, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

::selection {
  background: rgba(168, 85, 247, 0.45);
  color: #fff;
}

/* =========================================================
   3. BARRA DI PROGRESSIONE SCROLL
   ========================================================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--violet-glow));
  z-index: 200;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.65);
  transition: width .1s linear;
}

/* =========================================================
   4. LIVELLI DI SFONDO (canvas, griglia, rumore)
   ========================================================= */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  touch-action: none; /* Non interferisce con lo scroll touch su mobile */
}

#bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

#bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* Parole fluttuanti in background (effetto ambient) */
.ambient-text {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.ambient-text span {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  color: rgba(192, 132, 252, 0.06);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: driftY 60s linear infinite;
}
.ambient-text span.cyan {
  color: rgba(34, 211, 238, 0.05);
}
@keyframes driftY {
  from { transform: translateY(0); }
  to   { transform: translateY(-220vh); }
}

/* =========================================================
   5. LAYOUT GLOBALE
   ========================================================= */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 5;
}

section {
  position: relative;
  z-index: 5;
  padding: 120px 0;
}

section[id] { scroll-margin-top: 108px; }

@media (max-width: 760px) {
  html, body {
    overflow-x: hidden; /* Blocca lo scroll orizzontale su mobile */
    max-width: 100%;
  }
  section { padding: 80px 0; }
  .container { padding: 0 22px; }
  html { scroll-padding-top: 96px; zoom: 0.9; }
  section[id] { scroll-margin-top: 96px; }
}

/* ── Mobile: rimozione ombra nav + effetto profondità ── */
@media (max-width: 760px) {
  /* Rimuove l'ombreggiatura scura dietro la top bar */
  .nav::before { display: none; }

  /* Overlay fisso che parte dalla cima fisica dello schermo (safe-area inclusa)
     e sfuma verso trasparente sotto la nav — crea profondità quando il contenuto
     scorre sopra e si scurisce lievemente avvicinandosi alla barra */
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 115px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.26) 0%,
      rgba(0, 0, 0, 0.13) 42%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 50;
  }
}

@supports (content-visibility: auto) {
  section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 760px;
  }
}

/* Etichette di sezione (es. "01 // Chi sono") */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-glow);
  margin-bottom: 18px;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-glow));
}
.section-label .num {
  color: var(--text-faint);
}

/* Titoli di sezione */
.section-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-title .accent,
.accent {
  background: linear-gradient(135deg, var(--violet-glow), var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Testo introduttivo di sezione */
.section-lead {
  color: var(--text-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 680px;
  line-height: 1.6;
}

/* =========================================================
   6. NAVIGAZIONE
   ========================================================= */
.nav {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 100;
  pointer-events: none;
}
.nav::before {
  content: "";
  position: fixed;
  top: -18px;
  left: -24px;
  right: -24px;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24) 48%, transparent 100%);
  z-index: -1;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: auto;
  /* Lavender-edged border — glass material with violet tint */
  border: 1px solid rgba(160, 100, 255, 0.22);
  border-radius: 999px;
  /* Dark violet glass base — transparent enough for backdrop to show */
  background: linear-gradient(
    155deg,
    rgba(28, 12, 52, 0.62) 0%,
    rgba(12, 6, 26, 0.75) 55%,
    rgba(6, 3, 14, 0.82) 100%
  );
  box-shadow:
    /* ── Physical depth stack ── */
    0 1px 2px  rgba(0, 0, 0, 0.92),
    0 4px 10px rgba(0, 0, 0, 0.80),
    0 14px 38px rgba(0, 0, 0, 0.65),
    0 30px 80px rgba(0, 0, 0, 0.45),
    /* ── Violet light projection — bar emits color downward ── */
    0 10px 50px  rgba(100, 30, 220, 0.24),
    0 22px 90px  rgba(75, 15, 175, 0.18),
    0 44px 130px rgba(55, 10, 140, 0.10),
    /* ── Hard edge ring — defines silhouette ── */
    0 0 0 1px rgba(0, 0, 0, 0.94),
    /* ── Liquid glass inner surface ── */
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0  rgba(0, 0, 0, 0.82),
    inset 0 0 28px  rgba(110, 50, 230, 0.07);
  backdrop-filter: blur(36px) saturate(1.80) brightness(0.86);
  -webkit-backdrop-filter: blur(36px) saturate(1.80) brightness(0.86);
  position: relative;
  overflow: hidden;
  transition: background 0.55s ease, border-color 0.55s ease, box-shadow 0.55s ease;
}

/* Progress ring agganciato alla pillola reale (attivo solo mobile) */
.nav-progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  display: none;
}

.nav-progress-stroke {
  fill: none;
  stroke: url(#navProgressStroke);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  opacity: 0.72;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.36));
}

/* Scroll state — glass becomes almost ghost, shadows deepen */
.nav.scrolled .nav-inner {
  background: linear-gradient(
    155deg,
    rgba(28, 12, 52, 0.26) 0%,
    rgba(8, 4, 18, 0.36) 100%
  );
  border-color: rgba(160, 100, 255, 0.12);
  box-shadow:
    0 2px 6px  rgba(0, 0, 0, 0.94),
    0 8px 22px rgba(0, 0, 0, 0.84),
    0 22px 60px rgba(0, 0, 0, 0.70),
    0 46px 110px rgba(0, 0, 0, 0.48),
    0 14px 60px  rgba(100, 30, 220, 0.18),
    0 30px 110px rgba(75, 15, 175, 0.13),
    0 0 0 1px rgba(0, 0, 0, 0.97),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0  rgba(0, 0, 0, 0.90);
}

/* ── Animated violet glow pool — drifts slowly left ↔ right ── */
.nav-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 150% at center,
    rgba(108, 32, 215, 0.40) 0%,
    rgba(76, 20, 160, 0.16) 50%,
    transparent 78%
  );
  animation: navGlowDrift 10s ease-in-out infinite;
}
@keyframes navGlowDrift {
  0%, 100% { transform: translateX(-32%); opacity: 0.80; }
  50%       { transform: translateX(30%);  opacity: 1.00; }
}

/* ── Liquid Glass top reflection — curved surface lit from above ── */
.nav-inner::after {
  content: "";
  position: absolute;
  top: 0; left: 4%; right: 4%;
  height: 52%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(210, 175, 255, 0.04) 45%,
    transparent 100%
  );
}

.nav-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text);
}

/* Pallino verde "online" */
.nav-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(0.85); }
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;
}
.nav-links a {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 13px;
  border-radius: 999px;
  transition: color .25s, background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(100, 38, 200, 0.22);
  border-color: rgba(160, 100, 255, 0.30);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.50),
    0 0 16px rgba(100, 30, 220, 0.18),
    inset 0 1px 0 rgba(210, 175, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
}
.nav-links a.active {
  color: #fff;
  background: rgba(100, 38, 200, 0.30);
  border-color: rgba(170, 110, 255, 0.38);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(100, 30, 220, 0.24),
    inset 0 1px 0 rgba(220, 185, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.60);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(160, 100, 255, 0.22);
  background: rgba(12, 8, 24, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s, border-color .2s, background .2s;
}

.lang-pill:hover {
  color: var(--text);
  border-color: rgba(192, 132, 252, 0.26);
}

.lang-pill.is-active {
  color: #fff;
  border-color: rgba(192, 132, 252, 0.42);
  background: rgba(124, 58, 237, 0.34);
}

.nav-cta a {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(140, 80, 240, 0.32);
  color: var(--text);
  background: rgba(80, 25, 165, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(210, 175, 255, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(90, 20, 200, 0.14);
  transition: all .28s;
}
.nav-cta a:hover {
  background: rgba(100, 38, 200, 0.28);
  border-color: rgba(170, 110, 255, 0.40);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.60),
    0 0 22px rgba(100, 30, 220, 0.22),
    inset 0 1px 0 rgba(220, 185, 255, 0.18);
}
.nav-cta a.nav-site {
  border-color: rgba(140, 80, 240, 0.18);
  color: var(--text-dim);
  background: transparent;
}
.nav-cta a.nav-site:hover {
  color: var(--text);
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(140, 80, 240, 0.26);
  background: rgba(20, 8, 42, 0.78);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.92),
    0 0 20px rgba(90, 20, 200, 0.16),
    inset 0 1px 0 rgba(210, 175, 255, 0.14);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hamburger span {
  position: relative;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  display: block;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s;
}
.hamburger span::before { top: -6px; }
.hamburger span::after  { top:  6px; }

/* Hamburger → X quando il menu è aperto */
.hamburger.open span            { background: transparent; }
.hamburger.open span::before    { transform: rotate(45deg); top: 0; }
.hamburger.open span::after     { transform: rotate(-45deg); top: 0; }

/* Popup mobile — espande dal tasto hamburger */
.mobile-panel {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 150;
  width: min(88vw, 272px);
  border-radius: 22px;
  /* Liquid Glass — stessa ricetta della topbar */
  background: linear-gradient(
    160deg,
    rgba(28, 12, 52, 0.72) 0%,
    rgba(10, 5, 22, 0.88) 60%,
    rgba(5, 2, 12, 0.94) 100%
  );
  border: 1px solid rgba(160, 100, 255, 0.22);
  backdrop-filter: blur(36px) saturate(1.80) brightness(0.86);
  -webkit-backdrop-filter: blur(36px) saturate(1.80) brightness(0.86);
  box-shadow:
    0 2px 8px   rgba(0, 0, 0, 0.90),
    0 8px 28px  rgba(0, 0, 0, 0.76),
    0 20px 60px rgba(0, 0, 0, 0.58),
    0 8px 50px  rgba(100, 30, 220, 0.22),
    0 22px 80px rgba(75, 15, 175, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.94),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.80),
    inset 0 0 32px rgba(110, 50, 230, 0.08);
  /* Stato chiuso: collassato sull'angolo del tasto */
  transform-origin: top right;
  transform: scale(0.72) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  /* Chiusura: rapida e lineare */
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 3px;
  overflow: hidden;
}

/* Glow viola animato interno — come nella topbar */
.mobile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 60% at center,
    rgba(108, 32, 215, 0.32) 0%,
    rgba(76, 20, 160, 0.12) 55%,
    transparent 80%
  );
  animation: navGlowDrift 10s ease-in-out infinite;
}

/* Riflessione superiore */
.mobile-panel::after {
  content: "";
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 46%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(210, 175, 255, 0.03) 50%,
    transparent 100%
  );
}

/* Apertura: pop con spring */
.mobile-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 0.44s cubic-bezier(0.34, 1.48, 0.64, 1),
    opacity 0.28s ease;
}

.mobile-panel a {
  position: relative;
  z-index: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: color .22s, background .22s, border-color .22s;
}
.mobile-panel a:hover {
  color: var(--text);
  background: rgba(100, 38, 200, 0.20);
  border-color: rgba(160, 100, 255, 0.24);
}

.mobile-lang-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 8px 10px 4px;
}

.mobile-lang-toggle .lang-pill {
  min-width: 96px;
  height: 34px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta, .lang-toggle { display: none; }
  .hamburger { display: inline-flex; }
}

/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.62) 52%, var(--bg-0) 100%),
    url("header.png") center 38% / cover no-repeat;
}

.hero::after { content:""; position:absolute; inset:auto 0 0; height:32%; background:linear-gradient(transparent,var(--bg-0)); pointer-events:none; }
.hero .container { position:relative; z-index:2; }
.hero-company-logo { display:block; width:min(520px,76vw); max-height:310px; object-fit:contain; object-position:left center; filter:drop-shadow(0 18px 38px rgba(0,0,0,.72)); }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 26px;
}

/* Logo nella navbar */
.nav-logo {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.55));
  opacity: 0.92;
  transition: opacity .25s, filter .25s;
}

/* Company narrative */
.company-story-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:20px; margin-top:44px; }
.company-card { padding:clamp(26px,4vw,46px); min-height:270px; position:relative; overflow:hidden; }
.company-card-index { font:600 11px/1 "JetBrains Mono",monospace; letter-spacing:.2em; color:var(--cyan-soft); }
.company-card h3,.why-card h3 { font-family:"Syne",sans-serif; font-size:clamp(23px,3vw,34px); margin:24px 0 14px; }
.company-card p,.why-card p { color:var(--text-dim); line-height:1.75; }
.value-cloud { display:flex; flex-wrap:wrap; gap:11px; margin-top:24px; }
.value-cloud span { padding:10px 14px; border:1px solid rgba(34,211,238,.23); border-radius:999px; background:rgba(6,182,212,.07); color:var(--text); font-size:13px; }
.why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:20px; }
.why-card { padding:26px; min-height:220px; }
.why-card b { color:var(--violet-glow); font:600 12px/1 "JetBrains Mono",monospace; }
.why-card h3 { font-size:20px; margin:18px 0 10px; }

/* Compact expandable CEO profile */
.ceo-section { padding-top:70px; }
.ceo-card { width:100%; display:grid; grid-template-columns:180px 1fr; gap:30px; align-items:center; padding:18px; color:var(--text); text-align:left; cursor:pointer; border-color:rgba(192,132,252,.26); }
.ceo-card img { width:180px; aspect-ratio:4/5; object-fit:cover; border-radius:20px; filter:saturate(.88); }
.ceo-copy { display:flex; flex-direction:column; align-items:flex-start; }
.ceo-copy .section-label { margin-bottom:15px; }
.ceo-copy strong { font:700 clamp(28px,4vw,52px)/1.05 "Syne",sans-serif; }
.ceo-copy small { margin-top:8px; color:var(--cyan-soft); font:500 13px/1.3 "JetBrains Mono",monospace; letter-spacing:.08em; text-transform:uppercase; }
.ceo-invite { margin-top:28px; color:var(--text-dim); font-size:14px; }
.ceo-invite i { display:inline-grid; place-items:center; width:30px; height:30px; margin-left:10px; border-radius:50%; background:var(--violet); color:white; font-style:normal; }
.ceo-profile-details[hidden] { display:none; }
.ceo-profile-details { animation:ceoOpen .45s ease both; }
@keyframes ceoOpen { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }

.whatsapp-mark { width:58px; height:58px; padding:10px; border-radius:50%; color:#fff; background:#25d366; box-shadow:0 0 25px rgba(37,211,102,.45); }
.contact-avatar > img { display:none; }
.contact-wrap { grid-template-columns:1fr!important; max-width:760px; }
.bizcard-stage[hidden], .social-row[hidden] { display:none!important; }

@media (max-width:760px) {
  .company-story-grid,.why-grid { grid-template-columns:1fr; }
  .ceo-card { grid-template-columns:104px 1fr; gap:18px; }
  .ceo-card img { width:104px; border-radius:15px; }
  .ceo-invite { margin-top:16px; }
}
.nav-brand:hover .nav-logo {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.75));
}

.hero-meta .row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-meta .row span {
  position: relative;
  padding-left: 14px;
}
.hero-meta .row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--violet-glow);
  box-shadow: 0 0 8px var(--violet-glow);
}

/* Nome principale con effetto glitch */
.hero-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(46px, 10.5vw, 138px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff;
  position: relative;
  text-transform: uppercase;
}
.hero-name span { display: block; }
.hero-name .prefix {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.4em;
  color: var(--violet-glow);
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.85;
}
.hero-name .first { color: #fff; }
.hero-name .last {
  background: linear-gradient(135deg, #f1f5f9 0%, #c084fc 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Layer glitch sovrapposti */
.hero-name .glitch { position: relative; }
.hero-name .glitch::before,
.hero-name .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.hero-name .glitch::before { color: #ff3b6b; }
.hero-name .glitch::after  { color: #22d3ee; }

.hero-name.glitching .glitch::before {
  animation: glitchRed .7s steps(2, jump-none);
  opacity: .7;
  mix-blend-mode: screen;
}
.hero-name.glitching .glitch::after {
  animation: glitchCyan .7s steps(2, jump-none);
  opacity: .7;
  mix-blend-mode: screen;
}

@keyframes glitchRed {
  0%   { transform: translate(0, 0);    clip-path: polygon(0 0, 100% 0, 100% 12%, 0 12%); }
  20%  { transform: translate(-4px,1px); clip-path: polygon(0 40%, 100% 40%, 100% 58%, 0 58%); }
  40%  { transform: translate(3px,-2px); clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%); }
  60%  { transform: translate(-2px,2px); clip-path: polygon(0 18%, 100% 18%, 100% 28%, 0 28%); }
  80%  { transform: translate(2px, 0);   clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%); }
  100% { transform: translate(0, 0);    opacity: 0; }
}
@keyframes glitchCyan {
  0%   { transform: translate(0, 0);    clip-path: polygon(0 30%, 100% 30%, 100% 42%, 0 42%); }
  25%  { transform: translate(4px,-1px); clip-path: polygon(0 60%, 100% 60%, 100% 76%, 0 76%); }
  50%  { transform: translate(-3px,2px); clip-path: polygon(0 0, 100% 0, 100% 18%, 0 18%); }
  75%  { transform: translate(2px, 1px); clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%); }
  100% { transform: translate(0, 0);    opacity: 0; }
}

/* Typewriter rotator */
.hero-rotator {
  margin-top: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--cyan-soft);
  letter-spacing: 0.08em;
  height: 1.6em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-rotator .prompt { color: var(--violet-glow); }
.hero-rotator .typed {
  border-right: 2px solid var(--cyan-soft);
  padding-right: 4px;
  animation: caret 1s steps(1) infinite;
  min-height: 1em;
}
@keyframes caret { 50% { border-color: transparent; } }

/* Tagline descrittiva */
.hero-tag {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.6;
}
.hero-tag strong {
  color: var(--text);
  font-weight: 600;
}

/* Badge credenziali */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero-badges .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 13, 26, 0.7);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-badges .chip .icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.hero-badges .chip.gold .icon {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* CTA buttons hero */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* =========================================================
   8. BOTTONI
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(192, 132, 252, 0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(15, 12, 24, 0.72), rgba(0, 0, 0, 0.52)),
    rgba(0, 0, 0, 0.36);
  color: var(--text);
  box-shadow:
    0 14px 36px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(192, 132, 252, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
}
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Bottone primario — vetro luminoso */
.btn.primary {
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.30), transparent 36%),
    linear-gradient(135deg, rgba(28, 18, 46, 0.74), rgba(0, 0, 0, 0.54)),
    rgba(0, 0, 0, 0.42);
  border-color: rgba(192, 132, 252, 0.28);
  color: #fff;
  box-shadow:
    0 16px 42px -14px rgba(124, 58, 237, 0.46),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.btn.primary:hover {
  background:
    radial-gradient(circle at 24% 0%, rgba(192, 132, 252, 0.52), transparent 40%),
    linear-gradient(135deg, rgba(88, 28, 135, 0.58), rgba(0, 0, 0, 0.54)),
    rgba(0, 0, 0, 0.44);
  border-color: rgba(216, 180, 254, 0.48);
  box-shadow:
    0 18px 50px -14px rgba(168, 85, 247, 0.72),
    0 0 34px rgba(168, 85, 247, 0.26);
  transform: translateY(-1px);
}

/* Bottone ghost — vetro neutro */
.btn.ghost {
  border-color: rgba(192, 132, 252, 0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(12, 10, 18, 0.68), rgba(0, 0, 0, 0.46)),
    rgba(0, 0, 0, 0.32);
  color: var(--text);
}
.btn.ghost:hover {
  background:
    radial-gradient(circle at 24% 0%, rgba(168, 85, 247, 0.38), transparent 40%),
    linear-gradient(135deg, rgba(88, 28, 135, 0.34), rgba(0, 0, 0, 0.48)),
    rgba(0, 0, 0, 0.38);
  border-color: rgba(216, 180, 254, 0.42);
  box-shadow:
    0 16px 42px -16px rgba(168, 85, 247, 0.56),
    0 0 26px rgba(168, 85, 247, 0.18);
}

/* Shimmer shine al hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 180, 254, 0.18), transparent 28%),
    linear-gradient(120deg, transparent 30%, rgba(192, 132, 252, 0.20) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s;
}
.btn:hover::before { transform: translateX(120%); }

/* =========================================================
   9. RITRATTO HERO
   ========================================================= */
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 440px;
  justify-self: end;
}
@media (max-width: 980px) {
  .hero-portrait { justify-self: center; max-width: 360px; }
}

@media (max-width: 760px) {
  .hero-portrait { display: none; }
}

/* Frame tagliato a clip-path */
.hero-portrait .frame {
  position: absolute;
  inset: 0;
  clip-path: polygon(8% 0, 100% 0, 100% 84%, 92% 100%, 0 100%, 0 16%);
  overflow: hidden;
  background: #0c1226;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.hero-portrait .frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-portrait .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.9) brightness(0.95);
}
.hero-portrait .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 26, 0) 30%, rgba(8, 13, 26, 0.7) 95%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.32), transparent 55%, rgba(6, 182, 212, 0.22));
  mix-blend-mode: overlay;
}

/* Linea di scansione animata */
.hero-portrait .scan {
  position: absolute;
  inset: 0;
  clip-path: polygon(8% 0, 100% 0, 100% 84%, 92% 100%, 0 100%, 0 16%);
  background: linear-gradient(180deg, transparent 0%, rgba(192, 132, 252, 0.18) 50%, transparent 100%);
  height: 18%;
  animation: scan 5s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(600%); }
}

/* Anelli decorativi rotanti */
.hero-portrait .ring {
  position: absolute;
  inset: -24px;
  border: 1px dashed rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  animation: rot 22s linear infinite;
  pointer-events: none;
}
.hero-portrait .ring.r2 {
  inset: -48px;
  border-color: rgba(34, 211, 238, 0.18);
  animation-direction: reverse;
  animation-duration: 36s;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* Angoli decorativi */
.hero-portrait .corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--violet-glow);
  opacity: .7;
}
.hero-portrait .corner.tl { top: -6px;    left: -6px;  border-right: none; border-bottom: none; }
.hero-portrait .corner.tr { top: -6px;    right: -6px; border-left: none;  border-bottom: none; }
.hero-portrait .corner.bl { bottom: -6px; left: -6px;  border-right: none; border-top: none; }
.hero-portrait .corner.br { bottom: -6px; right: -6px; border-left: none;  border-top: none; }

/* Label dati sovrapposti */
.hero-portrait .data {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.hero-portrait .data.t { top: -22px;    left: 0; }
.hero-portrait .data.b { bottom: -22px; right: 0; }
.hero-portrait .data .ok { color: #22c55e; }

/* Indicatore scroll nell'hero */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll .line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--violet-glow), transparent);
  animation: scrollHint 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.6); }
  50%       { transform: scaleY(1); }
}

/* =========================================================
   10. AREE IN EVIDENZA
   ========================================================= */
.focus-strip {
  padding: 96px 0 16px;
  margin-top: 0;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .focus-strip { margin-top: 0; padding-top: 72px; }
  .focus-grid { grid-template-columns: 1fr; }
}
.focus-card {
  min-height: 210px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, 0.12), transparent 38%),
    rgba(8, 13, 26, 0.34);
  border-color: rgba(192, 132, 252, 0.16);
}
.focus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, 0.16), transparent 34%),
    linear-gradient(180deg, transparent 34%, rgba(5, 5, 8, 0.34) 100%);
  pointer-events: none;
  z-index: 0;
}
.focus-card > * {
  position: relative;
  z-index: 1;
}
.focus-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
.focus-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background:
    radial-gradient(circle at 30% 0%, rgba(168, 85, 247, 0.34), transparent 54%),
    rgba(0, 0, 0, 0.32);
  color: var(--violet-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.18);
}
.focus-icon svg {
  width: 24px;
  height: 24px;
}
.focus-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}
.focus-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}
.focus-card:hover {
  transform: translateY(-3px);
}

/* =========================================================
   RICHIAMO ASSISTENTE AI
   ========================================================= */
.ai-prompt-strip {
  padding: 24px 0 0;
  position: relative;
  z-index: 5;
}
.ai-prompt-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(160, 100, 255, 0.18);
  border-radius: 26px;
  background: linear-gradient(
    155deg,
    rgba(20, 10, 42, 0.62) 0%,
    rgba(8, 14, 32, 0.72) 54%,
    rgba(5, 6, 16, 0.86) 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 7px 18px rgba(0, 0, 0, 0.70),
    0 26px 72px rgba(0, 0, 0, 0.46),
    0 18px 72px rgba(76, 20, 160, 0.18),
    0 26px 86px rgba(6, 182, 212, 0.10),
    0 0 0 1px rgba(0, 0, 0, 0.84),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    inset 0 0 34px rgba(110, 50, 230, 0.08);
  backdrop-filter: blur(34px) saturate(1.75) brightness(0.9);
  -webkit-backdrop-filter: blur(34px) saturate(1.75) brightness(0.9);
  overflow: hidden;
}
.ai-prompt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 42% 170% at 18% 50%, rgba(6, 182, 212, 0.18), transparent 68%),
    radial-gradient(ellipse 48% 150% at 82% 50%, rgba(124, 58, 237, 0.18), transparent 72%);
  opacity: .92;
  mix-blend-mode: screen;
  pointer-events: none;
}
.ai-prompt-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  z-index: 0;
  height: 46%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(210, 175, 255, 0.04) 48%,
    transparent 100%
  );
  pointer-events: none;
}
.ai-prompt-bot {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 160deg, var(--cyan), var(--violet-glow), var(--cyan));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.24);
}
.ai-prompt-bot img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(5, 5, 8, 0.88);
}
.ai-question-stream {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  z-index: 1;
}
.ai-question-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(20, 26, 48, 0.78), rgba(9, 13, 28, 0.66));
  color: rgba(226, 232, 240, 0.92);
  font-size: 12px;
  line-height: 1.3;
  box-shadow:
    0 10px 24px -22px rgba(0, 0, 0, 0.90),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: ai-question-fade .82s ease forwards;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.ai-question-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: .64;
  box-shadow: 0 0 12px currentColor;
  flex: 0 0 auto;
}
.ai-question-chip:nth-child(1) { animation-delay: .08s; }
.ai-question-chip:nth-child(2) {
  color: rgba(207, 250, 254, 0.94);
  animation-delay: .18s;
}
.ai-question-chip:nth-child(3) {
  color: rgba(233, 213, 255, 0.94);
  animation-delay: .28s;
}
.ai-question-chip:nth-child(4) { animation-delay: .38s; }
.ai-question-chip:hover {
  color: #fff;
  background: linear-gradient(155deg, rgba(15, 44, 62, 0.78), rgba(20, 14, 44, 0.68));
  transform: translateY(-2px);
}
.ai-open-chat {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(6, 182, 212, 0.14);
  color: var(--cyan-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px -24px rgba(34, 211, 238, 0.85);
  transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.ai-open-chat:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-soft);
  background: rgba(6, 182, 212, 0.18);
  box-shadow: 0 14px 34px -22px rgba(34, 211, 238, 0.95);
}
@keyframes ai-question-fade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand name appears only after the visitor leaves the hero. */
.nav-brand { gap: 0; }
.nav-brand-name {
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-6px);
  white-space: nowrap;
  transition: max-width .32s ease, margin-left .32s ease, opacity .24s ease, transform .32s ease;
}
.nav.past-hero .nav-brand-name {
  max-width: 190px;
  margin-left: 12px;
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav-brand-name { transition-duration: .01ms; }
}

@media (max-width: 980px) {
  .ai-prompt-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ai-prompt-bot {
    width: 68px;
    height: 68px;
  }
  .ai-open-chat {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .ai-prompt-strip { padding-top: 18px; }
  .ai-prompt-card {
    padding: 16px;
  }
  .ai-question-stream {
    grid-template-columns: 1fr;
  }
  .ai-question-chip {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-question-chip {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.ai-context-toast {
  position: fixed;
  top: 104px;
  left: 50%;
  z-index: 180;
  width: min(560px, calc(100vw - 32px));
  pointer-events: none;
}
.ai-context-toast[hidden] {
  display: none;
}
.ai-context-toast-btn {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 40%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(155deg, rgba(13, 20, 40, 0.92), rgba(7, 8, 18, 0.92));
  color: var(--text);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(34, 211, 238, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -18px);
  opacity: 0;
}
.ai-context-toast.show .ai-context-toast-btn {
  animation: aiToastIn .42s cubic-bezier(.22, 1, .36, 1) forwards;
}
.ai-context-toast.hiding .ai-context-toast-btn {
  animation: aiToastOut .34s ease forwards;
}
.ai-context-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--cyan), var(--violet-glow), var(--cyan));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.24);
}
.ai-context-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  border: 2px solid rgba(5, 5, 8, 0.82);
}
.ai-context-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}
.ai-context-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.ai-context-text {
  color: rgba(241, 245, 249, 0.95);
  font-size: 14px;
  line-height: 1.35;
}
@keyframes aiToastIn {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes aiToastOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -18px); }
}
@media (max-width: 640px) {
  .ai-context-toast {
    top: 92px;
    width: min(420px, calc(100vw - 24px));
  }
  .ai-context-toast-btn {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 64px;
    border-radius: 16px;
  }
  .ai-context-avatar {
    width: 40px;
    height: 40px;
  }
  .ai-context-text {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-context-toast.show .ai-context-toast-btn,
  .ai-context-toast.hiding .ai-context-toast-btn {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* =========================================================
   11. CARD DI VETRO (glass morphism)
   ========================================================= */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.glass:hover {
  border-color: var(--line-2);
  box-shadow: 0 12px 40px -10px rgba(124, 58, 237, 0.35);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(192, 132, 252, 0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s;
  pointer-events: none;
}
.glass:hover::before { transform: translateX(120%); }

/* =========================================================
   11. SEZIONE CHI SONO
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.32) 0%, transparent 35%, transparent 70%, rgba(6, 182, 212, 0.3) 100%);
  mix-blend-mode: overlay;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 80%, transparent 40%, rgba(5, 5, 8, 0.85) 100%);
}

/* Statistiche sotto la foto */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.stat {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 13, 26, 0.55);
}
.stat .v {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .v small {
  color: var(--violet-glow);
  font-size: 18px;
}
.stat .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Testo corpo sezione about */
.about-body p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.about-body p strong {
  color: var(--text);
  font-weight: 600;
}

/* Riga highlight con credenziali */
.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.05));
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.highlight-row .sep { color: var(--violet-glow); }

/* Timeline formazione */
.timeline-edu {
  margin-top: 30px;
  position: relative;
  padding-left: 28px;
}
.timeline-edu::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--violet-glow), var(--cyan), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 22px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow), var(--violet));
  box-shadow: 0 0 12px var(--violet-glow);
}
.tl-item .y {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--violet-glow);
}
.tl-item .t {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 4px 0;
}
.tl-item .d {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   12. SEZIONE RUOLI ISTITUZIONALI
   ========================================================= */
.ruoli-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
@media (max-width: 980px) { .ruoli-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ruoli-grid { grid-template-columns: 1fr; } }

.ruolo {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.ruolo .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent);
  color: var(--violet-glow);
}
.ruolo .ic svg { width: 24px; height: 24px; }
.ruolo .num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
.ruolo h3 {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.ruolo p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.ruolo .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-glow);
}
.ruolo .badge-mim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.18));
  border: 1px solid var(--line-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  align-self: flex-start;
}
.ruolo .badge-mim b {
  color: var(--violet-glow);
  font-size: 13px;
}

/* =========================================================
   13. SEZIONE SERVIZI
   ========================================================= */
.servizi-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 32px;
}

.tab {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 26, 0.6);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.tab.active {
  background: linear-gradient(135deg, var(--violet), var(--violet-3));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.4);
}
.tab .num {
  opacity: .6;
  font-size: 9px;
}

.servizi-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 880px) {
  .servizi-content { grid-template-columns: 1fr; }
}

.servizio-pane {
  padding: 34px;
  border-radius: var(--radius-l);
}
.servizio-pane .hd {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.servizio-pane .hd .ic {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-glow);
  flex-shrink: 0;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent);
}
.servizio-pane .hd .ic svg { width: 26px; height: 26px; }
.servizio-pane .hd h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.servizio-pane .hd .sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-glow);
}
.servizio-pane .desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.servizio-pane ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.servizio-pane ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(8, 13, 26, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.12);
  font-size: 14px;
  color: var(--text);
  transition: border-color .25s, transform .25s;
}
.servizio-pane ul li:hover {
  border-color: var(--line-2);
  transform: translateX(2px);
}
.servizio-pane ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-glow);
  box-shadow: 0 0 8px var(--violet-glow);
  margin-top: 7px;
  flex-shrink: 0;
}
.service-ai-nudge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(124, 58, 237, 0.10)),
    rgba(8, 13, 26, 0.58);
  color: inherit;
  overflow: hidden;
  position: relative;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-ai-nudge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(192, 132, 252, 0.12) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s;
  pointer-events: none;
}
.service-ai-nudge:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.50);
  box-shadow: 0 14px 34px -24px rgba(34, 211, 238, 0.85);
}
.service-ai-nudge:hover::before {
  transform: translateX(120%);
}
.service-ai-nudge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--violet-glow));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.22);
  position: relative;
  z-index: 1;
}
.service-ai-nudge-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(5, 5, 8, 0.86);
}
.service-ai-nudge span:not(.service-ai-nudge-icon):not(.service-ai-nudge-arrow) {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.service-ai-nudge strong {
  display: block;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.service-ai-nudge em {
  display: block;
  color: var(--cyan-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.service-ai-nudge-arrow {
  color: var(--violet-glow);
  font-size: 18px;
  position: relative;
  z-index: 1;
}
@media (max-width: 520px) {
  .service-ai-nudge {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .service-ai-nudge-arrow {
    display: none;
  }
}

/* Mini card servizi nella sidebar */
.servizi-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.s-mini {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 13, 26, 0.5);
  cursor: pointer;
  transition: all .25s;
  display: flex;
  gap: 16px;
  align-items: center;
}
.s-mini:hover {
  border-color: var(--line-2);
  background: rgba(124, 58, 237, 0.06);
}
.s-mini.active {
  border-color: var(--violet-glow);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.06));
}
.s-mini .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-glow);
  flex-shrink: 0;
}
.s-mini .ic svg { width: 18px; height: 18px; }
.s-mini .t {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.s-mini .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 2px;
}

/* =========================================================
   14. TIMELINE ESPERIENZE PROFESSIONALI
   ========================================================= */
.exp-list {
  margin-top: 50px;
  position: relative;
  padding: 20px 0;
}
.exp-list::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--violet-glow), var(--cyan), transparent);
}
@media (min-width: 880px) {
  .exp-list::before { left: 50%; }
}

.exp-item {
  position: relative;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 880px) {
  .exp-item { grid-template-columns: 1fr 1fr; gap: 60px; }
  .exp-item:nth-child(even) .exp-card  { grid-column: 2; }
  .exp-item:nth-child(odd)  .exp-card  { grid-column: 1; text-align: right; }
  .exp-item:nth-child(odd)  .exp-card .role-meta { justify-content: flex-end; }
  .exp-item:nth-child(odd)  .exp-card ul { text-align: left; }
}

.exp-dot {
  position: absolute;
  left: 24px;
  top: 34px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--violet-glow);
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.7);
  transform: translateX(-50%);
  z-index: 2;
}
@media (min-width: 880px) { .exp-dot { left: 50%; } }

.exp-dot.current {
  background: radial-gradient(circle, #fff, var(--violet-glow));
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 14px rgba(192, 132, 252, 0.7); }
  50%       { box-shadow: 0 0 28px rgba(192, 132, 252, 1); }
}

.exp-card {
  padding: 24px;
  margin-left: 56px;
}
@media (min-width: 880px) { .exp-card { margin-left: 0; } }

.exp-card .role-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--violet-glow);
  margin-bottom: 8px;
}
.exp-card .current-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: #03110a;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 9px;
}
.exp-card h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.exp-card .company {
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.exp-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-card ul li {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}
.exp-card ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--violet-glow);
}

/* Pulsante "Mostra altro" */
.exp-more-btn {
  margin: 30px auto 0;
  display: block;
}

.exp-archive {
  display: none;
  margin-top: 20px;
}
.exp-archive.open { display: block; }

/* =========================================================
   15. SEZIONE ATTIVITÀ ACCADEMICA
   ========================================================= */
.acad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
@media (max-width: 980px) { .acad-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .acad-grid { grid-template-columns: 1fr; } }

.acad-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.acad-card .ph {
  height: 120px;
  background: linear-gradient(135deg, #0c1226, #1a1140);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.acad-card .ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  filter: saturate(0.85) contrast(1.05);
  transition: opacity .3s, transform .6s ease;
  z-index: 1;
}
.acad-card:hover .ph img {
  opacity: 1;
  transform: scale(1.04);
}
.acad-card .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 26, 0) 0%, rgba(8, 13, 26, 0.85) 100%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.28), transparent 60%);
  z-index: 2;
}
.acad-card .ph .badge {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(5, 5, 8, 0.7);
  border: 1px solid var(--line-2);
  color: var(--violet-glow);
  z-index: 2;
}
.acad-card .body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acad-card h4 {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.acad-card .corso {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}
.acad-card .when {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--violet-glow);
  text-transform: uppercase;
}

/* =========================================================
   16. SEZIONE CERTIFICAZIONI
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 50px;
}
.cert {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 26, 0.55);
  transition: all .25s;
}
.cert:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.45);
}
.cert .yr {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--violet-glow);
}
.cert .nm {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cert .org {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

/* =========================================================
   17. SEZIONE PUBBLICAZIONI — LIBRI
   ========================================================= */

/* Libro in evidenza */
.book-featured {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-l);
  position: relative;
  overflow: hidden;
}
.book-featured::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28), transparent 65%);
  top: -100px;
  left: -140px;
  pointer-events: none;
}
.book-featured::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 65%);
  bottom: -80px;
  right: -60px;
  pointer-events: none;
}
@media (max-width: 880px) {
  .book-featured { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}

.book-featured-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  perspective: 1400px;
}
.book-featured-cover img {
  width: 80%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.55));
  transform-style: preserve-3d;
  transition: transform .4s ease;
  animation: bookFloat 6s ease-in-out infinite;
}
@keyframes bookFloat {
  0%, 100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0); }
  50%       { transform: rotateY(-10deg) rotateX(2deg) translateY(-10px); }
}
.book-featured-cover:hover img {
  transform: rotateY(-4deg) rotateX(2deg) scale(1.04);
  animation-play-state: paused;
}

.book-featured-body .new-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.5);
}
.book-featured-body .new-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}
.book-featured-body .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-glow);
  margin-bottom: 10px;
}
.book-featured-body h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #fff;
}
.book-featured-body .subtitle {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 20px;
  font-family: "DM Sans", sans-serif;
}
.book-featured-body .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.book-featured-body .meta-row span {
  padding-left: 14px;
  position: relative;
}
.book-featured-body .meta-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-glow);
  box-shadow: 0 0 8px var(--violet-glow);
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.book-ai-btn {
  border-color: rgba(34, 211, 238, 0.38) !important;
  color: var(--cyan-soft) !important;
}
.book-ai-btn:hover {
  background: rgba(6, 182, 212, 0.10) !important;
  border-color: var(--cyan-soft) !important;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.24) !important;
}

/* Griglia libri minori */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 980px) { .book-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; gap: 16px; } }

.book-card {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  min-height: 0;
}
.book-card .cover {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
}
.book-card .cover img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
  transition: transform .35s ease;
}
.book-card:hover .cover img {
  transform: translateY(-6px) rotateY(-6deg) scale(1.04);
}
.book-card .pub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--violet-glow);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.book-card h4 {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 4px;
}
.book-card .yr {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.book-card .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: all .25s;
}
.book-card .link-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.articles-block {
  margin-top: 46px;
}
.articles-label {
  margin-bottom: 18px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .article-grid { grid-template-columns: 1fr; }
}

.article-card {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  min-height: 270px;
  color: inherit;
  text-decoration: none;
}
.article-card.article-loading {
  grid-template-columns: 1fr;
  min-height: 180px;
  opacity: .78;
}
@media (max-width: 980px) {
  .article-card { grid-template-columns: 1fr; }
}
.article-img {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
@media (max-width: 980px) {
  .article-img { aspect-ratio: 16 / 9; }
}
.article-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(5, 5, 8, 0.70) 100%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.28), transparent 56%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform .45s ease, filter .45s ease;
}
.article-card:hover .article-img img {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.08);
}
.article-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.article-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--violet-glow);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.article-card h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.article-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.62;
  margin-bottom: 20px;
}
.article-card .link-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: all .25s;
}
.article-card .link-btn:hover,
.article-card:hover .link-btn {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.pub-cta-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* =========================================================
   FAQ AI INTERATTIVE
   ========================================================= */
.faq-ai-layout {
  margin-top: 46px;
  display: grid;
  gap: 22px;
}
.faq-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.faq-ai-card {
  min-height: 0;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(6, 182, 212, 0.13), transparent 36%),
    linear-gradient(150deg, rgba(12, 18, 38, 0.70), rgba(5, 5, 8, 0.58));
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.faq-ai-question {
  width: 100%;
  min-height: 178px;
  padding: 22px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.faq-ai-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--cyan-soft);
  font-size: 18px;
  font-family: "JetBrains Mono", monospace;
  opacity: .75;
  transition: transform .25s ease, opacity .25s ease;
}
.faq-ai-card.open .faq-ai-question::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-ai-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 18px 40px -26px rgba(34, 211, 238, 0.85);
}
.faq-ai-card:hover .faq-ai-question::after {
  opacity: 1;
}
.faq-ai-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-glow);
}
.faq-ai-question strong {
  font-family: "Syne", sans-serif;
  font-size: 21px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff;
  padding-right: 12px;
}
.faq-ai-question span:last-child {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  padding-right: 10px;
}
.faq-ai-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  border-top: 1px solid transparent;
  transition: max-height .35s ease, padding .35s ease, border-color .35s ease;
}
.faq-ai-card.open .faq-ai-answer {
  max-height: 300px;
  padding: 0 22px 22px;
  border-color: rgba(34, 211, 238, 0.16);
}
.faq-ai-answer p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.faq-followup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
}
.faq-followup:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-soft);
  background: rgba(6, 182, 212, 0.13);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
}
.faq-ai-ask {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-l);
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.11), rgba(124, 58, 237, 0.08)),
    rgba(8, 13, 26, 0.62);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.12);
}
.faq-ai-ask::before {
  content: "";
  position: absolute;
  inset: -80% -20%;
  background:
    conic-gradient(from 0deg, transparent, rgba(34, 211, 238, 0.38), rgba(6, 182, 212, 0.26), rgba(192, 132, 252, 0.18), transparent 46%);
  animation: faq-ask-glow 7s linear infinite;
  pointer-events: none;
}
.faq-ai-ask::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(8, 13, 26, 0.80);
  pointer-events: none;
}
@keyframes faq-ask-glow {
  to { transform: rotate(360deg); }
}
.faq-ai-ask label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  position: relative;
  z-index: 1;
}
.faq-ai-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.faq-ai-input-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  background: rgba(5, 5, 8, 0.46);
  color: var(--text);
  padding: 0 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.faq-ai-input-row input:focus {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}
.faq-ai-input-row input::placeholder {
  color: var(--text-faint);
}
.faq-ai-submit-icon {
  display: none;
  width: 17px;
  height: 17px;
}
@media (max-width: 900px) {
  .faq-ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .faq-ai-grid { grid-template-columns: 1fr; }
  .faq-ai-card,
  .faq-ai-question { min-height: 168px; }
  .faq-ai-card.open .faq-ai-answer {
    max-height: 420px;
  }
  .faq-followup {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  .faq-ai-ask {
    padding: 16px;
    gap: 12px;
    border-radius: 28px;
  }
  .faq-ai-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 8px 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(5, 5, 8, 0.54);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .faq-ai-input-row input {
    height: 42px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    font-size: 16px;
  }
  .faq-ai-input-row input:focus {
    box-shadow: none;
  }
  .faq-ai-submit {
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0 !important;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
  }
  .faq-ai-submit-text,
  .faq-ai-submit-arrow {
    display: none;
  }
  .faq-ai-submit-icon {
    display: block;
  }
}

/* =========================================================
   VALUTAZIONE MATURITA DIGITALE
   ========================================================= */
.maturity-section {
  padding-top: 46px;
  position: relative;
}
.maturity-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(8, 6, 22, 0.55);
  box-shadow:
    0 4px 32px rgba(0,0,0,.50),
    0 0 60px rgba(124,58,237,.07),
    inset 0 1px 0 rgba(255,255,255,.07);
  position: relative;
  overflow: hidden;
}
.maturity-band::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.maturity-copy {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: 0;
}
.maturity-copy .section-title {
  margin-bottom: 0;
  max-width: 780px;
}
.maturity-form {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 12px;
  background: rgba(6, 5, 18, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.maturity-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .02em;
}
.maturity-progress strong {
  color: var(--cyan-soft);
  font-weight: 600;
}
.maturity-progress-track {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(139, 151, 176, 0.16);
}
.maturity-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), #a855f7);
  box-shadow: 0 0 8px rgba(124,58,237,.55);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.maturity-steps-wrap {
  position: relative;
}
.maturity-step {
  min-width: 0;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 10px;
  background: rgba(8, 6, 22, 0.32);
  box-shadow: none;
  animation: maturityStepIn .32s cubic-bezier(.22, 1, .36, 1) both;
}
.maturity-step.active {
  display: flex;
}
.maturity-step.needs-answer {
  animation: maturityStepIn .28s cubic-bezier(.22, 1, .36, 1) both, maturityNudge .36s ease;
  border-color: rgba(168, 85, 247, 0.52);
}
@keyframes maturityStepIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes maturityNudge {
  0%, 100% { transform: translateX(0); }
  28% { transform: translateX(-6px); }
  58% { transform: translateX(6px); }
}
.maturity-step > span,
.maturity-question legend {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.22;
}
.maturity-detail {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.62;
  margin: -2px 0 4px;
  max-width: 820px;
}
.maturity-step input[type="text"],
.maturity-step > textarea {
  width: 100%;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 10px;
  background: rgba(3, 5, 12, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  outline: 0;
  padding: 12px 14px;
  resize: vertical;
}
.maturity-step input[type="text"]::placeholder,
.maturity-step > textarea::placeholder {
  color: rgba(139, 151, 176, 0.55);
}
.maturity-step input[type="text"]:focus,
.maturity-step > textarea:focus {
  border-color: rgba(168, 85, 247, 0.62);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.maturity-question {
  margin: 0;
}
.maturity-question legend {
  padding: 0;
  margin-bottom: 4px;
}
.maturity-question legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  margin-right: 10px;
  border-radius: 999px;
  color: #c084fc;
  border: 1px solid rgba(124, 58, 237, 0.32);
  background: rgba(124, 58, 237, 0.10);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  vertical-align: middle;
}
.maturity-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.maturity-options label {
  cursor: pointer;
  display: flex;
  align-items: stretch;
}
.maturity-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.maturity-options span {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 10px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 8px;
  background: rgba(12, 8, 30, 0.40);
  color: rgba(239, 242, 248, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .2s ease, transform .18s ease;
}
.maturity-options span:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.40);
  background: rgba(124, 58, 237, 0.10);
  color: var(--text);
  box-shadow: 0 4px 18px rgba(124,58,237,.15);
}
.maturity-options input:checked + span {
  border-color: rgba(168, 85, 247, 0.72);
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
  box-shadow: 0 0 18px rgba(124,58,237,.22), inset 0 1px 0 rgba(255,255,255,.10);
}
.maturity-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 0;
}
.maturity-submit p {
  flex: 1;
  color: var(--text-faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  line-height: 1.5;
  margin: 0;
}
.maturity-nav-btn {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.maturity-nav-btn:hover {
  transform: translateY(-1px);
}
.maturity-nav-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
}
.maturity-nav-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  box-shadow: 0 2px 16px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.maturity-nav-btn.primary:hover {
  box-shadow: 0 4px 24px rgba(124,58,237,.55), inset 0 1px 0 rgba(255,255,255,.20);
}
.maturity-nav-btn.secondary {
  color: var(--text-dim);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
}
.maturity-nav-btn.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.50);
  background: linear-gradient(90deg,
    rgba(100,30,200,.80)  0%,
    rgba(168,85,247,.90) 28%,
    rgba(34,211,238,.70) 55%,
    rgba(168,85,247,.90) 78%,
    rgba(100,30,200,.80) 100%
  );
  background-size: 200% auto;
  animation: maturityShimmer 3.8s linear infinite;
  box-shadow: 0 3px 24px rgba(124,58,237,.40), inset 0 1px 0 rgba(255,255,255,.18);
  padding: 0 22px;
  font-size: 14px;
}
.maturity-nav-btn.report-btn:hover {
  transform: scale(1.025) translateY(-1px);
  box-shadow: 0 5px 34px rgba(124,58,237,.58), inset 0 1px 0 rgba(255,255,255,.20);
}
@keyframes maturityShimmer {
  to { background-position: 200% center; }
}
/* ── Completion screen ── */
.maturity-complete[hidden] { display: none; }
.maturity-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 28px 36px;
  text-align: center;
  animation: maturityStepIn .48s cubic-bezier(.22, 1, .36, 1) both;
}
.maturity-complete-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(168,85,247,.22), rgba(124,58,237,.08));
  border: 1.5px solid rgba(168,85,247,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  box-shadow: 0 0 32px rgba(124,58,237,.22);
  animation: completeIconPop .6s cubic-bezier(.34,1.56,.64,1) .1s both;
}
@keyframes completeIconPop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.maturity-complete-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text);
  margin: 0;
}
.maturity-complete-sub {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}
.maturity-complete .report-btn {
  margin-top: 6px;
  padding: 0 30px;
  min-height: 50px;
  font-size: 15px;
}

/* ── Confetti ── */
.maturity-confetti {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}
.maturity-confetti i {
  position: absolute;
  top: -18px;
  width: var(--c-size, 9px);
  height: var(--c-size, 9px);
  border-radius: var(--c-radius, 50%);
  opacity: 0;
  animation: maturityConfettiDrop var(--c-dur, 6500ms) var(--c-ease, cubic-bezier(.28,.72,.36,1)) var(--c-delay, 0ms) forwards;
}
@keyframes maturityConfettiDrop {
  0%   { opacity: 0;   transform: translate3d(0, 0, 0) rotate(0deg); }
  5%   { opacity: 1; }
  45%  { transform: translate3d(calc(var(--confetti-x, 0px) * .3), 48vh, 0) rotate(240deg); }
  90%  { opacity: .55; }
  100% { opacity: 0;   transform: translate3d(var(--confetti-x, 0px), 110vh, 0) rotate(620deg); }
}
@media (max-width: 920px) {
  .maturity-band {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .maturity-copy {
    min-height: auto;
  }
  .maturity-options {
    grid-template-columns: 1fr;
  }
  .maturity-steps-wrap,
  .maturity-step {
    min-height: 0;
  }
}
@media (max-width: 560px) {
  .maturity-section {
    padding-top: 38px;
  }
  .maturity-band {
    padding: 24px 18px;
  }
  .maturity-submit {
    align-items: stretch;
    flex-direction: column;
  }
  .maturity-submit p {
    order: -1;
  }
  .maturity-nav-btn {
    width: 100%;
  }
}

/* =========================================================
   18. SEZIONE CLIENTI / PARTNERSHIP
   ========================================================= */
.clients-card {
  margin-top: 50px;
  padding: 48px;
  border-radius: var(--radius-l);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .clients-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}
.clients-card::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
  top: -180px;
  right: -160px;
  pointer-events: none;
}

.clients-headline { position: relative; z-index: 2; }
.clients-headline h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}
.clients-headline p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 480px;
}

.clients-marquee {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.clients-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.client-tag {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(8, 13, 26, 0.6);
  border: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.client-tag:hover {
  border-color: var(--violet-glow);
  background: rgba(124, 58, 237, 0.12);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}
.client-tag .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-glow);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--violet-glow);
}
.client-tag.cyan .dot {
  background: var(--cyan-soft);
  box-shadow: 0 0 8px var(--cyan-soft);
}

/* =========================================================
   19. SEZIONE CONTATTI
   ========================================================= */
.contact-wrap {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }

/* Biglietto da visita 3D */
.bizcard-stage {
  position: relative;
  perspective: 1500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0 70px;
}
.bizcard-glow {
  position: absolute;
  width: 560px;
  height: 360px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.55) 0%, rgba(124, 58, 237, 0.3) 30%, transparent 70%);
  filter: blur(50px);
  animation: cardGlow 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cardGlow {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;  transform: translate(-50%, -50%) scale(1.18); }
}
.bizcard-glow.cyan {
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.32), transparent 70%);
  animation-delay: -2.5s;
}

.bizcard {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1.5 / 1;
  border-radius: 18px;
  display: block;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), filter .42s ease;
  animation: cardFloat 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(0deg); }
  50%       { transform: translateY(-10px) rotateX(0deg) rotateY(2deg); }
}
.bizcard img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  transform: translateZ(24px);
  filter: drop-shadow(0 30px 60px rgba(168, 85, 247, 0.42)) drop-shadow(0 0 24px rgba(192, 132, 252, 0.28));
  transition: filter .42s ease;
}
.bizcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.14) 46%, transparent 66%);
  opacity: 0;
  transform: translateZ(34px);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity .35s ease;
}
.bizcard::after {
  content: "→  Tocca per contattarmi";
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-glow);
  opacity: .65;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
}

/* Info contatto testuale */
.contact-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.contact-info::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
  top: -40px;
  right: -80px;
  pointer-events: none;
  z-index: 0;
}
.contact-info > * { position: relative; z-index: 1; }

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-glow);
}
.contact-row .val {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color .2s;
}
.contact-row a.val:hover { color: var(--violet-glow); }

/* Grande CTA contatto */
.contact-cta-big {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, 0.20), transparent 36%),
    linear-gradient(135deg, rgba(15, 12, 24, 0.72), rgba(0, 0, 0, 0.50)),
    rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(192, 132, 252, 0.22);
  box-shadow:
    0 16px 42px -18px rgba(0, 0, 0, 0.82),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.contact-cta-big:hover {
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.42), transparent 40%),
    linear-gradient(135deg, rgba(88, 28, 135, 0.36), rgba(0, 0, 0, 0.50)),
    rgba(0, 0, 0, 0.40);
  box-shadow:
    0 18px 50px -16px rgba(168, 85, 247, 0.62),
    0 0 34px rgba(168, 85, 247, 0.22);
  transform: translateY(-2px);
  border-color: rgba(216, 180, 254, 0.42);
}
.contact-cta-big .arrow {
  font-size: 24px;
  color: var(--violet-glow);
  transition: transform .3s;
}
.contact-cta-big:hover .arrow { transform: translateX(6px); }
.contact-cta-big::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 180, 254, 0.18), transparent 30%),
    linear-gradient(120deg, transparent 30%, rgba(192, 132, 252, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s;
  pointer-events: none;
}
.contact-cta-big:hover::before { transform: translateX(120%); }

/* Icone social */
.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.social-row .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 8px;
}
.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.social-row a svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.social-row a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.5), transparent 70%);
  opacity: 0;
  transition: opacity .25s;
}
.social-row a:hover {
  border-color: var(--violet-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.55);
  color: #fff;
}
.social-row a:hover::after { opacity: 1; }

/* =========================================================
   20. FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  margin-top: 60px;
  position: relative;
  z-index: 5;
  background: rgba(5, 5, 8, 0.5);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.foot .grp {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot a:hover { color: var(--violet-glow); }

/* =========================================================
   21. ANIMAZIONI DI REVEAL (Intersection Observer)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Animazione a cascata per i figli */
.reveal.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal.stagger.in > *:nth-child(1)  { transition-delay: 0ms; }
.reveal.stagger.in > *:nth-child(2)  { transition-delay: 80ms; }
.reveal.stagger.in > *:nth-child(3)  { transition-delay: 160ms; }
.reveal.stagger.in > *:nth-child(4)  { transition-delay: 240ms; }
.reveal.stagger.in > *:nth-child(5)  { transition-delay: 320ms; }
.reveal.stagger.in > *:nth-child(6)  { transition-delay: 400ms; }
.reveal.stagger.in > *:nth-child(7)  { transition-delay: 480ms; }
.reveal.stagger.in > *:nth-child(8)  { transition-delay: 560ms; }
.reveal.stagger.in > *:nth-child(9)  { transition-delay: 640ms; }
.reveal.stagger.in > *:nth-child(10) { transition-delay: 720ms; }

/* =========================================================
   22. PULSANTE "TORNA SU"
   ========================================================= */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-3));
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  box-shadow: 0 8px 30px -6px rgba(124, 58, 237, 0.6);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.85);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: bt-glow 2.6s ease-in-out infinite;
}
.back-top:hover {
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.85);
  transform: translateY(-3px) scale(1.05);
}
.back-top svg { width: 22px; height: 22px; }
@keyframes bt-glow {
  0%, 100% { box-shadow: 0 8px 30px -6px rgba(124, 58, 237, 0.6), 0 0 0 0 rgba(168, 85, 247, 0.45); }
  50%       { box-shadow: 0 8px 30px -6px rgba(124, 58, 237, 0.8), 0 0 0 10px rgba(168, 85, 247, 0); }
}
@media (max-width: 760px) {
  .back-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

@media (max-width: 760px) {
  #scroll-progress { display: none; }

  .nav::before {
    top: -30px;
    left: -20px;
    right: -20px;
    height: 190px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.40) 48%,
      rgba(0, 0, 0, 0.12) 78%,
      transparent 100%
    );
  }

  .nav-inner {
    position: relative;
    isolation: isolate;
  }

  .nav-progress-ring {
    display: block;
  }

  .nav-progress-stroke {
    opacity: 0.64;
  }

  .hero {
    padding-top: 132px;
    padding-bottom: 112px;
    min-height: 96vh;
  }

  .hero-scroll {
    bottom: 10px;
    gap: 11px;
  }

  .hero-scroll .line {
    height: 58px;
  }

  /* Layout più arioso e leggibile su mobile */
  .section-title {
    font-size: clamp(28px, 8.2vw, 40px);
    margin-bottom: 14px;
  }

  .section-lead {
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-name {
    font-size: clamp(36px, 11.2vw, 52px);
  }

  .hero-tag {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.62;
    max-width: 100%;
  }

  .hero-badges {
    gap: 8px;
    margin-top: 24px;
  }

  .hero-badges .chip {
    font-size: 10px;
    padding: 7px 11px;
    letter-spacing: 0.08em;
  }

  .hero-cta {
    gap: 10px;
    margin-top: 28px;
  }

  .btn {
    font-size: 11px;
    padding: 12px 18px;
    letter-spacing: 0.12em;
  }

  #bg-canvas { opacity: .42; }
  #bg-noise { display: none; }
  .ambient-text span {
    opacity: .75;
    animation-duration: 120s !important;
  }

  .nav-inner,
  .mobile-panel,
  .btn,
  .glass,
  .ai-chat-trigger-bubble,
  .contact-avatar-bubble,
  .cookie-banner {
    backdrop-filter: blur(10px) saturate(1.25);
    -webkit-backdrop-filter: blur(10px) saturate(1.25);
  }

  .back-top.show,
  .ai-chat-trigger-glow,
  .contact-avatar-glow,
  .ai-chat-trigger.show .ai-chat-trigger-bubble,
  .contact-avatar.show .contact-avatar-bubble,
  .bizcard-glow,
  .bizcard,
  .book-featured-cover img {
    animation: none !important;
  }

  .ai-chat-trigger-glow,
  .contact-avatar-glow {
    filter: none;
    opacity: .38;
  }

  .bizcard-glow {
    filter: blur(26px);
    opacity: .48;
  }
}

/* =========================================================
   MINI CHAT AI MODALE
   ========================================================= */
.ai-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.ai-chat-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.ai-chat-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 12%, rgba(124, 58, 237, 0.24), transparent 38%),
    rgba(2, 3, 8, 0.72);
  backdrop-filter: blur(10px);
}
.ai-chat-dialog {
  position: absolute;
  right: clamp(16px, 4vw, 56px);
  bottom: clamp(18px, 5vw, 56px);
  width: min(470px, calc(100vw - 32px));
  height: min(720px, calc(100dvh - 44px));
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background:
    linear-gradient(155deg, rgba(20, 10, 40, 0.84), rgba(5, 5, 10, 0.92));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.62),
    0 0 52px rgba(124, 58, 237, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform: translateY(22px) scale(.96);
  transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}
.ai-chat-modal.open .ai-chat-dialog {
  transform: translateY(0) scale(1);
}
.ai-chat-head {
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.20);
  background: rgba(5, 5, 12, 0.54);
}
.ai-chat-head strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.01em;
}
.ai-chat-kicker {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 2px;
}
.ai-chat-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background: rgba(124, 58, 237, 0.10);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.ai-chat-close:hover {
  border-color: var(--cyan-soft);
  background: rgba(6, 182, 212, 0.12);
  transform: rotate(6deg);
}
.ai-chat-close svg {
  width: 18px;
  height: 18px;
}
.ai-chat-dialog iframe {
  border: 0;
  width: 100%;
  flex: 1;
  background: #06070d;
}
body.ai-chat-lock {
  overflow: hidden;
}
@media (max-width: 640px) {
  .ai-chat-dialog {
    inset: 10px;
    width: auto;
    height: auto;
    border-radius: 22px;
  }
  .ai-chat-head {
    height: 58px;
  }
}

/* =========================================================
   TRIGGER CHAT AI FLUTTUANTE
   ========================================================= */
.ai-chat-trigger {
  position: fixed;
  right: 24px;
  bottom: 172px; /* Sopra l'avatar di contatto (bottom 96px + 60px + 16px di spazio) */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-0));
  border: 2px solid rgba(6, 182, 212, 0.45);
  color: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 149;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.85);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}
.ai-chat-trigger.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.ai-chat-trigger-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.5) 0%, transparent 70%);
  filter: blur(12px);
  animation: ai-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ai-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: .95;  transform: scale(1.15); }
}
.ai-chat-trigger-icon {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
  transition: transform .25s ease;
}
.ai-chat-trigger:hover {
  border-color: var(--cyan-soft);
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.65);
}
.ai-chat-trigger:hover .ai-chat-trigger-icon {
  transform: scale(1.12) rotate(5deg);
}

/* Fumetto "Chiedi all'AI" */
.ai-chat-trigger-bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.ai-chat-trigger.show .ai-chat-trigger-bubble {
  animation: bubble-fade-out 7s forwards, ai-bubble-float 3s ease-in-out infinite;
}
.ai-chat-trigger:hover .ai-chat-trigger-bubble {
  opacity: 1 !important;
  visibility: visible !important;
}
.ai-chat-trigger-bubble::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(6, 182, 212, 0.45);
}
@keyframes ai-bubble-float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-50%) translateX(-4px); }
}

/* =========================================================
   AVATAR CONTATTO RAPIDO
   ========================================================= */
.contact-avatar {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 60px;
  height: 60px;
  z-index: 149;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.85);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.contact-avatar.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.contact-avatar-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.7) 0%, transparent 70%);
  filter: blur(12px);
  animation: avatar-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes avatar-pulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.2); }
}
.contact-avatar > img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(192, 132, 252, 0.7);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  display: block;
  position: relative;
  z-index: 1;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-avatar:hover > img {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.7);
}

/* Fumetto "Contattami" */
.contact-avatar-bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-glow);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.contact-avatar.show .contact-avatar-bubble {
  animation: bubble-fade-out 7s forwards, bubble-float 3s ease-in-out infinite;
}
.contact-avatar:hover .contact-avatar-bubble {
  opacity: 1 !important;
  visibility: visible !important;
}
.contact-avatar-bubble::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(124, 58, 237, 0.45);
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-50%) translateX(-4px); }
}

@keyframes bubble-fade-out {
  0% { opacity: 0; visibility: visible; }
  7% { opacity: 1; visibility: visible; }
  78% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* Popup WhatsApp */
.contact-avatar-popup {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  width: 270px;
  padding: 20px;
  border-radius: var(--radius-l);
  transform-origin: bottom right;
  transform: scale(0) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
  z-index: 2;
  box-shadow: 0 16px 48px -8px rgba(124, 58, 237, 0.45);
}
.contact-avatar-popup.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.contact-avatar-popup-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 16px;
}
.contact-avatar-wa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c4a);
  color: #fff;
  border-radius: 50px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .25s ease, transform .25s ease;
  white-space: nowrap;
  justify-content: center;
}
.contact-avatar-wa-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}
@media (max-width: 760px) {
  .contact-avatar { right: 16px; bottom: 82px; width: 52px; height: 52px; }
  .contact-avatar > img { width: 52px; height: 52px; }
  .contact-avatar-popup { width: 240px; }
  .contact-avatar-bubble { display: none; }

  .ai-chat-trigger { right: 16px; bottom: 148px; width: 52px; height: 52px; }
  .ai-chat-trigger-icon { width: 22px; height: 22px; }
  .ai-chat-trigger-bubble { display: none; }
}

/* =========================================================
   23. CURSORE PERSONALIZZATO (solo desktop con hover preciso)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  body.cursor-on,
  body.cursor-on * { cursor: none !important; }

  #cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--violet-glow);
    pointer-events: none;
    z-index: 300;
    transform: translate(-50%, -50%);
    transition: width .2s, height .2s, background .2s;
    mix-blend-mode: difference;
  }
  #cursor.lg {
    width: 64px;
    height: 64px;
    background: rgba(192, 132, 252, 0.18);
    border-color: var(--violet-glow);
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.4);
  }
  #cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--violet-glow);
    pointer-events: none;
    z-index: 300;
    transform: translate(-50%, -50%);
  }
}

/* =========================================================
   24. FOOTER — link legali
   ========================================================= */
.foot-legal {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
  justify-content: flex-start;
}
.foot-cookie-btn {
  background: none;
  border: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.foot-cookie-btn:hover { color: var(--violet-glow); }

/* =========================================================
   25. COOKIE BANNER GDPR
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 20px 24px;
  background: rgba(8, 13, 26, 0.97);
  border-top: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 40px rgba(124, 58, 237, 0.2);
  animation: cookie-slide-up .4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 380px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}
.cookie-banner-title {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.cookie-banner-text a {
  color: var(--violet-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover { color: var(--cyan-soft); }

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  min-width: 148px;
  text-align: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .cookie-banner-inner { gap: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; min-width: 0; }
}

/* =========================================================
   26. MAPPA COMPETENZE — radar chart
   ========================================================= */
.competenze-block {
  margin-top: 70px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.radar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}
@media (max-width: 880px) {
  .radar-wrap { grid-template-columns: 1fr; }
}

.radar-canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

#radarChart {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: block;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.28));
}

.radar-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radar-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.radar-legend-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radar-legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.radar-legend-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.radar-legend-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--violet-glow);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.radar-legend-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(124, 58, 237, 0.16);
  overflow: hidden;
}

.radar-legend-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 1.4s cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   FIN — style.css
   ========================================================= */

/* =========================================================
   AI&VOLUTIONS — REFINEMENTS JULY 2026
   ========================================================= */
@media (min-width: 881px) {
  .nav-inner { justify-content: flex-start; }
  .nav-links { margin-left: auto; justify-content: flex-end; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { max-width: 1180px; transform: translateY(58px); }
  .hero-tag { max-width: 920px; }
  .hero-badges, .hero-cta { flex-wrap: nowrap; }
  .hero-badges .chip { padding-inline: 13px; }
}

.hero-company-name {
  width: fit-content;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  color: #f7f4ff;
  text-shadow: 0 0 12px rgba(168,85,247,.30), 0 0 28px rgba(6,182,212,.12);
}

.ceo-expanded-panel {
  max-width: calc(var(--maxw) - 64px);
  margin: -120px auto 90px;
  padding: 34px 10px 22px;
  position: relative;
  z-index: 6;
  overflow: clip;
  border: 1px solid rgba(216, 187, 139, .28);
  border-radius: 0 0 34px 34px;
  background: linear-gradient(180deg, #070708 0%, #1b1713 38%, #554431 100%);
  box-shadow: 0 28px 64px -40px rgba(181,135,80,.46), inset 0 1px rgba(255,240,215,.06);
  animation: none;
}
.ceo-profile-open .ceo-card { border-radius: var(--radius-l) var(--radius-l) 0 0; border-bottom-color: rgba(216,187,139,.18); }
.ceo-expanded-panel[hidden] { display: none; }
.ceo-expanded-panel::before {
  display: none;
}
.ceo-expanded-panel .ceo-profile-details { position: relative; z-index: 1; animation: none; }
.ceo-expanded-panel .ceo-detail-section { padding-block: 82px; background: transparent; content-visibility:visible; contain:none; }
.ceo-expanded-panel .ceo-detail-section + .ceo-detail-section { border-top: 1px solid rgba(236,207,166,.10); }
.ceo-expanded-panel .glass { border-color: rgba(224,195,151,.19); background: rgba(22,18,15,.78); backdrop-filter:none; -webkit-backdrop-filter:none; }
.ceo-expanded-panel .glass::before { display:none; }
.ceo-expanded-panel .accent { background-image: linear-gradient(135deg,#f4e2c3,#c69b63); }
.ceo-panel-close {
  position: sticky;
  top: 96px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 24px 0 auto;
  padding: 10px 12px 10px 17px;
  border-radius: 999px;
  border: 1px solid rgba(232,203,162,.28);
  background: rgba(13,11,10,.86);
  color: #f3e4cf;
  font: 600 11px/1 "JetBrains Mono",monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: none;
  box-shadow: 0 12px 36px rgba(0,0,0,.34);
}
.ceo-panel-close span { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:#8d6842; font-size:20px; line-height:1; }
.ceo-panel-close:hover { border-color:#d1aa78; transform:translateY(-1px); }

.contact-wrap { max-width: none; grid-template-columns: minmax(0,1fr) minmax(360px,.9fr)!important; align-items: stretch; }
.contact-map { min-height: 430px; padding: 10px; display:grid; grid-template-rows:1fr auto; overflow:hidden; }
.contact-map iframe { width:100%; min-height:300px; height:100%; border:0; border-radius:20px; filter:grayscale(.45) invert(.90) hue-rotate(175deg) saturate(.72) contrast(.95); }
.contact-map-caption { display:grid; grid-template-columns:1fr auto; gap:7px 20px; align-items:end; padding:19px 14px 10px; }
.contact-map-caption span { color:var(--cyan-soft); font:600 10px/1 "JetBrains Mono",monospace; letter-spacing:.14em; text-transform:uppercase; }
.contact-map-caption strong { grid-column:1; font:600 16px/1.45 "Space Grotesk",sans-serif; }
.contact-map-caption a { grid-column:2; grid-row:1 / span 2; align-self:center; color:var(--violet-glow); font-size:12px; }

.ai-chat-trigger, .contact-avatar { width:54px; height:54px; }
.ai-chat-trigger { bottom:156px; }
.contact-avatar { bottom:90px; }
.ai-chat-trigger-icon { width:23px; height:23px; }
.whatsapp-mark { width:54px; height:54px; padding:9px; }

@media (max-width: 880px) {
  .hero-company-name { font-size:clamp(36px,11vw,56px); }
  .hero-text { transform:translateY(28px); }
  .hero-badges, .hero-cta { flex-wrap:wrap; }
  .contact-wrap { grid-template-columns:1fr!important; }
  .contact-map { min-height:390px; }
  .ceo-expanded-panel { max-width:none; margin:-80px 22px 70px; padding-inline:0; border-radius:0 0 26px 26px; }
  .ceo-expanded-panel .ceo-detail-section { padding-block:64px; }
  .ceo-panel-close { margin-right:14px; }
}

@media (max-width:760px) {
  .ai-chat-trigger, .contact-avatar { width:48px; height:48px; right:16px; }
  .contact-avatar { bottom:76px; }
  .ai-chat-trigger { bottom:136px; }
  .whatsapp-mark { width:48px; height:48px; padding:8px; }
  .contact-map-caption { grid-template-columns:1fr; }
  .contact-map-caption a { grid-column:1; grid-row:auto; margin-top:8px; }
  .ceo-profile-open .ceo-panel-close {
    position: fixed;
    top: auto;
    right: 76px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    justify-content: center;
    border-color: rgba(232,203,162,.42);
    background: rgba(36,29,22,.82);
    font-size: 0;
    box-shadow: 0 10px 28px rgba(0,0,0,.36);
  }
  .ceo-profile-open .ceo-panel-close span { width:30px; height:30px; font-size:24px; background:transparent; }
}

/* Final visual polish: lighter navigation and smoother CEO/article states */
.nav-inner,
.nav.scrolled .nav-inner {
  background: rgba(10, 10, 15, .78);
  border-color: rgba(210, 215, 228, .16);
  box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.055);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}
.nav-inner::before,
.nav-inner::after { display:none; }
.nav-logo,
.nav-brand:hover .nav-logo { filter:none; opacity:.9; }
.lang-toggle { background:rgba(255,255,255,.035); border-color:rgba(255,255,255,.10); box-shadow:none; }
.lang-pill.is-active { background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.14); }
.hamburger { background:rgba(18,18,24,.86); border-color:rgba(255,255,255,.12); box-shadow:none; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.nav-links a.active { background:rgba(255,255,255,.075); border-color:rgba(255,255,255,.10); box-shadow:none; }
.nav-links a:hover { background:rgba(255,255,255,.055); border-color:rgba(255,255,255,.09); box-shadow:none; }
.nav-progress-stroke { filter:none; opacity:.52; }

@media (min-width:881px) {
  .hero-text { transform:translateY(clamp(82px,10vh,120px)); }
}
@media (max-width:880px) {
  .hero-text { transform:translateY(66px); }
}

.ceo-expanded-panel,
.ceo-expanded-panel *,
.ceo-expanded-panel *::before,
.ceo-expanded-panel *::after {
  text-shadow:none!important;
  box-shadow:none!important;
  filter:none!important;
  animation:none!important;
}
.ceo-expanded-panel .glass:hover { box-shadow:none; transform:none; }
.ceo-expanded-panel .btn:hover { box-shadow:none; }
.ceo-profile-open .ceo-card,
.ceo-profile-open .ceo-card:hover { box-shadow:none!important; filter:none!important; }
.ceo-profile-open .ceo-card::before { display:none; }

.articles-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.articles-head .articles-label { margin-bottom:0; }
.articles-refresh {
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:9px 13px;
  border-radius:999px;
  border:1px solid rgba(213,183,141,.25);
  background:rgba(20,17,14,.68);
  color:#ead8be;
  font:600 10px/1 "JetBrains Mono",monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .2s,border-color .2s,opacity .2s;
}
.articles-refresh:hover { background:rgba(73,57,40,.72); border-color:rgba(226,195,151,.42); }
.articles-refresh:disabled { cursor:wait; opacity:.72; }
.articles-refresh-icon { display:inline-block; font-size:18px; line-height:1; }
.articles-refresh.is-loading .articles-refresh-icon { animation:articleRefreshSpin .8s linear infinite!important; }
@keyframes articleRefreshSpin { to { transform:rotate(360deg); } }

.article-skeleton { grid-template-columns:.82fr 1fr; pointer-events:none; opacity:1; }
.article-skeleton-image,
.article-skeleton-line {
  display:block;
  border-radius:12px;
  background:linear-gradient(90deg,rgba(255,255,255,.045) 20%,rgba(255,255,255,.11) 46%,rgba(255,255,255,.045) 72%);
  background-size:220% 100%;
  animation:articleSkeleton 1.15s ease-in-out infinite!important;
}
.article-skeleton-image { min-height:100%; border-radius:22px 0 0 22px; }
.article-skeleton-line { height:12px; margin:0 0 15px; }
.article-skeleton-line.short { width:34%; height:9px; }
.article-skeleton-line.title { width:88%; height:24px; margin-block:10px 20px; }
.article-skeleton-line.medium { width:66%; }
@keyframes articleSkeleton { 0%{background-position:180% 0} 100%{background-position:-40% 0} }

@media (max-width:760px) {
  .ceo-profile-open .ceo-panel-close {
    left:50%;
    right:auto;
    bottom:18px;
    width:auto;
    min-width:168px;
    height:50px;
    padding:8px 9px 8px 17px;
    gap:12px;
    justify-content:space-between;
    transform:translateX(-50%);
    font-size:10px;
    color:#f2dfc3;
    border:1px solid rgba(235,205,164,.38);
    background:rgba(40,32,24,.88);
    border-radius:999px;
    z-index:220;
    box-shadow:0 12px 30px rgba(0,0,0,.36)!important;
  }
  .ceo-profile-open .ceo-panel-close:hover { transform:translateX(-50%); }
  .ceo-profile-open .ceo-panel-close span { width:32px; height:32px; border-radius:50%; background:rgba(139,103,66,.74); font-size:23px; }
  .articles-head { align-items:flex-start; flex-direction:column; }
  .article-skeleton { grid-template-columns:1fr; }
  .article-skeleton-image { min-height:160px; border-radius:22px 22px 0 0; }
}

/* CEO profile: the compact card dissolves into a separate full-width view. */
.ceo-section {
  transition: opacity .26s ease, transform .26s ease;
}
.ceo-section.ceo-card-leaving,
.ceo-section.ceo-card-entering {
  opacity: 0;
  transform: translateY(10px);
}
.ceo-section[hidden],
.ceo-expanded-panel[hidden] {
  display: none!important;
}
.ceo-expanded-panel {
  width: 100%;
  max-width: none;
  margin: 0 0 90px;
  padding: 28px 0 30px;
  overflow: clip;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #030304 0%, #090807 18%, #1d1813 58%, #4b3c2c 100%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .30s ease, transform .30s ease;
}
.ceo-expanded-panel.is-visible {
  opacity: 1;
  transform: none;
}
.ceo-expanded-panel .ceo-detail-section + .ceo-detail-section {
  border-top: 0;
}
.ceo-profile-open .ceo-card {
  border-radius: var(--radius-l);
  border-bottom-color: rgba(192,132,252,.26);
}

/* Compact, text-only CEO article cards. */
.ceo-expanded-panel .article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ceo-expanded-panel .article-card,
.ceo-expanded-panel .article-card.article-loading,
.ceo-expanded-panel .article-skeleton {
  display: block;
  min-height: 0;
  grid-template-columns: 1fr;
}
.ceo-expanded-panel .article-body {
  min-height: 148px;
  justify-content: center;
  padding: 25px 27px;
}
.ceo-expanded-panel .article-card h4 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.18;
}
.ceo-expanded-panel .article-meta {
  color: #d9ba8c;
  margin-bottom: 13px;
}
.ceo-expanded-panel .article-skeleton-line.title {
  margin-bottom: 0;
}
.ceo-expanded-panel .article-skeleton-line {
  animation: articleSkeleton 1.15s ease-in-out infinite!important;
}

/* Lower hero composition with a deeper image-to-page fade. */
.hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,.44) 0%, rgba(0,0,0,.56) 45%, rgba(5,5,8,.88) 82%, var(--bg-0) 100%),
    url("header.png") center 38% / cover no-repeat;
}
.hero::after {
  height: 52%;
  background: linear-gradient(180deg, transparent 0%, rgba(5,5,8,.32) 28%, var(--bg-0) 100%);
}
.hero-company-name {
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
@media (min-width:881px) {
  .hero-text { transform: translateY(clamp(128px, 15vh, 176px)); }
}
@media (max-width:880px) {
  .hero-text { transform: translateY(96px); }
  .ceo-expanded-panel { margin: 0 0 70px; padding-top: 22px; }
}
@media (max-width:760px) {
  .ceo-expanded-panel .article-grid { grid-template-columns: 1fr; }
  .ceo-expanded-panel .article-body { min-height: 126px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ceo-section,
  .ceo-expanded-panel { transition-duration: .01ms; }
}

/* Hero lockup: full-screen stage with the supplied transparent wordmark. */
.hero {
  min-height: max(100svh, 780px);
  padding: clamp(210px, 25vh, 270px) 0 112px;
  align-items: flex-start;
}
.hero .container,
.hero-grid,
.hero-text {
  width: 100%;
}
.hero-text {
  max-width: none;
  transform: none!important;
  justify-self: start;
  text-align: left;
}
.hero-company-name {
  display: block;
  width: min(720px, 72vw);
  margin: 0;
  line-height: 0;
}
.hero-company-type {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

/* Minimal mobile navigation, consistent with the desktop topbar. */
.mobile-panel {
  top: 86px;
  width: min(88vw, 280px);
  padding: 9px;
  gap: 2px;
  border: 1px solid rgba(210,215,228,.14);
  border-radius: 18px;
  background: rgba(10,10,15,.94);
  box-shadow: 0 14px 34px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.045);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  transform: translateY(-7px) scale(.985);
  transition: transform .20s ease, opacity .18s ease;
}
.mobile-panel::before,
.mobile-panel::after {
  display: none;
}
.mobile-panel.open {
  transform: none;
  transition: transform .22s ease, opacity .18s ease;
}
.mobile-panel a {
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(223,226,237,.70);
}
.mobile-panel a:hover,
.mobile-panel a:focus-visible {
  color: #f5f6fa;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}
.mobile-lang-toggle {
  margin-top: 5px;
  padding: 7px 4px 3px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-lang-toggle .lang-pill {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.07);
}
.mobile-lang-toggle .lang-pill.is-active {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.12);
}

/* The floating close control only exists while the expanded CEO view is onscreen. */
.ceo-profile-open:not(.ceo-close-visible) .ceo-panel-close {
  opacity: 0!important;
  visibility: hidden;
  pointer-events: none;
}
.ceo-profile-open.ceo-close-visible .ceo-panel-close {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ceo-panel-close {
  transition: opacity .20s ease, visibility .20s ease, transform .20s ease, border-color .20s ease;
}

@media (max-width:880px) {
  .hero {
    min-height: max(100svh, 820px);
    padding-top: clamp(184px, 23vh, 222px);
    padding-bottom: 112px;
  }
  .hero-company-name { width: min(88vw, 620px); }
}

@media (max-width:760px) {
  .hero {
    min-height: max(100svh, 860px);
    padding-top: clamp(176px, 22vh, 210px);
    padding-bottom: 108px;
  }
  .hero-company-name { width: min(86vw, 520px); }
  .mobile-panel { right: 16px; }
  .ceo-profile-open:not(.ceo-close-visible) .ceo-panel-close {
    transform: translate(-50%, 10px);
  }
}

/* Final hero geometry: content is anchored to the bottom, never to the top. */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: max(100svh, 780px);
  padding-top: clamp(150px, 17vh, 210px);
  padding-bottom: clamp(118px, 11vh, 150px);
}
.hero > .container {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
}

/* Delayed scroll cue, kept above the dark image fade. */
.hero-scroll {
  bottom: 30px;
  z-index: 12;
  gap: 9px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
  color: rgba(239,241,248,.72);
}
.hero-scroll.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.hero-scroll .line {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  background: rgba(8,8,12,.56);
  animation: none;
}
.hero-scroll .line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(255,255,255,.78);
  border-bottom: 1.5px solid rgba(255,255,255,.78);
  transform: translate(-50%,-50%) rotate(45deg);
}

/* The personal CEO profile follows the primary company journey. */
.ceo-section { padding-top: 150px; }

@media (max-width:880px) {
  .hero {
    min-height: max(100svh, 860px);
    padding-top: 150px;
    padding-bottom: clamp(122px, 11vh, 146px);
  }
  .hero-scroll { bottom: 26px; }
  .ceo-section { padding-top: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { transition-duration: .01ms; }
}

/* Improve wordmark contrast over the photographic hero at every size. */
.hero-company-type {
  filter:
    drop-shadow(0 3px 5px rgba(0,0,0,.92))
    drop-shadow(0 12px 22px rgba(0,0,0,.68));
}

/* Tablet and mobile hero: lower, larger content without revealing the next section. */
@media (max-width:880px) {
  .hero {
    min-height: max(calc(100dvh + 72px), 860px);
    padding-top: 148px;
    padding-bottom: 106px;
  }
  .hero-company-name {
    width: min(94vw, 700px);
    max-width: 100%;
  }
  .hero-rotator {
    font-size: clamp(15px, 2.25vw, 18px);
  }
  .hero-tag {
    max-width: 760px;
    font-size: clamp(16px, 2.15vw, 19px);
  }
  .hero-badges .chip {
    font-size: 10.5px;
  }
  .hero-cta .btn {
    font-size: 11.5px;
  }
  .hero-scroll {
    position: fixed;
    bottom: 24px;
  }
}

@media (max-width:760px) {
  .hero {
    min-height: max(calc(100dvh + 88px), 880px);
    padding-top: 142px;
    padding-bottom: 100px;
  }
  .hero-company-name {
    width: 100%;
  }
  .hero-rotator {
    font-size: 15.5px;
  }
  .hero-tag {
    font-size: 16px;
    line-height: 1.66;
  }
  .hero-badges .chip {
    font-size: 10.5px;
    padding: 8px 12px;
  }
  .hero-cta .btn {
    font-size: 11.5px;
  }
}

/* Compact contextual AI suggestions, visually aligned with the minimal topbar. */
.ai-context-toast {
  top: 92px;
  width: min(430px, calc(100vw - 32px));
}
.ai-context-toast-btn {
  min-height: 54px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(210,215,228,.14);
  border-radius: 15px;
  background: rgba(10,10,15,.94);
  box-shadow: 0 12px 30px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.045);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  transform: translate(-50%, -10px);
}
.ai-context-avatar {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  box-shadow: none;
}
.ai-context-avatar img {
  border: 0;
  opacity: .88;
}
.ai-context-copy { gap: 2px; }
.ai-context-kicker {
  font-size: 8px;
  letter-spacing: .13em;
  color: rgba(207,215,230,.56);
}
.ai-context-text {
  color: rgba(241,243,248,.88);
  font-size: 12.5px;
  line-height: 1.3;
}
.ai-context-toast.show .ai-context-toast-btn {
  animation: aiToastMinimalIn .26s ease-out forwards;
}
.ai-context-toast.hiding .ai-context-toast-btn {
  animation: aiToastMinimalOut .22s ease-in forwards;
}
@keyframes aiToastMinimalIn {
  from { opacity:0; transform:translate(-50%,-10px); }
  to { opacity:1; transform:translate(-50%,0); }
}
@keyframes aiToastMinimalOut {
  from { opacity:1; transform:translate(-50%,0); }
  to { opacity:0; transform:translate(-50%,-7px); }
}

/* The FAQ question box stays static: no rotating internal glow. */
.faq-ai-ask::before {
  display: none;
  animation: none;
}
.faq-ai-ask {
  background: rgba(10,14,25,.76);
  box-shadow: none;
}
.faq-ai-ask::after {
  background: rgba(10,14,25,.42);
}

@media (max-width:640px) {
  .ai-context-toast {
    top: 84px;
    width: min(360px, calc(100vw - 24px));
  }
  .ai-context-toast-btn {
    min-height: 50px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 8px 11px 8px 8px;
    border-radius: 14px;
  }
  .ai-context-avatar {
    width: 30px;
    height: 30px;
  }
  .ai-context-text {
    font-size: 12px;
  }
}

/* Hero controls: icon badges, lighter CTAs and coordinated entrance. */
.hero-company-name {
  width: min(650px, 65vw);
}

.hero-badges {
  gap: 12px;
}
.hero-badges .chip {
  gap: 10px;
  padding: 10px 15px;
  border-radius: 11px;
  background: rgba(8, 11, 20, .72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(231, 235, 244, .82);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.hero-badges .chip-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
.hero-badges .chip-ai { border-color: rgba(99,102,241,.30); }
.hero-badges .chip-ai .chip-icon { color: #7783ff; }
.hero-badges .chip-cyber { border-color: rgba(56,139,253,.27); }
.hero-badges .chip-cyber .chip-icon { color: #3b97ff; }
.hero-badges .chip-innovation { border-color: rgba(192,84,252,.27); }
.hero-badges .chip-innovation .chip-icon { color: #c45cff; }
.hero-badges .chip-gdpr { border-color: rgba(34,211,238,.25); }
.hero-badges .chip-gdpr .chip-icon { color: #35c9ed; }

.hero-cta {
  align-items: center;
}
.hero-cta .services-btn {
  border-color: rgba(148,163,184,.34);
  background: rgba(7,9,14,.58);
  color: rgba(239,242,248,.88);
  box-shadow: none;
}
.hero-cta .services-btn::before {
  display: none;
}
.hero-cta .services-btn:hover {
  border-color: rgba(148,163,184,.58);
  background: rgba(17,20,29,.82);
  box-shadow: none;
}
.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border: 0;
  background: transparent;
  color: rgba(226,230,239,.76);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .22s ease, transform .22s ease;
}
.hero-text-link .arrow {
  color: var(--cyan-soft);
  transition: transform .22s ease;
}
.hero-text-link:hover {
  color: #fff;
  transform: translateY(-1px);
}
.hero-text-link:hover .arrow {
  transform: translateX(4px);
}

.hero-text > .hero-company-name,
.hero-text > .hero-rotator,
.hero-text > .hero-tag,
.hero-text > .hero-badges,
.hero-text > .hero-cta {
  opacity: 0;
  animation: heroContentFade .72s cubic-bezier(.22,.72,.25,1) forwards;
}
.hero-text > .hero-company-name { animation-delay: .06s; }
.hero-text > .hero-rotator { animation-delay: .15s; }
.hero-text > .hero-tag { animation-delay: .24s; }
.hero-text > .hero-badges { animation-delay: .33s; }
.hero-text > .hero-cta { animation-delay: .42s; }

@keyframes heroContentFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width:880px) {
  .hero-company-name { width: min(82vw, 570px); }
  .hero-badges { gap: 9px; }
  .hero-badges .chip {
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .hero-text-link { font-size: 14px; }
}

@media (max-width:760px) {
  .hero-company-name { width: min(80vw, 480px); }
  .hero-cta { align-items: center; }
  .hero-text-link {
    padding: 11px 3px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text > .hero-company-name,
  .hero-text > .hero-rotator,
  .hero-text > .hero-tag,
  .hero-text > .hero-badges,
  .hero-text > .hero-cta {
    opacity: 1;
    animation: none;
  }
}

/* Smartphone hero: preserve the header image and group the content below it. */
@media (max-width: 760px) {
  .hero {
    min-height: max(100svh, 720px);
    padding: clamp(340px, 49svh, 420px) 14px 22px;
    background:
      linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(3,4,8,.18) 37%, rgba(5,5,8,.94) 58%, var(--bg-0) 100%),
      url("header.png") center 52px / auto clamp(390px, 57svh, 500px) no-repeat,
      var(--bg-0);
  }

  .hero::after {
    height: 56%;
    background: linear-gradient(180deg, transparent, rgba(5,5,8,.72) 24%, var(--bg-0) 100%);
  }

  .hero > .container {
    padding-inline: 0;
  }

  .hero-text {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(10,12,20,.88), rgba(8,9,15,.96));
    box-shadow: 0 18px 42px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.045);
    backdrop-filter: blur(12px) saturate(1.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
  }

  .hero-company-name {
    width: min(68vw, 310px);
  }

  .hero-rotator {
    min-height: 20px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-tag {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.48;
  }

  .hero-badges {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-badges .chip {
    gap: 6px;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 9px;
    line-height: 1.15;
  }

  .hero-badges .chip-icon {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .hero-cta {
    gap: 7px;
    margin-top: 14px;
    align-items: center;
  }

  .hero-cta .btn {
    min-height: 35px;
    padding: 8px 10px;
    font-size: 8.5px;
    letter-spacing: .06em;
  }

  .hero-text-link {
    gap: 6px;
    padding: 7px 2px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .hero-scroll {
    display: none !important;
  }
}

@media (max-width: 760px) and (max-height: 760px) {
  .hero {
    min-height: 100svh;
    padding-top: clamp(278px, 43svh, 325px);
    padding-bottom: 16px;
    background-size: auto, auto clamp(340px, 54svh, 420px), auto;
    background-position: center, center 48px, center;
  }
  .hero-text { padding: 14px; }
  .hero-company-name { width: min(62vw, 270px); }
  .hero-tag { font-size: 11px; line-height: 1.42; }
  .hero-badges { margin-top: 10px; }
  .hero-cta { margin-top: 11px; }
}

/* =========================================================
   THEME SWITCHER + LIGHT THEME
   ========================================================= */
.theme-toggle {
  position: relative;
  z-index: 8;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: rgba(241,245,249,.82);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover {
  color: #fff;
  border-color: rgba(192,132,252,.34);
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
}
.theme-toggle:focus-visible {
  outline: 3px solid rgba(34,211,238,.28);
  outline-offset: 2px;
}
.theme-icon { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }

@media (max-width: 880px) {
  .theme-toggle { margin-left: auto; width: 42px; height: 42px; flex-basis: 42px; }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-0: #f4f6fb;
  --bg-1: #eef2f8;
  --bg-2: #e7edf6;
  --surface: rgba(255,255,255,.78);
  --surface-2: rgba(248,250,255,.94);
  --line: rgba(72,66,125,.16);
  --line-2: rgba(101,71,196,.34);
  --violet: #6940d7;
  --violet-2: #7c3edc;
  --violet-3: #5930ba;
  --violet-glow: #643ac4;
  --indigo: #4f5fc7;
  --cyan: #087f98;
  --cyan-soft: #087a91;
  --text: #171a2b;
  --text-dim: #50586d;
  --text-faint: #687187;
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: var(--bg-0);
  color: var(--text);
}
html[data-theme="light"] body {
  background:
    radial-gradient(1100px 760px at 82% -10%, rgba(105,64,215,.13), transparent 60%),
    radial-gradient(900px 680px at 0% 30%, rgba(8,127,152,.09), transparent 56%),
    linear-gradient(180deg, #fafbfe 0%, var(--bg-0) 45%, var(--bg-1) 100%);
}
html[data-theme="light"] #bg-grid {
  opacity: .58;
  background-image:
    linear-gradient(rgba(90,74,150,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,74,150,.07) 1px, transparent 1px);
}
html[data-theme="light"] #bg-canvas { opacity: .24; }
html[data-theme="light"] .ambient-text span { color: rgba(76,50,150,.08); }
html[data-theme="light"] .ambient-text span.cyan { color: rgba(8,122,145,.07); }
html[data-theme="light"] ::selection { background: rgba(105,64,215,.25); color: #171a2b; }

html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }
html[data-theme="light"] .theme-toggle {
  color: #433a70;
  border-color: rgba(75,62,120,.16);
  background: #f7f8fc;
  box-shadow: 0 4px 14px rgba(45,38,85,.10);
}
html[data-theme="light"] .theme-toggle:hover { color: #5930ba; background: #fff; }

html[data-theme="light"] .nav::before {
  background: linear-gradient(180deg, rgba(244,246,251,.88), rgba(244,246,251,.46) 55%, transparent);
}
html[data-theme="light"] .nav-inner,
html[data-theme="light"] .nav.scrolled .nav-inner {
  color: var(--text);
  background: rgba(255,255,255,.82);
  border-color: rgba(63,56,105,.14);
  box-shadow: 0 12px 32px rgba(35,31,70,.12), inset 0 1px rgba(255,255,255,.94);
}
html[data-theme="light"] .nav-links a { color: #545b70; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active {
  color: #211b3b;
  background: rgba(105,64,215,.09);
  border-color: rgba(105,64,215,.14);
}
html[data-theme="light"] .lang-toggle {
  background: rgba(75,62,120,.045);
  border-color: rgba(75,62,120,.12);
}
html[data-theme="light"] .lang-pill { color: #626a7d; }
html[data-theme="light"] .lang-pill.is-active {
  color: #2e2358;
  background: #fff;
  border-color: rgba(105,64,215,.18);
  box-shadow: 0 2px 9px rgba(45,38,85,.08);
}
html[data-theme="light"] .hamburger {
  color: #27223c;
  background: rgba(250,251,255,.94);
  border-color: rgba(75,62,120,.16);
}
html[data-theme="light"] .mobile-panel {
  background: rgba(250,251,255,.97);
  border-color: rgba(75,62,120,.15);
  box-shadow: 0 18px 44px rgba(35,31,70,.16), inset 0 1px #fff;
}
html[data-theme="light"] .mobile-panel a { color: #555d70; }
html[data-theme="light"] .mobile-panel a:hover,
html[data-theme="light"] .mobile-panel a:focus-visible {
  color: #211b3b;
  background: rgba(105,64,215,.08);
  border-color: rgba(105,64,215,.12);
}
html[data-theme="light"] .mobile-lang-toggle { border-color: rgba(75,62,120,.12); }

html[data-theme="light"] .hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.12) 35%, rgba(244,246,251,.86) 80%, var(--bg-0) 100%),
    url("header.png") center 38% / cover no-repeat;
}
html[data-theme="light"] .hero::after {
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(244,246,251,.46) 26%, var(--bg-0) 100%);
}
html[data-theme="light"] .hero > .container { z-index: 3; }
html[data-theme="light"] .hero-rotator,
html[data-theme="light"] .hero-tag { color: #272b3d; }
html[data-theme="light"] .hero-company-type {
  filter: drop-shadow(0 2px 2px rgba(255,255,255,.92)) drop-shadow(0 8px 18px rgba(255,255,255,.72));
}
html[data-theme="light"] .hero-badges .chip {
  color: #292e42;
  background: #edf0f7;
  border-color: rgba(72,66,125,.24);
  box-shadow: 0 5px 16px rgba(38,34,72,.12), inset 0 1px #fff;
}
html[data-theme="light"] .hero-cta .btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #6940d7, #5930ba);
  border-color: #5930ba;
  box-shadow: 0 7px 18px rgba(89,48,186,.24);
}
html[data-theme="light"] .hero-cta .services-btn {
  color: #25293b;
  background: #eef1f7;
  border-color: rgba(62,67,89,.28);
}
html[data-theme="light"] .hero-text-link { color: #30364c; font-weight: 600; }

html[data-theme="light"] .glass,
html[data-theme="light"] .focus-card,
html[data-theme="light"] .stat,
html[data-theme="light"] .tab,
html[data-theme="light"] .s-mini,
html[data-theme="light"] .client-tag,
html[data-theme="light"] .social-row a {
  background: rgba(255,255,255,.78);
  border-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(38,34,72,.28);
}
html[data-theme="light"] .glass:hover { box-shadow: 0 16px 40px -24px rgba(80,55,155,.28); }
html[data-theme="light"] .glass::before { background: linear-gradient(120deg, transparent 30%, rgba(105,64,215,.055) 50%, transparent 70%); }
html[data-theme="light"] .focus-card::after { background: linear-gradient(180deg, transparent 42%, rgba(244,246,251,.62)); }
html[data-theme="light"] .focus-icon { background: rgba(105,64,215,.07); }
html[data-theme="light"] .focus-card h3,
html[data-theme="light"] .stat .v,
html[data-theme="light"] .service-ai-nudge strong,
html[data-theme="light"] .faq-ai-question strong { color: var(--text); }

html[data-theme="light"] .ai-prompt-card,
html[data-theme="light"] .ai-context-toast-btn {
  background: rgba(255,255,255,.88);
  border-color: rgba(90,68,170,.16);
  box-shadow: 0 18px 48px rgba(38,34,72,.13), inset 0 1px #fff;
}
html[data-theme="light"] .ai-prompt-card::before { mix-blend-mode: multiply; opacity: .22; }
html[data-theme="light"] .ai-question-chip {
  color: #343a4e;
  background: #f4f6fb;
  box-shadow: inset 0 1px #fff;
}
html[data-theme="light"] .ai-question-chip:nth-child(2),
html[data-theme="light"] .ai-question-chip:nth-child(3) { color: #343a4e; }
html[data-theme="light"] .ai-question-chip:hover { color: #211b3b; background: #eef0fa; }
html[data-theme="light"] .ai-context-text { color: #24283a; }

html[data-theme="light"] .tab:hover { background: rgba(105,64,215,.07); }
html[data-theme="light"] .tab.active { color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-3)); }
html[data-theme="light"] .servizio-pane ul li,
html[data-theme="light"] .service-ai-nudge {
  color: var(--text);
  background: rgba(247,248,253,.92);
  border-color: rgba(92,70,165,.14);
}
html[data-theme="light"] .s-mini:hover,
html[data-theme="light"] .s-mini.active { background: rgba(105,64,215,.075); }

html[data-theme="light"] .faq-ai-card,
html[data-theme="light"] .faq-ai-ask,
html[data-theme="light"] .maturity-band,
html[data-theme="light"] .maturity-form,
html[data-theme="light"] .maturity-step {
  color: var(--text);
  background: rgba(255,255,255,.80);
  border-color: rgba(92,70,165,.16);
  box-shadow: 0 12px 34px -26px rgba(38,34,72,.28);
}
html[data-theme="light"] .faq-ai-ask::after { background: rgba(250,251,255,.96); }
html[data-theme="light"] .faq-ai-input-row,
html[data-theme="light"] .faq-ai-input-row input,
html[data-theme="light"] .maturity-step input[type="text"],
html[data-theme="light"] .maturity-step > textarea {
  color: var(--text);
  background: #fff;
  border-color: rgba(92,70,165,.20);
}
html[data-theme="light"] .maturity-options span {
  color: #454c60;
  background: #f7f8fc;
  border-color: rgba(92,70,165,.16);
}
html[data-theme="light"] .maturity-options input:checked + span { color: #fff; background: var(--violet); }
html[data-theme="light"] .maturity-nav-btn.secondary { background: rgba(105,64,215,.08); }

html[data-theme="light"] .contact-cta-big {
  color: #211b3b;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(237,240,250,.92));
  border-color: rgba(92,70,165,.18);
  box-shadow: 0 14px 38px -24px rgba(38,34,72,.30), inset 0 1px #fff;
}
html[data-theme="light"] .contact-cta-big:hover { color: #211b3b; background: #fff; }
html[data-theme="light"] .contact-map iframe { filter: grayscale(.12) saturate(.86) contrast(.96); }

html[data-theme="light"] .ceo-expanded-panel {
  color: #30281f;
  background: linear-gradient(180deg, #fbfaf8 0%, #f4efe8 55%, #e8dccb 100%);
}
html[data-theme="light"] .ceo-expanded-panel .glass { color: #30281f; background: rgba(255,252,247,.82); border-color: rgba(129,99,62,.18); }
html[data-theme="light"] .ceo-expanded-panel .section-title,
html[data-theme="light"] .ceo-expanded-panel h3,
html[data-theme="light"] .ceo-expanded-panel h4 { color: #30281f; }
html[data-theme="light"] .ceo-expanded-panel p { color: #655b50; }
html[data-theme="light"] .ceo-panel-close,
html[data-theme="light"] .articles-refresh { color: #4d3925; background: rgba(255,252,247,.92); border-color: rgba(129,99,62,.25); }
html[data-theme="light"] .article-skeleton-image,
html[data-theme="light"] .article-skeleton-line { background: linear-gradient(90deg,#ebe5dc 20%,#fff 46%,#ebe5dc 72%); background-size:220% 100%; }

html[data-theme="light"] .ai-chat-trigger-bubble,
html[data-theme="light"] .contact-avatar-bubble,
html[data-theme="light"] .contact-avatar-popup,
html[data-theme="light"] .ai-chat-dialog {
  color: var(--text);
  background: rgba(255,255,255,.96);
  border-color: rgba(75,62,120,.16);
  box-shadow: 0 18px 48px rgba(38,34,72,.18);
}
html[data-theme="light"] footer { background: rgba(236,240,248,.72); }
html[data-theme="light"] .cookie-banner {
  color: var(--text);
  background: rgba(250,251,255,.97);
  border-color: rgba(92,70,165,.22);
  box-shadow: 0 -12px 36px rgba(38,34,72,.12);
}

@media (max-width: 760px) {
  html[data-theme="light"] body::after {
    background: linear-gradient(180deg, rgba(244,246,251,.34), rgba(244,246,251,.12) 50%, transparent);
  }
  html[data-theme="light"] .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 36%, rgba(244,246,251,.93) 58%, var(--bg-0) 100%),
      url("header.png") center 52px / auto clamp(390px, 57svh, 500px) no-repeat,
      var(--bg-0);
  }
  html[data-theme="light"] .hero-text {
    color: var(--text);
    background: #fbfcff;
    border-color: rgba(75,62,120,.14);
    box-shadow: 0 18px 42px rgba(38,34,72,.14), inset 0 1px #fff;
  }
}

/* Keep every hero action visible on short landscape/desktop viewports. */
@media (min-width: 761px) and (max-height: 720px) {
  .hero {
    min-height: 100svh;
    padding-top: 104px;
    padding-bottom: 24px;
  }
  .hero-company-name { width: min(500px, 48vw); }
  .hero-rotator { margin-top: 12px; font-size: 14px; }
  .hero-tag { margin-top: 12px; max-width: 900px; font-size: 14px; line-height: 1.46; }
  .hero-badges { margin-top: 14px; }
  .hero-badges .chip { padding: 7px 10px; font-size: 11px; }
  .hero-badges .chip-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .hero-cta { margin-top: 16px; }
  .hero-cta .btn { min-height: 38px; padding: 9px 13px; font-size: 9.5px; }
  .hero-text-link { padding-block: 9px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition-duration: .01ms; }
}

/* Desktop hero actions: centered labels and the same tactile depth as mobile. */
@media (min-width: 761px) {
  .hero-cta .arrow {
    display: none;
  }

  .hero-cta .btn,
  .hero-text-link {
    min-height: 48px;
    justify-content: center;
    text-align: center;
    transform: translateY(0);
    transition: transform .16s ease, box-shadow .16s ease, background .2s ease, border-color .2s ease;
  }

  .hero-cta .btn {
    box-shadow: 0 5px 0 rgba(0,0,0,.52), 0 11px 22px rgba(0,0,0,.18);
  }

  .hero-cta .btn.primary {
    box-shadow: 0 5px 0 #40208f, 0 14px 28px rgba(86,42,190,.28);
  }

  .hero-text-link {
    padding: 13px 20px;
    border: 1px solid rgba(148,163,184,.26);
    border-radius: 999px;
    background: rgba(17,20,29,.68);
    box-shadow: 0 5px 0 rgba(0,0,0,.52), 0 11px 22px rgba(0,0,0,.16);
  }

  .hero-cta .btn:hover,
  .hero-text-link:hover {
    transform: translateY(-1px);
  }

  .hero-cta .btn:active,
  .hero-text-link:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 rgba(0,0,0,.48), 0 4px 9px rgba(0,0,0,.13);
  }

  html[data-theme="light"] .hero-cta .services-btn,
  html[data-theme="light"] .hero-text-link {
    box-shadow: 0 5px 0 rgba(93,96,119,.30), 0 11px 22px rgba(38,34,72,.10);
  }

  html[data-theme="light"] .hero-text-link {
    background: rgba(238,241,248,.88);
    border-color: rgba(72,66,125,.22);
  }

  html[data-theme="light"] .hero-cta .btn.primary {
    box-shadow: 0 5px 0 #432391, 0 14px 27px rgba(89,48,186,.22);
  }

  html[data-theme="light"] .hero-cta .btn:active,
  html[data-theme="light"] .hero-text-link:active {
    box-shadow: 0 1px 0 rgba(93,96,119,.28), 0 4px 9px rgba(38,34,72,.08);
  }
}

/* Mobile hero: cinematic portrait with an overlapping editorial content card. */
@media (max-width: 760px) {
  .hero {
    --hero-mobile-media-height: clamp(490px, 62svh, 590px);
    display: block;
    min-height: auto;
    padding: calc(var(--hero-mobile-media-height) - 72px) 14px 28px;
    overflow: hidden;
    isolation: isolate;
    background: var(--bg-0);
  }

  .hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    height: var(--hero-mobile-media-height);
    background: url("header.png") 50% center / auto 100% no-repeat;
    filter: saturate(.92) contrast(1.02);
  }

  .hero::after {
    z-index: 1;
    inset: 0 0 auto;
    height: var(--hero-mobile-media-height);
    background:
      linear-gradient(180deg, rgba(5,5,8,.40) 0%, transparent 19%),
      linear-gradient(180deg, transparent 52%, rgba(5,5,8,.18) 67%, var(--bg-0) 100%);
    pointer-events: none;
  }

  .hero > .container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0;
  }

  .hero-text {
    position: relative;
    width: 100%;
    padding: 24px 22px 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(13,15,24,.91), rgba(7,9,15,.98));
    box-shadow:
      0 26px 70px rgba(0,0,0,.42),
      0 0 0 1px rgba(255,255,255,.025) inset,
      0 1px 0 rgba(255,255,255,.08) inset;
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
  }

  .hero-text::before {
    display: none;
  }

  .hero-company-name {
    width: min(76vw, 340px);
  }

  .hero-rotator {
    min-height: 21px;
    margin-top: 13px;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .hero-tag {
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.56;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
  }

  .hero-badges .chip {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    justify-content: flex-start;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 10px;
    line-height: 1.2;
  }

  .hero-badges .chip-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 19px;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 10px 13px;
    font-size: 9px;
    letter-spacing: .075em;
    text-align: center;
    transform: translateY(0);
    box-shadow: 0 4px 0 rgba(0,0,0,.48), 0 9px 18px rgba(0,0,0,.18);
    transition: transform .16s ease, box-shadow .16s ease, background .2s ease, border-color .2s ease;
  }

  .hero-cta .btn.primary {
    grid-column: 1 / -1;
    min-height: 48px;
    padding-inline: 16px;
    font-size: 10px;
    box-shadow: 0 4px 0 #40208f, 0 12px 25px rgba(86,42,190,.28);
  }

  .hero-text-link {
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 999px;
    background: rgba(17,20,29,.76);
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    transform: translateY(0);
    box-shadow: 0 4px 0 rgba(0,0,0,.48), 0 9px 18px rgba(0,0,0,.16);
    transition: transform .16s ease, box-shadow .16s ease, background .2s ease, border-color .2s ease;
  }

  .hero-cta .arrow {
    display: none;
  }

  .hero-cta .btn:hover,
  .hero-text-link:hover {
    transform: translateY(-1px);
  }

  .hero-cta .btn:active,
  .hero-text-link:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 rgba(0,0,0,.44), 0 4px 9px rgba(0,0,0,.14);
  }

  .hero-scroll {
    display: none !important;
  }

  /* Let the background grid emerge gradually after the hero. */
  .focus-strip {
    isolation: isolate;
  }

  .focus-strip::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -74px;
    left: 0;
    right: 0;
    height: 190px;
    pointer-events: none;
    background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-0) 42%, transparent 100%);
    background: linear-gradient(
      180deg,
      var(--bg-0) 0%,
      var(--bg-0) 38%,
      color-mix(in srgb, var(--bg-0) 72%, transparent) 64%,
      transparent 100%
    );
  }

  html[data-theme="light"] .hero::before {
    filter: saturate(.84) contrast(.96) brightness(1.04);
  }

  html[data-theme="light"] .hero::after {
    background:
      linear-gradient(180deg, rgba(244,246,251,.70) 0%, transparent 20%),
      linear-gradient(180deg, transparent 50%, rgba(244,246,251,.20) 66%, var(--bg-0) 100%);
  }

  html[data-theme="light"] .hero-text {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,249,254,.985));
    border-color: rgba(75,62,120,.14);
    box-shadow:
      0 24px 64px rgba(38,34,72,.16),
      0 0 0 1px rgba(255,255,255,.80) inset,
      0 1px 0 #fff inset;
  }

  html[data-theme="light"] .hero-company-type {
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.24));
  }

  html[data-theme="light"] .hero-text-link {
    background: rgba(238,241,248,.80);
    border-color: rgba(72,66,125,.20);
    box-shadow: 0 4px 0 rgba(93,96,119,.30), 0 9px 18px rgba(38,34,72,.10);
  }

  html[data-theme="light"] .hero-cta .services-btn {
    box-shadow: 0 4px 0 rgba(93,96,119,.30), 0 9px 18px rgba(38,34,72,.10);
  }

  html[data-theme="light"] .hero-cta .btn.primary {
    box-shadow: 0 4px 0 #432391, 0 12px 24px rgba(89,48,186,.22);
  }

  html[data-theme="light"] .hero-cta .btn:active,
  html[data-theme="light"] .hero-text-link:active {
    box-shadow: 0 1px 0 rgba(93,96,119,.28), 0 4px 9px rgba(38,34,72,.08);
  }
}

@media (max-width: 390px) {
  .hero {
    --hero-mobile-media-height: clamp(460px, 59svh, 530px);
    padding-inline: 11px;
  }

  .hero-text {
    padding: 22px 18px 19px;
    border-radius: 24px;
  }

  .hero-company-name { width: min(72vw, 290px); }
  .hero-tag { font-size: 12px; }
  .hero-badges .chip { font-size: 9px; padding-inline: 8px; }
  .hero-cta { grid-template-columns: 1fr; }
  .hero-cta .btn.primary { grid-column: auto; }
  .hero-text-link { min-height: 40px; }
}
