
*{box-sizing: border-box}

img{
  vertical-align: middle;
  width: 100%;
  /* opacity: 0.8; */
}

body{
  /* background-color: #fbfbfb; */
  background-color: rgba(233,233,233, 1);
  cursor: default;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

a{
  text-decoration: none;
  background-color: transparent;
  color:  #072681;
}

.navbar{
  width: 100%;
  height: 100px;
  background-color: transparent;
  position: relative;
  padding: .5rem 1rem;
}

.navbar-nav{
  width: 80%;
  display: flex;
  flex-direction: row;
  list-style: none;
}

#navbarSupportedContent{
  display: flex;
  margin-left: auto;
  align-items: center;
}

.nav-li{
  margin-left: 2rem;
  list-style: none;
  border-left: 1px solid #072681;
}

.nav-link{
  padding-left: 2rem;
  padding-right: 2rem;
  list-style: none;
  display: block;
  font-size: 1.8rem;
}

.nav-link:hover{transform: scale(1.15);}

.navbar .icon {display: none;}

.langmenu{
  margin-right: 15px;
  float: right;
  margin-top: -60px;
}

.lang{
  margin-left: 1rem;
  border-left: 1px solid #072681;
  letter-spacing: .15rem;
  font-size: 1rem;
}

.logo{
  display: inline-block;
  vertical-align: top;
  float: left;
  width: 225px;
  height: 80px;
  opacity: 1;
}

.logo:hover{
  background-color: inherit;
  color: inherit;
}

.slide-container{
  width:100%;
  height: 56vh;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.slide{display: none;}

.didascalia{
  color: #fbfbfb;
  /* background-color: rgba(0,0,0,0.6); */
  background-color: rgba(7, 38, 129,0.8);
  font-size: 40px;
  text-align: left;
  /* margin-left: 5px; */
  padding: 8px 12px;
  position: absolute;
  bottom: 0px;
  width: 60%;
}

#footer {
  padding: 1.5vw 0 0;
}

#footer * { line-height: 180%; }

.shadow {
  position: relative;
  box-shadow: 0 0 25px rgba(97, 97, 97, .52);
}

footer{
  padding: 0;
  text-align: left;
  color: #072681;
}

#footer-bottom{
  padding-bottom: 1rem;
  padding-top: 1rem;
  margin-top: 3rem;
  height: 10px;
  background-color: #072681;
  color: #fbfbfb;
  display: block;
}

h3, h4, h5, h6{
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}

h6{
  font-size: .6rem;
  text-align: center;
  margin-top: -.5rem;
}

h5{font-size: 1.3rem;}

h4{font-size: 2rem;}

address{
    margin-bottom: 1rem;
    font-style: normal;
    line-height: inherit;
}

.footer_container{
    margin-right: auto;
    margin-left: 4vw;
}

.row{
    display: flex;
    flex-wrap: wrap;
}

.col{
  flex: 0 0 50%;
  position: relative;
  width: 100%;
}

.contact{
  padding-left: 3rem;
  margin-top: 0;
  border-left: 1px solid #072681;
}

#social-icons{ padding: 0.75rem 0; }

#social-icons img{
      width: 2.25rem;
      padding: 0 0.25rem;
      transition: all .2s; }

#social-icons img:hover{transform: scale(1.15); }

#prodotti{
  color: #072681;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 2rem;
}

.art{
  flex: 0 0 50%;
  position: relative;
}

article{padding-bottom: 1rem;}

#prodotti div{display: inline-block;}

#prodotti:nth-of-type(1) figure{ background-image: url("../images/in-line/in-line1.jpg");}
#prodotti:nth-of-type(2) figure{ background-image: url("../images/spc/spc-1.jpg");}
#prodotti:nth-of-type(3) figure{ background-image: url("../images/assembly/assembly-1.jpg");}
#prodotti:nth-of-type(4) figure{ background-image: url("../images/nd/nd-1.jpg");}
#prodotti:nth-of-type(5) figure{ background-image: url("../images/marcatura/marcatura-1.jpg");}
#prodotti:nth-of-type(6) figure{ background-image: url("../images/nvh/nvh-1.jpg");}
#prodotti:nth-of-type(7) figure{ background-image: url("../images/vision/vision-1.jpg");}
#prodotti:nth-of-type(8) figure{ background-image: url("../images/gear/gear-1.jpg");}
#prodotti:nth-of-type(9) figure{ background-image: url("../images/tpi/tpi-1.jpg");}
#prodotti:nth-of-type(10) figure{ background-image: url("../images/asa/asa-1.jpg");}
/*#prodotti:nth-of-type(11) figure{ background-image: url("../images/img31.jpg");} */

