/* ============================================================
   CA·P V3 — Innovation Technologies
   Black #000  |  White #fff  |  Blue #2a8fc4
   Syne (headings) + Inter (body)
   No pure greys — white-at-opacity on dark, black-at-opacity on white
   ============================================================ */

/* ── RESET + TOKENS ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #000000;
  --white:     #ffffff;
  --blue:      #2a8fc4;
  --blue-l:    #4db8e8;
  --blue-b:    #22d3ee;
  --border:    rgba(255,255,255,0.10);
  --border-b:  rgba(42,143,196,0.35);
  --pad:       clamp(1.5rem, 5vw, 5rem);
  --max:       1360px;
  --nav-h:     76px;
  --card-r:    22px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
em { font-style: normal; }

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }

/* ── GRAIN — animated noise overlay ────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.075;
  pointer-events: none;
  z-index: 9999;
  animation: grain 0.65s steps(1) infinite;
  will-change: transform;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  14%  { transform: translate(-3%, -2%); }
  28%  { transform: translate(2%,  4%); }
  42%  { transform: translate(-2%, -3%); }
  57%  { transform: translate(4%,  2%); }
  71%  { transform: translate(-1%,  4%); }
  85%  { transform: translate(3%, -2%); }
}

/* ── BLOBS — drifting ambient light ────────────────────────── */
#bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-1 {
  width: 65vw; height: 65vw;
  top: -15%; right: -8%;
  background: radial-gradient(circle, rgba(42,143,196,0.38) 0%, rgba(42,143,196,0.12) 50%, transparent 70%);
  filter: blur(100px);
  animation: drift1 26s ease-in-out infinite alternate;
}
.blob-2 {
  width: 55vw; height: 55vw;
  bottom: 5%; left: -12%;
  background: radial-gradient(circle, rgba(10,50,90,0.45) 0%, rgba(42,143,196,0.18) 45%, transparent 70%);
  filter: blur(110px);
  animation: drift2 32s ease-in-out infinite alternate;
}
.blob-3 {
  width: 42vw; height: 42vw;
  top: 38%; left: 28%;
  background: radial-gradient(circle, rgba(77,184,232,0.24) 0%, transparent 68%);
  filter: blur(80px);
  animation: drift3 20s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate(0, 0)       scale(1.00); }
  to   { transform: translate(-4vw, 7vh)  scale(1.14); }
}
@keyframes drift2 {
  from { transform: translate(0, 0)       scale(1.05); }
  to   { transform: translate(6vw, -5vh)  scale(0.92); }
}
@keyframes drift3 {
  from { transform: translate(0, 0)       scale(0.90); }
  to   { transform: translate(-3vw, 6vh)  scale(1.12); }
}

/* ── THREE.JS CANVAS ────────────────────────────────────────── */
#three-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 4;       /* sopra innov-band (z:2), sotto #hero (z:5) e #chi-siamo (z:10) */
  pointer-events: none;
  display: block;
}

/* ── RING GLOW — soft halo under the ring ───────────────────── */
#ring-glow {
  position: fixed;
  bottom: 10%;
  left: 70%;
  transform: translateX(-50%);
  width: 360px;
  height: 55px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(42,143,196,0.50) 0%, rgba(42,143,196,0.12) 55%, transparent 75%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  filter: blur(20px);
  will-change: opacity;
  transition: opacity 0.5s ease;
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.88rem 2rem;
  background: var(--blue);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 28px rgba(42,143,196,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--blue-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(42,143,196,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.88rem 2rem;
  background: transparent;
  color: rgba(255,255,255,0.80);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.22s, color 0.22s, background 0.22s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-l);
  background: rgba(42,143,196,0.06);
}

/* ── SECTION LABELS ─────────────────────────────────────────── */
.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2rem;
}

/* ── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.nav-brand-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: var(--white); }

/* Area Riservata — outlined, blue tint */
.nav-area-riservata {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue) !important;
  border: 1px solid rgba(42,143,196,0.45);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  margin-left: 0.25rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-area-riservata:hover {
  border-color: var(--blue);
  background: rgba(42,143,196,0.10);
  color: var(--blue-l) !important;
}
.nav-area-riservata svg {
  width: 11px; height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(42,143,196,0.3);
}
.nav-cta:hover {
  background: var(--blue-l);
  box-shadow: 0 4px 24px rgba(42,143,196,0.5);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.mobile-menu .mobile-ticket { color: var(--blue); }
.mobile-menu .mobile-area-riservata {
  font-size: 1.1rem !important;
  color: var(--blue) !important;
  border: 1px solid rgba(42,143,196,0.4);
  border-radius: 100px;
  padding: 0.6rem 2rem;
}

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  position: relative;
  z-index: 5;       /* sopra il canvas (z:4), crea stacking context per hero-inner */
  width: 100%;
  height: 100vh;
  min-height: 640px;
}

