@charset "UTF-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #121212;
  --accent-color: #B497FF;
  --second-accent-color: #FF6d90;
  --third-accent-color: #FFd1e3;
  --text-color: #EDEDED;
  --body-font: "Inter", sans-serif;
  --heading-font: "DM Serif Display", serif;
  --h1-font-size: clamp(40px, 6vw, 60px);
  --h2-font-size: clamp(32px, 4.8vw, 40px);
  --h3-font-size: clamp(26px, 3.8vw, 34px);
  --biggerbody-font-size: clamp(22px, 3.2vw, 32px);
  --body-font-size: clamp(18px, 2.4vw, 24px);
  --smallbody-font-size: clamp(16px, 2vw, 18px);
  --smallerbody-font-size: 16px;
  --button-font-size:clamp(16px, 1.8vw, 18px);
  --button-font-weight: bold;
  --footer-font-size: 14px;
  --subtitle-font-size: clamp(22px, 3.2vw, 32px);
  --subtitle-font-weight: 500;
}

body {
  font-family: var(--body-font);
  font-size: var(--body-font-size);
  color: var(--text-color);
  background-color: var(--primary-color);
  line-height: 160%;
}
body h1, body h2, body h3 {
  font-family: var(--heading-font);
  color: var(--text-color);
  line-height: 115%;
}
body h1 {
  font-size: var(--h1-font-size);
}
body h2 {
  font-size: var(--h2-font-size);
}
body h3 {
  font-size: var(--h3-font-size);
}
body .menu-nav_link {
  font-family: var(--body-font);
  font-size: var(--body-font-size);
  color: var(--text-color);
  line-height: 160%;
}
body .btn {
  font-family: var(--body-font);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  color: var(--primary-color);
  background-color: var(--accent-color);
  text-decoration: none;
  border-radius: 40px;
  padding: 10px 40px;
  transition: all 0.3s ease;
}
body .btn:hover {
  background-color: var(--second-accent-color);
  color: var(--text-color);
}

.section {
  padding: clamp(40px, 8vw, 100px) clamp(20px, 5vw, 100px);
  max-width: 100%;
}

.container {
  gap: 40px;
  width: fit-content;
  max-width: 100%;
  max-width: 1280px;
  margin: auto;
  padding-inline: clamp(16px, 5vw, 64px);
  margin: 0 auto;
  width: 100%;
}

h1, h2 {
  margin-bottom: 20px;
}

.aboutme {
  position: relative;
}
.aboutme.section {
  margin-top: 90px;
  min-height: clamp(400px, 60vh, 800px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.aboutme-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1; /* Assicura che il testo sia sopra l'illustrazione */
  padding: 40px 0; /* Aggiungi un padding per evitare che il testo tocchi i bordi */
}
@media (min-width: 601px) {
  .aboutme-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
  }
}

.about_illustration {
  position: relative;
  width: clamp(389px, 42vw, 611px);
  z-index: 0;
  flex-shrink: 0;
  margin-right: 40px;
  margin-left: clamp(-90px, -4vw, -70px);
}

.about_illustration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.about_illustration--mobile {
  display: none;
}

@media (max-width: 954px) {
  .about_illustration {
    display: none;
  }
  .about_illustration--mobile {
    display: block;
    margin: 2rem auto 1rem;
    width: 400px;
    max-width: 100%;
  }
  .about_illustration--mobile img {
    width: 100%;
    height: auto;
    display: block;
  }
}
div.side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 150px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1; /* Assicura che il testo sia sopra l'illustrazione */
  padding: 80px 0; /* Aggiungi un padding per evitare che il testo tocchi i bordi */
}
@media (max-width: 600px) {
  div.side {
    flex-direction: column;
    gap: 40px;
  }
}
div.side img {
  width: 100%;
  height: auto;
  max-width: 100px; /* Limita la larghezza massima dell'immagine */
  object-fit: contain;
}
@media (max-width: 600px) {
  div.side img {
    max-width: 80px;
  }
}

.side.mobile {
  display: none;
}

@media (max-width: 768px) {
  .side.mobile {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  .side:not(.mobile) {
    display: none;
  }
}
/* Sezione tools */
.tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.container {
  width: 100%;
  margin: 0 auto;
}

/* Titolo sezione */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 40px;
  text-align: left; /* ← cambia da center a left */
}

/* Lista strumenti */
.tools_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center; /* le icone si centrano nella cella */
}

/* Singoli elementi */
.tools_list li {
  width: 100%;
  max-width: clamp(132px, 20vw, 141px);
  aspect-ratio: 1/1;
  text-align: center;
  padding: 14px;
  position: relative;
  transition: transform 0.3s ease;
}

.tools_list li img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: auto;
  display: block;
  transition: all 0.3s ease;
}

.tools_list li:hover,
.tools_list li:focus-within {
  transform: translateY(5px);
}

.tools_list li:hover img,
.tools_list li:focus-within img {
  width: 90px;
  height: 90px;
}

/* Accessibilità */
.tools_list li .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .tools_list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .tools_list {
    grid-template-columns: 1fr;
  }
  .section-title {
    text-align: center;
  }
}

/*# sourceMappingURL=about.css.map */
