main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

section.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: url("/assets/chi-siamo/inizio-pagina.png") no-repeat center
    center / 100% auto;
  aspect-ratio: 1920/1080;

  h1,h2,h3,h4,
  p {
    max-width: 75%;
    color: white;
    text-wrap: balance;
    text-align: center;
  }
}

section.dove-nasce {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  h1,h2,h3,h4,
  p {
    max-width: 90%;
    color: black;
    text-align: justify;
  }
}

.flourish {
  width: 30vw;
  position: absolute;
  right: 0;
  z-index: 2;
}

section.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;

  background: url("/assets/chi-siamo/sfondo-blu-parallelogramma.png") no-repeat
    center center / cover;
  padding: 8rem 0;
  overflow-x: hidden;

  h1,h2,h3,h4,
  p {
    color: white;
    text-align: justify;
  }

  .cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  img {
    width: 100%;
  }
  img:nth-of-type(1) {
    transform: translateX(40%) translateY(40%);
  }
  img:nth-of-type(2) {
    transform: translateX(-40%) translateY(-40%);
  }
}

section.come-lo-facciamo {
  display: flex;
  flex-direction: row;
  padding: 4rem;

  h1,h2,h3,h4,
  p {
    text-align: justify;
  }

  .left-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  img {
    width: 50%;
  }

  .button {
    align-self: flex-start;
    width: auto;
  }
}

section.values {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;

  background: url("/assets/chi-siamo/ellisse.png") no-repeat center center /
    100% 100%;
  aspect-ratio: 1920/1200;

  .bubbles {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    .value:nth-of-type(2) {
      margin-left: -3rem;
      margin-right: -3rem;
    }
  }

  .value {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    aspect-ratio: 1/1;
    width: 30vw;

    background: var(--accent-color);
    border-radius: 50%;

    h1,h2,h3,h4,
    p {
      text-align: center;
      max-width: 80%;
    }
  }
}

section.founder {
  display: flex;

  padding: 4rem;

  .text {
    padding: 2rem;
  }

  img {
    width: 100%;
    max-width: 30vw;
    object-fit: contain;
  }
}

section.numbers {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;

  margin-top: 2rem;
  margin-bottom: 2rem;

  h1,h2,h3,h4 {
    grid-column: span 3;
    justify-self: center;
    text-align: center;
    background: url("/assets/chi-siamo/cerchiatura-verde.png") no-repeat center
      center / 100% 100%;
    padding: 3rem;
    aspect-ratio: 186/71;
  }

  p {
    padding-left: 3vw;
    padding-right: 3vw;
    text-align: center;
  }

  & > img {
    width: 100%;
  }
}

.big-paper {
  background: url("/assets/chi-siamo/sfondo-carta.png") no-repeat center
    center / 100% 100%;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  section.hero {
    h1,h2,h3,h4,
    p {
      text-align: left;
    }
  }

  section.dove-nasce {
    padding: 1rem;
  }

  section.mission-vision {
    grid-template-columns: 1fr;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: var(--primary-color);

    h1,h2,h3,h4,
    p {
      text-align: left;
    }

    .cell {
      padding-top: 0;
      padding-bottom: 0;
      justify-content: flex-start;
      align-items: flex-start;
    }
  }

  section.come-lo-facciamo {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  section.values {
    background: white;
    margin-top: 1rem;
    aspect-ratio: auto;
    padding: 2rem 0;
    gap: 0;

    h1,h2,h3,h4 {
      margin-bottom: 1rem;
    }
    .bubbles {
      flex-direction: column;
    }
    .value {
      width: 45vw;
    }
    .value:nth-of-type(2) {
      margin: 0;
      margin-top: 1rem;
      margin-bottom: 1rem;
    }
  }

  section.founder {
    flex-direction: column-reverse;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: justify;
    padding: 2rem;

    img {
      max-width: 60vw;
      margin: 0 auto;
    }
    .text {
      padding: 0;
    }
  }

  section.numbers {
    p {
      grid-column: span 3;
    }
  }
}