#hero-terrain {
  position: absolute;
  bottom: -70px;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
  display: block;
}

.hero-inner {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 46fr 54fr;
  gap: 2rem;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: clamp(8rem, 18vh, 16rem); /* spinge il contenuto verso l'alto */
  position: relative;
  z-index: 2;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  font-family: 'Inter', sans-serif;
  margin-bottom: 2rem;
}
.eyebrow-text { display: inline; }

.eye-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(0.65); }
}

.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.4rem, 7.5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 1.6rem;
  overflow: hidden;
  max-width: 100%;
  word-break: break-word;
}
.hero-title em { color: inherit; font-style: normal; }

.hero-line-wrap { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-line { display: block; }

/* CSS-driven entrance */
.hero-title--hidden .hero-line { transform: translateY(110%); }
.hero-title .hero-line {
  transform: translateY(0);
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-title .hero-line-wrap:nth-child(2) .hero-line { transition-delay: 0.09s; }

.hero--hidden .hero-eyebrow,
.hero--hidden .hero-author,
.hero--hidden .hero-ctas,
.hero--hidden .scroll-cue,
.hero--hidden #logo-img { opacity: 0; }

.hero-eyebrow,
.hero-author,
.hero-ctas,
.scroll-cue { transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
/* logo-img: scroll controls transform directly, no CSS transition interference */
#logo-img { transition: none; }

.hero--revealed .hero-eyebrow  { opacity: 1; transition-delay: 0.05s; }
.hero--revealed .hero-author   { opacity: 1; transition-delay: 0.5s; }
.hero--revealed .hero-ctas     { opacity: 1; transition-delay: 0.65s; }
.hero--revealed .scroll-cue    { opacity: 1; transition-delay: 0.9s; }
.hero--revealed #logo-img      { opacity: 1; transition-delay: 0.1s; }

.hero-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-author::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero right: logo + flash effect */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo-container {
  width: min(360px, 32vw);
  height: min(360px, 32vw);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
  transform-origin: center center;
  position: relative;
  z-index: 2;
}

/* Persistent aura under logo — starts soft, intensifies on scroll */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.30)   0%,
    rgba(42,143,196,0.35)   18%,
    rgba(42,143,196,0.12)   45%,
    rgba(77,184,232,0.04)   65%,
    transparent             78%
  );
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%) scale(1.0);
  opacity: 0.22;
  filter: blur(14px);
  will-change: transform, opacity;
}

/* Flash overlay — GSAP controls scale/opacity/position */
.hero-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,1)    0%,
    rgba(42,143,196,0.90) 22%,
    rgba(77,184,232,0.45) 50%,
    transparent           72%
  );
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}
.scroll-line {
  width: 36px; height: 1px;
  background: linear-gradient(to right, var(--blue), transparent);
}
.scroll-cue span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.40);
  font-family: 'Inter', sans-serif;
}

/* ── SERVICES ────────────────────────────────────────────────── */
#services {
  position: relative;
  z-index: 5;        /* sopra il canvas ring (z:4) */
  padding-top: 6vh;
  padding-bottom: 10vh;
}

.services-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.srv-cards-col {
  padding: 0 var(--pad) 0 calc(var(--pad) + 52px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.srv-ring-col { pointer-events: none; }

/* Service cards */
.srv-card {
  position: relative;
  overflow: visible;
  background: #ffffff;
  border-radius: var(--card-r);
  padding: 1.4rem 2rem 1.4rem calc(2rem + 58px);
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 12px 40px rgba(0,0,0,0.08),
    0 32px 80px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  will-change: transform, opacity;
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1), box-shadow 0.32s;
}

/* P2: Hover — lift + deeper shadow + blue top stripe */
.srv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--card-r) var(--card-r) 0 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-l));
  opacity: 0;
  transition: opacity 0.32s;
}
.srv-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 56px rgba(0,0,0,0.14),
    0 48px 100px rgba(0,0,0,0.10);
}
.srv-card:hover::before { opacity: 1; }

