
/* #Menu -> second level
================================================== */
/*svg*/

@header-side-sub-plus(@colour){
	background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='8px' height='8px' viewBox='3 3 8 8' enable-background='new 3 3 8 8' fill='@{colour}' xml:space='preserve'%3E%3Cpolygon points='11,6 8,6 8,3 6,3 6,6 3,6 3,8 6,8 6,11 8,11 8,8 11,8 '/%3E%3C/svg%3E");
}
/*Menu background width */
li:not(.dt-mega-menu) .sub-nav {
	width: @submenu-width;
}

.header-side-left #main-nav > li > .sub-nav {
	padding-left: @padding-side;
}
.header-side-right .mega-full-width .sub-nav,
.header-side-right .mega-auto-width .sub-nav,
.header-side-right #main-nav > li > .sub-nav {
	padding-right: @padding-side;
}
	/*Menu background color*/
	.sub-nav {
		background-color: @submenu-bg-color;
	}
		/*Font*/
		.main-nav .sub-nav > li > a .menu-text,
		.mini-nav .sub-nav > li > a .menu-text {
			font: @submenu-font-style @submenu-font-variant @submenu-font-weight @submenu-font-size~"/"@submenu-font-size+4 @submenu-font-family;
			text-transform: @submenu-text-transform;
			//color: @submenu-color;
		}
		.sub-downwards .sub-nav .next-level-button:before,
		.side-header.sub-downwards .main-nav.level-arrows-on .sub-nav li.has-children a:after {
			line-height: @submenu-font-size+4;
		}
		.main-nav .sub-nav > li:not(.wpml-ls-item) > a .menu-text,
		.mini-nav .sub-nav > li:not(.wpml-ls-item) > a .menu-text {
			color: @submenu-color;
		}
		
		.main-nav .sub-nav > li:not(.wpml-ls-item) > a,
		.mini-nav .sub-nav > li:not(.wpml-ls-item) > a,
		#bottom-bar .sub-nav > li:not(.wpml-ls-item) > a {
			color: @submenu-color;
		}
			/*Show next level indicator arrows*/
			.sub-nav.level-arrows-on li.has-children:not(.dt-mega-parent) > a:after,
			#page .mini-nav .sub-nav li.has-children > a:after,
			#bottom-bar .sub-nav li.has-children > a:after {
				color: @submenu-color;
			}
		.main-nav .sub-nav > li > a .subtitle-text,
		.mini-nav .sub-nav > li > a .subtitle-text {
			font: @sub-subtitle-font-style normal @sub-subtitle-font-weight @sub-subtitle-font-size~"/"@sub-subtitle-font-size+4 @sub-subtitle-font-family;
		}
		.main-nav .sub-nav > li.dt-mega-parent > a .subtitle-text {
			.text-small;
		}

		/*Distance between menu items*/
		.main-nav .sub-nav > li > a,
		.mini-nav .sub-nav > li > a {
			margin: @submenu-item-margin-top @submenu-item-margin-right @submenu-item-margin-bottom @submenu-item-margin-left;
			padding: @submenu-item-padding-top @submenu-item-padding-right @submenu-item-padding-bottom @submenu-item-padding-left;
		}
		.sub-nav li:not(:first-child) .sub-nav {
			top: -(@submenu-item-margin-top + @submenu-item-padding-top);
		}
		.top-header .sub-nav > li.dt-mega-parent > a {
			margin-bottom: @submenu-item-margin-bottom + 10;
		}
			.masthead:not(.sub-downwards) .sub-nav li.has-children a:after {
				right: @submenu-item-padding-right;
				.rtl & {
					right: auto;
					left: @submenu-item-padding-right;
				}
			}

		.sub-downwards .sub-nav > li > .next-level-button {
			left: -@submenu-item-margin-right;
		}
		.sub-downwards.dt-parent-menu-clickable .sub-nav > li:not(.has-children) > a {
			margin-right: @submenu-item-margin-right + 30;
		}


		/*Hover font color & bg*/
		.masthead:not(.sub-downwards) .main-nav .sub-nav li:not(.act):not(.dt-mega-parent):not(.no-link):not(.wpml-ls-item):hover > a,
		.masthead:not(.sub-downwards) .mini-nav .sub-nav li:not(.act):not(.dt-mega-parent):not(.no-link):not(.wpml-ls-item):hover > a,
		#bottom-bar .sub-nav li:not(.act):not(.dt-mega-parent):not(.no-link):not(.wpml-ls-item):hover > a,
		.masthead:not(.sub-downwards) .main-nav .sub-nav li.dt-mega-parent:not(.act):not(.no-link):not(.wpml-ls-item) > a:hover,
		.masthead:not(.sub-downwards) .mini-nav .sub-nav li.dt-mega-parent:not(.act):not(.no-link):not(.wpml-ls-item) > a:hover,
		.sub-downwards .sub-nav li:not(.act):not(.wpml-ls-item) > a:hover {
			color: @submenu-hover-color;
		}
		.sub-nav li:not(.act):not(.dt-mega-parent):not(.no-link):not(.wpml-ls-item):hover > a .menu-text,
		.sub-nav > li:not(.act):not(.dt-mega-parent):not(.no-link):not(.wpml-ls-item):hover > a .subtitle-text,
		.sub-nav li.dt-mega-parent:not(.act):not(.no-link):not(.wpml-ls-item) > a:hover .menu-text,
		.sub-nav > li.dt-mega-parent:not(.act):not(.no-link):not(.wpml-ls-item) > a:hover .subtitle-text {
			.masthead:not(.sub-downwards) .main-nav & {
				color: @submenu-hover-color;
				.text-gradient (@startColor: @submenu-hover-color, @endColor: @submenu-hover-color-2);
			}
			.masthead:not(.sub-downwards) .mini-nav &,
			.dt-mobile-header .mini-nav &,
			#bottom-bar & {
				color: @submenu-hover-color;
				.text-gradient (@startColor: @submenu-hover-color, @endColor: @submenu-hover-color-2);
			}
		}
		
		.sub-downwards .sub-nav li:not(.act):not(.wpml-ls-item) > a:hover .menu-text,
		.sub-downwards .sub-nav > li:not(.act):not(.wpml-ls-item) > a:hover .subtitle-text {
			color: @submenu-hover-color;
			.text-gradient (@startColor: @submenu-hover-color, @endColor: @submenu-hover-color-2);
		}
			/*Show next level indicator arrows*/
			.sub-nav.level-arrows-on li.has-children:not(.dt-mega-parent):not(.act):hover > a:after,
			#page .mini-nav .sub-nav li.has-children:not(.act):hover > a:after,
			#bottom-bar .sub-nav li.has-children:not(.act):hover > a:after {
				color: @submenu-hover-color;
			}
		
		.top-header .sub-nav.hover-style-bg li:not(.dt-mega-parent):not(.act):hover > a,
		.top-header .sub-nav.gradient-hover.hover-style-bg li:not(.dt-mega-parent):not(.act):hover > a {
			background-color: @submenu-hover-bg;
			.background-gradient (@startColor: @submenu-hover-bg, @endColor: @submenu-hover-bg-2);
		}
		.top-header .sub-nav.hover-style-bg li:not(.dt-mega-parent).act > a,
		.top-header .sub-nav.gradient-hover.hover-style-bg li:not(.dt-mega-parent).act > a {
			background-color: @submenu-active-bg;
			.background-gradient (@startColor: @submenu-active-bg, @endColor: @submenu-active-bg-2);
		}

		/*Active font color*/
		.sub-nav > li.act:not(.dt-mega-parent):not(.wpml-ls-item):not(.wpml-ls-item) > a,
		.sub-nav > li.act:not(.dt-mega-parent):not(.wpml-ls-item) > a i[class^="fa"],
		.sub-nav > li.dt-mega-parent.current-menu-item:not(.wpml-ls-item) > a {
			.main-nav &,
			.mini-nav & {
				color: @submenu-active-color;
			}
		}
		.sub-nav > li.act:not(.dt-mega-parent):not(.wpml-ls-item) > a .menu-text,
		.sub-nav > li.act:not(.dt-mega-parent):not(.wpml-ls-item) > a .subtitle-text,
		.sub-nav > li.dt-mega-parent.current-menu-item:not(.wpml-ls-item) > a .menu-text,
		.sub-nav > li.dt-mega-parent.current-menu-item:not(.wpml-ls-item) > a .subtitle-text/*,
		.dt-mega-menu .sub-nav .dt-mega-parent .sub-nav a:hover*/ {
			.main-nav &,
			.mini-nav & {
				color: @submenu-active-color;
				.text-gradient (@startColor: @submenu-active-color, @endColor: @submenu-active-color-2);
			}
		}
			/*Show next level indicator arrows*/
			.sub-nav.level-arrows-on li.has-children:not(.dt-mega-parent).act > a:after,
			#page .mini-nav .sub-nav li.has-children.act > a:after,
			#bottom-bar .sub-nav li.has-children.act > a:after {
				color: @submenu-active-color;
			}
	
		.masthead:not(.sub-downwards) .sub-nav .sub-nav,
		.mini-nav .sub-nav .sub-nav {
			left: @submenu-width + 1 !important;
			.rtl & {
				right: @submenu-width + 1;
				left: auto !important;
			}
		}
		.masthead:not(.sub-downwards) .sub-nav .sub-nav.right-overflow,
		.mini-nav .sub-nav .sub-nav.right-overflow {
			left: -(@submenu-width - 1) !important;
			.rtl & {
				right: -(@submenu-width - 1);
				left: auto !important
			}
		}


	/*Show drop down menu -> Downwards*/
	.sub-downwards .sub-nav.level-arrows-on li.has-children > a:after,
	.sub-downwards .sub-nav.level-arrows-on li.has-children:not(.act):hover > a:after,
	.sub-downwards .sub-nav.level-arrows-on li.has-children.act > a:after,
	.sub-downwards .sub-nav .next-level-button {
		color: fade(@menu-color, 27%);
	}

	.sub-downwards .main-nav.level-arrows-on > li.has-children > a {
		max-width: calc(100% ~'-' 30px  ~'-' @menu-item-margin-right  ~'-' @menu-item-margin-left);
	}
	.sub-downwards .sub-nav.level-arrows-on > li.has-children > a {
		max-width: calc(100% ~'-' 30px  ~'-' @submenu-item-margin-right  ~'-' @submenu-item-margin-left);
	}
	/* SUB MENU:end */