/* =========================================
   VARIABILI E RESET
   ========================================= */
:root {
  --bg-dark: #050a15;
  --bg-panel: rgba(15, 30, 61, 0.6);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --cyan: #00f0ff;
  --purple: #7c3aed;
  --orange: #ff6b35;
  --green: #22c55e;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Syne', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* =========================================
   CURSORE — niente più setTimeout, solo CSS
   ========================================= */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  /* translateX(-50%) translateY(-50%) centrano il punto */
  /* La posizione reale viene da JS con translate(Xpx, Ypx) */
  /* Usiamo will-change per hint GPU */
  will-change: transform;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--cyan);
  /* Nessuna transition su transform — deve essere istantaneo */
}

.cursor-ring {
  width: 30px; height: 30px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  /* Ring segue via lerp in JS, no transition CSS (interferirebbe) */
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
}

.cursor-hover .cursor-ring {
  width: 50px; height: 50px;
  background-color: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
}

.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* =========================================
   TIPOGRAFIA E UTILITY
   ========================================= */
h1, h2, h3, h4, .logo-text, .section-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; position: relative; }
.section-label { color: var(--cyan); margin-bottom: 1rem; font-weight: 700; font-size: 0.9rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; line-height: 1.1; }
.section-title.center { text-align: center; }
.section-title em { color: var(--cyan); font-style: normal; text-shadow: 0 0 10px rgba(0,240,255,0.3); }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 10, 21, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo { font-size: 1.3rem; font-weight: 900; white-space: nowrap; }
.logo-bracket { color: var(--purple); }
.logo-num { color: var(--cyan); font-size: 0.9rem; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-link { font-size: 0.85rem; font-weight: 600; position: relative; padding: 0.25rem 0; }
.nav-link::before {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0%; height: 2px; background: var(--cyan);
  transition: var(--transition);
}
.nav-link:hover::before { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  padding: 10px 12px;
  z-index: 1002;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(0,240,255,0.05); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 15px; }
.nav-toggle span:nth-child(3) { width: 22px; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* =========================================
   BOTTONI
   ========================================= */
.btn {
  display: inline-block; padding: 0.9rem 1.8rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px; transition: var(--transition);
  position: relative; overflow: hidden;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--purple); color: white;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
  border-color: var(--purple);
}
.btn-primary:hover {
  background: transparent;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-ghost { border-color: rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-full { width: 100%; text-align: center; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 6rem 10% 4rem;
}
.hero-grid-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  z-index: -1;
}
.hero-tag { color: var(--orange); font-family: var(--font-display); margin-bottom: 1rem; font-size: clamp(0.65rem, 2vw, 0.8rem); letter-spacing: 3px; }
.hero-title {
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1; display: flex; flex-direction: column;
}
.hero-line.accent { color: transparent; -webkit-text-stroke: 2px var(--cyan); }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.5rem); color: var(--text-muted); max-width: 600px; margin: 1.5rem 0; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: absolute; bottom: 3rem; right: 10%;
  display: flex; gap: 2rem;
  background: var(--bg-panel);
  padding: 1.5rem 2.5rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.05);
}
.stat-num { display: block; font-size: 2.5rem; font-family: var(--font-display); color: var(--cyan); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.1); }

