/* ===== base: reset, testo, pulsanti, campi ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--testata-h) + 12px); color-scheme: light; -webkit-tap-highlight-color: rgb(200 16 46 / .15); }
/* niente attesa del doppio tocco sul telefono */
a, button, summary, label, select, input, textarea { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--c-piastrella);
  color: var(--c-inchiostro);
  font-family: var(--f-testo);
  font-size: var(--t-m);
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
address { font-style: normal; }

/* titoli: Archivo stretto e pesante, come i cartelli del banco */
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.02;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); line-height: .96; }
h2 { font-size: var(--t-2xl); margin-bottom: var(--s-5); }
h3 { font-size: var(--t-l); font-stretch: 82%; font-weight: 750; line-height: 1.12; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* dati che mancano: si vedono, così non finiscono online per sbaglio */
.todo { background: #ffe066; color: #1d2326; padding: 0 .3em; border-radius: 3px; font-weight: 600; }

.salta {
  position: absolute; left: var(--s-4); top: -60px; z-index: 30;
  background: var(--c-bianco); color: var(--c-inchiostro); padding: var(--s-2) var(--s-4); border-radius: var(--r);
}
.salta:focus { top: var(--s-3); }

:focus-visible { outline: 2px solid var(--c-rosso); outline-offset: 3px; }
.hero :focus-visible, .spedizioni :focus-visible, .testata :focus-visible, .tinta-rossa :focus-visible, .tinta-scura :focus-visible { outline-color: var(--c-oro); }

/* ===== pulsanti: un solo raggio, il rosso solo per le azioni ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.15em;
  border: 1.5px solid transparent; border-radius: var(--r);
  font-weight: 650; font-size: var(--t-s); letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .12s var(--curva);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-rosso { background: var(--c-rosso); color: #fff; }
.btn-rosso:hover { background: var(--c-rosso-scuro); }
.btn-chiaro { border-color: rgb(241 242 240 / .55); color: var(--c-piastrella); background: transparent; }
.btn-chiaro:hover { border-color: var(--c-piastrella); background: rgb(241 242 240 / .08); }
.btn-linea { border-color: var(--c-inchiostro); color: var(--c-inchiostro); background: transparent; }
.btn-linea:hover { background: var(--c-inchiostro); color: var(--c-bianco); }
.btn-piccolo { min-height: 40px; padding: .45em .95em; }
.azioni { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-freccia { font-weight: 650; color: inherit; text-underline-offset: .2em; }

/* ===== campi ===== */
.campo { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.campo label, .campo legend { font-weight: 650; font-size: var(--t-s); }
.campo input:not([type="radio"]), .campo select, .campo textarea {
  width: 100%; min-height: 46px; padding: .6em .8em;
  border: 1.5px solid #8a9397; border-radius: var(--r);
  background: var(--c-bianco); color: var(--c-inchiostro);
}
.campo textarea { resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: #6b7479; }
.campo input:not([type="radio"]):focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { border-color: var(--c-inchiostro); outline-offset: 1px; }
.campo [aria-invalid] { border-color: var(--c-rosso); }
.aiuto { font-size: var(--t-xs); color: var(--c-grigio); margin: 0; }
.facoltativo { font-weight: 400; color: var(--c-grigio); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
