/* Colori e misure riutilizzabili */
:root {
  --sfondo: #0e0e10;
  --testo: #f2f2f2;
  --tenue: #9a9aa3;
  --accento: #c6ff3d;
  --scheda: #1a1a1f;
}

/* Reset di base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--sfondo);
  color: var(--testo);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden; /* niente scroll laterale su telefono */
}

/* Ogni sezione occupa almeno uno schermo */
section {
  min-height: 100svh;
  padding: 4rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- Sezione 1 --- */
h1 {
  font-size: clamp(4rem, 22vw, 12rem); /* grande, si adatta allo schermo */
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
/* Ogni lettera è uno <span> creato dal JavaScript */
h1 span { display: inline-block; }

.sottotitolo { margin-top: 1rem; color: var(--tenue); font-size: 1.1rem; }
.scorri { margin-top: 3rem; color: var(--accento); font-size: 0.9rem; }

/* --- Sezione 2 --- */
.sezione-3d { position: relative; padding: 0; }
#scena3d { width: 100%; height: 100svh; display: block; }
.etichetta { position: absolute; bottom: 2rem; color: var(--tenue); }

/* --- Sezione 3 --- */
h2 { font-size: clamp(2rem, 8vw, 3.5rem); margin-bottom: 2rem; }

.schede {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
}
/* Da tablet in su: tre colonne affiancate */
@media (min-width: 700px) {
  .schede { grid-template-columns: repeat(3, 1fr); }
}

.scheda {
  background: var(--scheda);
  border: 1px solid #2a2a31;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: left;
}
.scheda h3 { color: var(--accento); font-size: 1.5rem; margin-bottom: 0.5rem; }
.scheda p { color: var(--tenue); }

/* --- Sezione 4 --- */
#pulsante-contatti {
  background: var(--accento);
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px; /* facile da toccare col dito */
  transition: transform 0.2s;
}
#pulsante-contatti:active { transform: scale(0.95); }