#prodotti figure{
    width:60%;
    height: 200px;
    box-shadow: 0 0 25px rgba(97, 97, 97, .52);
    background-repeat: no-repeat;
    overflow-x: visible;
}

#prodotti h3{
    font-size: 2.5rem;
    font-weight: bold;
}

#prodotti p{
  font-size: 1rem;
  line-height: 180%;
  margin: 1.25rem 0 2rem;
}

.presentazione{
  color: #072681;
  font-size: 1.2rem;
  line-height: 180%;
  padding: 2rem;
  padding-top: 0;
}

.clienti{
  width:100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.logoClienti{
  display: flex;
  flex-wrap: wrap;

}

.logoClienti a{
  padding: 1rem;
}

.logoClienti img{
  padding: 1rem;
  width: 225px;
  height: 100px;
  opacity: 0.7;
}

.logoClienti img:hover{
  transform: scale(1.15);
  opacity: 1;
}


/* *********************************** */
/* *********************************** */

@media screen and (max-width: 1599px){
  #prodotti:nth-of-type(1) figure{ background-image: url("../images/in-line/in-line71.jpg");}
  #prodotti:nth-of-type(2) figure{ background-image: url("../images/spc/spc-71.jpg");}
  #prodotti:nth-of-type(3) figure{ background-image: url("../images/assembly/assembly-71.jpg");}
  #prodotti:nth-of-type(4) figure{ background-image: url("../images/nd/nd-71.jpg");}
  #prodotti:nth-of-type(5) figure{ background-image: url("../images/marcatura/marcatura-71.jpg");}
  #prodotti:nth-of-type(6) figure{ background-image: url("../images/nvh/nvh-71.jpg");}
  #prodotti:nth-of-type(7) figure{ background-image: url("../images/vision/vision-71.jpg");}
  #prodotti:nth-of-type(8) figure{ background-image: url("../images/gear/gear-71.jpg");}
  #prodotti:nth-of-type(9) figure{ background-image: url("../images/tpi/tpi-71.jpg");}
  #prodotti:nth-of-type(10) figure{ background-image: url("../images/asa/asa-71.jpg");}
}

@media screen and (max-width: 1399px){

  #prodotti:nth-of-type(1) figure{ background-image: url("../images/in-line/in-line61.jpg");}
  #prodotti:nth-of-type(2) figure{ background-image: url("../images/spc/spc-61.jpg");}
  #prodotti:nth-of-type(3) figure{ background-image: url("../images/assembly/assembly-61.jpg");}
  #prodotti:nth-of-type(4) figure{ background-image: url("../images/nd/nd-61.jpg");}
  #prodotti:nth-of-type(5) figure{ background-image: url("../images/marcatura/marcatura-61.jpg");}
  #prodotti:nth-of-type(6) figure{ background-image: url("../images/nvh/nvh-61.jpg");}
  #prodotti:nth-of-type(7) figure{ background-image: url("../images/vision/vision-61.jpg");}
  #prodotti:nth-of-type(8) figure{ background-image: url("../images/gear/gear-61.jpg");}
  #prodotti:nth-of-type(9) figure{ background-image: url("../images/tpi/tpi-61.jpg");}
  #prodotti:nth-of-type(10) figure{ background-image: url("../images/asa/asa-61.jpg");}
}

@media screen and (max-width: 1199px){

  #prodotti:nth-of-type(1) figure{ background-image: url("../images/in-line/in-line51.jpg");}
  #prodotti:nth-of-type(2) figure{ background-image: url("../images/spc/spc-51.jpg");}
  #prodotti:nth-of-type(3) figure{ background-image: url("../images/assembly/assembly-51.jpg");}
  #prodotti:nth-of-type(4) figure{ background-image: url("../images/nd/nd-51.jpg");}
  #prodotti:nth-of-type(5) figure{ background-image: url("../images/marcatura/marcatura-51.jpg");}
  #prodotti:nth-of-type(6) figure{ background-image: url("../images/nvh/nvh-51.jpg");}
  #prodotti:nth-of-type(7) figure{ background-image: url("../images/vision/vision-51.jpg");}
  #prodotti:nth-of-type(8) figure{ background-image: url("../images/gear/gear-51.jpg");}
  #prodotti:nth-of-type(9) figure{ background-image: url("../images/tpi/tpi-51.jpg");}
  #prodotti:nth-of-type(10) figure{ background-image: url("../images/asa/asa-51.jpg");}

  .navbar-nav{
   margin-left: -20px;
   }

  .langmenu{
    margin-top: -46px;
  }

  .logo{
    display: block;
    width: 195px;
    height: 70px;
  }

  .nav-link{
    font-size: 1.3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .didascalia{
    font-size: 25px;
  }

  #prodotti figure {
        height: 150px;
      }

  #prodotti h3 {
      font-size: 2rem
  }
}