/* Protruding pill image */
.srv-card-img-wrap {
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: 148px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.22),
    0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
  z-index: 2;
}
.srv-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.srv-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.srv-card-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.srv-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.42);
  text-transform: uppercase;
}
.srv-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin-bottom: 0.6rem;
}
.srv-card-desc {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(0,0,0,0.55);
  margin-bottom: 0.75rem;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.srv-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.srv-tags li {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(42,143,196,0.08);
  border: 1px solid rgba(42,143,196,0.2);
  border-radius: 100px;
  padding: 0.28rem 0.8rem;
}

/* ── CHI SIAMO — WHITE */
/* ════════════════════════════════════════════════════════════
   CHI SIAMO — redesign editoriale
   ════════════════════════════════════════════════════════════ */
#chi-siamo {
  position: relative;
  z-index: 10;
  background: #ffffff;
  color: #000;
  overflow: hidden;
}

/* Topbar */
.chi-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(4rem, 8vh, 7rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}
.chi-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.chi-est {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.30);
}

/* ── CHI SIAMO — layout due colonne ── */
.chi-hero-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3rem 0 3.5rem;
  padding-left: 0;          /* immagine più vicina al bordo sinistro */
  align-items: center;
}

/* SINISTRA: immagine + stacked text affiancati */
.chi-col-left { display: flex; }
.chi-img-stack-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
}
.chi-hero-img-small {
  width: clamp(180px, 26vw, 340px);
  aspect-ratio: 4/2;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #d8d8d8;
  flex-shrink: 0;
}

/* Stacked text accanto all'immagine */
.chi-gen-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 6px 18px rgba(42,143,196,0.30))
          drop-shadow(0 2px 6px rgba(42,143,196,0.18));
}
.chi-gen-stack span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.80);
  line-height: 1.15;
  text-align: center;
  display: block;
}

/* DESTRA: claim + team */
.chi-col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.chi-futuro-claim {
  font-family: 'Syne', sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: rgba(0,0,0,0.85);
  margin: 0;
  white-space: nowrap;
}
.chi-team-label {
  font-family: 'Anton', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.1rem;
}

/* Striscia team */
.chi-team-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.chi-member {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  cursor: default;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.chi-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  transition: filter 0.35s cubic-bezier(0.16,1,0.3,1),
              transform 0.35s cubic-bezier(0.16,1,0.3,1);
  background: #d0d0d0;
}
.chi-member-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to top, rgba(4,8,30,0.88) 0%, rgba(4,8,30,0.18) 60%, transparent 100%);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
  padding: 8px 5px;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1);
  border-radius: 14px;
  pointer-events: none;
}
.chi-member:hover {
  transform: scale(1.07) translateY(-3px);
  box-shadow: 0 10px 28px rgba(42,143,196,0.28), 0 0 0 2px rgba(77,189,232,0.40);
}
.chi-member:hover img       { filter: brightness(0.60); }
.chi-member:hover .chi-member-name { opacity: 1; }

/* Divider */
.chi-rule {
  height: 1px;
  background: rgba(0,0,0,0.09);
  margin: 0;
}

/* 3 colonne */
.chi-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 3.5rem 0 0;
}
.chi-col {
  padding: 0 3rem 3.5rem 0;
  border-right: 1px solid rgba(0,0,0,0.09);
  text-align: center;
}
.chi-col:first-child { padding-left: 0; }
.chi-col:last-child  { border-right: none; padding-right: 0; padding-left: 2.5rem; }
.chi-col:nth-child(2){ padding-left: 2.5rem; }

.chi-col-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.chi-col p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(0,0,0,0.62);
  font-weight: 400;
}

/* Settori pills */
.chi-settori {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.6rem;
  justify-content: center;
}
.chi-settore {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1.5px solid rgba(42,143,196,0.32);
  border-radius: 100px;
  padding: 0.35rem 1rem;
}

/* Valori lista */
.chi-valori { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0; }
.chi-valore {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(0,0,0,0.78);
}
.chi-valore:last-child { border-bottom: none; }
.chi-valore span {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Innovazione band — z:5 → sopra ring canvas (z:4), ring passa dietro */
.chi-innov-band {
  background: rgba(4, 8, 18, 0.60);
  padding: clamp(3rem, 6vh, 5rem) 0;
  position: relative;
  z-index: 5;
}
.chi-innov-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}
.chi-innov-label {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
  /* ombra sfocata attorno al testo per leggibilità sul ring */
  text-shadow:
    0 0 28px rgba(4,8,18,0.95),
    0 0 60px rgba(4,8,18,0.80);
}
.chi-innov-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.58);
  /* ombra sfocata attorno al testo — invisibile ma protegge la leggibilità */
  text-shadow:
    0 0 20px rgba(4,8,18,0.95),
    0 0 45px rgba(4,8,18,0.75);
}
.chi-innov-text strong { color: rgba(255,255,255,0.92); font-weight: 600; }

