/* ============================================================
   PIXETIA — Advanced Showcase Site
   Palette: red / yellow / green / blue on #111111
   Minimal · Elegant · Professional
   ============================================================ */

:root {
  --bg: #111111;
  --surface: #161616;
  --surface-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f4;
  --text-dim: #a3a3a3;
  --text-faint: #666666;

  --red: #e63946;
  --yellow: #ffd166;
  --green: #06d6a0;
  --blue: #3a86ff;

  --red-soft: rgba(230, 57, 70, 0.12);
  --yellow-soft: rgba(255, 209, 102, 0.12);
  --green-soft: rgba(6, 214, 160, 0.12);
  --blue-soft: rgba(58, 134, 255, 0.12);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
code { font-family: var(--font-mono); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ---------- Color helpers ---------- */
.c-red { color: var(--red); }
.c-yellow { color: var(--yellow); }
.c-green { color: var(--green); }
.c-blue { color: var(--blue); }
.t-red { color: var(--red); }

/* ============================================================
   CRT OVERLAY (scanline + vignette) — retro feel on everything
   ============================================================ */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.22) 0px,
      rgba(0, 0, 0, 0.22) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: multiply;
  opacity: 0.5;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 89;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Pixel scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid var(--border); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red), var(--yellow), var(--green), var(--blue));
  border: 3px solid var(--bg);
  border-radius: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #cursor-dot, #cursor-ring { display: none; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 22px;
  align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-core { display: flex; gap: 12px; }
.loader-dot {
  width: 14px; height: 14px; border-radius: 4px;
  animation: loaderPop 1.1s var(--ease) infinite;
}
.loader-dot.d-red { background: var(--red); }
.loader-dot.d-yellow { background: var(--yellow); animation-delay: 0.1s; }
.loader-dot.d-green { background: var(--green); animation-delay: 0.2s; }
.loader-dot.d-blue { background: var(--blue); animation-delay: 0.3s; }

@keyframes loaderPop {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-12px) scale(1.15); opacity: 1; }
}

.loader-word {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.42em; font-size: 14px;
  color: var(--text-dim); text-indent: 0.42em;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 6px; height: 6px; background: var(--green);
  mix-blend-mode: difference;
}
#cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.25s, background 0.25s;
}
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--green);
  background: var(--green-soft);
}

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ============================================================
   AMBIENT AURORA CANVAS
   ============================================================ */
#aurora {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
#navbar.hidden-nav { transform: translateY(-100%); }

.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 14px rgba(58, 134, 255, 0.35)); }
.brand-logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.3)); }
.brand-logo.sm { width: 26px; height: 26px; }
.brand-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: 0.06em;
}

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 500;
  color: var(--text-dim); padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

#menu-btn {
  display: none; flex-direction: column; gap: 6px;
  padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
#menu-btn span { width: 20px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }
#menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
#menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

#mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
#mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
#mobile-menu a:not(.btn) {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  color: var(--text); letter-spacing: 0.02em;
}
#mobile-menu a:not(.btn):hover { color: var(--green); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 12px; overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  will-change: transform;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--green); color: #06130f;
  box-shadow: 0 0 0 rgba(6, 214, 160, 0);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(6, 214, 160, 0.35);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border-strong); color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-card {
  padding: 9px 18px; border-radius: 9px; font-size: 13px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-strong);
  color: var(--text); transition: all 0.3s var(--ease);
}
.btn-card:hover { transform: translateY(-2px); color: #06130f; }

.btn-sm { padding: 10px 18px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

.card[data-color="red"] .btn-card:hover { background: var(--red); border-color: var(--red); }
.card[data-color="yellow"] .btn-card:hover { background: var(--yellow); border-color: var(--yellow); }
.card[data-color="green"] .btn-card:hover { background: var(--green); border-color: var(--green); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 28px 80px;
  overflow: hidden;
}

.hero-halo {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: 0.16; will-change: transform;
  animation: haloFloat 16s ease-in-out infinite;
}
.halo-red { width: 520px; height: 520px; background: var(--red); top: -120px; left: -140px; }
.halo-yellow { width: 440px; height: 440px; background: var(--yellow); top: 20%; right: -160px; animation-delay: -4s; }
.halo-green { width: 460px; height: 460px; background: var(--green); bottom: -140px; left: 18%; animation-delay: -8s; }
.halo-blue { width: 480px; height: 480px; background: var(--blue); bottom: -120px; right: 12%; animation-delay: -12s; }

@keyframes haloFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 24px) scale(0.94); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 820px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em;
  color: var(--text-dim); text-indent: 0.28em;
  padding: 9px 18px; border: 1px solid var(--border);
  border-radius: 100px; background: rgba(255,255,255,0.02);
  margin-bottom: 34px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulseDot 2s infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--green); }
  50% { opacity: 0.4; box-shadow: 0 0 3px var(--green); }
}

