/* Used Car Checklist landing. "La costa dei tre segni": a bottle-green spine down the left edge
   of every page carries the three rating signs of the app; the content stands on cream beside it. */

@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/gabarito-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --crema: #faf6ec;
  --bianco: #ffffff;
  --bosco: #12372b;
  --bosco-soft: #4d665c;
  --lavanda: #b9aeef;
  --lavanda-soft: #e9e4fb;
  --lavanda-deep: #4a3aa8;
  --ok: #1e8a52;
  --ok-chiaro: #5fd08f;
  --ok-soft: #d8f0e1;
  --nota: #f2a33a;
  --nota-soft: #fce9cc;
  --nota-deep: #8a4500;
  --linea: #e2dccb;
  --linea-soft: #efeadc;

  --titoli: "Gabarito", "Trebuchet MS", "Segoe UI", sans-serif;
  --testo: "Hanken Grotesk", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --costa: 112px;
  --bordo: clamp(28px, 4.6vw, 68px);
  --aria: clamp(56px, 7.5vw, 112px);
}

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

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

body {
  margin: 0;
  background: var(--crema);
  color: var(--bosco);
  font-family: var(--testo);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--titoli);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6.1vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 3.9vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.12;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--linea-soft);
  padding: 0.08em 0.35em;
  border-radius: 6px;
}

:focus-visible {
  outline: 3px solid var(--lavanda-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.nowrap {
  white-space: nowrap;
}

.salta {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--lavanda);
  color: var(--bosco);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
}

.salta:focus {
  top: 12px;
}

/* ---------- The spine ---------- */

.fascia {
  display: grid;
  grid-template-columns: var(--costa) minmax(0, 1fr);
  background: var(--crema);
}

.fascia--bianca {
  background: var(--bianco);
}

.fascia--lavanda {
  background: var(--lavanda-soft);
}

.costa {
  background: var(--bosco);
}

.costa__segni {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: var(--aria) 0 40px;
}

.costa__numero {
  margin-top: 14px;
  font-family: var(--titoli);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--crema);
}

.segno {
  display: block;
  flex: none;
  width: 28px;
  height: 28px;
}

.segno--cerchio {
  fill: var(--ok);
}

.segno--triangolo {
  fill: var(--nota);
  stroke: var(--nota);
}

.segno--rombo {
  fill: var(--lavanda);
  stroke: var(--lavanda);
}

.segno--trattino,
.segno--vuoto {
  stroke: var(--bosco-soft);
}

.costa .segno--cerchio {
  fill: var(--ok-chiaro);
}

.costa .segno--grande {
  width: 60px;
  height: 60px;
}

.costa .segno--piccolo {
  width: 26px;
  height: 26px;
}

.largo {
  max-width: 1280px;
  padding: var(--aria) var(--bordo);
}

/* ---------- Header ---------- */

.testata {
  border-bottom: 1px solid var(--linea);
}

.costa--testata {
  display: grid;
  place-items: center;
}

.costa--testata img {
  display: block;
  width: 52px;
  height: 52px;
}

.testata__riga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.marca {
  font-family: var(--titoli);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 0;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  white-space: nowrap;
}

.menu a {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 3px solid transparent;
}

.menu a:hover {
  border-bottom-color: var(--lavanda);
}

.menu a[aria-current="page"] {
  border-bottom-color: var(--bosco);
}

/* ---------- Shared pieces ---------- */

.sigla {
  font-family: var(--titoli);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavanda-deep);
  margin-bottom: 18px;
}

.capo {
  max-width: 820px;
  margin-bottom: clamp(32px, 4.5vw, 60px);
}

.capo__intro {
  margin-top: 20px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--bosco);
  max-width: 62ch;
}

.azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.bottone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 28px;
  border: 2px solid var(--bosco);
  border-radius: 999px;
  background: var(--bosco);
  color: var(--crema);
  font-family: var(--titoli);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

a.bottone:hover {
  background: var(--lavanda);
  color: var(--bosco);
}

.bottone--presto {
  background: transparent;
  color: var(--bosco);
  border-style: dashed;
  cursor: default;
}

.rimando {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--lavanda);
  padding: 10px 0;
  display: inline-block;
}

.rimando:hover {
  text-decoration-color: var(--bosco);
}

.avviso {
  margin-top: 28px;
  max-width: 54ch;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--lavanda-soft);
  font-weight: 600;
}

.schermata {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--bosco);
  border-radius: 26px;
  background: var(--crema);
}

/* ---------- Home: opening ---------- */

.apertura__griglia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-bottom: 0;
}

