/* !!! Inizio copia in tutte le pagine*/

/* Body e stile per header da importare in tutte le pagine */
body {
  margin: 0;
  padding-top: 80px; /* spazio per header */
  padding-bottom: 50px; /* spazio per footer */
  background-color: #000;
  color: white;
  font-family: Arial, sans-serif;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* mette i 3 blocchi distanti */
  padding: 20px 20px; /* aumenta padding orizzontale per margini */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  z-index: 999;
  mix-blend-mode: difference;
}

/* Spaziatura e layout migliorato per header */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.logo a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: red;
}

.logo, .spotify-container, .nav {
  flex: 1 1 auto;
}

.logo {
  flex: 0 0 auto; /* larghezza automatica */
  margin-left: 0;
  font-size: 1rem;
  cursor: pointer;
  mix-blend-mode: difference;
}

/* Navigazione */
.nav {
  flex: 0 0 auto;
  display: flex;
  gap: 20px;
  margin-right: 0;
  justify-content: flex-end;
}

.nav a, .open-btn {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  mix-blend-mode: difference;
}

.nav a {
  margin-left: 20px;
  transition: color 0.3s;
}

.nav a:hover,
.open-btn:hover,
.logo:hover {
  color: #f50000; /* Rosso hover */
}

/* Spotify container */
.spotify-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-text {
  display: inline-block;
  border: 1px solid #1DB954;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 0.9rem;
  color: white;
  text-decoration: none;
  mix-blend-mode: difference;
  transition: background-color 0.3s ease;
}

.spotify-text:hover {
  background-color: rgba(29, 185, 84, 0.15);
}

.spotify-icon {
  display: none; /* visibile solo su mobile */
}

.spotify-icon img {
  width: 24px;
  height: 24px;
  mix-blend-mode: difference;
}

/* Footer da copiare in tutte le pagine */
footer {
  background-blend-mode: difference;
  color: white;
  width: 97%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  font-size: 0.8rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  mix-blend-mode: difference;
}

/* Overlay id */
/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95); /* nero quasi pieno */
  color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0px; /* 👈 Aggiunto per far scendere tutto */
  box-sizing: border-box;
  overflow-y: auto;
}

.overlay.open {
  transform: translateX(0);
}

.about-content {
  display: flex;
  width: 90%;
  max-width: 800px;
  gap: 20px;
  align-items: flex-start;
}

.about-photo {
  flex: 1;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-text {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: white;
}

.about-text a {
  color: white;

}

.about-text a:hover {
  color: #f50000;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: red;
}

.open-btn {
  font-size: 1rem;
  background: none;
  border: none;
  color: white;
  margin-left: 15px;
}

.open-btn:hover {
  color: #f50000; /* Rosso hover */
}

/* Media queries per header, spotify, overlay, nav - comuni a tutte le pagine */
@media screen and (max-width: 600px) {
  header {
    flex-direction: row;       /* FORZA ORIZZONTALE */
    align-items: center;       /* allinea verticalmente */
    justify-content: space-between;
    flex-wrap: nowrap;         /* NO ritorni a capo */
    padding: 15px 20px;
  }

  .nav {
    gap: 8px;
    justify-content: flex-start;
  }

  .spotify-container {
    justify-content: flex-start;
    margin: 0;
  }

  .spotify-text {
    display: none;
  }

  .spotify-icon {
    display: inline-block;
  }

  .spotify-icon img {
    padding: 10px;
    width: 18px;
    height: 18px;
    mix-blend-mode: difference;
  }

  /* Overlay su mobile */
  .overlay {
    width: 100vw; /* meglio usare tutto lo schermo su mobile */
    overflow-y: auto;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
  }

  .about-photo {
    width: 50%; /* visibile su schermi piccoli */
    max-width: 300px;
    display: block; /* 👈 evita spazi bianchi */
  }

  .about-text {
    width: 100%;
    font-size: 1rem;
    padding: 0 15px;
  }

  .about-text p {
    margin-bottom: 30px;
  }

  .overlay {
    padding-top: 200px; /* stesso valore anche qui per coerenza */
  }

  .desktop-space {
    height: 20px; /* o quello che preferisci su mobile */
  }

  /* Abbrevia "practice" in "pr" e "research" in "rs" solo su mobile */
  .nav .practice::before {
    content: "pr";
  }

  .nav .research::before {
    content: "rs";
  }

  .nav .practice,
  .nav .research {
    font-size: 0;
    position: relative;
  }

  .nav .practice::before,
  .nav .research::before {
    font-size: 1rem;
    color: white;
  }
}

/* Fine copia in tutte le pagine */



.intro-text {
  max-width: 1000px;
  margin: 11px 5px 10px 22px;
  padding: 0 0px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  color: white;
  text-align: left;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  margin: 0 auto;
}

.column {
  flex: 24%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

.column video {
  margin-top: 8px;
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive layout per contenuti */
@media screen and (max-width: 600px) {
  .column {
    flex: 47.5%;
    max-width: 100%;
    justify-content: center;
  }

  .about-text p {
    margin-bottom: 30px; /* già specificato nel gruppo overlay */
  }
}

@media screen and (min-width: 601px) {
  .row {
    padding: 0 20px; /* Maggiore spazio laterale su schermi più ampi */
  }
}
