/* Stesso aspetto di www.valentiniautomazioni.it: tema chiaro, Geist, blu del marchio. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-1.7.2-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-1.7.2-medium.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #111417;
  --muted: #6b7580;
  --line: rgb(17 20 23 / 0.09);
  --line-strong: rgb(17 20 23 / 0.28);
  --brand: #1d5fe0;
  --brand-dark: #174cb3;
  --error: #b42318;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
}

.card {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.logo {
  display: block;
  max-width: 220px;
  max-height: 56px;
  margin: 0 auto 1.5rem;
}

.kicker {
  margin: 0 0 .25rem;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

p { margin: 0 0 1rem; color: #3a4047; }
.dim { color: var(--muted); font-weight: 400; }
.nota { margin: 1.25rem 0 0; color: var(--muted); font-size: .85rem; }
.errore { color: var(--error); }
.percorso { color: var(--muted); font-size: .9rem; word-break: break-word; }

label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 500; }

input[type="email"] {
  width: 100%;
  margin-bottom: 1rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
}
input[type="email"]:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

button, .pulsante {
  display: block;
  width: 100%;
  padding: .75rem;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .pulsante:hover { background: var(--brand-dark); }
button:focus-visible, .pulsante:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Campo trappola per i bot: fuori dallo schermo, invisibile alle persone. */
.trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.elenco { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.elenco li { border-bottom: 1px solid var(--line); }
.elenco a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem .25rem;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}
.elenco a:hover { color: var(--brand); }
.elenco a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.elenco .nome { flex: 1; }
.elenco .dim { font-size: .85rem; white-space: nowrap; }
.elenco .su a { color: var(--muted); }
.elenco .vuota { padding: .75rem .25rem; color: var(--muted); }
.icona { width: 1.4rem; flex: none; text-align: center; }

@media (max-width: 480px) {
  body { padding: 1rem; }
  .card { padding: 1.5rem 1.25rem; }
}