.apertura__testo {
  padding-bottom: var(--aria);
}

.apertura__intro {
  margin-top: 28px;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  max-width: 56ch;
}

.apertura__presto {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--bosco-soft);
}

.apertura__gratis {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--bosco-soft);
}

/* The capture runs off the bottom edge of the section, as on the store posters. */
.apertura__figura {
  align-self: end;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}

.apertura__figura .schermata {
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
}

.apertura__figura figcaption {
  font-size: 0.9rem;
  color: var(--bosco-soft);
}

/* ---------- Home: ratings and the summary rule ---------- */

.regola {
  border-bottom: 2px solid var(--bosco);
}

.regola__capo,
.regola__riga {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1.4fr);
  gap: 16px 32px;
  align-items: center;
}

.regola__capo {
  padding-bottom: 12px;
  font-family: var(--titoli);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bosco-soft);
}

.regola__riga {
  border-top: 2px solid var(--bosco);
  padding: 22px 0;
}

.regola__nome {
  display: flex;
  align-items: center;
  gap: 18px;
}

.regola__nome .segno {
  width: 46px;
  height: 46px;
}

.regola__nome strong {
  font-family: var(--titoli);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.regola__aiuto {
  color: var(--bosco);
}

.regola__gruppo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--linea-soft);
  line-height: 1.35;
}

.regola__gruppo strong {
  font-family: var(--titoli);
  font-weight: 700;
  font-size: 1.12rem;
}

.regola__riga--cerchio .regola__gruppo {
  background: var(--ok-soft);
}

.regola__riga--triangolo .regola__gruppo {
  background: var(--nota-soft);
}

.regola__riga--rombo .regola__gruppo {
  background: var(--lavanda-soft);
}

/* An arrow drawn with borders: the rating goes into this group. */
.regola__freccia {
  flex: none;
  position: relative;
  width: 26px;
  height: 2px;
  background: var(--bosco);
}

.regola__freccia::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--bosco);
  border-right: 2px solid var(--bosco);
  transform: rotate(45deg);
}

.note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  margin-top: 36px;
}

.note p {
  max-width: 58ch;
}

.note strong {
  font-family: var(--titoli);
  font-weight: 700;
}

/* ---------- Home: before, on the spot, after ---------- */

.tempo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
  border-top: 2px solid var(--bosco);
  padding: 28px 0 clamp(48px, 6vw, 84px);
}

.tempo--largo {
  grid-template-columns: minmax(0, 1fr);
}

.tempo__ordine {
  font-family: var(--titoli);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--lavanda-deep);
  margin-bottom: 18px;
}

.tempo__capo h3 {
  max-width: 24ch;
}

.tempo__capo > p:not(.tempo__ordine) {
  margin-top: 14px;
  max-width: 52ch;
}

.tempo--largo .tempo__capo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 clamp(32px, 5vw, 72px);
  align-items: end;
}

.tempo--largo .tempo__ordine {
  grid-column: 1 / -1;
}

.tempo--largo .tempo__capo > p:not(.tempo__ordine) {
  margin-top: 0;
}

.sezioni {
  margin-top: 22px;
  max-width: 420px;
  border-top: 1px solid var(--bosco);
}

.sezioni li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--linea);
  font-weight: 600;
}

.sezioni__n {
  font-weight: 400;
  color: var(--bosco-soft);
  white-space: nowrap;
}

.tempo__strisce {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.tempo--largo .tempo__strisce {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vista figcaption {
  margin-top: 14px;
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--bosco-soft);
}

.vista figcaption strong {
  display: block;
  font-family: var(--titoli);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--bosco);
  margin-bottom: 4px;
}

.vista--testo {
  padding: 24px;
  border-radius: 26px;
  background: var(--lavanda-soft);
}

.vista--testo h4:not(:first-child) {
  margin-top: 20px;
}

.vista--testo p {
  margin-top: 6px;
  font-size: 0.97rem;
  line-height: 1.45;
}

.campione {
  border-top: 1px solid var(--linea);
  padding-top: 16px;
  font-size: 0.92rem;
  color: var(--bosco-soft);
  max-width: 80ch;
}

/* ---------- Home: the example in figures ---------- */

.conti {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.conto {
  padding: clamp(22px, 3vw, 36px);
  border: 2px solid var(--bosco);
  border-radius: 26px;
  background: var(--crema);
}

.conto--scuro {
  background: var(--bosco);
  color: var(--crema);
}

.conto__titolo {
  font-family: var(--titoli);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavanda-deep);
  margin-bottom: 14px;
}

.conto--scuro .conto__titolo {
  color: var(--lavanda);
}

