 body{ 
  font-family:sans-serif;
  padding: 0;
  margin:0;
  overflow-x: hidden;
  background-color:rgb(255, 255, 255);
   
 }
 .logo{
  display: flex;
  justify-content: center;
  align-items: center;
  left:50%
 }

 .header{
        background-color: white; 
        display: flex; 
        justify-content: space-between;
        box-shadow: 3px  lightslategrey;
        position:sticky;
        top:0;
        z-index: 100;
        

 }

 .logo{
       margin-left:100px ;
       padding: 20px;
}

 nav.menu{
        
        display:flex;
        justify-content: center;
        
        
 }
 nav.menu ul {
        padding: 20px;
        

 }

 nav.menu li {
        display:inline-block;
        padding: 15px;
            
 }


 nav.menu li  :hover{ 
        background-color:rgb(56, 109, 165) ;
        padding: 15px;
        border-radius: 1.25rem;
        border-bottom: solid 2px rgba(90, 85, 85, 0.258);
        font-size: 1.2em;
        color: #f1f1f1;
 

 }
 nav.menu li a{ 
      text-decoration: none;
      color: black;
 }
 
 
      
 h1{
    display: flex;
    justify-content:center;
    text-align:center;
    color: white;
    text-decoration: none;
    font-size:50px;
    margin-top:0;
    padding:60px;
    background-color: rgb(56, 109, 165);
    animation:fadeinanimation 1s forwards;
 }

 @keyframes fadeinanimation{
  0%{opacity: 0;}
  20%{opacity:0.2;}
  40%{opacity:0.4;}
  60%{opacity:0.6;}
  80%{opacity:0.8;}
  100%{opacity: 1;}
 }

 h2 {
     color: black;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      
 }

 
 span.titlecard{
       display:flex;
       background-color: rgb(56, 109, 165);
       padding: 200px 150px 100px;
       display: flex;
       justify-content:left;
       text-align:left;
       font-size: large;
       background-image: url(IMG_20220606_120634_055146.jpg);
       background-size: cover; 
       background-repeat: no-repeat; 
       background-position: center;
       opacity: 0;
       animation: titlecard forwards 1s;

 }
 @keyframes titlecard{
  0%{opacity: 0;}
  20%{opacity:0.2;}
  40%{opacity:0.4;}
  60%{opacity:0.6;}
  80%{opacity:0.8;}
  100%{opacity: 1;}
 }

 

 span.tcard{
  width: 50%;
 }

 span.titlecard p{
  font-family: 'Times New Roman', Times, serif;
  color: #ffffff;
  background-color:  rgb(56, 109, 165);
  padding:10px;
  border: solid 2px white;
  border-radius:1.25rem;
 }

 .banner{
  border: solid 2px white;
  padding:15px;
  margin-left: 50px;
  text-align: center;
  flex:20%;
  border-radius:1.25rem;
  flex-wrap: wrap;
  width:100%;
  background-color: rgb(56, 109, 165) ;
  
 
 }
 .banner strong{
  font-size:30px
 }

 

 .p1home{
   text-align: center;

 }

 p{ 
    justify-content: left;
    color: black;
    padding:10px;
 }
/* box cards */
div.container{
  display:inline-flex;
  padding: 20px;
  gap:30px;
  margin:120px;
 
  

}
div.column {
  display: inherit;
  flex: 33.33%;
  max-width:33.33%;
  float: left;
  padding:5px
   
}

div .card {
  padding: 20px;
  text-align: center;
  background-color: #f1f1f1;
  text-decoration: none;
  border-radius: 1.25rem;
  
  

}
div.card:hover{
  box-shadow: 0 24px 38px 3px rgba(0,0,0,0.14), 0 9px 46px 8px rgba(0,0,0,0.12), 0 11px 15px -7px rgba(0,0,0,0.2);
}


.linkb{
  text-decoration: none;

}
.linkb :hover{
  background-color: #f1f1f1;
  color: black;
  font-size: 1.3rem;
  
}

