@font-face {
  font-family: "Gruppo";
  src: url("../fonts/gruppo.woff2") format("woff2");
  font-display: swap;
}

:root {
  --nero: #000;
  --luce: #ededed;
  --margine: clamp(1.25rem, 3.2vw, 2.75rem);
  --transizione: 0.78s;
  color-scheme: dark;
}

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

html {
  background: var(--nero);
  height: 100%;
}

html.static body {
  background: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)), #000 url("../img/ruota.jpg") 66% 55% / cover no-repeat;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--nero);
  color: var(--luce);
  font-family: "Gruppo", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body.home { cursor: pointer; }

::selection { background: #fff; color: #000; }

#proiezione {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* velo di passaggio fra le pagine */
.velo {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #000;
  pointer-events: none;
  transition: opacity var(--transizione) cubic-bezier(0.4, 0, 0.2, 1);
}

/* contatti */
.contatti {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: var(--margine);
  text-align: center;
}

.contatti a {
  display: block;
  padding: 0.85rem 1rem;
  min-height: 44px;
  color: var(--luce);
  font-size: clamp(1.25rem, 1rem + 2.4vw, 2.6rem);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-shadow: 0 0 18px #000, 0 0 6px #000;
  transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.contatti a:hover,
.contatti a:focus-visible {
  color: #fff;
  letter-spacing: 0.22em;
}

.contatti a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .contatti a { transition: none; }
  .velo { transition: none; }
}

/* testo solo per chi usa uno screen reader; sulla tastiera il link di ritorno si mostra */
.solo-lettori {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.solo-lettori:focus-visible {
  position: fixed;
  left: var(--margine);
  bottom: var(--margine);
  z-index: 11;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 0.9rem;
  overflow: visible;
  clip-path: none;
  background: #000;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  outline: 1px solid #fff;
  outline-offset: 4px;
}
