@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);

#cssmenu{
  max-width: 1180px;
  background-color: #e3e6e7;
  font-family: 'Ubuntu', sans-serif,Arial, Helvetica;
  font-weight: 400;
  line-height: 1;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0px auto;
  /*bottom: -25px;*/
  z-index: 999;
  -webkit-box-shadow: 0px 7px 12px 0px rgba(0,0,0,0.52);
  -moz-box-shadow: 0px 7px 12px 0px rgba(0,0,0,0.52);
  box-shadow: 0px 7px 12px 0px rgba(0,0,0,0.52);
}

#top_cssmenu{
  width: 100%;
  background-color: #a3abb1;
  font-family: 'Ubuntu', sans-serif,Arial, Helvetica;
  font-weight: 500;
  line-height: 1;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border-bottom: 1px solid #333333;
}

#cssmenu ul{
  margin: 0;
  padding: 0;
  border: 0;
  width: 1100px;
  margin-right: auto;
  margin-left: auto;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#top_cssmenu ul{
  margin: 0;
  padding: 0;
  border: 0;
  float: right;
  text-align: right;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button,
#top_cssmenu ul li,
#top_cssmenu ul li a,
#top_cssmenu #menu-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#cssmenu:after,
#cssmenu > ul:after,
#top_cssmenu:after,
#top_cssmenu > ul:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
#cssmenu #menu-button,
#top_cssmenu #menu-button {
  display: none;
}

#menu-line,
#menu-line {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: #009ae1;
  -webkit-transition: all 0.25s ease-out;
  -moz-transition: all 0.25s ease-out;
  -ms-transition: all 0.25s ease-out;
  -o-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
}
#cssmenu > ul > li,
#top_cssmenu > ul > li {
  float: left;
}
#cssmenu.align-center > ul,
#top_cssmenu.align-center > ul {
  font-size: 0;
  text-align: center;
}
#cssmenu.align-center > ul > li,
#top_cssmenu.align-center > ul > li {
  display: inline-block;
  float: none;
}
#cssmenu.align-center ul ul ,
#top_cssmenu.align-center ul ul {

  text-align: left;
}
#cssmenu.align-right > ul > li,
#top_cssmenu.align-right > ul > li {
  float: right;
}
#cssmenu.align-right ul ul,
#top_cssmenu.align-right ul ul {
  text-align: right;
}
#cssmenu > ul > li > a{
  padding: 18px 34px 18px 28px;
  font-size: 0.82em;
  text-decoration: none;
  text-transform: uppercase;
  color: #666666;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
}
#top_cssmenu > ul > li > a {
  padding: 10px 20px;
  font-size: 0.77em;
  text-decoration: none;
  text-transform: uppercase;
  color: #ffffff;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
}
#cssmenu > ul > li:hover > a,
#cssmenu > ul > li.active > a{
  color: #96bf0d;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
}

#top_cssmenu > ul > li:hover > a,
#top_cssmenu > ul > li.active > a {
  color: #333333;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
}
#cssmenu > ul > li.has-sub > a{
   /*padding-right: 25px;*/
    color: #ffffff;
}
#top_cssmenu > ul > li.has-sub > a {
  /*padding-right: 25px;*/
    color: #ffffff;
}

#cssmenu > ul > li.has-sub:hover > a,
#top_cssmenu > ul > li.has-sub:hover > a {
  color: #666666;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
}

#cssmenu > ul > li.has-sub > a::after,
#top_cssmenu > ul > li.has-sub > a::after {
  display: none;
  position: absolute;
  top: 21px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
  content: "";
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-transition: border-color 0.2s ease;
  -moz-transition: border-color 0.2s ease;
  -ms-transition: border-color 0.2s ease;
  -o-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}
#cssmenu > ul > li.has-sub:hover > a::after,
#top_cssmenu > ul > li.has-sub:hover > a::after {
  border-color: #009ae1;
}
/*IMPOSTO LA LARGHEZZA DEI SOTTOMENU*/
#cssmenu ul ul,
#top_cssmenu ul ul {
  position: absolute;
  left: -9999px;
  width: 270px;
  background: #666666;
  padding-bottom: 4px;
  z-index: 99999999;
}
#cssmenu li:hover > ul,
#top_cssmenu li:hover > ul {
  left: auto;
}
#cssmenu.align-right li:hover > ul,
#top_cssmenu.align-right li:hover > ul {
  right: 0;
}
#cssmenu ul ul ul,
#top_cssmenu ul ul ul {
  margin-left: 100%;
  top: 0;
}
#cssmenu.align-right ul ul ul,
#top_cssmenu.align-right ul ul ul {
  margin-left: 0;
  margin-right: 100%;
}
#cssmenu ul ul li,
#top_cssmenu ul ul li {
  height: 0;
  -webkit-transition: height .2s ease;
  -moz-transition: height .2s ease;
  -ms-transition: height .2s ease;
  -o-transition: height .2s ease;
  transition: height .2s ease;
}
#cssmenu ul li:hover > ul > li,
#top_cssmenu ul li:hover > ul > li {
  height: 36px;
}

