
.navenvelope {display: block; border-bottom: 1px solid var(--hcolor); height: 60px; padding: 0px 145px; z-index: 2000; position: relative}

/*******LOGO*****/
.navenvelope .mainlogo {
	display: inline-block;
	z-index: 2000;
	width: auto;
	position: relative;
	left: 0px;
	top: 15px;
	height: 30px;
}
/******end LOGO*******/




/**** MAINMENU***/

#nav {
	z-index: 2000;
}

.m_home {display: none}
.nav_active {font-weight: bold; pointer-events: none}
.nav_active_drop {font-weight: bold}

#nav ul {
	padding: 0px ; display: inline-block; position: relative; left: 210px; top: -28px; width: calc(100% - 210px)
}
#nav ul, #nav li {
	list-style: none;
}
#nav a {
	font-size: 15px;
	text-decoration: none;
	color: var(--hcolor); 
}


#nav ul .langs {position: absolute; right: 0px; height: 30px; margin-right: 0px}

#nav > a {
  display: none;
}
#nav li {
  position: relative;  margin-right: 35px
}
#nav li a {
	width: auto;
	padding: 0px 10px 0px 0px;
	display: inline-block;
}

.fdown {display: inline-block; font-size: 15px; transform: translateY(2px); color: var(--hcolor)}

#nav li a:active {
  background-color:rgba(255,255,255,0.0) !important;
}


/* first level */
#nav > ul {
	height: 30px; 
}
#nav > ul > li {
	width: auto;
	height: 35px;
	float: left;
}
#nav > ul > li > a {
	height: 100%;
	font-size: 15px; /* 24 */
	line-height: 15px; /* 60 (24) */
	text-align: center;
}
#nav > ul > li:not( :last-child ) > a {
	border-right: 0px solid #cc470d;
}


#nav > ul > li > a.active {
	letter-spacing: 0.0px;
	font-weight: 500;
}

/* arrow up */

#nav .sumbenu li:first-child::before {
  content: "";
  position: absolute;
  top: -11px; /* border thickness + triangle height */
  left: 10px; /* adjust as needed */
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid var(--hcolor); /* dropdown background */
  z-index: 2;
}


#nav .sumbenu li:first-child::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 11px; /* 1px offset inward to center the inner triangle */
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--hicolor); /* inner triangle color (dropdown bg) */
  z-index: 3;
}

#nav .sumbenu li:first-child:hover::after {border-bottom: 10px solid var(--hcolor)}

/* second level */
#nav li ul {
	background: var(--hicolor);
	display: none;
	position: absolute;
	top: 38px;
	width: 210px;
	white-space: nowrap; border: 1px solid var(--hcolor); border-bottom: none
}


#nav li ul li {
	height: 36px;
	border-bottom: 1px solid var(--hcolor); width: 100%; 
}

#nav li ul li:hover {background: var(--hcolor)}

#nav li ul li a {font-size: 15px; line-height: 36px; color: var(--hcolor)}
#nav li ul li:hover a {color: var(--hicolor)}

#nav li:hover ul {
	display: block;
	left: 0;
	right: 0;
}
#nav li:not( :first-child ):hover ul {
	left: -1px;
}
#nav li ul a {
	font-size: 14px; /* 20 */
	line-height: 25px;
color: #555555;
	padding: 0px 0px 0px 5px;
	width: 100%;
}

.logout i {color: var(--red); font-size: 90%}

/****END MAINMENU***/

/* langs*/
 .selected_lang {display: none}

.sl-nav {display: block; font-weight: 200; font-size: 0.8em; border: 1px solid var(--hcolor); width: 94px; height: 36px; line-height: 36px; position: relative; top: -12px ; color: var(--hcolor)   }

.sl-nav b {font-size: 15px; margin: 0px 21px 0px 13px}



.sl-nav ul {
  margin:0;
  padding:0;
  list-style: none;
  position: relative;
  display: inline-block; background: var(--hicolor)!important; width: 94px!important; border: 1px solid var(--hcolor)
}

.sl-nav form input {border: none!important; background: none; width: calc(100% - 20px); font-size: 15px; margin: 0px 21px 0px 9px; cursor: pointer; color: var(--hcolor); text-align: left}

.sl-nav li {
  cursor: pointer;  
  padding:0px 0px 5px 0px; background: var(--hicolor); margin: 0px!important; border: none!important
}

.sl-nav li {border-bottom: 1px solid var(--hcolor)!important}

.sl-nav li:hover {background: var(--hcolor)}

.sl-nav li input {color: var(--hcolor)}
.sl-nav li:hover input {color:  var(--hicolor)}

.sl-nav li ul {
  display: none;
}
.sl-nav li:hover ul {border: 0px solid #f09;
  position: absolute;
  right: 0px;
  display: block;
  width: auto;
  padding: 0px;
  z-index: 1;
}

.lags_drop {top: 36px!important}