/* Marquee */
.chi-marquee-wrap {
  background: #fff;
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.09);
  border-bottom: 1px solid rgba(0,0,0,0.09);
}
.chi-marquee {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
  animation: chi-scroll 26s linear infinite;
  width: max-content;
}
.chi-marquee span {
  font-family: 'Syne', sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.40);
  flex-shrink: 0;
}
.chi-sep { color: var(--blue) !important; }
@keyframes chi-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* CTA collabora */
.chi-cta {
  padding: clamp(4rem, 7vh, 6rem) var(--pad);
  background: #fff;
  position: relative;
  z-index: 10;
}
.chi-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.chi-cta-question {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #000;
}
.chi-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #000;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1rem 2.4rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chi-cta-btn:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

/* ── TICKET CTA ─────────────────────────────────────────────── */
#ticket-cta {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 10vh, 9rem) 0;
  border-top: 1px solid var(--border);
}

.ticket-block { max-width: 680px; }
.ticket-block h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.ticket-block p {
  font-size: 0.97rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.72);
  max-width: 420px;
  margin-bottom: 2.5rem;
}

/* ── CONTACT FORM — bright white labels and borders ─────────── */
#contatti {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 10vh, 9rem) 0;
  border-top: 1px solid var(--border);
}

.contatti-big-label {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3.5rem, 8vw, 10rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: -1rem;
  user-select: none;
}

.contatti-header { margin-bottom: 3.5rem; }
.contatti-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 0.92;
}

.contact-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1/-1; }

.form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.40); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-l);
  background: rgba(42,143,196,0.06);
  box-shadow: 0 0 0 3px rgba(42,143,196,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.form-feedback { font-size: 0.86rem; color: var(--blue-l); }
.form-feedback.error { color: #ff6b6b; }
.form-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.30);
  margin-top: 1rem;
  line-height: 1.6;
}
.form-privacy a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.form-privacy a:hover { color: var(--blue-l); }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CONTACT INFO + MAP ─────────────────────────────────────── */
#contact-info {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vh, 7rem) 0;
  border-top: 1px solid var(--border);
}

.contatti-header-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.ci-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ci-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  transition: border-color 0.22s, background 0.22s;
}
.ci-box:hover {
  border-color: var(--border-b);
  background: rgba(42,143,196,0.06);
}
.ci-box svg { color: var(--blue); flex-shrink: 0; }
.ci-box > div { display: flex; flex-direction: column; gap: 0.2rem; }

.ci-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  font-family: 'Inter', sans-serif;
}
.ci-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.ci-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.ci-map iframe { display: block; }

/* ── FOOTER ─────────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 3rem;
}

.footer-logo {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.footer-dot { color: var(--blue); }

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.40);
  margin-bottom: 1.4rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.80rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--blue); opacity: 0.8; }
.footer-contact-item:is(a):hover { color: var(--white); }
.footer-address { cursor: default; }

.footer-col-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.52);
  transition: color 0.22s, padding-left 0.22s;
  position: relative;
}
.footer-nav a:hover {
  color: var(--white);
  padding-left: 0.4rem;
}

.footer-piva {
  margin-top: 1.8rem;
  font-size: 0.70rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.04em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.2rem 0;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.20);
  text-align: center;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Large screens: prevent title overflow when viewport > max container */