.buttonc{
  padding: 15px;
  color: #f1f1f1;
  background-color: rgb(56, 109, 165) ;
  font-size: medium;
  text-decoration: none;
  cursor:pointer;
  transition: background-color 0.3s ease-in;
  border-radius: 1.25rem;
}




.imgcard{
        display: flex;
        width:100%;
        height:fit-content;
        border-radius: 1.25rem;
  
}
.buttong{
  
  padding: 15px;
  margin-top:30px;
  margin-left:500px;
  text-decoration: none;
  color: #f1f1f1;
  justify-content:center;
  background-color:rgb(56, 109, 165) ;
  border-radius:1.25rem;
}
.buttong:hover{
  color: #000000;
  background-color: #f1f1f1;
  border:solid 1px black;
}

/* footer */
 footer{ 
         display: block;
         padding: 5px;
         background-color:  rgba(242, 245, 255, 0.823);
         box-shadow: 10px 10px 10px lightslategray;
         margin-top: 150px;     
         
 }
 
 footer{
  display:inline-flex;
  background-color: rgb(56, 109, 165);
  width:100%;
  color: #f1f1f1;
  padding-left:3px;
 }
 h4{
  color: #f1f1f1;
  font-size:30px;
  padding: 2px;
  margin: 0;
  margin-top:40px;
 }
 div.footerul{
  top: 0;
  left: 0;
 }

 .footerul{
  display:inline-flex;
  flex-direction: column;
  background-color: rgb(0, 2, 3);
  padding: 10px;
  margin-right:100px;
  border-radius:1.10rem;
  
 }
  .footerul p{
    color: #f1f1f1;
    justify-content: center;
    align-items: center;
    font-size: medium;

  }
  footer p{
    color: #f1f1f1;
  }
  footer a{
    display: flex;
    flex-direction: column;
    padding:30px;
    text-decoration: none;
    color: #f1f1f1;
    gap:10px;
  }
  .footerc{
    display:inline-flex;
    flex-direction:column;
    width:fit-content;
    justify-content:center;
    align-items: center;
    flex-wrap: wrap;
    gap:20px;
    
  }
  
  footer{
    display: inline-flex;
    align-items: center;
    padding:10px;
    margin: 2px;
    margin-top:50px;
    justify-content: center;
    gap:40px;
    
  }
  .copyr{
    bottom: 5;
  }
 /* foto pagina portfoglio */
 
 .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: auto;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 10px);
  box-sizing: border-box;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3 ease-in;
}
.gallery-item :hover{
  cursor: pointer;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.496);
  transform:scale(1.08);
}

/* pagina servizi */
div.block-background1{
  display:inline-flex;
  text-align: center;
  padding:10px;
  border-radius:100px;
  margin:10px;
  background-color: #121213ee;
}
.h2s{
  margin-left:10px;
  border:solid 2px rgb(56, 109, 165);
  border-radius: 1.15rem;
  padding:30px;
  width:300px;
  text-align: center;
  justify-content: center;
  margin-left:38%;
  
}
.block-background1 p{
  text-align:left;
  justify-content: center;
  margin:5px;
  color: #f1f1f1;
  padding:30px;
  background-color:rgb(56, 109, 165);
  flex:60%;
  border-radius:1.25rem;
  height: fit-content;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.block-img{
  width:40%;
  margin:5px;
  border-radius:1.25rem;
  
}


div.block-background2{
  display:inline-flex;
  text-align: center;
  padding:10px;
  border-radius:100px;
  margin:10px;
  background-color:rgb(56, 109, 165);
}
.h2d{
  margin-right: 30px;
  border:solid 2px rgb(251, 252, 255);
  border-radius: 1.15rem;
  background-color:rgb(56, 109, 165) ;
  padding:20px;
  width:300px;
  color: #f1f1f1; 
  text-align: center;
  justify-content: center;
  margin-left:38%;
}
.block-background2 p{
  text-align:left;
  margin:5px;
  color: #000000;
  padding:15px;
  flex:60%;
  background-color: lightgray;
  height: fit-content;
  border-radius:1.25rem;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;


}
.block-img2{
  width:40%;
  margin:5px;
  border-radius:1.25rem;
  
}
  

/* from pagina contattaci */
 form{
  display:block;
  flex-direction: column;
  margin: 15px;
  background-color:rgb(10, 39, 70);
  padding: 10px;
  border:solid 1px lightslategrey;
  border-radius:8px;
  gap:10px;
  
 }
 label{
  color: #f1f1f1;
  padding: 10px;
 }
 
input{
  padding:5px;
  width:400px;
  margin:2px;
  border-radius:1.25rem;
  
  
}
  textarea{
    display: flex;
    padding:10px;;
    width:91%;
    max-width:1100px;;
    height:500px;
    max-height:500px;
    border-radius:0.95rem;
  }
  #invio_dati{
    background-color:rgb(8, 229, 115) ;
    padding: 5px;
    color: #f1f1f1;
    border-radius:1.25rem;
    flex:5%;
  }
