* {box-sizing: border-box}

html{height: auto;
  width: 100%;
  overflow-x: hidden;
font-family: "Montserrat";}


b{font-weight: bold;}

a{color:black}
a:hover{text-decoration: none}

.spazio1rem{height:1rem;}
.spazio2rem{height:2rem;}
.spazio3rem{height:3rem;}
.spazio4rem{height:4rem;}
.spazio5rem{height:5rem;}
.spazio6rem{height:6rem;}
.spazio7rem{height:7rem;}
.spazio8rem{height:8rem;}
.spazio9rem{height:9rem;}
.spazio10rem{height:10rem;}

.testa_img{height:75vh;
background-repeat: no-repeat;
background-size: 100% auto;
background-position: center;
background-attachment: fixed;
background-image: url(../img/eco-felt.jpg);}

h1{color:#ffffff;
font-size:4rem;
text-align: left;}

.testa_img h2{color:#eaeaea;
font-size:1.8rem;
text-align: left;}



.testa-home{height:70vh;
  background-image: url(../img/testahome.png);
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% auto;}


/* menu */

.topnav {
  position:fixed;
  width:100%;top:0;left:0;
  overflow: hidden;
  background-color: #626261;
  z-index:1
}


.topnav a {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 20px 40px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ff6319;
  color: white;
  text-decoration: none;
}


.topnav a.active {
  background-color: white;
  color: white;
}

.topnav a.contattii{float:right}

.topnav .icon {
  display: none;
}


/* slider */



.mySlides {display: none}


/* Slideshow container */
.slideshow-container {
  width: 100%; height:80vh; overflow-y:hidden;
  /*position: relative;*/
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 5rem;
  padding: 8px 12px;
  position: absolute;
  top: 10vh;
  width: 100%;
  text-align: center
}

