.homepage {
  background-color: #ffffff;
  display: grid;
  justify-items: center;
  align-items: start;
  width: 100vw;
}

.homepage .stage {
  background-color: var(--neros);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
}
.homepage .stage{
  position: relative;
}

#dotfield{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* ✅ non interferisce con link */
}

/* porta i contenuti sopra il canvas */
.homepage .head_bar,
.homepage .menu,
.homepage .telefono,
.homepage .copyright,
.homepage .email{
  position: relative;
  z-index: 1;
}


.homepage .email {
  position: absolute;
  bottom: 2vh;
  right: 2vw; 
  font-family: var(--testi-font-family), Helvetica;
  font-weight: 400;
  opacity: 0.75;
  color: var(--blancos);
  font-size: 18px;
  letter-spacing: 0;
}

.homepage .copyright{
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--testi-font-family), Helvetica;
  font-weight: 400;
  opacity: 0.2;
  color: var(--blancos);
  font-size: 18px;
  letter-spacing: 0;
}

.homepage .telefono {
  position: absolute;
  bottom: 2vh;
  left: 2vw; 
  font-family: var(--testi-font-family), Helvetica;
  font-weight: 400;
  opacity: 0.75;
  color: var(--blancos);
  font-size: 18px;
  letter-spacing: 0;
}

.homepage .head_bar {
  position: relative;
  width: calc(100vw - 4vw);
  margin-left: 2vw;
  margin-top: 2vh;
  height: auto;

  display: grid;
  grid-template-columns: 1fr auto; /* sinistra + destra */
  grid-template-rows: auto auto;   /* riga 1: header, riga 2: projects/menu */
  grid-template-areas:
    "name about"
    "projects projects";
  row-gap: 1.2vh;
}

.homepage .giuseppe-salerno {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--Super_text-font-family);
  font-weight: var(--Super_text-font-weight);
  color: var(--blancos);
  font-size: var(--Super_text-font-size);
  letter-spacing: var(--Super_text-letter-spacing);
  line-height: var(--Super_text-line-height);
  font-style: var(--Super_text-font-style);
}

.homepage .about {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--Super_text-font-family);
  font-weight: var(--Super_text-font-weight);
  color: var(--blancos);
  font-size: var(--Super_text-font-size);
  letter-spacing: var(--Super_text-letter-spacing);
  line-height: var(--Super_text-line-height);
  font-style: var(--Super_text-font-style);
  cursor: none;
  transition: opacity 0.2s ease-in-out;
}

.homepage .WORKS {
  position: absolute;
  top: 0;
  left: 25vw;
  font-family: var(--Super_text-font-family);
  font-weight: var(--Super_text-font-weight);
  color: var(--blancos);
  font-size: var(--Super_text-font-size);
  letter-spacing: var(--Super_text-letter-spacing);
  line-height: var(--Super_text-line-height);
  font-style: var(--Super_text-font-style);
  opacity: 0.5;
}

.homepage .ORB,
.homepage .B_B,
.homepage .collectuscia,
.homepage .echoes_of_care,
.homepage .vuotoCO{
  position: absolute;
  top: 60vh;
  left: 25vw;
  font-family: var(--titoli_menu-font-family);
  font-weight: var(--titoli_menu-font-weight);
  color: var(--blancos);
  font-size: var(--titoli_menu-font-size);
  letter-spacing: var(--titoli_menu-letter-spacing);
  line-height: var(--titoli_menu-line-height);
  font-style: var(--titoli_menu-font-style);

  cursor: none;
  transition: opacity 0.2s ease-in-out;
}

/* “accapo” fluido: 1.25em = 1.25 volte il font-size corrente */
.homepage .ORB{ top: calc(4vh + 0em); }
.homepage .B_B{ top: calc(4vh + 1.25em); }
.homepage .collectuscia{ top: calc(4vh + 2.5em); }
.homepage .echoes_of_care{ top: calc(4vh + 3.75em); }
.homepage .vuotoCO{ top: calc(4vh + 5em); }

.homepage .menu a:hover,
.homepage .menu a,
.homepage .echoes_of_care,
.homepage .vuotoCO{
  transition: all .2s ease-in-out;
}

.homepage .menu a:hover,
.homepage .echoes_of_care:hover{
  opacity: 0.75;
  text-shadow: 0 0 9px #6c6c6c;
  cursor: none;
  transform: scale(1.05);
  text-decoration: underline;
}

.homepage .about:hover{
  opacity: 0.75;
 
  text-decoration: underline;
}


@media (max-width: 700px){

  .homepage .head_bar{
    width: calc(100vw - 4vw);
    left: 2vw;
    top: 2vh;
    height: auto;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    /* 🔑 spazio base X */
    --space: 0.6rem;
  }

  /* reset positioning */
  .homepage .giuseppe-salerno,
  .homepage .about,
  .homepage .WORKS{
    position: static;
    top: auto;
    left: auto;
    right: auto;
  }

  /* GIUSEPPE → ABOUT : X */
  .homepage .giuseppe-salerno{
    margin-bottom: var(--space);
  }

  /* ABOUT → PRODUCT : 3X */
  .homepage .about{
    margin-bottom: calc(var(--space) * 3);
  }

  /* PRODUCT → MENU : X */
  .homepage .WORKS{
    margin-bottom: var(--space);
  }

  /* MENU */
  .homepage .menu{
    position: static;
    width: 100%;
    height: auto;
  }

  .homepage .ORB,
  .homepage .B_B,
  .homepage .collectuscia,
  .homepage .echoes_of_care,
   .homepage .vuotoCO{
    position: static;
    display: block;
    margin-top: 0.35em;
  }

  .homepage .ORB{ margin-top: 0; }
}

@media (max-width: 700px){

  /* riusiamo lo stesso spazio X già definito */
  .homepage{
    --space: 0.6rem;
  }

  /* telefono sopra */
  .homepage .telefono{
    left: 2vw;
    right: auto;
    bottom: calc(6vh + var(--space) + 1em);
    font-size: 12px;
  }

    /* email sotto */
  .homepage .copyright{
    left: 50%;
    right: auto;
    bottom: 2vh;
    font-size: 12px;
    transform: translateX(-50%);
  }

  /* email sotto */
  .homepage .email{
    left: 2vw;
    right: auto;
    bottom: 6vh;
    font-size: 12px;
  }
}

