@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sfondo: #fbfcfc;
  --sfondo-tinta: #eef5f4;
  --superficie: #ffffff;
  --testo: #14201f;
  --testo-tenue: #4b5a58;
  --bordo: #dbe5e3;
  --accento: #12615a;
  --accento-forte: #0d4a45;
  --su-accento: #ffffff;
  --errore: #b42318;
  --ombra: 0 24px 60px -24px rgb(18 97 90 / 0.28);
  --raggio: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sfondo: #0e1514;
    --sfondo-tinta: #13201e;
    --superficie: #17221f;
    --testo: #e8efee;
    --testo-tenue: #a3b3b0;
    --bordo: #263532;
    --accento: #4fb3a8;
    --accento-forte: #74c7bd;
    --su-accento: #062421;
    --errore: #f97066;
    --ombra: 0 24px 60px -24px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geist", system-ui, sans-serif;
  background: var(--sfondo);
  color: var(--testo);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accento); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

.contenitore { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Barra */
.barra { border-bottom: 1px solid var(--bordo); background: var(--sfondo); position: sticky; top: 0; z-index: 10; }
.barra-interna { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--testo); font-weight: 650; font-size: 1.05rem; }
.marchio img { border-radius: 9px; }
.accedi { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 0.92rem; color: var(--testo-tenue); }
.accedi-azione { display: inline-flex; align-items: center; gap: 6px; color: var(--accento); font-weight: 600; border: 1px solid var(--bordo); border-radius: 999px; padding: 7px 14px; transition: border-color .2s, background .2s; }
.accedi:hover .accedi-azione { border-color: var(--accento); background: var(--sfondo-tinta); }

/* Bottone */
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accento); color: var(--su-accento); border: 0; border-radius: 999px;
  padding: 14px 26px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.bottone:hover { background: var(--accento-forte); }
.bottone:active { transform: translateY(1px); }
.bottone:disabled { opacity: .6; cursor: wait; }
.bottone:focus-visible, input:focus-visible, select:focus-visible, .accedi:focus-visible { outline: 3px solid color-mix(in srgb, var(--accento) 45%, transparent); outline-offset: 2px; }

/* Eroe */
.eroe { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.occhiello { margin: 0 0 18px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accento); }
.eroe h1 { font-size: clamp(2.2rem, 3.7vw, 3.15rem); font-weight: 700; text-wrap: balance; }
.eroe-sotto { font-size: 1.15rem; color: var(--testo-tenue); margin: 20px 0 32px; max-width: 34ch; }
.eroe-immagine { margin: 0; border-radius: var(--raggio); overflow: hidden; border: 1px solid var(--bordo); box-shadow: var(--ombra); background: var(--superficie); }

/* Funzioni */
.funzioni { background: var(--sfondo-tinta); padding: 96px 0; }
.funzioni-griglia { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.foglio { margin: 0; border-radius: var(--raggio); overflow: hidden; box-shadow: var(--ombra); transform: rotate(-1.5deg); border: 1px solid var(--bordo); background: #fff; }
.funzioni h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 20ch; margin-bottom: 36px; }
.punti { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.punti li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.punti li > svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--superficie); color: var(--accento); border: 1px solid var(--bordo); }
.punti h3 { font-size: 1.08rem; margin-bottom: 4px; }
.punti p { margin: 0; color: var(--testo-tenue); max-width: 52ch; }

/* Telefono */
.telefono { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; padding-top: 104px; padding-bottom: 104px; max-width: 960px; }
.telefono h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.telefono p { color: var(--testo-tenue); font-size: 1.08rem; max-width: 44ch; margin: 0; }
.telefono-immagine { margin: 0; width: 260px; border-radius: 34px; overflow: hidden; border: 8px solid var(--testo); box-shadow: var(--ombra); max-height: 520px; }

