/* ===== Modern Reset CSS ===== */

/* 1. Box sizing globale */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. HTML e Body */
html {
  -webkit-text-size-adjust: 100%; /* Evita zoom automatico su mobile */
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
  color: #222;
}

/* 3. Immagini e media */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 4. Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

p {
  margin-block-start: 0;
  margin-block-end: 1em;
}

/* 5. Liste */
ul, ol {
  list-style: none;
}

/* 6. Link */
a {
  text-decoration: none;
  color: inherit;
}

/* 7. Form controls */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 8. Tabelle */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