@media (min-width: 1440px) {
  .hero-inner { grid-template-columns: 50fr 50fr; gap: 4rem; }
  #logo-container {
    width: min(420px, 28vw);
    height: min(420px, 28vw);
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: clamp(4rem, 10vh, 8rem);
    justify-items: start;
  }
  .hero-right { display: none; }

  .services-layout { grid-template-columns: 1fr; }
  .srv-ring-col { display: none; }
  .srv-cards-col { padding: 0 var(--pad); }
  .srv-card { padding: 2.5rem 3rem; }
  .srv-card-img-wrap { display: none; }

  .chi-columns { grid-template-columns: 1fr; }
  .chi-col { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.09); padding: 0 0 2.5rem; }
  .chi-col:last-child { border-bottom: none; padding-left: 0; }
  .chi-col:nth-child(2) { padding-left: 0; }
  .chi-innov-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .chi-hero-2col { grid-template-columns: 1fr; gap: 2.5rem; }
  .chi-futuro-claim { white-space: normal; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-logo-img { height: 34px; }

  /* Hero */
  .hero-inner {
    padding-bottom: clamp(3rem, 8vh, 6rem);
    gap: 0;
  }
  .hero-eyebrow { margin-bottom: 1.4rem; font-size: 0.65rem; }
  .hero-title { margin-bottom: 1.2rem; line-height: 0.90; font-size: clamp(3rem, 10vw, 5.5rem); }
  .hero-author { font-size: 0.82rem; margin-bottom: 1.6rem; }
  .hero-ctas { gap: 0.75rem; }
  .scroll-cue { display: none; }

  /* Sections */
  .form-row { grid-template-columns: 1fr; }
  .ci-boxes { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 2rem; }
  .srv-card { padding: 2rem 1.75rem; }
  .chi-cta-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  /* Stats: 2x2 grid on mobile */
  .chi-stats { flex-wrap: wrap; }
  .chi-stat {
    flex: 0 0 50%;
    min-width: 0;
    padding: 1.6rem 1.2rem;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }
  .chi-stat:nth-child(odd)  { border-right: 1px solid rgba(0,0,0,0.07); }
  .chi-stat:nth-child(3),
  .chi-stat:nth-child(4)    { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; text-align: center; }
  .chi-gen-number { font-size: 6rem; }
  .chi-stat-num { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .mobile-menu a { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob-1, .blob-2, .blob-3 { animation: none; }
  .chi-marquee { animation: none; }
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-l));
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
  will-change: width;
}

/* ── PAGE TRANSITION ─────────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1);
}
#page-transition.active {
  opacity: 1;
  pointer-events: all;
}
.pt-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}
.pt-logo span { color: var(--blue); }

/* ── FLOATING CONTACT CTA ────────────────────────────────── */
#float-cta {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}
#float-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(42,143,196,0.40);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
#float-toggle:hover {
  background: var(--blue-l);
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(42,143,196,0.55);
}
#float-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
#float-cta.open #float-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.float-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(6,12,24,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.float-item:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.float-item svg { flex-shrink: 0; color: var(--blue-l); }
.float-item:hover svg { color: #fff; }

/* ── COOKIE BANNER ───────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8000;
  background: rgba(6,12,24,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 1rem clamp(1.5rem,5vw,5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p {
  font-size: 0.82rem;
  color: rgba(240,244,255,0.65);
  margin: 0;
  line-height: 1.6;
}
#cookie-banner p a { color: var(--blue); }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
#cookie-decline {
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 100px;
  color: rgba(255,255,255,0.60);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
#cookie-decline:hover { border-color: rgba(255,255,255,0.50); color: #fff; }
#cookie-accept {
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--blue);
  border: none;
  border-radius: 100px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
#cookie-accept:hover { background: var(--blue-l); }

/* ── SERVICE CARD — hover shimmer premium ────────────────── */
.srv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-r);
  background: linear-gradient(135deg, rgba(42,143,196,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.srv-card:hover::after { opacity: 1; }
.srv-card:hover .srv-card-img-wrap {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 2px 8px rgba(42,143,196,0.20);
}
.srv-card-img-wrap {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
}

/* ── STATS STRIP ─────────────────────────────────────────── */
.chi-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin: 3rem 0 0;
}
.chi-stat {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 2.2rem 2.5rem;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.chi-stat:last-child { border-right: none; }
.chi-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
  display: block;
}
.chi-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-top: 8px;
  display: block;
}

/* ── FORM ERROR (collabora) ──────────────────────────────── */
.c-form-error {
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.30);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: rgba(220,50,50,0.90);
  text-align: center;
}

@media (max-width: 768px) {
  .chi-stats { grid-template-columns: 1fr 1fr; }
  .chi-stat:nth-child(2) { border-right: none; }
  .chi-stat:nth-child(3) { border-right: 1px solid rgba(0,0,0,0.07); }

  /* Cornetta: equidistante da fondo e da destra */
  #float-cta {
    bottom: 2rem;
    right: 2rem;
    left: auto;
    transform: none;
    align-items: flex-end;
  }

  /* Ring-glow non posizionato per mobile */
  #ring-glow { display: none; }

  /* Marquee più lento su mobile */
  .chi-marquee { animation-duration: 40s; }

  /* Cookie banner compatto */
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 480px) {
  .chi-stats { grid-template-columns: 1fr 1fr; }
  .float-item span { display: none; }
  .float-item { padding: 10px; }
}