/*STILE DELLE VOCI DEI SOTTOMENU*/
#cssmenu ul ul li a,
#top_cssmenu ul ul li a {
  padding: 12px 20px 12px 10px; ;
  width: 94%;
  margin-left: 3%;
  margin-right: 3%;
  border-top: 1px dotted #666666;
  font-size: 12px;
  text-decoration: none;
  color: #ffffff;
  text-align: left;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
}
#cssmenu ul ul li:first-child a,
#top_cssmenu ul ul li:first-child a {
  border: none;
}
/*QUANDO VADO SOPRA AD UNA VOCE DEL SOTTOMENU*/
#cssmenu ul ul li:hover > a,
#cssmenu ul ul li a:hover ,
#top_cssmenu ul ul li:hover > a,
#top_cssmenu ul ul li a:hover {
  color: #ffffff;
  background-color: #666666;
  -webkit-transition: background-color 0.2s ease;
  -moz-transition: background-color 0.2s ease;
  -ms-transition: background-color 0.2s ease;
  -o-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
#cssmenu ul ul li.has-sub > a::after,
#top_cssmenu ul ul li.has-sub > a::after {
  position: absolute;
  top: 13px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-bottom: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  content: "";
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transition: border-color 0.2s ease;
  -moz-transition: border-color 0.2s ease;
  -ms-transition: border-color 0.2s ease;
  -o-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}
#cssmenu.align-right ul ul li.has-sub > a::after,
#top_cssmenu.align-right ul ul li.has-sub > a::after {
  right: auto;
  left: 10px;
  border-bottom: 0;
  border-right: 0;
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
}
#cssmenu ul ul li.has-sub:hover > a::after,
#top_cssmenu ul ul li.has-sub:hover > a::after {
  border-color: #ffffff;
}


@media all and (max-width: 1180px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1180px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1180px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1180px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1180px), only screen and (min-resolution: 192dpi) and (max-width: 1180px), only screen and (min-resolution: 2dppx) and (max-width: 1180px) {
  #cssmenu ul{
    width: 983px;
  }
  #top_cssmenu ul li a{
    padding: 19px 21px 17px 22px;
    font-size: 0.77em;
  }
  #cssmenu ul li a{
    padding: 19px 21px 17px 22px;
    font-size: 0.84em;
  }

  /*IMPOSTO LA LARGHEZZA DEI SOTTOMENU*/
#top_cssmenu ul li,
#top_cssmenu ul ul {
  padding-bottom: 0px;
}
}

