body
{
  background-color: white;
  overflow-x: hidden;  /* evita scroll orizzontale */
  box-sizing: border-box;
}
.cit_link{ color: blue; font-weight: 700;}
#hero-bio {
  height: 100%;
  padding-bottom: 0px;
  background-color: white;
  overflow-x: hidden;
}

.foto-bio1 {
  display: flex;
  background-color: white;
  flex-direction: row;
  align-items: flex-start; /* Allinea l'immagine e il testo in alto */
  gap: 20px; /* Spazio tra immagine e testo */
  padding: 20px;
  padding-top: 40px;
  align-items: stretch;

}

.testo p, h2, h3, blockquote {
  margin-bottom: 1rem; /* oppure 16px o 20px */
}

.foto {
  flex: 30%;
         /* opzionale se vuoi che copra anche in larghezza */
  overflow: hidden;   /* per nascondere eventuali bordi fuori */

}

.foto img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center; /* opzionale per centrare l’immagine */
  border-radius: 8px;
}

.testo {
  flex: 70%;
  color: black;
  text-align: justify !important;
  line-height: 1.3;
  font-size: 1.3rem;
}

.testo h2{ font-weight: bold; color: brown;}

#custom-toggle
{
  z-index: 2000;
}
.navbar-spacer {
  background-color: grey;
  display: block;  /* fondamentale */
  width: 100%;     /* occupa tutta la larghezza */
  height: 0;       /* l'altezza reale verrà impostata da JS */
}

.intro-bio {
  padding: 10px 10px 10px;
  background-color: #f5f5f5;
  text-align: right;
  padding-top: 50px;
  font-size: 1.2rem;
  position: relative;
  font-weight: 600;
  line-height: 0.8;
  height: 25vh;
  background: url('images/bio/top.jpeg') no-repeat center center;
  background-size: cover;
  background-position: center 10%;

}

.intro-bio blockquote{line-height: 1.4; color: black; }

/* Contenuto sopra l'immagine */
.intro-bio > * {
  position: relative;
  z-index: 1;
}

.intro-bio h1{ font-size: 2rem; color: white; padding-right: 10%; font-weight: 1000;}

.subtitle {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

.highlight-quote_intro {
  font-size: 1.1rem;
  color: #59a824;
  margin-bottom: 10px;
}

.social-links {
  /* stile per icone o link */
}

.highlight-quote {
  max-width: 80%;
  margin: 10px auto;
  padding: 25px 30px;
  background-color: rgba(30, 30, 30, 0.85);
  color: #f0f0f0;
  border-left: 5px solid #59a824;  /* colore che richiama il verde del sito, per esempio */
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  position: relative;
}

.highlight-quote footer {
  margin-top: 10px;
  text-align: right;
  font-weight: 600;
  color: #a5d37a;
  font-style: normal;
}

.quote1
{
  height: 100%;
  background-color: white; /*linear-gradient(to bottom, rgba(238, 238, 238, 0.9), rgba(204, 204, 204, 0.9));*/
  padding: 1px;
}

#references {
  margin: 0px auto;
  padding: 20px 30px;
  background: #f9f9f9; /* sfondo chiaro */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-bottom: 50px;
}

#references h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 700;
  border-bottom: 3px solid brown;
  padding-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#references ol {
  counter-reset: item; /* reset contatore */
  padding-left: 30px;
  color: #555;
  font-size: 1rem;
  line-height: 1.1;
  border-bottom: 3px solid brown;

}

#references ol li {
  margin-bottom: 18px;
  position: relative;
  padding-left: 35px;
  transition: background-color 0.3s ease;
  border-radius: 6px;
}

#references ol li:hover {
  background-color: #e0e0ff;
}

/* Numero personalizzato */
#references ol li::before {
  position: absolute;
  left: 0;
  top: 0;
  counter-increment: item;
  content: counter(item) ".";
  font-weight: 700;
  color: brown;
  font-size: 1.2rem;
  line-height: 1.4;
  width: 25px;
  text-align: right;
  user-select: none;
}

