/* © 2026 Andrea Coppetta. Tutti i diritti riservati. */
/*
 * Il sito di Lancetta: la stessa mano dell'app. I colori sono quelli del suo tema
 * (apps/web/src/assets/main.css) e dell'icona: la carta chiara di giorno, l'abitacolo di notte, il
 * blu dei cartelli per le azioni, l'arancione della lancetta. Niente dalla rete: il carattere dei
 * titoli è nel sito (fonts/), e non c'è JavaScript.
 */
@font-face {
  font-family: 'Saira Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/saira-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: light dark;
  --sfondo: #f1f4f9;
  --carta: #ffffff;
  --inchiostro: #141a2e;
  --tenue: #566076;
  --filo: #dde2ec;
  --azione: #0f4fb8;
  --notte: #14204a;
  --notte-fonda: #0b1024;
  --lancetta: #ff7a2f;
  --sulla-notte: #c9d3e8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sfondo: #0c1020;
    --carta: #151b30;
    --inchiostro: #e8ecf6;
    --tenue: #9aa5c0;
    --filo: #262e48;
    --azione: #7db6ff;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--sfondo);
  color: var(--inchiostro);
  font:
    1.0625rem/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
h1,
h2,
h3,
.marchio {
  font-family: 'Saira Variable', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--azione);
  text-underline-offset: 0.2em;
}
a:focus-visible {
  outline: 3px solid var(--lancetta);
  outline-offset: 3px;
  border-radius: 4px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.dentro {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}
.stretta {
  width: min(100% - 2.5rem, 44rem);
  margin-inline: auto;
}

/* ── La testata: il cruscotto, blu notte in tutti e due i temi ─────────────── */
.testata {
  background:
    radial-gradient(ellipse 60% 70% at 80% 0%, rgb(255 255 255 / 0.14), transparent 70%),
    linear-gradient(160deg, #24397a 0%, var(--notte) 45%, var(--notte-fonda) 100%);
  color: #fff;
  overflow: hidden;
}
.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.marchio {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 650;
  color: #fff;
  text-decoration: none;
}
.marchio img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
}
.barra nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.barra nav a {
  color: var(--sulla-notte);
  text-decoration: none;
  padding-block: 0.6rem;
}
.barra nav a:hover {
  color: #fff;
}
.apertura {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 2.5rem 0;
}
.apertura .filo {
  width: 4.5rem;
  height: 0.35rem;
  border-radius: 1rem;
  background: var(--lancetta);
  margin-bottom: 1.5rem;
}
.apertura h1 {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.apertura .frase {
  margin-top: 1rem;
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  line-height: 1.35;
  color: var(--sulla-notte);
  max-width: 26ch;
}
.arrivo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.arrivo::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lancetta);
}
.apertura .telefono {
  justify-self: center;
  margin-bottom: -4rem;
}
@media (min-width: 52rem) {
  .apertura {
    grid-template-columns: 1.1fr 0.9fr;
    padding-block: 3.5rem 0;
  }
  .apertura .telefono {
    margin-bottom: -7rem;
  }
}

/* ── Il telefono: la sagoma intorno a una schermata vera dell'app ──────────── */
.telefono {
  width: min(17rem, 72vw);
  padding: 0.5rem;
  border-radius: 2.1rem;
  background: #05070f;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12),
    0 30px 60px -20px rgb(5 8 22 / 0.55);
}
.telefono img {
  width: 100%;
  border-radius: 1.65rem;
}

/* ── Le sezioni ────────────────────────────────────────────────────────────── */
section {
  padding-block: 3.5rem;
}
.dopo-apertura {
  padding-top: 7rem;
}
@media (min-width: 52rem) {
  .dopo-apertura {
    padding-top: 10rem;
  }
}
.titolo {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 650;
}
.sotto-titolo {
  margin-top: 0.6rem;
  color: var(--tenue);
  max-width: 52ch;
}
.tre {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 52rem) {
  .tre {
    grid-template-columns: repeat(3, 1fr);
  }
}
.carta {
  background: var(--carta);
  border: 1px solid var(--filo);
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.carta h3 {
  font-size: 1.25rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.carta h3::before {
  content: '';
  width: 0.3rem;
  height: 1.15rem;
  border-radius: 1rem;
  background: var(--lancetta);
  flex: none;
}
.carta p {
  margin-top: 0.6rem;
  color: var(--tenue);
}

/* ── La guida a passi ──────────────────────────────────────────────────────── */
.passi {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 3.5rem;
}
.passo {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}
.passo .numero {
  font-family: 'Saira Variable', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lancetta);
}
.passo h3 {
  font-size: clamp(1.4rem, 4.4vw, 1.9rem);
  font-weight: 650;
  margin-top: 0.35rem;
}
.passo p {
  margin-top: 0.75rem;
  color: var(--tenue);
  max-width: 40ch;
}
@media (min-width: 52rem) {
  .passo {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .passo:nth-child(even) .telefono {
    order: 2;
  }
}

/* ── I dati, e il fondo ────────────────────────────────────────────────────── */
.fascia {
  background: linear-gradient(160deg, var(--notte), var(--notte-fonda));
  color: #fff;
}
.fascia .titolo {
  color: #fff;
}
.fascia p {
  margin-top: 0.9rem;
  color: var(--sulla-notte);
  max-width: 58ch;
}
.fascia a {
  color: #fff;
}
footer {
  padding-block: 2.25rem 3rem;
  color: var(--tenue);
  font-size: 0.95rem;
}
footer .dentro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 1.25rem;
}

/* ── Le pagine di testo: informativa e aiuto ───────────────────────────────── */
.testo {
  padding-block: 2.5rem 3.5rem;
}
.testo h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
}
.testo h2 {
  font-size: 1.35rem;
  font-weight: 650;
  margin-top: 2.25rem;
}
.testo p,
.testo ul {
  margin-top: 0.85rem;
}
.testo ul {
  padding-left: 1.2rem;
}
.testo li + li {
  margin-top: 0.4rem;
}
.testo .nota {
  color: var(--tenue);
}