.conto__cifra {
  font-family: var(--titoli);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.barra {
  height: 12px;
  margin: 18px 0 22px;
  border-radius: 999px;
  background: var(--linea);
  overflow: hidden;
}

.barra span {
  display: block;
  width: 87%;
  height: 100%;
  border-radius: 999px;
  background: var(--lavanda);
}

.conto__segni {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.conto__segni li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.conto__segni .segno {
  width: 22px;
  height: 22px;
}

.conto__segni strong {
  font-family: var(--titoli);
  font-weight: 800;
  font-size: 1.3rem;
}

.conto__nota {
  margin-top: 22px;
  font-size: 0.97rem;
  color: var(--bosco-soft);
}

.conto--scuro .conto__nota {
  color: var(--lavanda-soft);
}

.somma > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 9px 0;
}

.somma dd {
  font-family: var(--titoli);
  font-weight: 700;
  white-space: nowrap;
}

.somma .somma__totale {
  margin-top: 6px;
  border-top: 1px solid rgba(250, 246, 236, 0.4);
  padding-top: 14px;
}

.somma .somma__finale {
  margin-top: 6px;
  border-top: 2px solid var(--crema);
  padding-top: 16px;
  align-items: center;
}

.somma__finale dt {
  font-family: var(--titoli);
  font-weight: 700;
}

.somma__finale dd {
  font-weight: 800;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

/* ---------- Home: limits ---------- */

.limiti,
.guida,
.aiuto,
.contatto,
.versione {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
}

.limiti .capo,
.guida .capo,
.aiuto .capo,
.contatto .capo,
.versione .capo {
  margin-bottom: 0;
}

.limiti__lista li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid rgba(18, 55, 43, 0.28);
}

.limiti__lista li:first-child {
  border-top: 2px solid var(--bosco);
}

.limiti__lista li:last-child {
  border-bottom: 2px solid var(--bosco);
}

.limiti__lista .segno {
  margin-top: 2px;
}

.limiti__lista .segno--trattino {
  stroke: var(--bosco);
}

.limiti__si p {
  font-weight: 600;
}

/* ---------- Home: data ---------- */

.fatti {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 3.4vw, 48px);
  margin-bottom: 28px;
}

.fatti > div {
  border-top: 2px solid var(--bosco);
  padding-top: 16px;
}

.fatti dt {
  font-family: var(--titoli);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.fatti dd {
  color: var(--bosco-soft);
}

/* ---------- Home: facts from the guide ---------- */

.fonti {
  counter-reset: fonte;
  border-bottom: 2px solid var(--bosco);
}

.fonti li {
  counter-increment: fonte;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 18px 0;
  border-top: 2px solid var(--bosco);
}

.fonti li::before {
  content: counter(fonte);
  grid-row: 1 / span 2;
  font-family: var(--titoli);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--lavanda-deep);
}

.fonti__fonte {
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--bosco-soft);
}

.fonti__nota {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--bosco-soft);
}

/* ---------- Home: closing ---------- */

.chiusura {
  background: var(--bosco);
  color: var(--crema);
}

.chiusura__griglia {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: center;
}

.chiusura h2 {
  max-width: 18ch;
}

.chiusura__griglia > div:first-child p {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--lavanda-soft);
}

.chiusura__azioni p {
  margin-top: 14px;
  font-size: 0.97rem;
  color: var(--lavanda-soft);
}

.chiusura .bottone {
  background: var(--lavanda);
  border-color: var(--lavanda);
  color: var(--bosco);
}

.chiusura a.bottone:hover {
  background: var(--crema);
  border-color: var(--crema);
}

.chiusura .bottone--presto {
  background: transparent;
  color: var(--crema);
}

.chiusura :focus-visible,
.piede :focus-visible {
  outline-color: var(--lavanda);
}

/* ---------- Footer ---------- */

.piede {
  background: var(--bosco);
  color: var(--crema);
  padding: 0 var(--bordo) 36px calc(var(--costa) + var(--bordo));
}

.piede__dentro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 36px clamp(28px, 4vw, 64px);
  max-width: calc(1280px - 2 * var(--bordo));
  padding: 48px 0 36px;
  border-top: 1px solid rgba(250, 246, 236, 0.3);
}

.piede__nome {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--titoli);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 14px;
  margin-left: -6px;
}

.piede__marca p:not(.piede__nome) {
  max-width: 46ch;
  color: var(--lavanda-soft);
}

.piede__marca .piede__nota {
  margin-top: 10px;
}

.piede__col h2 {
  font-family: var(--titoli);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavanda);
  margin-bottom: 10px;
}

