/* PadelBot: un foglio solo, mobile first, chiaro e scuro dal sistema. */

:root {
  color-scheme: light dark;
  --sfondo: #fff;
  --sfondo-tenue: #f5f5f7;
  --superficie: #fff;
  --testo: #1d1d1f;
  --testo-tenue: #6e6e73;
  --linea: #d2d2d7;
  --linea-tenue: rgb(0 0 0 / 8%);
  --link: #1d5fc6;
  --bottone: #1d5fc6;
  --bottone-sopra: #174fa8;
  --bottone-testo: #fff;
  --spento: #e8e8ed;
  --spento-testo: #6e6e73;
  --notte: #0b1f3a;
  --palla: #ddf23c;
  --barra: rgb(255 255 255 / 80%);
  --nota: #fff6d6;
  --nota-testo: #4d3a00;
  --nota-bordo: #f0d27a;
  --manca: #ffe066;
  --manca-testo: #3d2e00;
  --fitp: #1d5fc6;
  --fip: #0f7a55;
  --tpra: #c2410c;
  --ombra: 0 1px 2px rgb(0 0 0 / 4%), 0 12px 32px rgb(0 0 0 / 8%);
  --raggio: 20px;
  --tg-sfondo: linear-gradient(160deg, #d8e5c3 0%, #b7d2ae 48%, #a3c8c4 100%);
  --tg-bolla: #fff;
  --tg-testo: #000;
  --tg-tenue: #6b6b70;
  --tg-citazione: #2481cc;
  --tg-citazione-sfondo: rgb(36 129 204 / 10%);
  --tg-bottone: rgb(30 60 40 / 60%);
  --tg-data: rgb(30 60 40 / 55%);
  --tg-barra: #f7f7f7;
  --tg-file: #2481cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sfondo: #000;
    --sfondo-tenue: #161617;
    --superficie: #1c1c1e;
    --testo: #f5f5f7;
    --testo-tenue: #a1a1a6;
    --linea: #424245;
    --linea-tenue: rgb(255 255 255 / 10%);
    --link: #4d9bff;
    --bottone: #0b63d6;
    --bottone-sopra: #2474e6;
    --spento: #2c2c2e;
    --spento-testo: #a1a1a6;
    --barra: rgb(22 22 23 / 80%);
    --nota: #33290a;
    --nota-testo: #ffe7a3;
    --nota-bordo: #6b5512;
    --manca: #5c4a00;
    --manca-testo: #fff1b8;
    --fitp: #5b9cff;
    --fip: #34c38f;
    --tpra: #ff8a4c;
    --ombra: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 40%);
    --tg-sfondo: linear-gradient(160deg, #1d2a22 0%, #16231f 50%, #10202a 100%);
    --tg-bolla: #262628;
    --tg-testo: #fff;
    --tg-tenue: #9a9aa0;
    --tg-citazione: #6ab3f3;
    --tg-citazione-sfondo: rgb(106 179 243 / 12%);
    --tg-bottone: rgb(255 255 255 / 14%);
    --tg-data: rgb(255 255 255 / 14%);
    --tg-barra: #1c1c1d;
    --tg-file: #6ab3f3;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font: 17px/1.47 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 8vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 5.5vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

.contenitore { width: min(100% - 32px, 1040px); margin-inline: auto; }
.stretto { width: min(100% - 32px, 720px); margin-inline: auto; }

.salta {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bottone);
  color: var(--bottone-testo);
  font-weight: 600;
}
.salta:focus { top: 8px; }

.invisibile {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Barra in alto */

.testata {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--barra);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linea-tenue);
}
.testata .contenitore { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.marchio { display: flex; align-items: center; gap: 10px; color: var(--testo); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.marchio:hover { text-decoration: none; }
.marchio img { width: 30px; height: 30px; border-radius: 8px; }
.testata nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu a { display: block; padding: 8px 10px; border-radius: 999px; color: var(--testo); font-size: 15px; }
.menu a:hover { text-decoration: none; background: var(--sfondo-tenue); }
.menu a[aria-current="page"] { font-weight: 600; }
.menu .solo-largo { display: none; }
.menu .pillola { padding: 8px 16px; background: var(--bottone); color: var(--bottone-testo); font-weight: 600; }
.menu .pillola:hover { background: var(--bottone-sopra); }

.fascia-test {
  padding: 8px 16px;
  background: var(--nota);
  color: var(--nota-testo);
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--nota-bordo);
}

/* Bottoni */

.azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.bottone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--bottone);
  color: var(--bottone-testo);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.bottone:hover { background: var(--bottone-sopra); text-decoration: none; }
