/* =========================================
   ABOUT PAGE LAYOUT
========================================= */
body {
  font-size: clamp(0.8rem, 1vw + 0.5rem, 1rem);
  overscroll-behavior-y: none;
}

h1 {
  font-size: clamp(1.5rem, 4vw + 1rem, 3.5rem);
  font-weight: 200;
}

h4 {
  font-size: clamp(0.8rem, 1vw + 0.5rem, 1rem);
}

/* Contenitore principale con ampi margini laterali */
.about-page {
  padding: 12rem 10% 8rem;
  max-width: 1800px;
  margin: 0 auto;
}

/* 1 */
/* Hero */
.about-hero {
  text-align: center;
  margin-top: 10rem;
  margin-bottom: 5rem;
  display: flex;
  justify-content: center;
}

.hero-statement {
  max-width: 30ch;
  margin: 0;
}

/* Previene il riposizionamento del layout durante l'animazione del peso */
.highlight {
  display: inline-block;
  /* Assicura che la parola abbia sempre lo spazio calcolato per il suo peso massimo (700) */
  font-weight: 700;
  -webkit-text-stroke: 1px transparent;
  color: inherit;
  font-weight: inherit;
}

/* 2 */
/* Griglia delle Skill */
.skills-section {
  margin-bottom: 8rem;
  padding: 0; /* Assicuriamoci di annullare i padding precedenti */
  width: 90%; /* Su smartphone occuperà il 90% dello schermo fluido */
  max-width: 45rem; /* Sostituisce i 900px usando i rem (unità relativa) */
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    1fr
  ); /* Ora parte da 2 colonne (2x2) fin dal telefono */
  gap: 1.5rem; /* Gap ridotto per gli schermi piccoli */
}

.skill-column h4 {
  margin-top: 10rem;
  padding-bottom: 1rem;
  color: #111;
}

.skill-column p {
  line-height: 1.5rem; /* Più spazio tra le righe delle skill per renderle leggibili */
}

/* 3 */
/* Bio Finale */
.about-bio {
  width: 90%; /* Stessa identica percentuale delle skill */
  max-width: 45rem; /* Stesso identico limite massimo in rem */
  margin: 0 auto;
}

.about-bio p {
  font-size: clamp(0.8rem, 1vw + 0.5rem, 1rem);
  line-height: 1.5rem; /* Più spazio tra le righe per la leggibilità */
  margin-bottom: 1rem; /* Spazio tra i paragrafi */
}

/* RESPONSIVE */
/* TABLET & MOBILE (Triggers the moment it becomes 2x2) */
@media (max-width: 1023px) {
  /* SKILLS */
  .skills-grid {
    row-gap: 2rem;
  }

  /* Removes the 10rem margin pushing the second row down */
  .skill-column h4 {
    margin-top: 0;
  }
}

/* MOBILE (Phones only) */
@media (max-width: 767px) {
  /* STATEMENT */
  .about-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .about-hero {
    margin-top: 10rem;
    margin-bottom: 10rem;
  }

  /* DESCRIZIONE */
  .about-bio {
    margin-bottom: 0;
  }

  /* FOOTER */
  .minimal-footer {
    gap: 1rem;
    padding-top: 2rem;
  }

  .footer-links {
    gap: 0.5rem;
  }
}

/* Responsive Grid per Desktop (Passa a 4 colonne) */
@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
