@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500&display=swap");

/*header*/
  .header{
    height: 100vh;
    background-image: url("../immagini/sfondoHeader2.jpg");
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
  }
  #presentation{
    position: absolute;
    white-space: nowrap;
    padding: 20px;
    background: rgba( 255, 255, 255, 0.4 );
      box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
      backdrop-filter: blur( 20px );
      -webkit-backdrop-filter: blur( 20px );
      border-radius: 5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    vertical-align: middle;

  }
  #heroTitle{
    width: 100%;
    font-size: var(--titolo);
    text-align: center;
    margin-bottom: 2%;
  }
  #tagLine{
    width: 100%;
    font-size: var(--sottotitolo);
    text-align: center;
    margin-bottom: 2%;
  }
  #buttons{
    width: 50%;
    position: relative;
    left: 25%;
    font-size: var(--bottoni);
    text-align: center;
    display: flex;
    flex:1;
    flex-direction: row;
    justify-content: space-around;
  }
  
  @media (max-device-width:1000px){ /*gestione tablet*/
     #buttons{
        width: 33%;
        left: 33%;
      }
    }

  #button1,#button2{
      width: fit-content;
    padding: 15px;
    background-color: var(--rosso);
    border: 1px solid var(--nero);
    color: var(--bianco);
    transition: 1s linear;
  }
  #button1 p, #button2 p{
    transition: 1s linear;
  }
  #button1:hover{
    background-color: transparent;
    cursor: pointer;
  }
  #button1:hover p{
    color: var(--nero);
  }
  #button2:hover{
    background-color: transparent;
    cursor: pointer;
  }
  #button2:hover p{
    color: var(--nero);
  }
  /*about*/
  #about{
    position: relative;
    height: 90vh;
    background-color: transparent;
    width: 100%;
    display: flex;
    flex-direction: row;
  }
  #aboutTesto{
    position: relative;
    top: 25%;
    width: 50%;
    height: 50%;
    background-color: transparent;
  }
  #aboutFoto{
    position: relative;
    width: 50%;
    height: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #aboutFoto video{
      width: 100%;
  }
  #aboutTitolo{
    width: 50%;
    position:relative;
    left: 25%;
    font-size: var(--titolo);
    margin-bottom: 2.5%;
  }
  #aboutDescrizione{
    width: 50%;
    position: relative;
    left: 25%;
    margin-bottom: 2.5%;
    font-size: var(--testo);
  }

  #aboutButton{
    position: relative;
    left: 25%;
    width: fit-content;
    padding: 15px;
    background-color: var(--rosso);
    border: 1px solid var(--nero);
    color: var(--bianco);
    text-align: center;
    transition: 1s linear;
  } 
  @media (max-device-width:1000px){ /*gestione tablet*/
     #aboutTitolo{
    width: 60%;
    left: 20%;
  }
  #aboutDescrizione{
    width: 60%;
    left: 20%;
  }

  #aboutButton{
    left: 20%;
  } 
}

  #aboutButton p{
    transition: 1s linear;
  }
  #aboutButton:hover{
    background-color: transparent;
    cursor: pointer;
  }
  #aboutButton:hover p{
    color: var(--nero);
  }

  /*lavorazioni*/
  #lavorazioniTitolo{
    width: 100%;
    text-align: center;
    font-size: var(--titolo);
    margin-bottom: 1%;
  }
  #lavorazioniDescrizione{
    width: 50%;
    text-align: center;
    position: relative;
    left: 25%;
    font-size: var(--testo);
    margin-bottom: 2%;
  }

  .riga{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    height: 40vh;
    margin-bottom: 1%;
  }
  .boxTesto{
    display: block;
    width: 36%;
    height:100%;
    color: var(--nero);
    transition: 1s linear;
  }
  .boxTesto:hover{
    transform: scale(1.01);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  }
  .boxFoto{
    display: block;
    width: 24%;
    height: 100%;
    background-color: var(--blu);
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
  }
  .boxCaption{
    width: 90%;
    height: 15%;
    margin: 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: var(--sottotitolo);
  }
  .boxText{
    width: 90%;
    margin: 5%;
    position: relative;
    top: 25%;
    transform: translateY(-50%);
    font-size: var(--testo);
    display: flex;
    flex-direction: column;
  }
  .linkLavorazioni{
      text-decoration: underline;
      
      transition: 1s linear;
  }
  .linkLavorazioni:hover{
      color: var(--rosso);
  }
  .chiaro{
    background-color: var(--grigioChiaro);
  }
  .scuro{
    background-color: var(--grigioScuro);
  }

  /*notizie*/
  #notizie{
    margin-top: 5%;
    min-height: 100vh;
    background-color: var(--grigioChiaro);
    padding-top: 5%;
  }
  #notizieTitolo{
    width: 100%;
    text-align: center;
    font-size: var(--titolo);
  }
  #giustificaBottoni{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  #giustificaBottoni i{
    font-size: var(--titolo);
    cursor: pointer;
  }
  .containerBtn{
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #visualizzatore{
    display: block;
    width: 75%;
    position: relative;
    margin-top: 3%;
    left: -20px;
    height: 70vh;
    overflow-x: hidden;
    overflow-y: visible;
    padding-left: 20px;
    padding-right: 20px;
  }
  #notizieContainer{
    display: flex;
    flex-direction: row;
    position: relative;
    left: 0;
    transition: 0.75s linear;
  }
  .cardNotizia{
    height: 60vh;
    position: relative;
    top: 5vh;
    min-width: 25%;
    max-width: 25%;
    background-color: var(--grigioScuro);
    display: block;
    margin-right: 4%;
    transition: 1s linear;
    
  }
  .cardNotizia:hover{
    transform: scale(1.05);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  }
  .cardImmagine{
    position: relative;
    width: 100%;
    height: 55%;
    display: block;
    background-color: black;
    background-image: url("../immagini/logo.png");
    background-position: center; 
    background-repeat: no-repeat;
    background-size: 60%;
  }
  .cardTesto{
    margin: auto;
    position: relative;
    top: 6%;
    width: 80%;
    height: 33%;
    display: block;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
  .cardTitolo{
    font-size: var(--sottotitolo);
    margin-bottom: 3%;
  }
  .cardDescrizione{
    font-size: var(--testo);
    margin-bottom: 3%;
  }
  .cardBottone{
    padding:10px;
    background-color: var(--rosso);
    text-align: center;
    border: 1px solid black;
    color: white;
    transition: 1s linear;
  }
  .cardBottone:hover{
    background-color: transparent;
    cursor: pointer;
  }
  .cardBottone p{
    transition: 1s linear;
  }
.cardBottone:hover p{
  color: var(--nero); 
}

/*lightbox*/
.lightbox{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: none;
}
.lightboxIn{
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba( 255, 255, 255, 0.65 );
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 20px );
  -webkit-backdrop-filter: blur( 20px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
  width: 45%;
  height: 55%;
  transition: 1s linear;
  background-image: url("");
  background-position: center; 
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
}
.lightbox.visible{
  display: block
}
.lightboxIn i{
  font-size: var(--titolo);
  position: absolute;
  z-index: 10000;
  color: var(--rosso);
  cursor: pointer;
  transition: 1s linear;
  top: 0;
  right: 40px;
  display: block;
}
.lightboxIn .testo{
  margin-left: 5%;
  position: relative;
  top: 5%;
  width: 90%;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  /*justify-content: center; togli il commento se vuoi che sia centrato verticalmente*/
}
.lightboxIn form{
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
    max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  transition: 1s linear;
}
.lightboxIn input[type=radio]{
  margin-right: 1%;
  margin-bottom: 1%;
  cursor: pointer;
  display: block;
  width: 12px;
  height: 12px;
}
.lightbox input::after{
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  border-radius: 50%;
  background-color: var(--rosso);
}
.lightbox input:checked:after{
  opacity: 1;
}
#titoloLightBox{
  display: block;
  width: 100%;
  font-size: 32px;
  margin-bottom: 2%;
}

@media (max-device-width:1000px){ /*gestione tablet*/
    .cardNotizia{
    height: 66vh;
    min-width: 42%;
    max-width: 42%;
  }
   .riga{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    height: 40vh;
    margin-bottom: 1%;
  }
  .boxTesto{
    display: block;
    width: 36%;
    height:100%;
    color: var(--nero);
    transition: 1s linear;
  }
  .boxTesto:hover{
    transform: scale(1.01);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  }
  .boxFoto{
    display: block;
    width: 24%;
    height: 100%;
    background-color: var(--blu);
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
  }
  .boxCaption{
    width: 90%;
    height: 15%;
    margin: 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: var(--sottotitolo);
  }
  .boxText{
    width: 90%;
    margin: 5%;
    position: relative;
    top: 0%;
    transform: translateY(0%);
    font-size: var(--testo);
    display: flex;
    flex-direction: column;
  }
}