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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .01em;
  margin: 0 0 var(--s-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 7.2vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.02; }

p { margin: 0 0 var(--s-2); max-width: 66ch; }

a { color: var(--link); text-decoration-thickness: 2px; text-decoration-color: var(--lime); text-underline-offset: .22em; }
a:hover { color: var(--ink); text-decoration-color: var(--b-orange); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); }

.skip-link {
  position: absolute; left: var(--s-2); top: -4rem; z-index: 100;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--bg);
  font: 700 1rem var(--font-display); text-transform: uppercase; letter-spacing: .05em;
}
.skip-link:focus { top: calc(var(--frame) + .5rem); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: min(100% - 2.5rem, 1280px); margin-inline: auto; }

/* Motivo a bande azzurro, arancio, verde ripreso dal logo Espaci Monviso */
.marker {
  display: block;
  width: 64px; height: 14px;
  background: var(--bande-inclinate);
}

/* Ingresso in scena: solo transform e opacity, disattivato con reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

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