#cssmenu {
  line-height:1;
  z-index: 6000;
/*  font-weight:bold;
  clear: both;
  width:100%;*/
  position: relative;
  margin-right:50px;
  text-transform: uppercase;
}


/*BOTTONE*/
#cssmenu #hamburger {

  position: absolute;
  right:0px;
  top:0px;
  display: none;
  height: 40px;
  text-align:center;
  color:var();
  width: 40px;
  background-color:var(--dark_gray); 
  border-radius: 0px 0px 5px 5px;
  z-index: 99;
  font-size:2.6em;
  background-image: url(menu.png);
  cursor: pointer;
}
/*FINE BOTTONE*/


#cssmenu ul {
  margin: 0;
  display: block;
  margin: 0 auto; 
  margin-top:20px;
  background-color: var(--dark_gray);
  overflow: hidden;

}

#cssmenu ul li {
  padding-left: 5px;
}

#cssmenu ul li ul li {
  border-radius: none !important;
  background-color: none;
  margin: 0px;}


#cssmenu ul li ul li a {
  margin: 0px; 
  border-bottom: 1px solid var(--white);
  border-radius: 0px!important;
}

#cssmenu ul li ul li:hover {
  -webkit-transition-property: all;
  -moz-transition-property: all;
  -o-transition-property: all;
  transition-property: all;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s; 
}

#cssmenu ul li a {
  padding: 12px;
  padding-top: 12px;
  padding-bottom:12px;
  text-decoration: none;
  color: var(--white);
  -webkit-transition: color 0.25s ease-in;
  -moz-transition: color 0.25s ease-in;
  -ms-transition: color 0.25s ease-in;
  -o-transition: color 0.25s ease-in;
  transition: color 0.25s ease-in;
/*  border-radius: 5px 5px 0px 0px;*/
}

#cssmenu ul li a.selected{
  opacity:1 !important;
  color: var(--orange);
  border-bottom:0px solid var(--orange) !important;
  -webkit-transition: color 0.25s ease-in;
  -moz-transition: all 0.25s ease-in;
  -ms-transition: all 0.25s ease-in;
  -o-transition: all 0.25s ease-in;
  transition: all 0.25s ease-in;
}



#cssmenu ul li a:hover {
  color: var(--orange)
}

/*SECONDO LIVELLO*/
#cssmenu ul li ul {
  margin-top: -5px;
  padding: 0px;
}

#cssmenu ul li ul li a{
background: #265983;
}

/*TERZO LIVELLO*/
#cssmenu ul li ul li ul{
  margin-top: 0px;
  padding: 0px;
  margin-left: -5px;
}

#cssmenu ul li ul li ul li a{
  background: #265983;
}

/*QUARTO LIVELLO*/
#cssmenu ul li ul li ul li ul{
  margin-top: 0px;
  padding: 0px;
  margin-left: -5px;
}

#cssmenu ul li ul li ul li ul li a{
  background: #265983;
}


@media screen and (max-width: 768px) {

body {margin: 0; } 

  #cssmenu{
    float: right;
    width: 100%;
    top: 10px;
    margin-right:0px !important;
    /*! box-shadow: 0 1px 4px #cfcfcf; */  
  }
  
  #cssmenu ul li ul li:hover a:after {
	border: none; 
  } 

  #cssmenu #hamburger {
	display: block;
  } 

  #cssmenu ul {
	display: none;
	margin:0;
	padding:7px; 
 border-radius: 0px 0px 5px 5px;  
 
  } 

  #cssmenu ul li {
	  width: 100%;
	  border-left: none;
	  border-right: none;
	  border-bottom: 0px solid #265983;
  }

  #cssmenu ul li a.selected{
    border-bottom:0px solid var(--orange) !important;
  }

  #cssmenu ul li a {
  padding:0px;
  padding-top: 12px;
  padding-bottom:12px;}

  #cssmenu ul li:first-child {
	border-top: none; 
  }

  #cssmenu ul li:last-child {
    border-bottom: 0px solid #265983;
  } 

  #cssmenu ul li:hover > a {
	position: relative; 
  }
  

  #cssmenu ul li ul {
	width: 100% !important;
  }
  
  #cssmenu ul li ul li ul {
	width: 100% !important;
  }
  
}


/*** Core Superfish Menu Styles ***/
.sf-menu {
  margin: 0;
  padding: 0;
  list-style: none; }

.sf-menu * {
  margin: 0;
  padding: 0;
  list-style: none; }

.sf-menu ul {
  position: absolute;
  top: -999em;
  width: 10em;
  /* left offset of submenus need to match (see below) */ }

.sf-menu ul li {
    width: 100%; }

.sf-menu li {
  float: left;
  position: relative; }

.sf-menu li:hover {
    visibility: inherit;
    /* fixes IE7 'sticky bug' */ }

.sf-menu a {
  display: block;
  position: relative; }

.sf-menu li:hover ul, .sf-menu li.sfHover ul {
  left: 0;
  top: 2.5em;
  /* match top ul list item height */
  z-index: 99; }
ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul {
  top: -999em; }

ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul {
  left: 10em;
  /* match ul width */
  top: 0; }

ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul {
  top: -999em; }

ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul {
  left: 10em;
  /* match ul width */
  top: 0; 
}