#references a {
  text-decoration: none;
  color: brown;
  font-weight: 550;
  transition: color 0.3s ease;
}

#references a:hover,
#references a:focus {
  color: brown;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 480px) {
  #references {
    padding: 15px 20px;
  }
  #references h2 {
    font-size: 1.5rem;
  }
  #references ol {
    font-size: 1rem;
    padding-left: 25px;
  }
  #references ol li::before {
    font-size: 1rem;
    width: 20px;
  }
}

#discography {
  margin: 0 auto;
  padding: 20px 30px;
  background: white; /* sfondo chiaro */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#discography h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 700;
  border-bottom: 3px solid brown;
  padding-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#discography h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #555;
  font-weight: 600;
}

#discography ol {
  padding-left: 30px;
  list-style-type: decimal;
}

#discography ol li {
  margin-bottom: 15px;
  line-height: 1.5;
}

#discography ol li strong {
  color: brown;
  font-weight: 700;
}

#discography p a {
  color: brown;
  text-decoration: none;
  font-weight: 600;
}

#discography p a:hover,
#discography p a:focus {
  text-decoration: underline;
  color: #4038e0;
  outline: none;
}

.discoLink {
    text-decoration: none;
    color: brown;
}

.discoLink:hover {
    text-decoration: none;
    text-decoration: underline;
    color: #4038e0;
    outline: none;
}

@media (max-width: 480px) {
  #discography {
    padding: 15px 20px;
  }
  #discography h2 {
    font-size: 1.5rem;
  }
  #discography h3 {
    font-size: 1.2rem;
  }
  #discography ol {
    padding-left: 25px;
  }
}

#custom-toggle a{text-decoration: none; color:white; font-weight: bolder; font-size: 1.7rem;}

@keyframes pulseGlow {
  0%, 100% {
    color: #000; /* nero */
    text-shadow: 0 0 5px #000, 0 0 10px #000;
  }
  50% {
    color: #1a73e8; /* blu elettrico */
    text-shadow: 0 0 15px #1a73e8, 0 0 30px #1a73e8;
  }
}



.animated-link {
  color: white;
  font-weight: bolder;
  text-decoration: none;
  animation: pulseGlow 4s infinite;
  transition: color 0.3s ease;
}

.animated-link:hover,
.animated-link:focus {
  color: #e63946;
  text-shadow: 0 0 20px #ff6f61, 0 0 40px #ff6f61;
  animation-play-state: paused;
  outline: none;
}

@media(max-width: 768px)
{
  #custom-toggle a{font-size: 1.2rem;}
.foto-piccola{height: 50% !important; width: 50% !important;}


  .intro-bio {
    padding: 10px 10px 10px;
    background-color: #f5f5f5;
    padding-top: 70px;
    font-size: 0.9rem;
    position: relative;
    font-weight: 600;
    line-height: 0.8;
  }

  .navbar-spacer {
    background-color: grey;
    height: 4vh; /* altezza navbar */
  }

  .intro-bio h1
  {
    font-size: 1.5rem;
  }
  .intro-bio  p{margin-bottom: 10px;}
  .intro-bio  blockquote{ margin-top: 3px; font-size: 0.7rem;}
  .testo {
  text-align: justify !important;
  text-justify: inter-word;
  font-size: 1.1rem;
  }
  .testo p, h2, h3, ul, blockquote {
  text-align: justify;
}
  .highlight-quote{font-size: 1.1rem;}

  .referenze{ padding-bottom: 50px;}

}

@media screen and (max-width: 1200px) {
  .foto-bio1 {
    display: flex;
    flex-direction: column; /* impila verticalmente */
    align-items: center;
    gap: 20px;
  }

  .foto-bio1 .foto {
    order: 2;       /* sposta la foto dopo il testo */
    width: 80%;
    height: auto;
  }

  .foto-bio1 .testo {
    order: 1;       /* testo prima della foto */
    text-align: center;
  }
}

.foto-piccola{height: 50%; width: 30%;}
.testo h2{font-size: 1.7rem;}