.hero-title {
  position: relative;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 30px;
  text-transform: uppercase;
  background: linear-gradient(92deg, var(--red) 0%, var(--yellow) 33%, var(--green) 66%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 40px rgba(58, 134, 255, 0.3));
  animation: titleShift 8s ease-in-out infinite;
}
@keyframes titleShift {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(58, 134, 255, 0.3)) drop-shadow(0 0 12px rgba(230, 57, 70, 0.25)); }
  33% { filter: drop-shadow(0 0 40px rgba(230, 57, 70, 0.3)) drop-shadow(0 0 12px rgba(255, 209, 102, 0.25)); }
  66% { filter: drop-shadow(0 0 40px rgba(6, 214, 160, 0.3)) drop-shadow(0 0 12px rgba(58, 134, 255, 0.25)); }
}
.hero-title::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(92deg, var(--red) 0%, var(--yellow) 33%, var(--green) 66%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transform: translateX(3px);
  opacity: 0.55;
  mix-blend-mode: screen;
  clip-path: inset(0 0 55% 0);
  animation: glitchSlice 3.5s steps(1) infinite;
  pointer-events: none;
}
@keyframes glitchSlice {
  0%, 91% { clip-path: inset(0 0 62% 0); transform: translateX(3px); opacity: 0.5; }
  92% { clip-path: inset(20% 0 40% 0); transform: translateX(-3px); opacity: 0.7; }
  94% { clip-path: inset(55% 0 8% 0); transform: translateX(4px); opacity: 0.6; }
  96% { clip-path: inset(10% 0 70% 0); transform: translateX(-4px); opacity: 0.7; }
  100% { clip-path: inset(0 0 62% 0); transform: translateX(3px); opacity: 0.5; }
}

.hero-sub {
  max-width: 560px; font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim); margin-bottom: 42px;
}
.hero-sub .c-red, .hero-sub .c-blue { font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 46px; }

.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.meta-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
  letter-spacing: 0.04em;
}
.bar { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.b-red { background: var(--red); box-shadow: 0 0 12px rgba(230,57,70,0.7); }
.b-yellow { background: var(--yellow); box-shadow: 0 0 12px rgba(255,209,102,0.7); }
.b-green { background: var(--green); box-shadow: 0 0 12px rgba(6,214,160,0.7); }
.b-blue { background: var(--blue); box-shadow: 0 0 12px rgba(58,134,255,0.7); }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 38px; border: 1.5px solid var(--border-strong);
  border-radius: 100px; display: flex; justify-content: center; padding-top: 7px;
}
.scroll-line {
  width: 2px; height: 8px; border-radius: 2px; background: var(--green);
  animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
section { position: relative; padding: 110px 28px; scroll-margin-top: var(--nav-h); }
#catalogo, #network, #contatti { max-width: 1200px; margin: 0 auto; }

.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-block; font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.22em; text-indent: 0.22em;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border);
  margin-bottom: 22px; color: var(--text-dim);
}
.kicker-red { color: var(--red); border-color: rgba(230,57,70,0.4); }
.kicker-yellow { color: var(--yellow); border-color: rgba(255,209,102,0.4); }
.kicker-green { color: var(--green); border-color: rgba(6,214,160,0.4); }
.kicker-blue { color: var(--blue); border-color: rgba(58,134,255,0.4); }

.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text-dim); }

/* ============================================================
   CATALOGO CARDS
   ============================================================ */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  position: relative; z-index: 1;
  padding: 34px 30px 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.45s var(--ease);
  transform-style: preserve-3d;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.card-glow {
  position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  border-radius: 50%; filter: blur(60px); opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
}
.card[data-color="red"] .card-glow { background: var(--red); }
.card[data-color="yellow"] .card-glow { background: var(--yellow); }
.card[data-color="green"] .card-glow { background: var(--green); }
.card[data-color="blue"] .card-glow { background: var(--blue); }
.card:hover .card-glow { opacity: 0.16; }