#invio_dati:hover{
    background-color: #0a7d1b;
    font-size:1.25rem;

  }

 #preventivo{
  text-align:top;
 }

button.send{
  background-color: #4CAF50; 
  border: none; 
  color: white; 
  padding: 25px 32px; 
  text-align: center;
  text-decoration: none; 
  display: inline-block; 
  font-size: 16px; 
  margin: 4px 2px; 
  cursor: pointer; 
  border-radius: 12px; 
  transition: background-color 0.3s ease
}

button.send :hover{
  background-color: aliceblue;
}

.infoC{
display: inline-flex;
justify-content: center;
gap:40px;
padding: 30px;
width: 100%;

}
/* pagina about google-map */

div.box-map{
  margin-top: 100px;
  display: flex;
  justify-content: center;
  background-color: #000000;
  padding: 10px;
  
}
.google-maps {
  position: fixed;
  display:inline-flex;
  
}
.google-maps iframe {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left:0;
  
}
/*scroll pagine */
.fade-in {
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
}
/*menu tendina */
.menut{
  display: none;
}

.menu2 a {
  text-decoration: none;
  color: #1E1E23;
  opacity:1;
  font-family: 'work sans', sans serif;
  font-size: 1.5em;
  font-weight: 400;
  transition: 200ms;
}
#menu2 a:hover {
  opacity:0.5;
}
#menu2 ul {
  padding: 0;
  list-style-type: none;
  text-decoration: none;
}
.menut{
  position:sticky;
  top:0;
  padding: 30px;
  z-index: 100;
  background-color:rgb(0, 0, 0);
  height: 65px;
  margin-bottom:20px;
  
}

#menu2Toggle {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 25px;
  left: 25px;
  z-index: 1;
  -webkit-user-select: none;
  -moz-user-select:none;
  user-select: none;
}

