/*
 * Coming soon — valori dal Figma (frame "Coming soon", 1440×816).
 * Tavola 1440×816 al centro dello schermo; tutto posizionato come nel Figma.
 * - fondo #eeeeee + background.jpg: il frame del Figma esportato a 2x, con il blob
 *   sfocato e il titolo "Onofrio Napolitano / Creative developer" con le due linee
 *   (nel Figma il titolo sta sotto il blob in "difference": solo così è identico);
 *   dall'immagine sono tolti i puntini e il testo centrale, rimessi sopra:
 * - puntini bianchi 2×2 ogni 82px, opacità 50% (CSS);
 * - "Under construction / Coming soon" (loading.svg) al centro.
 * Testo esportato come SVG: niente font da caricare.
 */

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

html,
body {
  height: 100%;
}

body {
  overflow: hidden;
  background-color: #eeeeee;
}

img {
  display: block;
  max-width: none;
}

/* Tavola del Figma, sempre al centro dello schermo. */
.stage {
  width: 100%;
  /* Mobile: altezza dello spazio visibile, senza le barre del browser (dvh); 100vh resta
     solo per i browser che non conoscono dvh. */
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("background.jpg") center center no-repeat;
  background-size: cover;
  position: relative;
}

/* Puntini: 9 righe da y 79, colonne da x 22, ogni 82px; bianchi al 50%. */
.dots {
  position: absolute;
  top: 10vh;
  left: 10%;
  width: 80%;
  height: 85vh;
  max-width: 100%;
  max-height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='82' height='82'%3E%3Crect width='2' height='2' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 82px 82px;
  opacity: 0.5;
  @media (max-width: 1440px) {
    display: none;
  }
}

/* Testo solo per screen reader (il titolo visibile è nello sfondo). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* "Under construction / Coming soon": centrato (Figma y 406; SVG senza margine interno: +2). */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
}
