* {
  box-sizing: border-box;
}

@font-face {
  font-family: sans-serif;
  src: url("/assets/webfonts/Amiamie-Regular.ttf") format("truetype");
}

/* Stile generale del corpo del documento */
body {
  overflow-x: hidden;
  overflow-y: scroll;
  font: 1vw/120% sans-serif;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  display: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 10px 15px 10px;
}

.title, .title-link {
  font-size: 1vw;
  color: black;
  font-family: sans-serif;
}

.text {
  max-width: 65ch;
  z-index: 2;
}

.bio {
  color: black;
  font-family: sans-serif;
  font-size: 1vw;
  line-height: 120%;
  max-width: 2ch;
}

a {
  color: black; 
  text-decoration: none; 
}

a:hover {
  color: gray; 
  transition: color 0.3s ease; 
}

.description a {
  color:gray;
  text-decoration:underline;
}

.description a:hover {
  color:black;
  transition: color 0.3s ease; 
}

.description {
  color: grey;
  font-family: sans-serif;
}

.combined-text {
  margin:0px;
  text-align: left;
  word-wrap: break-word;
}

.combined-text-about {
  text-align: left;
  word-wrap: break-word;
  line-height: 135%;
  max-width: 30ch;
}

::selection {
  background-color: grey;
  color: black;
}

.description::selection {
  background-color: grey;
  color: white; 
}

/* CAROSELLO */
.owl-carousel {
  width: 100%; 
  position: relative; 
  display: flex;
  overflow-x: auto; 
  margin: 0px 0px 0px 10px;
  padding: 0;
  scroll-snap-type: x mandatory; /* Abilita il posizionamento dello scorrimento */
}

.owl-item {
  flex: 0 0 auto; /* Impedisce il restringimento degli elementi */
  scroll-snap-align: start; /* Allineamento dello scorrimento all'inizio di ogni elemento */
}

.owl-carousel .frame .image {
  width: 100%; 
  height: auto;
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain; /* Mantiene l'aspetto originale dell'immagine senza distorsione */
  padding-bottom: 10px;
}

.owl-carousel .frame {
  max-width: 800px; 
  margin: 0 auto; /* Centra l'elemento nel carosello */
}

.owl-item .image {
  cursor: crosshair;
}

/* About page */
.container.single-column {
  display: flex;
  align-items: baseline;
  max-width: 62ch;
}

.content {
  flex: 1;
  flex-basis: 20%;
  padding: 0px 0px 0px 10px;
}

/* Media Query MOBILE */
@media screen and (max-width: 600px) {
  body, .title, .title-link, .text, .bio, .description, .combined-text, .combined-text-about {
    font-size: 1.5rem; 
  }

  /* nascondo la descrizione */
  .description {
    display: none; 
  }

  /* Layout in colonna */
  .owl-carousel {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding: 0;
  }

  .owl-item {
    flex: 0 0 auto;
    margin-bottom: 20px;
  }

  .owl-carousel .frame {
    max-width: 90vw; 
    margin-bottom: 15px;
  }

  .owl-carousel .image {
    width:100%;
    height: 150%;
  }

  /* Modifiche al layout del contenitore principale */
  .container.single-column {
    display: flex;
    align-items: center; /* Centra gli elementi */
    max-width: 100%;  /* Usa la larghezza completa disponibile */
  }

  .content {
    width: 100%;  /* Occupare tutta la larghezza disponibile */
  }

  .owl-carousel .frame .image {
    width: 100%; 
    height: auto;
  }

  .content {
    padding: 5px;
  }

  .combined-text-about {
    line-height: 120%;
    max-width: 90%; 
  }
}


/* MEDIA QUERY 2 */

@media screen and (min-width: 601px) and (max-width: 1024px) {
  body, .title, .title-link, .text {
    font-size: 1.5vw;
  }

  body {
    line-height: 120%;
    font-family: sans-serif; 
  }

  .owl-carousel {
    width: 100%; 
    scroll-snap-type: none;
    margin: 0 auto;
  }

  .owl-item {
    flex: 1 0 100%;
  }

  .owl-carousel .frame {
    max-width: 100vw; 
  }
  
  .text {
    line-height: 112%;
  }

  .container.single-column {
    max-width: 85ch; 
  }

  .content {
    padding: 0px 10px;
  }
}