.text h2{color:white;font-size:1.6rem;}
.text h3{font-size:1.2rem;color:#eaeaea; letter-spacing:0.1rem}

/* Number text (1/3 etc) */

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.faden {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}


/* footer */

.foot{height:auto; background-color: #626261;
background-attachment: fixed;}





/* materiali */

.mat{height:auto; width:90%; background-color: white; float:left;}

.mat:hover{background-color: #eaeaea}
.mat:hover a{text-decoration: none;}
.mat:hover h2{color:#ff6319;}

.mat:hover .bot_or{color:#ff6319}

.bot_or{float:left; margin-bottom:1.5rem;}

.icona_mat{ width:4rem;height:4rem;margin-left:1rem; margin-top:2rem; padding:0}

.ico01{background-image: url(../img/salpa_ico.png);background-size: 100% auto; background-position: left; background-repeat: no-repeat;}
.ico02{background-image: url(../img/milk_ico.png);background-size: 100% auto; background-position: left; background-repeat: no-repeat;}
.ico03{background-image: url(../img/corn_ico.png);background-size: 100% auto; background-position: left; background-repeat: no-repeat;}
.ico04{background-image: url(../img/ecopu_ico.png);background-size: 100% auto; background-position: left; background-repeat: no-repeat;}
.ico05{background-image: url(../img/cotton_ico.png);background-size: 100% auto; background-position: left; background-repeat: no-repeat;}
.ico06{background-image: url(../img/net_ico.png);background-size: 100% auto; background-position: left; background-repeat: no-repeat;}

.mat h2{
  font-size:1.5rem;
  color:#ff6319;
  font-family: "Montserrat"; font-weight: bold; margin-top:1.5rem; margin-left:1rem
}

.mat h3{font-size:0.8rem; line-height: 1.5rem; color:#626261; font-family: "Montserrat"; margin-top:1.5rem; margin-left:1rem}


/* materiali descrizione + foto */

.grigio{background-color: white; height:auto; padding:4rem}
.text-mat h2{font-size:1.5rem; color:#ff6319; text-align: left;font-family: "Montserrat"; padding-left:2rem; padding-right:2rem; padding-bottom:2rem}
.text-mat h3{padding-left:2rem;padding-right:2rem; padding-bottom:2rem;font-size:0.8rem; color:#626261; text-align: left; font-family: "Montserrat"; line-height: 1.5rem;}


.materiale01{background-image: url(../img/sf_salpa.jpg); height:20vh; background-size: 100% auto; background-attachment:fixed;}
.materiale02{background-image: url(../img/sf_milk.jpg); height:20vh; background-size: 100% auto; background-attachment:fixed;}
.materiale03{background-image: url(../img/sf_mais.jpg); height:20vh; background-size: 100% auto; background-attachment:fixed;}
.materiale04{background-image: url(../img/sf_eco-pu.jpg); height:20vh; background-size: 100% auto; background-attachment:fixed;}
.materiale05{background-image: url(../img/sf_cotton.jpg); height:20vh; background-size: 100% auto; background-attachment:fixed;}
.materiale06{background-image: url(../img/sf_net.jpg); height:20vh; background-size: 100% auto; background-attachment:fixed;}

.prossimo_mat i, .prev_mat i{ font-size:4rem;cursor: pointer; color:#626261}
.prossimo_mat i:hover, .prev_mat i:hover{color:#ff6319}

#change_01{display:block;}
#change_02, #change_03, #change_04, #change_05, #change_06{display: none}



.foto_totem{height:auto;background-position: top; background-repeat: no-repeat; background-size: auto 100%}

.totem01{background-image: url(../img/tot01.jpg);}
.totem02{background-image: url(../img/tot02.jpg);}
.totem03{background-image: url(../img/tot03.jpg);}
.totem04{background-image: url(../img/tot04.jpg);}
.totem05{background-image: url(../img/tot05.jpg);}
.totem06{background-image: url(../img/tot06.jpg);}

.slide_01, .slide_02{width: 100%; opacity:0.4}

.nodesk{display: none}
.nomob{display:block;}

.topnav a.lingua{float:right}


.tornasu{display: none;}







@media screen and (max-width: 600px) {
  .testa-home{

  background-size: auto 100%;}

  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav.responsive {position: fixed;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
    color:#626261
  }

.img-mat{display: none}
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
    .topnav a.contattii{float:none;}

    .testa_img{background-size:auto 100%;}

    .slide_01, .slide_02{height:80vh; width: auto;overflow-x: hidden;}

    .mat01, .mat03, .mat05{background-color: #eaeaea}

    .materiale01, .materiale02, .materiale03, .materiale04, .materiale05, .materiale06{background-size: auto 100%; height:30vh;}

    .spazio10rem{height:5rem;}

    .nodesk{display: block}
    .nomob{display:none;}

    #change_01, #change_02, #change_03, #change_04, #change_05, #change_06{display: block;}

    .foto_totem {
    height: 50vh;;
    background-position: top;
    background-repeat: no-repeat;
    background-size: 90% auto;
}
    .topnav a.lingua{float:none;}


.tornasu{display: block;
  position: fixed;
  bottom:5vh;
  right:10vw;
  width: 3rem;
  height: 3rem;

  background-image: url(../img/frecciasu.png);
  background-position: center;
  background-size: 100% auto;
  background-repeat: no-repeat;


}


html{overflow-x: 0}

    }

@media (min-width: 601px) and (max-width: 1199px){
  .materiale01, .materiale02, .materiale03, .materiale04, .materiale05, .materiale06{background-size: 100% auto; height:30vh;background-repeat: no-repeat;}
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav.responsive {position: fixed;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
    color:#626261
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .text {
    color: #f2f2f2;
    font-size: 5rem;
    padding: 8px 12px;
    position: absolute;
    top: 20vh;
    width: 100%;
    text-align: center
  }
  .text img{width:40%; margin:0 auto; margin-top:-1rem}
  .text h2{font-size:1.2rem; margin-top:0;}
  .text h3{font-size:0.8rem}

  .slideshow-container{height:100vh;}

  .materiale01, .materiale02, .materiale03, .materiale04, .materiale05, .materiale06{background-size: 100% auto; height:30vh;background-repeat: no-repeat;}

  .foto_totem {
  height: 40vh;
  background-position: top;
  background-repeat: no-repeat;
  background-size: auto 80%;
  }

  div.slideshow-container{height:70vh;}

}



@media (min-width: 1200px) and (max-width: 1240px) {
  .foto_totem {
  height: 40vh;
  background-position: top;
  background-repeat: no-repeat;
  background-size: 60% auto;
  }

  .notab{display:none}

  .materiale01, .materiale02, .materiale03, .materiale04, .materiale05, .materiale06{background-size: auto 100%; height:30vh;background-repeat: no-repeat;}
      #change_01, #change_02, #change_03, #change_04, #change_05, #change_06{display: block;}



 }