/* Lista d'attesa */
.lista { border-top: 1px solid var(--bordo); padding: 96px 0 112px; scroll-margin-top: 68px; }
.lista-griglia { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.lista h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.lista-intro > p { color: var(--testo-tenue); font-size: 1.08rem; max-width: 40ch; margin: 0; }
.offerta { display: flex; gap: 12px; align-items: center; margin-top: 28px !important; padding: 16px 18px; border-radius: var(--raggio); background: var(--sfondo-tinta); color: var(--testo) !important; border: 1px solid var(--bordo); }
.offerta svg { width: 26px; height: 26px; color: var(--accento); }
.offerta strong { color: var(--accento); }

.modulo, .grazie { background: var(--superficie); border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 32px; box-shadow: var(--ombra); }
.modulo { display: grid; gap: 18px; }
.riga-doppia { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo { display: grid; gap: 7px; }
.campo label { font-size: .92rem; font-weight: 600; }
.campo input, .campo select {
  font: inherit; color: var(--testo); background: var(--sfondo); border: 1px solid var(--bordo);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
.campo input:hover, .campo select:hover { border-color: color-mix(in srgb, var(--accento) 40%, var(--bordo)); }
.campo [aria-invalid="true"] { border-color: var(--errore); }
.consenso { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .9rem; color: var(--testo-tenue); align-items: start; }
.consenso input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accento); }
.errore { margin: 0; color: var(--errore); font-size: .92rem; }
.modulo .bottone { justify-self: start; }
.grazie { text-align: center; }
.grazie svg { width: 48px; height: 48px; color: var(--accento); margin: 0 auto 12px; }
.grazie h3 { font-size: 1.4rem; margin-bottom: 8px; }
.grazie p { color: var(--testo-tenue); margin: 0; }

/* Piede */
.piede { border-top: 1px solid var(--bordo); padding: 28px 0; font-size: .88rem; color: var(--testo-tenue); }
.piede-interno { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.piede p { margin: 0; }

/* Pagine di testo (privacy) */
.testo-legale { max-width: 72ch; padding-top: 56px; padding-bottom: 96px; }
.testo-legale h1 { font-size: 2.2rem; margin-bottom: 8px; }
.testo-legale h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.testo-legale p, .testo-legale li { color: var(--testo-tenue); }
.nota-bozza { padding: 12px 16px; border-radius: 10px; background: var(--sfondo-tinta); border: 1px solid var(--bordo); font-size: .92rem; }

/* Comparsa al caricamento: guida l'occhio dal titolo all'immagine */
@media (prefers-reduced-motion: no-preference) {
  .eroe-testo > * { animation: sale .7s cubic-bezier(.16, 1, .3, 1) both; }
  .eroe-testo > :nth-child(2) { animation-delay: .06s; }
  .eroe-testo > :nth-child(3) { animation-delay: .12s; }
  .eroe-testo > :nth-child(4) { animation-delay: .18s; }
  .eroe-immagine { animation: sale .9s .15s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes sale { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* Telefono e tablet */
@media (max-width: 900px) {
  .eroe, .funzioni-griglia, .lista-griglia, .telefono { grid-template-columns: 1fr; gap: 40px; }
  .eroe { padding-top: 40px; padding-bottom: 64px; }
  .funzioni { padding: 64px 0; }
  .foglio { max-width: 420px; margin: 0 auto; transform: none; order: 2; }
  .telefono { padding-top: 72px; padding-bottom: 72px; }
  .telefono-immagine { width: 220px; margin: 0 auto; max-height: 440px; }
  .lista { padding: 64px 0 80px; }
}
@media (max-width: 560px) {
  .contenitore { padding: 0 16px; }
  .accedi-domanda { display: none; }
  .riga-doppia { grid-template-columns: 1fr; }
  .modulo, .grazie { padding: 22px; }
  .modulo .bottone { justify-self: stretch; }
  .eroe-sotto { font-size: 1.05rem; }
}