.sl-nav li ul li {
  position: relative;
  text-align: left;
  background: transparent;
  padding: 0px;
  padding-bottom:0;
  z-index: 2;
    line-height: 1.6em;
  font-size: 1em; font-weight: 400;
  color: var(--secondary); 
}
.sl-nav li ul li:hover {color: #000}
.sl-nav li ul li:last-of-type {
  padding-bottom: 5px;
}
.sl-nav li ul li span {
  padding-left: 5px;
}
.sl-nav li ul li span:hover, .sl-nav li ul li span.active {
  color: #146c78;
}


/* end langs*/


/**************** tablet ************/
@media all and (max-width: 1440px) {
    
.navenvelope { padding: 0px 20px; }
}


/******************************************************************************************************/
@media all and (max-width: 768px), 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) {

    
	
.navenvelope {display: block; border-bottom: 1px solid var(--hcolor); height: 47px; padding: 0px 20px}
    
/*******LOGO*****/


.navenvelope .mainlogo {
	display: inline-block;
	z-index: 2000;
	width: auto;
	position: relative;
	left: 55px;
	top: 12px;
	height: 22px;
}

/******end LOGO*******/
	

	
	
	/**** MAINMENU***/

#nav {
	width: 100%;
	position: static;
	margin: 0;
	background: #ffffff;
	z-index: 2990;
	height: 0px;
}
    
.m_home {display: block}
    

    
#nav > a:first-of-type {
  display: block;
}
#nav > a:last-of-type {
  display: none;
}

/* When menu is open (targeted), show close button and hide open */
#nav:target > a:first-of-type {
  display: none;
}
#nav:target > a:last-of-type {
  display: block;
}
    

#nav > a {
  width: 32px;
  height: 32px;
  text-align: center;
  background-color: transparent;
  position: relative;
  float: left;
  margin: 4px 10px 0 0;
  top: -20px;
  z-index: 3000;
  display: block;
}

/* Hamburger lines */
#nav > a::before,
#nav > a::after,
#nav > a span {
  content: '';
  display: block;
  height: 3px;
  width: 20px;
  background-color: var(--hcolor);
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
}

/* Optional: Show X icon when menu is open */
#nav:target > a:last-of-type::before {
  transform: rotate(45deg);
  position: absolute;
  top:-7px;
  left: 6px;
}
#nav:target > a:last-of-type::after {
  transform: rotate(-45deg);
  position: absolute;
  top: -7px;
  left: 6px;
}
#nav:target > a:last-of-type span {
  display: none;
}
    
    
    
#nav:not( :target ) > a:first-of-type,  #nav:target > a:last-of-type {
	display: block;
}
	
/* arrow up */

#nav .sumbenu li:first-child::before , #nav .sumbenu li:first-child::after {display: none;}
	
/* first level */
#nav > ul {
	height: auto;
	display: none;
	position: relative;
	left: -20px;
	top: 4px;
	background: var(--hicolor); width: 100vw; padding: 0px;
    min-height: calc(100vh - 47px)
}
	
	
.cbp-af-header.cbp-af-header-shrink #nav > ul {top: -5px;}
	
	
	
#nav:target > ul {
	display: block;
}
#nav > ul > li {
	height: 100%;
	width: calc(100% - 55px);
	float:left; background: var(--hicolor); left: 55px;
	border-bottom: 1px solid #eeeeee;
}
#nav > ul > li > a {
	height: 70px;
	text-align: left;
	padding: 0px; /* 20 (24) */
	font-size: 24px;
	line-height: 70px; left: 0px;
}

.fdown {display: inline-block; font-size: 24px; transform: translateY(0px); left: 80%; position: absolute; top: 22px}
    
/* second level */
#nav li ul {
	position: static;
	padding: 0px; /* 20 */
	padding-top: 0px;
	background: var(--hicolor); width: 100%; border: none; left: 0px; line-height: 45px;margin-bottom: 10px
}
	
	
	#nav li ul li {
	height: 45px;
	border-bottom: 0px solid #ffffff;
}
	

#nav li ul li a {
	line-height: 45px;
    color: var(--hcolor);
	padding: 0px;
	font-size: 20px; 
	
}
    
/* langs*/
    
.langs {position: relative!important; margin-top: 80px; border-bottom: none!important}

.sl-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: static !important;
  width: 130px;
  height: auto;
  line-height: normal;
  font-size: 18px; border: 0px solid #f89
}
    
.lags_drop {top: 0px}

/* Hide the current lang <b> label and dropdown icon */
.sl-nav b {
  display: flex;font-size: 18px; width: 12px; color: var(--text70); transform: translateY(-4px)
}
.sl-nav b:after {
    content: " I "; margin: 0px 0px 0px 10px; color: var(--hcolor)}
    
.sl-nav > i {display: none}
 
    
/* Show language list inline */
.sl-nav ul.lags_drop, .sl-nav b {
  display: block!important;
  position: static;
  border: none !important;
  background: none !important;
  width: 70px !important;
  padding: 0;
  margin: 0;
  gap: 0px;
}

/* Show each language form inline */
.sl-nav li {
  display: inline;
  padding: 0;
  margin: 0;
  background: none;
  border: none !important;
  border-bottom: none !important;
}

/* Hide the currently selected language */
.sl-nav .selected_lang {
  display: none !important;
}

/* Make the form look like a plain link */
.sl-nav form {
  display: inline;
}
    


.sl-nav form input {
  background: none !important;
  border: none !important;
  padding: 0;
  margin: 0;
  font-size: 1em;
  color: var(--hcolor);
  cursor: pointer;
  text-align: center;
}
    
.sl-nav form input:hover {color:var(--hcolor) }
    
.sl-nav li:hover {background: none!important; }


/* Optional: add separator */
.sl-nav li:not(:last-child)::after {
  content: " I ";
  margin: 0px 6px;
  color: var(--hcolor);
}


/* end langs*/
/****END MAINMENU***/

}
