/* =========================
   BASE
========================= */

body {
  background: #E6E6E6;
  color: #333;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* =========================
   BACKGROUND
========================= */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(circle at 15% 20%, rgba(255, 26, 26, 0.14), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(51, 51, 51, 0.10), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 26, 26, 0.06), transparent 60%);

  animation: bgFloat 16s ease-in-out infinite alternate;
}

@keyframes bgFloat {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

/* =========================
   NAVBAR
========================= */

.nav-scrolled {
  background: rgba(230, 230, 230, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.status-dot {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  letter-spacing: 1px;
}

/* =========================
   BUTTON
========================= */

.btn {
  border: 1px solid #333;
  padding: 10px 22px;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.btn:hover {
  background: #333;
  color: #E6E6E6;
  transform: translateY(-2px);
}

/* =========================
   ACCENT
========================= */

.accent {
  color: #FF1A1A;
}

/* =========================
   SECTIONS
========================= */

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
}

.dark-section {
  background: #333;
  color: #E6E6E6;
}

/* =========================
   REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: all 0.9s cubic-bezier(.2,.8,.2,1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   CARDS
========================= */

.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

/* =========================
   COUNTER
========================= */

.counter {
  font-variant-numeric: tabular-nums;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, .hero-title {
  font-size: clamp(3rem, 8vw, 4.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 3rem) !important;
  font-weight: 600 !important;
  line-height: 1.15;
}

p {
  font-size: clamp(1.1rem, 3.5vw, 1.25rem);
  line-height: 1.75;
}

h1, h2, p {
  margin: 0;
}

/* =========================
  BACKDROP BLUR TESTO (NUOVO)
========================= */

section h1,
section h2,
section p {
  backdrop-filter: blur(10px);
  background: rgba(230, 230, 230, 0.35);
  padding: 6px 10px;
  border-radius: 10%;
}

/* =========================
   FOOTER
========================= */

footer {
  background: rgba(230,230,230,0.6);
  backdrop-filter: blur(10px);
}