.hero-scroll-hint { display: none; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--cyan), transparent); margin: 0.5rem auto 0; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* =========================================
   ABOUT
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { margin-bottom: 1.5rem; line-height: 1.8; color: var(--text-muted); }
.about-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.badge {
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem; border-radius: 50px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-card {
  background: var(--bg-panel); padding: 1.5rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.about-card:hover { border-color: var(--cyan); box-shadow: 0 10px 30px rgba(0,240,255,0.1); }
.about-card-wide { grid-column: 1 / -1; }
.card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

/* =========================================
   ROBOT
   ========================================= */
.robot-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.robot-frame {
  position: relative; background: var(--bg-panel); border-radius: 12px;
  padding: 2rem; border: 1px solid var(--purple);
  display: flex; justify-content: center; overflow: hidden;
}
.robot-svg-wrapper { width: 100%; max-width: 300px; position: relative; z-index: 2; }
.robot-svg { width: 100%; height: auto; filter: drop-shadow(0 0 10px rgba(0,240,255,0.5)); }
.robot-scan-line {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  animation: scan 3s infinite linear; z-index: 3;
}
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.robot-specs .spec-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.spec-item { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.spec-key { color: var(--cyan); font-family: var(--font-display); font-size: 0.8rem; flex-shrink: 0; }
.spec-val { color: var(--text-main); text-align: right; font-size: 0.9rem; }
.robot-sub-features { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.feature-pill {
  background: rgba(124, 58, 237, 0.2); border: 1px solid var(--purple);
  padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.78rem;
}

/* =========================================
   TEAM
   ========================================= */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.member-card {
  background: var(--bg-panel); padding: 1.75rem; border-radius: 12px;
  text-align: center; border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.member-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.member-avatar {
  width: 72px; height: 72px; margin: 0 auto 1.25rem;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-family: var(--font-display);
  border: 2px solid var(--c); color: var(--c);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.member-role { display: block; font-size: 0.78rem; color: var(--text-muted); margin: 0.4rem 0 0.9rem; }
.member-skills { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.member-skills span { font-size: 0.68rem; padding: 0.2rem 0.6rem; background: rgba(255,255,255,0.08); border-radius: 50px; }

/* =========================================
   TIMELINE
   ========================================= */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0;
  width: 2px; height: 100%; background: rgba(255,255,255,0.1);
  transform: translateX(-50%);
}
.timeline-item { width: 50%; padding: 2rem; position: relative; }
.timeline-item[data-side="left"] { left: 0; text-align: right; padding-right: 3rem; }
.timeline-item[data-side="right"] { left: 50%; text-align: left; padding-left: 3rem; }
.timeline-dot {
  position: absolute; top: 2.5rem;
  width: 16px; height: 16px;
  background: var(--bg-dark); border: 2px solid var(--purple);
  border-radius: 50%; z-index: 2;
}
.timeline-item[data-side="left"] .timeline-dot { right: -8px; }
.timeline-item[data-side="right"] .timeline-dot { left: -8px; }
.timeline-dot.active { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.timeline-card {
  background: var(--bg-panel); padding: 1.5rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.timeline-card.active { border-color: var(--cyan); }
.tl-year { color: var(--cyan); font-family: var(--font-display); font-size: 0.85rem; }
.tl-badge { display: inline-block; margin-top: 1rem; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.78rem; font-weight: bold; }
.tl-badge.win { background: rgba(255,107,53,0.2); color: var(--orange); }
.tl-badge.current { background: rgba(0,240,255,0.2); color: var(--cyan); }

/* =========================================
   CONTATTI
   ========================================= */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 0.75rem; }
.contact-item a { color: var(--text-muted); transition: var(--transition); }
.contact-item a:hover { color: var(--cyan); }

.form-group { position: relative; margin-bottom: 2rem; }
.form-group input, .form-group textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 0.5rem 0;
  font-family: var(--font-body); font-size: 1rem;
  resize: none;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--cyan); }
.form-group label {
  position: absolute; top: 0.5rem; left: 0;
  color: var(--text-muted); transition: var(--transition); pointer-events: none;
}
.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label { top: -1.5rem; font-size: 0.78rem; color: var(--cyan); }
.form-success {
  display: none; margin-top: 1rem; color: var(--green);
  background: rgba(34,197,94,0.1); padding: 1rem; border-radius: 4px;
}
.btn-loading { display: none; }
.is-loading .btn-text { display: none; }
.is-loading .btn-loading { display: inline; }

/* Mappa Google */
.map-wrapper {
  margin-top: 3rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 4rem 0 2rem; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; padding: 0 2rem; flex-wrap: wrap; gap: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  color: var(--text-muted); font-size: 0.85rem;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem 0; border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap; gap: 1rem;
}
.footer-ftc { color: var(--cyan); }

/* =========================================
   ANIMAZIONI JS
   ========================================= */
.animate-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   EASTER EGG
   ========================================= */
.easter-egg-container { margin-top: 1rem; user-select: none; }
.EasterEgg-text {
  font-family: var(--font-body); color: var(--text-muted);
  font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}
.EasterEgg-text:hover { color: var(--cyan); transform: scale(1.1); }
.EasterEgg-active {
  color: var(--orange) !important; font-weight: bold;
  transform: scale(1.3) rotate(10deg);
  text-shadow: 0 0 8px rgba(255,107,53,0.5);
}

/* =========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
  .hero { padding: 6rem 5% 4rem; }
  .hero-stats { right: 5%; }
  .about-grid { gap: 2.5rem; }
  .robot-showcase { gap: 2.5rem; }
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {

  /* Navbar — overlay fullscreen */
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh; width: 100%;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 0 2rem;
    /* Slide da destra */
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    /* Linea decorativa sinistra */
    border-left: 2px solid transparent;
  }
  .nav-links.active {
    transform: translateX(0);
    border-left-color: var(--cyan);
  }

  /* Stagger animazione link */
  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .nav-links.active li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.12s; }
  .nav-links.active li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.18s; }
  .nav-links.active li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
  .nav-links.active li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.30s; }
  .nav-links.active li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.36s; }
  .nav-links.active li:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.42s; }

  .nav-link {
    display: block;
    font-size: 2rem;
    font-family: var(--font-display);
    letter-spacing: 3px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    color: var(--text-muted);
    transition: color 0.2s ease, padding-left 0.2s ease;
    position: relative;
  }
  .nav-link:hover, .nav-link:active { color: var(--cyan); padding-left: 0.5rem; }
  .nav-link::before { display: none; }

  /* Numero decorativo accanto al link */
  .nav-link::after {
    content: attr(data-index);
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: rgba(0,240,255,0.3);
    font-family: var(--font-display);
    letter-spacing: 1px;
  }

  /* CTA diverso */
  li:last-child .nav-link {
    color: var(--cyan);
    border-bottom: none;
    margin-top: 0.5rem;
  }

  /* Numero progressivo nel footer del menu */
  .nav-links::after {
    content: '#25074';
    position: absolute;
    bottom: 2.5rem;
    left: 2rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.1);
    letter-spacing: 4px;
  }

  .nav-toggle { display: flex; }

  /* Hero */
  .hero {
    padding: 5rem 1.5rem 2rem;
    justify-content: center;
    min-height: 100dvh;
  }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-sub { font-size: 1rem; margin: 1rem 0; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .hero-stats {
    position: relative;
    bottom: auto; right: auto;
    margin-top: 2.5rem;
    flex-direction: row;
    justify-content: space-around;
    padding: 1.25rem 1rem;
    gap: 0;
    width: 100%;
  }
  .stat { text-align: center; flex: 1; }
  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: 0.65rem; }
  .stat-divider { width: 1px; height: auto; background: rgba(255,255,255,0.1); align-self: stretch; }



  /* Sezioni */
  .section { padding: 4rem 0; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 2rem; }
  .container { padding: 0 1.25rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { grid-template-columns: 1fr; }
  .about-card-wide { grid-column: auto; }

  /* Robot */
  .robot-showcase { grid-template-columns: 1fr; gap: 2rem; }
  .robot-frame { padding: 1.5rem; }
  .robot-svg-wrapper { max-width: 200px; margin: 0 auto; }
  .spec-item { flex-direction: column; gap: 0.25rem; }
  .spec-val { text-align: left; }

  /* Team */
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
  .member-card { padding: 1.25rem 1rem; }
  .member-avatar { width: 60px; height: 60px; font-size: 1.2rem; margin-bottom: 1rem; }
  .member-name { font-size: 0.85rem; }

  /* Timeline */
  .timeline::before { left: 20px; }
  .timeline-item {
    width: 100%;
    padding: 1.5rem 1rem 1.5rem 3.5rem !important;
    text-align: left !important;
    left: 0 !important;
  }
  .timeline-item[data-side="left"] .timeline-dot,
  .timeline-item[data-side="right"] .timeline-dot { left: 12px; right: auto; }
  .timeline-card { padding: 1.25rem; }

  /* Contatti */
  .contatti-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Mappa */
  .map-wrapper iframe { height: 220px; }

  /* Footer */
  .footer-top { flex-direction: column; align-items: flex-start; padding: 0 1.25rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1.25rem 1.25rem 0; gap: 0.5rem; }
}

/* =========================================
   RESPONSIVE — SMALL (≤ 400px)
   ========================================= */
@media (max-width: 400px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 100%; height: 1px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .nav-logo { font-size: 1.1rem; }
}

/* =========================================
   TOUCH DEVICE — disabilita cursore custom
   ========================================= */
@media (pointer: coarse) {
  * { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}