@media all and (max-width: 1024px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
  #cssmenu,
  #top_cssmenu {
    width: 100%;
  }
  #cssmenu{
    margin: 0 auto;
    bottom: 0;
  }
  #cssmenu ul,
  #top_cssmenu ul {
    width: 100%;
    display: none;
  }
  #cssmenu.align-center > ul,
  #cssmenu.align-right ul ul,
  #top_cssmenu.align-center > ul,
  #top_cssmenu.align-right ul ul {
    text-align: left;
  }
  #cssmenu ul li,
  #cssmenu ul ul li,
  #cssmenu ul li:hover > ul > li ,
  #top_cssmenu ul li,
  #top_cssmenu ul ul li,
  #top_cssmenu ul li:hover > ul > li {
    width: 100%;
    height: auto;
    border-top: 1px solid #d2d2d2;
    border-top: 1px solid rgba(210, 210, 210, 0.5);
    text-align: left;
  }
  #cssmenu ul li a,
  #cssmenu ul ul li a,
  #top_cssmenu ul li a,
  #top_cssmenu ul ul li a {
    width: 100%;
  }
  #cssmenu > ul > li,
  #cssmenu.align-center > ul > li,
  #cssmenu.align-right > ul > li,
  #top_cssmenu > ul > li,
  #top_cssmenu.align-center > ul > li,
  #top_cssmenu.align-right > ul > li {
    display: block;
  }
  #cssmenu ul ul li a,
  #top_cssmenu ul ul li a {
    width: 100%;
    margin: 0;
    padding: 0;
    padding: 20px 20px 20px 30px;
    font-size: 12px;
    color: #ffffff;
    background: none;
      text-align: left;

  }
  #cssmenu ul ul li:first-child a,
  #top_cssmenu ul ul li:first-child a {
    border: none;
  }
  #cssmenu ul ul li:hover > a,
  #cssmenu ul ul li a:hover,
  #top_cssmenu ul ul li:hover > a,
  #top_cssmenu ul ul li a:hover {
    color: #ffffff;
  }
  #cssmenu ul ul ul li a,
  #top_cssmenu ul ul ul li a {
    padding-left: 40px;
  }
  #cssmenu ul ul,
  #cssmenu ul ul ul,
  #top_cssmenu ul ul,
  #top_cssmenu ul ul ul {
    position: relative;
    left: 0;
    right: auto;
    width: 100%;
    margin: 0;
  }
  #cssmenu > ul > li.has-sub > a::after,
  #cssmenu ul ul li.has-sub > a::after,
  #top_cssmenu > ul > li.has-sub > a::after,
  #top_cssmenu ul ul li.has-sub > a::after {
    display: none;
  }
  #menu-line {
    display: none;
  }

  /*Allineo la scritta info a destra*/
  #top_cssmenu #menu-button {
    text-align: right;
  }
  #top_cssmenu #menu-button {
    display: block;
    padding: 20px;
    padding-right: 50px;
    color: #e3e6e7;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
  }
  #top_cssmenu #menu-button::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    width: 15px;
    height: 2px;
    background: #e3e6e7;
  }
  #top_cssmenu #menu-button::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 20px;
    display: block;
    width: 15px;
    height: 7px;
    border-top: 2px solid #e3e6e7;
    border-bottom: 2px solid #e3e6e7;
  }
  #top_cssmenu .submenu-button {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 0;
    display: block;
    border-left: 1px solid #d2d2d2;
    border-left: 1px solid rgba(210, 210, 210, 0.5);
    height: 48px;
    width: 50px;
    cursor: pointer;
  }
  #top_cssmenu .submenu-button::after {
    content: '';
    position: absolute;
    top: 18.5px;
    left: 24px;
    display: block;
    width: 1px;
    height: 11px;
    background: #666666;
    z-index: 99;
  }
  #top_cssmenu .submenu-button::before {
    content: ''; 
    position: absolute;
    left: 18.5px;
    top: 24px;
    display: block;
    width: 11px;
    height: 1px;
    background: #666666;
    z-index: 99;
  }
  #top_cssmenu .submenu-button.submenu-opened:after {
    display: none;
  }

  /*Allineo la scritta bottom menu a destra*/
  #cssmenu #menu-button {
    text-align: right;
  }
  #cssmenu #menu-button {
    display: block;
    padding: 20px;
    padding-right: 50px;
    color: #666666;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
  }
  #cssmenu #menu-button::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    width: 15px;
    height: 2px;
    background: #666666;
  }
  #cssmenu #menu-button::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 20px;
    display: block;
    width: 15px;
    height: 7px;
    border-top: 2px solid #666666;
    border-bottom: 2px solid #666666;
  }
  #cssmenu .submenu-button {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 0;
    display: block;
    border-left: 1px solid #d2d2d2;
    border-left: 1px solid rgba(210, 210, 210, 0.5);
    height: 48px;
    width: 48px;
    cursor: pointer;
  }
  #cssmenu .submenu-button::after {
    content: '';
    position: absolute;
    top: 19px;
    left: 24px;
    display: block;
    width: 1px;
    height: 11px;
    background: #ffffff;
    z-index: 99;
  }
  #cssmenu .submenu-button::before {
    content: ''; 
    position: absolute;
    left: 19px;
    top: 24px;
    display: block;
    width: 11px;
    height: 1px;
    background: #ffffff;
    z-index: 99;
  }
  #cssmenu .submenu-button.submenu-opened:after {
    display: none;
  }
}



@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 768px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 768px), only screen and (min-device-pixel-ratio: 2) and (max-width: 768px), only screen and (min-resolution: 192dpi) and (max-width: 768px), only screen and (min-resolution: 2dppx) and (max-width: 768px) {
  /*MODIFICO L ALTEZZA DEI MENU*/
  #top_cssmenu #menu-button,
  #cssmenu #menu-button {
    padding: 9px;
    padding-right: 50px;
  }
  #top_cssmenu #menu-button::after,
  #cssmenu #menu-button::after {
    top: 8px;
  }
  #top_cssmenu #menu-button::before,
  #cssmenu #menu-button::before {
    top: 13px;
  }
  #cssmenu{

    -webkit-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52);
    -moz-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52);
  }
}