.bottone svg { width: 20px; height: 20px; flex: none; }
.bottone.secondario { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.bottone.secondario:hover { background: var(--sfondo-tenue); }
.bottone:disabled { background: var(--spento); color: var(--spento-testo); cursor: not-allowed; }
.bottone.largo { width: 100%; }

/* Sezioni */

.sezione { padding: 72px 0; }
.sezione.tenue { background: var(--sfondo-tenue); }
.intestazione { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.intestazione p { margin-top: 14px; color: var(--testo-tenue); font-size: 19px; }
.occhiello { color: var(--link); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.didascalia { margin-top: 20px; color: var(--testo-tenue); font-size: 14px; text-align: center; }

/* Apertura della home */

.eroe { padding: 48px 0 64px; overflow: hidden; }
.eroe-griglia { display: grid; gap: 48px; align-items: center; }
.eroe h1 { margin-top: 12px; }
.eroe .sottotitolo { margin-top: 18px; color: var(--testo-tenue); font-size: clamp(1.1rem, 3.6vw, 1.35rem); line-height: 1.4; }
.eroe .azioni { margin-top: 28px; }
.eroe .azioni .bottone { flex: 1 1 100%; }
.nota-prezzo { margin-top: 16px; color: var(--testo-tenue); font-size: 15px; }

.circuiti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 440px; margin: 32px 0 0; padding: 0; list-style: none; }
.circuito { padding: 12px 14px; border-radius: 16px; background: var(--sfondo-tenue); }
.circuito b { display: block; font-size: 17px; font-weight: 700; }
.circuito span { display: block; margin-top: 2px; color: var(--testo-tenue); font-size: 14px; line-height: 1.3; }
.circuito.fitp b { color: var(--fitp); }
.circuito.fip b { color: var(--fip); }
.circuito.tpra b { color: var(--tpra); }

/* Telefono e chat di Telegram */

.telefono {
  width: min(100%, 320px);
  margin-inline: auto;
  padding: 10px;
  border-radius: 48px;
  background: #1d1d1f;
  box-shadow: 0 0 0 1px #3a3a3c, 0 30px 60px rgb(0 0 0 / 22%);
}
.schermo { overflow: hidden; border-radius: 38px; background: var(--tg-barra); }
.stato { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 4px; color: var(--tg-testo); font-size: 14px; font-weight: 600; }
.stato i { width: 84px; height: 24px; border-radius: 999px; background: #000; }
.stato svg { width: 44px; height: 12px; }

.tg-testata { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; background: var(--tg-barra); border-bottom: 1px solid var(--linea-tenue); color: var(--tg-testo); }
.tg-testata img { width: 36px; height: 36px; border-radius: 50%; }
.tg-testata b { display: block; font-size: 16px; line-height: 1.2; }
.tg-testata small { color: var(--tg-tenue); font-size: 13px; }
.tg-indietro { color: var(--tg-citazione); font-size: 26px; line-height: 1; }

.tg-chat { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 16px; background: var(--tg-sfondo); }
.telefono .tg-chat { height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
.tg-giorno { align-self: center; margin: 4px 0; padding: 2px 10px; border-radius: 999px; background: var(--tg-data); color: #fff; font-size: 13px; font-weight: 600; }

.tg-messaggio { align-self: flex-start; width: 92%; }
.tg-bolla {
  display: flow-root;
  padding: 7px 10px 6px;
  border-radius: 16px 16px 16px 6px;
  background: var(--tg-bolla);
  color: var(--tg-testo);
  font-size: 15px;
  line-height: 1.36;
  box-shadow: 0 1px 1px rgb(0 0 0 / 12%);
}
.tg-bolla b { font-weight: 600; }
.tg-ora { float: right; margin: 6px 0 -4px 10px; color: var(--tg-tenue); font-size: 12px; white-space: nowrap; }
.tg-citazione {
  display: block;
  margin: 2px 0;
  padding: 2px 8px 2px 10px;
  border-left: 3px solid var(--tg-citazione);
  border-radius: 4px;
  background: var(--tg-citazione-sfondo);
}
.tg-file { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tg-file i { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tg-file); }
.tg-file i::before { content: ""; width: 14px; height: 18px; border-radius: 2px; background: #fff; }
.tg-file b { display: block; font-size: 14px; line-height: 1.25; }
.tg-file small { color: var(--tg-tenue); font-size: 13px; }
.tg-tastiera { display: grid; gap: 4px; margin-top: 4px; }
.tg-riga { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.tg-tasto {
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--tg-bottone);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.galleria {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 340px);
  gap: 16px;
  margin: 0;
  padding: 4px 16px 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  list-style: none;
}
.galleria li { scroll-snap-align: start; }
.galleria figure { display: flex; flex-direction: column; gap: 14px; height: 100%; margin: 0; }
.tg-finestra { display: flex; flex: 1; flex-direction: column; overflow: hidden; border-radius: var(--raggio); background: var(--tg-barra); box-shadow: var(--ombra); }
.tg-finestra .tg-chat { flex: 1; justify-content: flex-end; min-height: 400px; }
.galleria figcaption { padding: 0 4px; font-size: 15px; color: var(--testo-tenue); }
.galleria figcaption b { display: block; color: var(--testo); font-size: 17px; }

/* Funzioni */

.funzioni { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.funzione {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 16px;
  padding: 20px;
  border-radius: var(--raggio);
  background: var(--superficie);
  box-shadow: var(--ombra);
}
.funzione svg { grid-row: span 2; width: 28px; height: 28px; color: var(--link); }
.funzione p { margin-top: 6px; color: var(--testo-tenue); font-size: 16px; }

/* Passi */

.passi { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.passi li { position: relative; padding-left: 56px; counter-increment: passo; }
.passi li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--notte);
  color: var(--palla);
  font-weight: 700;
}
.passi p { margin-top: 6px; color: var(--testo-tenue); }

/* Piani */

.piani { display: grid; gap: 20px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.piano {
  display: flex;
  flex-direction: column;
  width: min(100%, 400px);
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: var(--superficie);
  box-shadow: var(--ombra);
  text-align: center;
}
.piano h3 { color: var(--testo-tenue); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.prezzo { margin-top: 10px; font-size: clamp(3rem, 13vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.periodo { margin-top: 8px; font-size: 19px; font-weight: 600; }
.al-mese { margin-top: 4px; color: var(--testo-tenue); font-size: 15px; }
.piano ul { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; text-align: left; }
.piano li { display: flex; gap: 10px; font-size: 16px; }
.piano li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--fip); }
.piano .bottone, .piano .acquista { margin-top: auto; }
.consenso { display: flex; gap: 10px; margin-bottom: 16px; color: var(--testo-tenue); font-size: 14px; line-height: 1.4; text-align: left; cursor: pointer; }
.consenso input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--bottone); }
.piano .sotto { margin-top: 12px; color: var(--testo-tenue); font-size: 14px; }

.metodi { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.metodi li { padding: 8px 14px; border: 1px solid var(--linea); border-radius: 10px; background: var(--superficie); font-size: 15px; font-weight: 600; }

.riquadro {
  padding: 24px;
  border-radius: var(--raggio);
  background: var(--sfondo-tenue);
}
.riquadro h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.riquadro p, .riquadro ul { margin-top: 10px; color: var(--testo-tenue); font-size: 16px; }
.riquadro ul { padding-left: 20px; }
.riquadro li + li { margin-top: 6px; }

.nota {
  padding: 16px 20px;
  border: 1px solid var(--nota-bordo);
  border-radius: 14px;
  background: var(--nota);
  color: var(--nota-testo);
  font-size: 16px;
}
.nota b { font-weight: 700; }
.nota + * { margin-top: 24px; }
.intestazione + .nota { margin-bottom: 32px; }

mark.manca {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--manca);
  color: var(--manca-testo);
  font-size: 0.92em;
  font-weight: 600;
  white-space: nowrap;
}

/* Pagine di testo */

.pagina { padding: 48px 0 80px; }
.pagina h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
.pagina .introduzione { margin-top: 16px; color: var(--testo-tenue); font-size: 19px; }
.pagina .introduzione + * { margin-top: 40px; }
.testo h2 { margin-top: 44px; font-size: 1.5rem; letter-spacing: -0.015em; }
.testo h3 { margin-top: 24px; font-size: 1.1rem; }
.testo p, .testo ul, .testo ol, .testo table { margin-top: 12px; }
.testo ul, .testo ol { padding-left: 22px; }
.testo li + li { margin-top: 6px; }
.testo .aggiornato { margin-top: 12px; color: var(--testo-tenue); font-size: 15px; }
.testo blockquote { margin: 16px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--sfondo-tenue); }
.testo blockquote p:first-child { margin-top: 0; }

.tabella { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabella th, .tabella td { padding: 10px 8px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.tabella th { color: var(--testo-tenue); font-size: 14px; font-weight: 600; }

/* Domande */

.domande { display: grid; gap: 12px; margin-top: 40px; }
.domande details { border-radius: 16px; background: var(--sfondo-tenue); }
.domande summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: "+"; color: var(--link); font-size: 22px; font-weight: 400; line-height: 1; }
.domande details[open] summary::after { content: "\2212"; }
.domande details > div { padding: 0 20px 20px; color: var(--testo-tenue); }
.domande details > div p + p { margin-top: 10px; }

/* Grazie */

.codice-riquadro { margin-top: 32px; padding: 28px 20px; border-radius: 28px; background: var(--superficie); box-shadow: var(--ombra); text-align: center; }
.codice-riquadro h2 { color: var(--testo-tenue); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.codice {
  display: block;
  margin-top: 14px;
  font: 700 clamp(1.7rem, 8.6vw, 2.75rem)/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  user-select: all;
}
.etichetta-esempio {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--manca);
  color: var(--manca-testo);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.codice-riquadro .azioni { flex-direction: column; margin-top: 24px; }
.codice-riquadro .sotto { margin-top: 16px; color: var(--testo-tenue); font-size: 15px; }
.attesa { color: var(--testo-tenue); }
[hidden] { display: none !important; }

/* Moduli */

.modulo { margin-top: 28px; }
.modulo fieldset { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.modulo label { display: grid; gap: 6px; font-weight: 600; }
.modulo label small { color: var(--testo-tenue); font-weight: 400; }
.modulo input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--testo);
  font: inherit;
}
.modulo input:disabled { background: var(--sfondo-tenue); color: var(--spento-testo); }

/* Chiusura della home */

.finale { padding: 80px 0; background: var(--notte); color: #fff; text-align: center; }
.finale h2 { max-width: 640px; margin-inline: auto; }
.finale p { margin-top: 14px; color: #c7d2e0; font-size: 19px; }
.finale .bottone { width: 100%; margin-top: 28px; background: var(--palla); color: var(--notte); }
.finale .bottone:hover { background: #e8f86a; }

.spazio { margin-top: 32px; }

/* Piede */

.piede { padding: 40px 0 48px; background: var(--sfondo-tenue); color: var(--testo-tenue); font-size: 13px; line-height: 1.55; }
.piede .contenitore > * + * { margin-top: 14px; }
.piede strong { color: var(--testo); font-weight: 600; }
.piede nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.piede nav a { display: inline-block; padding: 3px 0; color: var(--testo); }
.piede .recesso { font-weight: 600; color: var(--link); }

/* Schermi più larghi */

@media (min-width: 640px) {
  .menu .solo-largo { display: block; }
  .funzioni { grid-template-columns: repeat(2, 1fr); }
  .funzione { display: block; padding: 26px 24px; }
  .funzione svg { width: 30px; height: 30px; }
  .funzione h3 { margin-top: 16px; }
  .funzione p { margin-top: 8px; }
  .passi { grid-template-columns: repeat(3, 1fr); }
  .passi li { padding: 56px 0 0; }
  .codice-riquadro .azioni { flex-direction: row; justify-content: center; }
  .eroe .azioni .bottone { flex: 0 0 auto; }
  .finale .bottone { width: auto; }
}

@media (min-width: 900px) {
  .sezione { padding: 112px 0; }
  .eroe { padding: 80px 0 104px; }
  .eroe-griglia { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .funzioni { grid-template-columns: repeat(4, 1fr); }
  .galleria { grid-auto-columns: 340px; padding-inline: max(16px, calc((100% - 1040px) / 2)); scroll-padding-inline: max(16px, calc((100% - 1040px) / 2)); }
  .piani { grid-auto-flow: column; }
  .pagina { padding: 72px 0 112px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
