@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500&display=swap");

/*header*/
  .header{
    height: 50vh;
    background-color: var(--grigioChiaro);
    width: 100%;
    display: block;
  }
  #presentation{
    position: absolute;
    top: 0;
    height: 50vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #heroTitle{
    width: 100%;
    font-size: var(--titolo);
    text-align: center;
    margin-bottom: 2%;
  }
  #tagLine{
    width: 60%;
    position: relative;
    left: 20%;
    font-size: var(--sottotitolo);
    text-align: center;
    margin-bottom: 2%;
  }

  /*lavorazioni*/
  .riga{
    display: flex;
    flex-direction: row;
    padding: 20px;
  }
  .chiara{
    background-color: var(--bianco);
  }
  .scura{
    background-color: var(--grigioChiaro);
  }
  .containerRiga{
    width: 90%;
    height: 100%;
    position: relative;
    left: 5%;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .fotoRiga{
    width: 45%;
    height: 60vh;
    display: block;
    background-position: center; 
    background-repeat: no-repeat;
    background-size: 80%;
  }
  .fotoRiga form{
    position:absolute;
    bottom: 5%;
    width: 45%;
    text-align: center;
    opacity: 0;
    transition: 1s;
  }
  .fotoRiga:hover form{
    opacity: 1;
  }
  .fotoRiga input{
    width: 12px;
    height: 12px;
    margin-left: 1%;
    cursor: pointer;
  }
  .fotoRiga input::after{
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    border-radius: 50%;
    background-color: var(--rosso);
  }
  .fotoRiga input:checked:after{
    opacity: 1;
  }
  .testoRiga{
    width: 55%;
    position: relative;
    top: 10%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
  }
  .giustificatoreRiga{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .titoloRiga{
    width: 80%;
    position: relative;
    left: 10%;
    padding-top: 3%;
    padding-bottom: 3%;
    font-size: var(--titolo);
  }
  .descrizioneRiga{
    width: 80%;
    position: relative;
    left: 10%;
    padding-top: 3%;
    padding-bottom: 3%;
    font-size: var(--testo);
  }
  
  @media (max-device-width:1000px){ /*gestione tablet*/
    .containerRiga{
        width: 100%;
        left: 2.5%;
      }
    .fotoRiga{
        width: 45%;
      }
    .testoRiga{
        width: 55%;
      }
    .fotoRiga form{
        opacity: 1;
        width: 45%;
      }
      
}
/*@media (min-width: 768px) and  (max-width:1023px){
  #heroTitle{
    width: 100%;
    font-size: var(--titolo);
    text-align: center;
    margin-bottom: 2%;
  }
  #tagLine{
    width: 60%;
    position: relative;
    left: 20%;
    font-size: var(--sottotitolo);
    text-align: center;
    margin-bottom: 2%;
  }
  .riga{
    height: 40vh;
  }
  .fotoRiga form{
    opacity: 1;
  }
  .containerRiga{
    width: 90%;
    height: 100%;
    position: relative;
    left: 5%;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}

/*Macchinari*/
#macchinari{
  background-color: var(--grigioChiaro);
  min-height: 100vh;
}
.containerSlider{
  position: relative;
  left: 15vw;
  top: 10vh;
  width: 70vw;
  height: 80vh;
  padding:50px;
  box-shadow: 5px 5px 21px -5px #000000;
}
#slide{
  margin-top:50px;
}
.item{
  width:200px;
  height:300px;
  background-position: 50% 50%;
  display: inline-block;
  transition: 0.5s;
  background-size: cover;
  position: absolute;
  z-index: 1;
  top:50%;
  transform: translate(0,-50%);
  border-radius: 20px;
  box-shadow:  0 30px 50px #505050;
}
.item:nth-child(1),
.item:nth-child(2){
  left: 0;
  top: 0;
  transform: translate(0,0);
  border-radius: 0;
  width:100%;
  height:100%;
  box-shadow: none;
}
.item:nth-child(3){
  left:calc(50% + 220px);
}
.item:nth-child(4){
  left:calc(50% + 440px);
}
@media (max-device-width:1000px){ /*gestione tablet*/
    .containerSlider{
      left: 10vw;
      width: 80vw;
    }
    .item:nth-child(3){
      left:calc(30% + 440px);
    }
    .item:nth-child(n+4){
      left:calc(30% + 440px);
      top: 30%;
      opacity: 0;
    }
}
@media (min-device-width: 1001px) and (max-device-width: 1699px){ /*se non suddivido in questi due modi potrebbe spostarsi il sito a sinistra*/
  .item:nth-child(n+5){
    left:calc(50% + 440px);
    top: 30%;
    opacity: 0;
  }
}
@media (min-device-width: 1700px){
  .item:nth-child(5){
    left:calc(50% + 660px);
  }
  .item:nth-child(n+6){
    left:calc(50% + 660px);
    top: 30%;
    opacity: 0;
  }
}
.item .content{
  position: absolute;
  top: 80%;
  left: 30px;
  width:300px;
  text-align: left;
  padding: 2%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
  color:black;
  transform: translate(0,-50%);
  display: none;
  font-family: system-ui;
}
.item:nth-child(2) .content{
  display: block;
  z-index: 11111;
}
.item .name{
  font-size: var(--titolo);
  font-weight: bold;
  opacity: 0;
  animation:showcontent 1s ease-in-out 1 forwards
}
.item .des{
  margin:20px 0;
  opacity: 0;
  animation:showcontent 1s ease-in-out 0.3s 1 forwards
}
.item button{
  padding:10px 20px;
  border: 1px solid black;
  opacity: 0;
  animation:showcontent 1s ease-in-out 0.6s 1 forwards;
  background-color: var(--rosso);
  color: var(--bianco);
  cursor: pointer;
  transition: 1s linear;
}
.item button:hover{
  background-color: transparent;
  color: black;
}
@keyframes showcontent{
  from{
      opacity: 0;
      transform: translate(0,100px);
      filter:blur(33px);
  }to{
      opacity: 1;
      transform: translate(0,0);
      filter:blur(0);
  }
}
.buttons{
  position: absolute;
  bottom:30px;
  z-index: 10;
  text-align: center;
  width:100%;
}
.buttons button{
  width:50px;
  height:50px;
  border-radius: 50%;
  border:1px solid black;
  transition: 0.5s;
  cursor: pointer;
  transition: 1s linear;
}
.buttons button:hover{
  background-color: var(--rosso);
  color: var(--bianco);
}