.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.05), transparent 40%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.card-index {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
}
.card[data-color="red"] .card-index { color: var(--red); }
.card[data-color="yellow"] .card-index { color: var(--yellow); }
.card[data-color="green"] .card-index { color: var(--green); }
.card[data-color="blue"] .card-index { color: var(--blue); }

.card-chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  padding: 6px 12px; border-radius: 100px; color: var(--text-dim);
  border: 1px solid var(--border);
}
.card[data-color="red"] .card-chip { color: var(--red); border-color: rgba(230,57,70,0.35); background: var(--red-soft); }
.card[data-color="yellow"] .card-chip { color: var(--yellow); border-color: rgba(255,209,102,0.35); background: var(--yellow-soft); }
.card[data-color="green"] .card-chip { color: var(--green); border-color: rgba(6,214,160,0.35); background: var(--green-soft); }
.card[data-color="blue"] .card-chip { color: var(--blue); border-color: rgba(58,134,255,0.35); background: var(--blue-soft); }

.card-icon { width: 46px; height: 46px; margin-bottom: 26px; }
.card[data-color="red"] .card-icon { color: var(--red); }
.card[data-color="yellow"] .card-icon { color: var(--yellow); }
.card[data-color="green"] .card-icon { color: var(--green); }
.card[data-color="blue"] .card-icon { color: var(--blue); }

.card-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 24px; letter-spacing: -0.01em; margin-bottom: 12px;
}
.card-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 30px; min-height: 72px; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-handle { font-size: 12.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   NETWORK / STATS
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; margin-bottom: 90px;
}
.stat {
  padding: 34px 26px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.stat-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 8px;
}
.stat-plus { color: inherit; }
.stat-label { font-size: 14px; color: var(--text-dim); }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  padding: 30px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.feature[data-color="red"]:hover { border-color: rgba(230,57,70,0.5); }
.feature[data-color="yellow"]:hover { border-color: rgba(255,209,102,0.5); }
.feature[data-color="green"]:hover { border-color: rgba(6,214,160,0.5); }
.feature[data-color="blue"]:hover { border-color: rgba(58,134,255,0.5); }

.feature-dot { width: 10px; height: 10px; border-radius: 3px; margin-bottom: 20px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }

/* ============================================================
   COMMUNITY CTA
   ============================================================ */
#community { padding: 0 28px; }
.cta-card {
  position: relative; overflow: hidden;
  max-width: 1200px; margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--surface-2), var(--bg));
  padding: clamp(64px, 9vw, 120px) 28px;
  text-align: center;
}
.cta-halo {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.14; pointer-events: none;
}
.h-red { width: 340px; height: 340px; background: var(--red); top: -120px; left: -80px; }
.h-yellow { width: 300px; height: 300px; background: var(--yellow); top: -60px; right: -60px; }
.h-green { width: 320px; height: 320px; background: var(--green); bottom: -140px; left: 22%; }
.h-blue { width: 300px; height: 300px; background: var(--blue); bottom: -100px; right: 18%; }

.cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6vw, 58px); letter-spacing: -0.02em; line-height: 1.06;
  margin-bottom: 20px;
}
.cta-sub { color: var(--text-dim); font-size: 17px; margin-bottom: 38px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

.contact-links { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 15px;
  color: var(--text-dim); padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s, padding-left 0.3s var(--ease);
}
.contact-link:hover { color: var(--text); padding-left: 8px; }
.link-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.contact-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 36px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.field label {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6,214,160,0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.form-status { font-family: var(--font-mono); font-size: 13px; min-height: 20px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { border-top: 1px solid var(--border); padding: 46px 28px; margin-top: 40px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-brand .brand-text { font-size: 16px; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: 13.5px; color: var(--text-dim); transition: color 0.3s; }
.footer-nav a:hover { color: var(--green); }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.footer-admin { color: var(--text-faint); transition: color 0.3s; }
.footer-admin:hover { color: var(--green); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  #menu-btn { display: flex; }
  section { padding: 80px 20px; }
  #hero { padding: calc(var(--nav-h) + 32px) 20px 70px; }
  .card-desc { min-height: 0; }
}

@media (max-width: 480px) {
  .hero-meta { gap: 14px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .btn-card { width: 100%; }
}
