/* ========================================
   BIO.HTML - Stili specifici
   ======================================== */

/* Variabili colore specifiche per bio */
:root {
  --primary: #5d859d;
  --primary-dark: #151768;
}

/* Navbar sempre bianca */
.navbar {
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HERO BIO
   ======================================== */
.hero-bio {
  padding-top: 150px;
  padding-bottom: 3rem;
  background: url('../assets/images/banner/etnie1.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  color: #f9fafb;
  text-align: center;
}

.hero-bio h1 {
  font-family: "Dancing Script", cursive;
  /* font-size: clamp(4rem, 8vw, 5rem); */
  font-size: clamp(3rem, 6vw, 5rem);
  font-style: normal;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-bio p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Schermi piccoli */
@media (max-width: 480px) {
  .hero-bio {
    background-size: cover;
    background-position: 100% -20000%;
  }
}

/* Schermi medio-piccoli */
@media (min-width: 480px) and (max-width: 768px) {
  .hero-bio {
    background-size: cover;
    background-position: right top;
  }
}

/* Schermi medio-grandi */
@media (min-width: 769px) and (max-width: 1200px) {
  .hero-bio {
    background-size: cover;
    background-position: right 0%;
  }
}

/* Schermi grandi */
@media (min-width: 1201px) {
  .hero-bio {
    background-size: cover;
    background-position: center 18%;
  }
}


/* ========================================
   BIO CONTENT SECTION
   ======================================== */
.bio-content {
  padding: 5rem 2rem;
  background: var(--white);
}

.bio-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-image {
  position: sticky;
  top: 120px;
}

.bio-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.bio-image figcaption {
  text-align: center;
  margin-top: 1rem;
  color: #6b7280;
  font-style: italic;
}

.bio-text h2 {
  font-family: "Delius", cursive;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.bio-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.8;
}

.bio-text strong {
  color: var(--primary);
}

.critical-texts {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid #e5e7eb;
}

.critical-texts h3 {
  font-family: "Delius", cursive;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.critical-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s;
}

.critical-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.critical-link i {
  font-size: 1.2rem;
}

/* ========================================
   PHOTO GALLERY SECTION
   ======================================== */
.photo-gallery-section {
  padding: 5rem 2rem;
  background: var(--light);
}

.photo-gallery {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-item:hover img {
  transform: scale(1.1);
}

/* ========================================
   SOCIAL SECTION (background specifico)
   ======================================== */
.social-section {
  background: url('../assets/images/banner/banner_bottom.png');
  background-position: 70%;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 768px) {
  .bio-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bio-image {
    position: static;
  }
}