@media screen and (max-width: 999px){

  #prodotti:nth-of-type(1) figure{ background-image: url("../images/in-line/in-line41.jpg");}
  #prodotti:nth-of-type(2) figure{ background-image: url("../images/spc/spc-41.jpg");}
  #prodotti:nth-of-type(3) figure{ background-image: url("../images/assembly/assembly-41.jpg");}
  #prodotti:nth-of-type(4) figure{ background-image: url("../images/nd/nd-41.jpg");}
  #prodotti:nth-of-type(5) figure{ background-image: url("../images/marcatura/marcatura-41.jpg");}
  #prodotti:nth-of-type(6) figure{ background-image: url("../images/nvh/nvh-41.jpg");}
  #prodotti:nth-of-type(7) figure{ background-image: url("../images/vision/vision-41.jpg");}
  #prodotti:nth-of-type(8) figure{ background-image: url("../images/gear/gear-41.jpg");}
  #prodotti:nth-of-type(9) figure{ background-image: url("../images/tpi/tpi-41.jpg");}
  #prodotti:nth-of-type(10) figure{ background-image: url("../images/asa/asa-41.jpg");}

  .navbar-nav{
   margin-left: -50px;
   }


  .langmenu{
    margin-top: -41px;
  }

  .nav-link{
    font-size: 1rem;
    padding-left: .4rem;
    padding-right: .6rem;
  }

  .didascalia{
    font-size: 15px;
  }

  #prodotti h3 {
      font-size: 1.7rem
  }

  #prodotti p {
    font-size: .8rem;
  }
}

@media screen and (max-width: 799px){

  #prodotti:nth-of-type(1) figure{ background-image: url("../images/in-line/in-line31.jpg");}
  #prodotti:nth-of-type(2) figure{ background-image: url("../images/spc/spc-31.jpg");}
  #prodotti:nth-of-type(3) figure{ background-image: url("../images/assembly/assembly-31.jpg");}
  #prodotti:nth-of-type(4) figure{ background-image: url("../images/nd/nd-31.jpg");}
  #prodotti:nth-of-type(5) figure{ background-image: url("../images/marcatura/marcatura-31.jpg");}
  #prodotti:nth-of-type(6) figure{ background-image: url("../images/nvh/nvh-31.jpg");}
  #prodotti:nth-of-type(7) figure{ background-image: url("../images/vision/vision-31.jpg");}
  #prodotti:nth-of-type(8) figure{ background-image: url("../images/gear/gear-31.jpg");}
  #prodotti:nth-of-type(9) figure{ background-image: url("../images/tpi/tpi-31.jpg");}
  #prodotti:nth-of-type(10) figure{ background-image: url("../images/asa/asa-31.jpg");}

   .navbar-nav{
    width: 100%;
    padding-left: 0;
    margin-left: -40px;
    }

  .logo{
    display: block;
    float: none;
  }

  .langmenu{
    margin-top: -111px;
  }

  .nav-link{
    padding-left: .7rem;
    padding-right: 0;
    font-size: 1.2rem;
  }

  .didascalia{
    width: 60%;
  }

  .slide-container{
    margin-top: -20px;
    height: 45vh;
  }

  .row{
    display: block;
    font-size: 0.8rem;
  }

  .contact{
    padding-left: 0;
    padding-top: 0.8rem;
    padding-bottom: 0;
    width: 94%;
    border-left: none;
    border-top: 1px solid #072681;
  }

  .p{
    padding: 0;
    margin: 0;
  }

  #social-icons{
    padding-bottom: 1.5rem;
  }

  h4{
      font-size: 1.5rem;
  }

  h5{
      font-size: 1.2rem;
  }

  #footer-bottom{
    margin-top: 1.2rem;
  }

  #prodotti h3 {
    font-size: 1.4rem
  }

  #prodotti p {
    font-size: .7rem;
  }
}