#menu2Toggle input
{
  display: flex;
  width: 40px;
  height: 32px;
  position: absolute;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

#menu2Toggle span
{
  display: flex;
  width: 29px;
  height: 2px;
  margin-bottom: 5px;
  position: relative;
  background: #ffffff;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 5px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menu2Toggle span:first-child
{
  transform-origin: 0% 0%;
}

#menu2Toggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

#menu2Toggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-3px, -1px);
  background: #36383F;
}
#menu2Toggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menu2Toggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

#menu2
{
  position: absolute;
  width: 180px;
  height: 400px;
  box-shadow: 0 0 10px #85888C;
  margin: -50px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  background-color: #f5f6fa;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translate(-110%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
  list-style-type: none;
  text-decoration: none;
  
}

#menu2 li
{
  padding: 10px 0;
  transition-delay: 2s;
  text-decoration: none;
  
}

#menu2Toggle input:checked ~ ul
{
  transform: none;
}
.logow{
  width: 60px;
  height:60px;

}
.about{
  display: inline-flex;
  flex-direction: column;
}
.about1{
  display: inline-flex;
  padding:20px; 
  margin:10px;
  background-color:rgb(56, 109, 165) ;
  border-radius:1.25rem;
}
.about1 p{
  width:60%;
  color: #f1f1f1;
}
.imgabout {
  width: 40%;
  border-radius:1.25rem;
}
.about2{
  padding: 20px;
  justify-content: center;
  border: 1px solid black;
  margin:10px;
  border-radius:1.25rem;
}
.about2 p{
  border: 1px solid black;
  border-radius: 1.25rem;
  color: #f1f1f1;
  background-color: black;
  padding:20px;
}
.about3{
  display: flex;
  justify-content: center;
  align-items: center;
}
.imgabout{
  width: 70%;
  padding:20px;
  border-radius:1.20rem;

}

 @media only screen and (max-width:600px){

  body{
    display:flex;
    flex-direction: column;
    font-size: 100%;
    margin:0;
    border:0;
    justify-content: center;
    align-items: center;
    align-content:center;
  
    
    
  }
  p{
    font-size:0.875em; 
  }
  h1{
   width:100%;
   justify-content: center;
  }
  h2{
    flex: 100%;
  }
  .header{
     flex:100%;
     margin:0;
     position:sticky;
     top:0;
     z-index: 100;
        
     
  }
   span.titlecard{
    display:block;
    flex: 100%;
    height: auto;
   }
   span.titlecard p{
    width:180px;
   }
  div.container{
    display:flex;
    flex-direction: column;
   
  }
  div.column{
    margin:15%;
    flex: 100%;
  }
  img.imgcard{
    width:200px;
    height:150px;
  }
  .pcard{
    width:200px;
  }
  div.card{
    display: flex;
    flex-direction: column;
    width:280px;
  }
  /*servizi*/
  div.block-background1{
    display: flex;
    flex-wrap: wrap;
    margin:2px;
  }
  div.block-background1 p{
    width: 100%;
  }
  .block-img{
    width:100%;
    margin: 0;
    
  }
  .h2s{
    margin-left:10px;
  }
  .h2d{
    margin-left:30px;
  }
  div.block-background2{
    flex-wrap: wrap;

    
  }
 
  .block-img2{
    width:100%;
    margin-left:5px;
    
  }
  .place-card{
    top:0;
    left:0;

  }
  div.gallery{
    margin:0;
  }
  .gallery-item{
    display: flex;
    flex-wrap:wrap;
    flex:100%;
    margin: 18px;
    border-radius:1.25rem;
    justify-content: center;
    
  }
  .gallery-item img{
    width: 350px;
  }
  .buttong{
   margin-left: 120px;
  }
  .footerul{
    width:420px;
    margin:0 0 0;
  }
  input{
    width:280px;
  }
  .infodiv1{
    display: block;


  }
  #menu{
    display:none;

  }
  nav.menut{
    width: 400px;;
    padding:50px;
    display:block;
    margin:0;
  }
  .menut li a{
    text-decoration: none;
  }
  .logo{
    display: none;
  }
  .footerul{
   width:360px;
  }

  footer{
    display:block;
    flex-direction: column;
    font-size: medium;
    width:390px;
    gap:8px;
    overflow: hidden;
    margin-top: 30px;
    
  }
  h3{
    margin-left:10px;
  }
  h4{
  margin-left: 20px;
  justify-content: center;
  align-items: center;
  }
  .logow{
     width:50px;
     height:50px;
  }
  section.infoC{
    padding:8px;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap:2px;
    
  }
  .box-map{
    border:2px solid black;
    width:350px;
    height:400px;
   
    
  }
  #google-maps iframe{
    width:330px;
    height:400px;
      
  }
  footer p{
    justify-content: center;
    align-items: center;
    margin-left:20px;
  }
  .about1 {
    display:flex ;
    flex-direction: column;
  }
  .imgabout{
   width:100%;
  }
  .about1 p {
    width:100%;
  }
  
 }