.piede__col a {
  display: inline-block;
  padding: 7px 0;
  text-decoration: none;
  font-weight: 600;
}

.piede__col a:hover {
  text-decoration: underline;
  text-decoration-color: var(--lavanda);
  text-underline-offset: 5px;
}

.piede__col p {
  color: var(--lavanda-soft);
}

.piede__col .piede__posta {
  color: var(--crema);
  text-decoration: underline;
  text-decoration-color: var(--lavanda);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.piede__fondo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  max-width: calc(1280px - 2 * var(--bordo));
  padding-top: 20px;
  border-top: 1px solid rgba(250, 246, 236, 0.3);
  font-size: 0.88rem;
  color: var(--lavanda-soft);
}

.piede__fondo p:last-child {
  max-width: 74ch;
}

/* ---------- Inner pages ---------- */

.pagina-capo .largo {
  padding-bottom: clamp(40px, 5vw, 72px);
}

.pagina-capo h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  max-width: 18ch;
}

.pagina-capo--avviso .largo {
  min-height: 60vh;
}

.pagina-capo--avviso .costa__numero {
  font-size: 1.25rem;
}

/* Privacy */

.documento {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
}

.documento__indice {
  position: sticky;
  top: 24px;
}

.documento__indice ol {
  counter-reset: voce;
  border-top: 2px solid var(--bosco);
}

.documento__indice li {
  counter-increment: voce;
  border-bottom: 1px solid var(--linea);
}

.documento__indice a {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.3;
}

.documento__indice a::before {
  content: counter(voce, decimal-leading-zero);
  font-family: var(--titoli);
  font-weight: 700;
  color: var(--lavanda-deep);
}

.documento__indice a:hover {
  text-decoration: underline;
  text-decoration-color: var(--lavanda);
  text-underline-offset: 4px;
}

.prosa {
  max-width: 760px;
}

.prosa > section + section {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 2px solid var(--bosco);
}

.prosa h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.prosa__n {
  flex: none;
  color: var(--lavanda-deep);
}

.prosa p + p,
.prosa p + ul,
.prosa ul + p,
.prosa .tabella + p,
.prosa p + .tabella {
  margin-top: 14px;
}

.prosa ul {
  padding-left: 0;
}

.prosa ul li {
  position: relative;
  padding-left: 26px;
}

.prosa ul li + li {
  margin-top: 8px;
}

.prosa ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
}

.prosa a {
  font-weight: 700;
  text-decoration-color: var(--lavanda);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.tabella table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.4;
}

.tabella th,
.tabella td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--linea);
}

.tabella thead th {
  font-family: var(--titoli);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bosco-soft);
  border-bottom: 2px solid var(--bosco);
}

.tabella tbody th {
  font-weight: 700;
  width: 38%;
}

/* Support */

.passi {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px clamp(20px, 2.6vw, 36px);
}

.passi li {
  border-top: 2px solid var(--bosco);
  padding-top: 16px;
}

.passi__n {
  display: block;
  font-family: var(--titoli);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--lavanda-deep);
  margin-bottom: 12px;
}

.passi h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.passi p {
  font-size: 0.97rem;
  color: var(--bosco-soft);
}

.risposte {
  border-bottom: 2px solid var(--bosco);
}

.risposte details {
  border-top: 2px solid var(--bosco);
}

.risposte summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--titoli);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
}

.risposte summary::-webkit-details-marker {
  display: none;
}

/* The marker is the rhombus of "non chiaro"; an open answer turns it into the green circle. */
.risposte summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 4px;
  background: var(--lavanda);
  transform: rotate(45deg);
  transition: border-radius 0.15s ease, background-color 0.15s ease;
}

.risposte details[open] summary::after {
  border-radius: 50%;
  background: var(--ok);
}

.risposte details p {
  max-width: 66ch;
  padding-bottom: 14px;
}

.risposte details p:last-child {
  padding-bottom: 24px;
}

.contatto__scheda {
  padding: clamp(22px, 3vw, 36px);
  border: 2px solid var(--bosco);
  border-radius: 26px;
  background: var(--crema);
}

.contatto__scheda p + p {
  margin-top: 14px;
}

.contatto__etichetta {
  font-family: var(--titoli);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavanda-deep);
}

.contatto__etichetta + p {
  margin-top: 4px;
}

.contatto__posta {
  font-family: var(--titoli);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  text-decoration-color: var(--lavanda);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

/* Changelog */

.versione__lista li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--linea);
}

.versione__lista li:first-child {
  border-top: 2px solid var(--bosco);
}

