@import url(https://db.onlinewebfonts.com/c/9527a4c4f55e8075eb6a60fe577d89c4?family=Px+Grotesk+Regular);
@font-face {
    font-family: "Px Grotesk Regular";
    src: url("https://db.onlinewebfonts.com/t/9527a4c4f55e8075eb6a60fe577d89c4.eot");
    src: url("https://db.onlinewebfonts.com/t/9527a4c4f55e8075eb6a60fe577d89c4.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/9527a4c4f55e8075eb6a60fe577d89c4.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/9527a4c4f55e8075eb6a60fe577d89c4.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/9527a4c4f55e8075eb6a60fe577d89c4.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/9527a4c4f55e8075eb6a60fe577d89c4.svg#Px Grotesk Regular")format("svg");
}
body {
    margin: 0;
    font-family: "Px Grotesk Regular", sans-serif;
    font-size: 13px;
    width: 100%;
    height: fit-content;
   
}

header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
   flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vh;

}
main {
    position: fixed;
    height: 100%;
    width: 100%;
     justify-content: center;
     align-items: center;
}
nav {
    z-index: 100;
    display: flex;
    align-items: center; 
    position: fixed;
    top: 2vh;
    left: 3vh;
    width: fit-content;
    height: fit-content;
      gap: 2vh;  
    
}

a{
   text-decoration: none;
color: inherit;
}

a:hover {
    text-decoration: underline;
}

.contenitore {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    
   }

.link-utili {
width: fit-content;
    height: fit-content;
      position: fixed;
    justify-content: center;
    align-items: center;
     top: 7vh;
    left: 3vh;
  mix-blend-mode:difference;

}

#up {
  text-decoration: underline;
 
}

#button {
     background-color: rgb(255, 255, 255);
    opacity: 1;
    z-index: 11;
    text-align: center;
}
   #return {
     background-color: rgb(255, 255, 255);
    opacity: 0;
    position:fixed;
   text-decoration: underline;
}


#closeSticky {
     position: absolute;
     cursor: pointer;
     top: -2vh;
     right: 2vh;
    z-index: 1000;
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
    border-radius: 0;
    text-decoration: underline;
   
}

#openSticky {
   bottom: 2vh;
    position: fixed;
    cursor: pointer;
   z-index: 1000;
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
    border-radius: 0;
    text-decoration: underline;
  display:none;
  right:2vh;
}

/* Solo hover su #button */
.contenitore:hover #button {
    opacity: 0;
  }
  
  .contenitore:hover #return {
    opacity: 1;
    position:fixed;
   
   z-index: 12;
   text-decoration: underline;
   background-color: white;
}
.elenco {    
    top: 10vh;
    display: flex;
    text-align: center;
    flex-direction: column;
    gap: 1vh;
}
#fixed-text-column {
width: 100%;
}

#d1 {
    right: 1vh;   
    }

#d3 {
    left: 1vh; 
}
.descrizione {
 top: 5vh;
 text-align: center;
}
.box-text {
   width: 97%;
    height:auto;
    position: fixed;
    display: flex;
    justify-content: center;
    background-color:white;
    flex-direction: row;
    bottom: 0;
    gap: 10%;
    padding: 3vh;
    padding-bottom: 2vh;
}
.fixed-text {
   width: 50%;
    margin: 0;
    background-color: white;
    z-index: 5;
    position: relative;
}

.sticky-box {
       position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    margin: 0;
    width: 100%;
    transition: opacity 0.4s, transform 0.4s;
    opacity: 1;
    transform: translateY(0);
  
}

.sticky-box.closed {
    opacity: 0;
    transform: translateY(40px); /* scorre verso il basso */
    pointer-events: none;
}
.empty {
    width: 100%;
    height: 400vh;
    position: relative;
}


button {
    opacity: 1;
    position:fixed;
    z-index: 11;
    background-color: white;
      background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    outline: none;
}
button:hover {
    text-decoration: underline;
}
    
.buttons{
font-size: 16px;

}
#close-button {
    position: absolute;
    top: 10vh;
    right: 15vh;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

     background: none !important;
    background-color: transparent !important;
}

.close-button:hover {
    text-decoration: underline;
}

.close-button:focus {
    color: black !important;
}

#button-right {
    position: fixed;
    right: 15vh;
}
#button-left {
    position: fixed;
    left: 15vh;
}

  /* Position the image container (needed to position the left and right arrows) */

  

main{
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}
.container-slideshow {
     position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    width: 130vh;
    max-height: 80vh;
    margin: 0;
    overflow: hidden;
    display: flex;

       transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s, transform 0.4s;
}




.container-slideshow img {
    width: 100%;
    height: 100%;
 object-fit: cover; /* copre tutto il contenitore */
    display: block;
}
.container-slideshow video {
    width: 100%;
    height: 100%;
 object-fit: contain; /* copre tutto il contenitore */
    display: block;
}

.container-slideshow button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2;
}

main button:first-of-type {
    left: 5vh;

}

main button:last-of-type {
    right: 5vh;
}

  /* Add a pointer when hovering over the thumbnail images */
  .cursor {
    cursor: pointer;
  }
  
  /* Next & previous buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 40vh;
    font-size: 15px;
    user-select: none;
    z-index: 999;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
   text-decoration: underline;
  }

.container-slideshow #video-contain {
    max-width: 35%;
   margin: auto;
 /* mantiene le proporzioni del video */
}

@media (max-width: 1280px) {
    .fixed-text {
       display: none;
    }
    .container-slideshow {
   
    width: 90%;
    max-height: 80vh;
}

#closeSticky {
   display: none;
}

#openSticky {
  display:none;
}

#close-button {
    top: 5%;
    right: 15px;
   z-index: 1000;
}
#button-right {
    right: 2%;
   
}
#button-left {
    left: 2%;
   
}

}

@media (max-width: 700px) {
     
    .container-slideshow {
    width: 100%;
    max-height: 100vh;
   
}

#button-right {
    right: 2%;
   margin-bottom: 20px;
}
#button-left {
    left: 2%;
   
}
.buttons{
font-size: 16px;
mix-blend-mode: difference;
color: white;
}
#close-button {
       top: 5%;
       color: black;
    }
.container-slideshow img {
    width: 100%;
    height: 100%;
 object-fit: cover; /* copre tutto il contenitore */
   
}
.container-slideshow video {
    width: 100%;
    height: 100%;
 object-fit: cover; /* copre tutto il contenitore */
   
}

}