/* =========================================================
   base.css — reset, tipografia, elementi nativi
   ========================================================= */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--c-fondo);
  color: var(--c-inchiostro);
  font-family: var(--f-testo);
  font-size: var(--t-base);
  line-height: var(--lh-normale);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: var(--lh-stretta);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); font-family: var(--f-testo); font-weight: 600; letter-spacing: 0; }

p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--c-accento);
  outline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--c-linea);
}

/* Dato da catalogo: anno, tecnica, dimensioni */
.dato {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-grafite);
  font-variant-numeric: tabular-nums;
}

.solo-lettori-schermo {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] { display: none !important; }

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