.versione__lista li:last-child {
  border-bottom: 2px solid var(--bosco);
}

.versione__lista .segno {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1080px) {
  :root {
    --costa: 84px;
  }

  .costa .segno--grande {
    width: 46px;
    height: 46px;
  }

  .costa .segno--piccolo {
    width: 20px;
    height: 20px;
  }

  .costa--testata img {
    width: 44px;
    height: 44px;
  }

  .tempo--largo .tempo__strisce {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fatti {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .passi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .documento {
    grid-template-columns: minmax(0, 1fr);
  }

  .documento__indice {
    position: static;
    max-width: 520px;
  }
}

@media (max-width: 860px) {
  .apertura__griglia {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .apertura__testo {
    padding-bottom: 0;
  }

  .apertura__figura {
    max-width: 320px;
  }

  .regola__capo {
    display: none;
  }

  .regola__riga {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0;
  }

  .note,
  .conti,
  .limiti,
  .guida,
  .aiuto,
  .contatto,
  .versione,
  .chiusura__griglia,
  .tempo,
  .tempo--largo .tempo__capo {
    grid-template-columns: minmax(0, 1fr);
  }

  .tempo--largo .tempo__capo > p:not(.tempo__ordine) {
    margin-top: 14px;
  }

  .piede__dentro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .piede__marca {
    grid-column: 1 / -1;
  }
}

/* Phones: a thin spine, and the captures side by side in a strip that scrolls sideways
   instead of a long stack of full screens. */
@media (max-width: 640px) {
  :root {
    --costa: 40px;
    --bordo: 16px;
    --aria: 48px;
  }

  body {
    font-size: 1rem;
  }

  .costa__segni {
    gap: 9px;
    padding-bottom: 24px;
  }

  .costa .segno--grande {
    width: 24px;
    height: 24px;
  }

  .costa .segno--piccolo {
    width: 12px;
    height: 12px;
  }

  .costa__numero {
    margin-top: 6px;
    font-size: 0.95rem;
  }

  .pagina-capo--avviso .costa__numero {
    font-size: 0.8rem;
  }

  .costa--testata img {
    width: 32px;
    height: 32px;
  }

  .testata__riga {
    gap: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .marca {
    font-size: 1.05rem;
  }

  .menu {
    gap: 16px;
  }

  .menu a {
    font-size: 0.95rem;
  }

  .menu__largo {
    display: none;
  }

  .bottone {
    padding: 12px 22px;
    font-size: 1rem;
  }

  .apertura__figura {
    max-width: 250px;
  }

  .regola__nome .segno {
    width: 34px;
    height: 34px;
  }

  .regola__nome {
    gap: 14px;
  }

  .tempo__strisce,
  .tempo--largo .tempo__strisce {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin-right: calc(-1 * var(--bordo));
    padding: 4px var(--bordo) 14px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--bosco) var(--linea);
  }

  .vista {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }

  .vista--testo {
    flex-basis: 250px;
    padding: 18px;
    border-radius: 22px;
  }

  .schermata {
    border-width: 3px;
    border-radius: 20px;
  }

  .apertura__figura .schermata {
    border-radius: 22px 22px 0 0;
  }

  .conto__segni {
    grid-template-columns: minmax(0, 1fr);
  }

  .somma > div {
    gap: 12px;
  }

  .somma .somma__finale {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .fatti,
  .passi {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .risposte summary {
    font-size: 1.08rem;
  }

  .piede__dentro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  /* Tables become one block per row, each cell under its own label. */
  .tabella thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .tabella table,
  .tabella tbody,
  .tabella tr,
  .tabella th,
  .tabella td {
    display: block;
    width: auto;
  }

  .tabella tbody th {
    width: auto;
    border-bottom: 0;
    padding: 14px 0 4px;
  }

  .tabella td {
    border-bottom: 0;
    padding: 2px 0;
  }

  .tabella tr {
    border-bottom: 1px solid var(--linea);
    padding-bottom: 12px;
  }

  .tabella td::before {
    display: block;
    font-family: var(--titoli);
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bosco-soft);
    margin-top: 6px;
  }

  .tabella--dati td:nth-of-type(1)::before {
    content: "Dove è conservato";
  }

  .tabella--dati td:nth-of-type(2)::before {
    content: "Esce dal telefono?";
  }

  .tabella--permessi td:nth-of-type(1)::before {
    content: "Quando viene chiesto";
  }

  .tabella--permessi td:nth-of-type(2)::before {
    content: "A che cosa serve";
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .costa,
  .menu,
  .salta {
    display: none;
  }

  .fascia {
    display: block;
  }
}
