/*
 * Le pagine di testo della vetrina: privacy, termini, contatti.
 *
 * Non riusano il CSS della landing, che è millesettecento righe fatte per una
 * pagina sola con le sue animazioni e le sue griglie. Qui serve un'altra cosa:
 * far leggere del testo lungo e noioso senza far scappare nessuno. Stessa
 * palette e stessi caratteri, così si vede che è lo stesso sito.
 */

:root {
  --bg: #020617;
  --bg-soft: #0b1220;
  --surface: #0f172a;
  --border: #1e293b;
  --border-soft: #172033;
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #34d399;
  --accent-strong: #10b981;
  --accent-ink: #052e21;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ------------------------------------------------------------ intestazione */

header.top {
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  max-width: 62rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo .pallone {
  font-size: 1.15rem;
}

.torna {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.torna:hover {
  color: var(--text-strong);
}

/* -------------------------------------------------------------------- testo */

main {
  padding: 3rem 0 4rem;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 0.5rem;
}

.aggiornata {
  color: var(--faint);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

h3 {
  font-size: 1rem;
  color: var(--text-strong);
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  color: var(--text);
}

a {
  color: var(--accent);
}

strong {
  color: var(--text-strong);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.4rem 0;
}

/* Il riquadro del "in due parole": chi non legge tutto legge almeno questo. */
.sunto {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}

.sunto p {
  margin: 0.5rem 0;
}

.sunto p:first-child {
  margin-top: 0;
}

.sunto p:last-child {
  margin-bottom: 0;
}

.nota {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nota strong {
  color: var(--amber);
}

/* -------------------------------------------------------------------- tabelle */

.tabella {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 34rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

th {
  color: var(--text-strong);
  font-weight: 600;
  background: var(--bg-soft);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

/* -------------------------------------------------------------------- moduli */

.campo {
  display: block;
  margin: 1.1rem 0;
}

.campo > span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
  border-color: transparent;
}

textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.6;
}

/* Il campo che vedono solo i bot. Non `display:none`: qualche compilatore
   automatico lo riconosce e lo salta apposta. */
.esca {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: default;
  filter: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
}

.esito {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.esito.ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--accent);
}

.esito.ko {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
}

/* -------------------------------------------------------------------- fondo */

footer.fondo {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--faint);
  font-size: 0.88rem;
}

footer.fondo .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  max-width: 62rem;
}

footer.fondo a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.1rem;
}

footer.fondo a:hover {
  color: var(--text-strong);
}

/* Instagram: icona e parola insieme, allineate alla linea di base del testo. */
footer.fondo .social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

footer.fondo .social svg {
  width: 1.05em;
  height: 1.05em;
}