@media screen and (max-width: 599px){

  #prodotti:nth-of-type(1) figure{ background-image: url("../images/in-line/in-line21.jpg");}
  #prodotti:nth-of-type(2) figure{ background-image: url("../images/spc/spc-21.jpg");}
  #prodotti:nth-of-type(3) figure{ background-image: url("../images/assembly/assembly-21.jpg");}
  #prodotti:nth-of-type(4) figure{ background-image: url("../images/nd/nd-21.jpg");}
  #prodotti:nth-of-type(5) figure{ background-image: url("../images/marcatura/marcatura-21.jpg");}
  #prodotti:nth-of-type(6) figure{ background-image: url("../images/nvh/nvh-21.jpg");}
  #prodotti:nth-of-type(7) figure{ background-image: url("../images/vision/vision-21.jpg");}
  #prodotti:nth-of-type(8) figure{ background-image: url("../images/gear/gear-21.jpg");}
  #prodotti:nth-of-type(9) figure{ background-image: url("../images/tpi/tpi-21.jpg");}
  #prodotti:nth-of-type(10) figure{ background-image: url("../images/asa/asa-21.jpg");}

  .nav-link{
    padding-left: .5rem;
    font-size: .9rem;
  }

  .navbar{
    height: 80px;
  }

  .didascalia{
    width: 65%;
  }

  .langmenu{
    margin-right: 5px;
  }

  .lang{
    font-size: .8rem;
    letter-spacing: .1rem;
  }

  #prodotti{
    display: inline-block;
  }

  #prodotti figure {
    width:100%;
    margin-left: -10px;
    margin-top: -10px;
  }

  #prodotti p {
    margin-top: .7rem;
    margin-bottom: 1.5rem;
  }

  .presentazione p {
    font-size: .7rem;
    line-height: 140%;
  }

}

@media screen and (max-width: 399px){

  #prodotti:nth-of-type(1) figure{ background-image: url("../images/in-line/in-line11.jpg");}
  #prodotti:nth-of-type(2) figure{ background-image: url("../images/spc/spc-11.jpg");}
  #prodotti:nth-of-type(3) figure{ background-image: url("../images/assembly/assembly-11.jpg");}
  #prodotti:nth-of-type(4) figure{ background-image: url("../images/nd/nd-11.jpg");}
  #prodotti:nth-of-type(5) figure{ background-image: url("../images/marcatura/marcatura-11.jpg");}
  #prodotti:nth-of-type(6) figure{ background-image: url("../images/nvh/nvh-11.jpg");}
  #prodotti:nth-of-type(7) figure{ background-image: url("../images/vision/vision-11.jpg");}
  #prodotti:nth-of-type(8) figure{ background-image: url("../images/gear/gear-11.jpg");}
  #prodotti:nth-of-type(9) figure{ background-image: url("../images/tpi/tpi-11.jpg");}
  #prodotti:nth-of-type(10) figure{ background-image: url("../images/asa/asa-11.jpg");}

  #prodotti{
    padding-left: 1rem;
  }

  .navbar{
    margin-top: -10px;
    height: 70px;
  }

  .logo{
    width: 167px;
    height: 60px;
  }

  .langmenu{
    margin-right: -8px;
    margin-top: -109px;
  }

  .nav-link{
    font-size: 0.8rem;
    padding-left: .4rem;
  }

  .row{
    display: block;
    font-size: 0.7rem;
  }

  #prodotti h3 {
    font-size: 1rem
  }

  #prodotti p {
    font-size: .7rem;
  }

  #prodotti figure {
    height: 110px;
  }

  .logoClienti img{
    padding: 0;
    width: 56px;
    height: 28px;
    opacity: 1;
  }

  .logoClienti img:hover{
    transform: scale(1);
    opacity: 1;
  }

  .clienti{
    height: 40vh;
  }
}

@media screen and (max-width: 365px){

  .langmenu{
    margin-top: -111px;
  }

  .nav-link{
    font-size: 0.7rem;
    padding-left: .2rem;
  }

}

/* *********************************** */
/* *********************************** */

@media screen and (max-height: 1300px) and (max-width: 999px){
  .slide-container{
    height: 20vh;
  }
}

@media screen and (max-height: 1200px) and (max-width: 899px){
    .slide-container{
      height: 27vh;
    }

    .didascalia{
      font-size: 1.2rem;
      width: 100%;
    }
}

@media screen and (max-height: 1100px) and (max-width: 799px){
    .slide-container{
      height: 24vh;
    }
}

@media screen and (max-height: 900px) and (max-width: 599px){
    .slide-container{
      height: 20vh;
    }

    .didascalia{
      height: 6.3vh;
      font-size: 1.1rem;
      width: 100%;
    }
}

@media screen and (max-height: 820px) and (max-width: 399px){

    .slide-container{
      height: 23vh;
    }

    .didascalia{
      height: 8.9vh;
      width: 100%;
      font-size: 1.1rem;
    }
}

@media screen and (max-height: 660px) and (max-width: 365px) {

  .slide-container{
    height: 26.5vh;
  }

  .didascalia{
    height: 9.3vh;
    width: 100%;
    font-size: 1.1rem;
  }
}
