/* base.css — reset minimo + elementi HTML di base */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
}

h1 {
  font-size: var(--fs-h1);
  margin: 0 0 10px;
}

h2 {
  font-size: var(--fs-h2);
  margin: 0 0 20px;
  color: var(--color-gold);
}

h3 {
  font-size: var(--fs-h3);
  margin: 0 0 10px;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Skip link per accessibilità */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

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

/* Responsive tipografia */
@media (max-width: 768px) {
  body {
    font-size: var(--fs-body-mobile);
  }
  h1 {
    font-size: var(--fs-h1-mobile);
  }
  h2 {
    font-size: var(--fs-h2-mobile);
  }
}

/* Utility minime (prefisso u-). Usare con parsimonia. */
.u-text-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mt-30 { margin-top: 30px; }
.u-mb-0 { margin-bottom: 0; }
