/* Main menu wrapper */
.cbp-hsmenu-wrapper {
	position: relative;
}

/* Common style for all lists */
.cbp-hsmenu-wrapper ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
}

/* 100% width bar for menu */
.cbp-hsinner {
	background: #47a3da;
	position: relative;
	z-index: 100;
}

/* Main menu style */
.cbp-hsmenu-wrapper .cbp-hsmenu {
	width: 90%;
	max-width: 69em;
	margin: 0 auto;
	padding: 0 1.875em;
}

.cbp-hsmenu > li {
	margin-left: 4em;
	display: inline-block;
}

.cbp-hsmenu > li:first-child {
	margin-left: 0;
}

/* Main menu link style */
.cbp-hsmenu > li > a {
	color: #fff;
	font-size: 1.2em;
	line-height: 3em;
	display: inline-block;
	position: relative;
	z-index: 10000;
	outline: none;
}

.no-touch .cbp-hsmenu > li > a:hover,
.no-touch .cbp-hsmenu > li > a:focus,
.cbp-hsmenu > li.cbp-hsitem-open > a {
	color: #02639d;
}

/* Add an arrow to the main menu link if it has a submenu (not the only child) */
/*.cbp-hsmenu > li > a:not(:only-child):before {
	display: inline-block;
	font-family: 'bpmenu';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	content: "\f107";
	font-size: 80%;
	margin-right: 0.3em;
	opacity: 0.4;
	vertical-align: middle;
}

.cbp-hsmenu > li.cbp-hsitem-open > a:not(:only-child):before {
	content: "\f106";
}*/

/* Add a triangle to currently open menu item link */
/*.cbp-hsmenu > li.cbp-hsitem-open > a:after {
	top: 100%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: transparent;
	border-top-color: #47a3da;
	border-width: 10px;
	left: 50%;
	margin-left: -10px;
}*/

/* Submenu style */
.cbp-hssubmenu {
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	z-index: 0;
	text-align: center; /* for aligning the sub items */
	visibility: hidden;
}

.cbp-hssubmenu:before, 
.cbp-hssubmenu:after { 
	content: " "; 
	display: table; 
}
.cbp-hssubmenu:after { 
	clear: both; 
}

/* Let's allow 6 item in a row */
.cbp-hssubmenu > li {
	width: 16.2%;
	display: inline-block;
	vertical-align: top;
	/*box-shadow: -28px 0 0 -27px #ddd, 0 -28px 0 -27px #ddd;*/
	opacity: 0;
	/*-webkit-transition: opacity 0.1s 0s;
	-moz-transition: opacity 0.1s 0s;
	transition: opacity 0.1s 0s;*/
}

/* First 6 items don't have upper box shadow
.cbp-hssubmenu > li:nth-child(-n+6) {
	box-shadow: -28px 0 0 -27px #ddd;
}  */

/* Every 7th item does not have a left box shadow
.cbp-hssubmenu > li:nth-child(6n+1) {
	box-shadow:  0 -28px 0 -27px #ddd;
} */

/* The first one does not have any box shadow
.cbp-hssubmenu > li:first-child {
	box-shadow: none;
} */

.cbp-hssubmenu > li a {
	display: block;
	text-align: center;
	color: #a2a2a2;
	outline: none;
	padding: 2em 1em 1em 1em;
}

.no-touch .cbp-hssubmenu > li a:hover,
.no-touch .cbp-hssubmenu > li a:focus {
	color: #888;
}

.cbp-hssubmenu > li a img {
	border: none;
	outline: none;
	display: inline-block;
	margin: 0;
	max-width: 100%;
	-webkit-transition: opacity 0.2s;
	-moz-transition: opacity 0.2s;
	transition: opacity 0.2s;
}

.no-touch .cbp-hssubmenu > li a:hover img {
	opacity: 0.5;
}

.cbp-hssubmenu > li a span {
	display: block;
	min-height: 3em;
	margin-top: 0.4em;
}

.cbp-hsmenu > li.cbp-hsitem-open .cbp-hssubmenu {
	z-index: 1000;
	visibility: visible;
}

.cbp-hsmenu > li.cbp-hsitem-open .cbp-hssubmenu > li {
	opacity: 1;
	/*-webkit-transition: opacity 0.5s 0.1s;
	-moz-transition: opacity 0.5s 0.1s;
	transition: opacity 0.5s 0.1s;*/
}

/* Helper div for animating the background */
.cbp-hsmenubg {
	background: #FFF;
	position: absolute;
	width: 100%;
	top: 100%;
	left: 0;
	z-index: 0;
	height: 0px;
}

/*.no-touch .cbp-hsmenubg {
	-webkit-transition: height 0.3s;
	-moz-transition: height 0.3s;
	transition: height 0.3s;
}*/



@media (max-width: 989px) {
	.cbp-hsmenu-wrapper {
		font-size: 100%;
	}

	.cbp-hsmenu-wrapper .cbp-hsmenu {
		padding: 0;
		max-width: none;
		width: 100%;
	}

	.cbp-hsmenu > li {
		border-top: 1px solid rgba(255,255,255,0.5);
		text-align: center;
		margin: 0 auto;
		display: block;
	}

	.cbp-hsmenu > li:first-child {
		border-top: none;
	}

	.cbp-hsmenu > li > a {
		display: block;
	}

	.cbp-hsmenu > li > a:not(:only-child):before {
		line-height: 1.8;
		right: 0;
		position: absolute;
		font-size: 200%;
	}

	.cbp-hsmenubg {
		display: none;
	}

	.cbp-hssubmenu {
		background: #f7f7f7;
		position: relative;
		overflow: hidden;
		height: 0;
	}

	.cbp-hsmenu > li.cbp-hsitem-open .cbp-hssubmenu {
		height: auto;
	}

	/* Let's only allow 3 item in a row now */
	.cbp-hssubmenu > li {
		width: 32.8%;
	}

	/* Reset box shadows for the 6 items in row case
	.cbp-hssubmenu > li:nth-child(-n+6),
	.cbp-hssubmenu > li:nth-child(6n+1) {
		box-shadow: -28px 0 0 -27px #ddd, 0 -28px 0 -27px #ddd;
	} */

	/* First 4 items don't have upper box shadow
	.cbp-hssubmenu > li:nth-child(-n+3) {
		box-shadow: -28px 0 0 -27px #ddd;
	}  */

	/* Every 5th item does not have a left box shadow
	.cbp-hssubmenu > li:nth-child(3n+1) {
		box-shadow:  0 -28px 0 -27px #ddd;
	} */

}

@media (max-width: 479px) {
	/* Let's only allow 1 item in a row now
	.cbp-hssubmenu > li {
		width: 100%;
		display: block;
	}

	.cbp-hsmenu-wrapper .cbp-hssubmenu > li {
		box-shadow: 0 1px #cecece;
		text-align: left;
	}

	.cbp-hssubmenu > li a {
		text-align: left;
		line-height: 50px;
		padding: 0.4em 1em;
	}

	.cbp-hssubmenu > li a img {
		float: left;
		max-height: 50px;
	}

	.cbp-hssubmenu > li a span {
		min-height: 0;
		margin: 0;
	} */
}




/* ALD
---------------------------------------------------------------------------------*/
.menu-principal .cbp-hsinner,
.menu-principal .cbp-hsmenu > li.cbp-hsitem-open .cbp-hssubmenu { background-color:#FFF; }
.menu-principal a { text-decoration: none; }

@media (min-width: 990px) {
	.cbp-hsmenu-wrapper .cbp-hsmenu {
		width: auto;
		height: 40px;
		max-width: none;
		margin: 0;
		padding: 0;
	}
	
	.cbp-hsmenu > li {
		position: static;
		margin-left: -8px;
		width: 176px;
		height: 40px;
		text-align: center;
	}
	.cbp-hsmenu > li:first-child { margin-left:-3px; }
	
	.cbp-hsmenu > li > a {
		align-items: center;
		display: flex;
		width: 173px;
		height: 40px;
		margin-left: 3px;
		margin-right: 3px;
		font-size: 12px;
		font-weight: bold;
		color: #0071b9;
		line-height: 12px;
		text-transform: uppercase;
		justify-content: center;
		background: url("../img/menu-separator.png") no-repeat right 8px;
	}
	.cbp-hsmenu > li:last-child > a { background-image:none; }
	
	.no-touch .cbp-hsmenu > li > a:hover,
	.no-touch .cbp-hsmenu > li > a:focus,
	.cbp-hsmenu > li.cbp-hsitem-open > a {
		color: #FFF;
		background-color: #0071b9;
	}
	
	.cbp-hsmenu > li.cbp-hsitem-open .cbp-hssubmenu {
		width: calc(100% + 100px);
		margin-left: -98px;
		padding-bottom: 10px;
	}
	
	.cbp-hssubmenu > li {
		margin: 2px 0;
		vertical-align: auto;
	}
	.cbp-hssubmenu > li a {
		display: table-cell;
		vertical-align: middle;
		width: calc(940px / 6);
		height: 60px;
		padding: 14px;
		font-size: 12px;
		color: #333;
		text-align: center;
		line-height: 14px;
	}
	.no-touch .cbp-hssubmenu > li a:hover,
	.no-touch .cbp-hssubmenu > li a:focus {
		color: #333;
		background-color: #f4f4f4;
	}
}

@media (max-width: 989px) {
	.cbp-hsmenu-wrapper .cbp-hsmenu {
		width:100%;
	}
	
	.cbp-hsmenu > li {
		clear: both;
		float: none;
		width: auto;
		margin: 0;
		text-align: left;
		border-top: 1px solid #d4d4d4;
	}
	.cbp-hsmenu > li > a {
		width: auto;
		margin: 0;
		padding: 9px 8px;
		font-size: 16px;
		font-weight: bold;
		color: #0071b9;
		line-height: 24px;
		text-transform: none;
	}
	.cbp-hsmenu > li > a::after {
	  font-family: "FontAwesome";
	  content:"\f0d7";
	  font-size: 24px;
	  display: block;
	  padding-right: 3px;
	  position: absolute;
	  right: 12px;
	  top: 8px;
	}
	.cbp-hsmenu > li.cbp-hsitem-open > a::after { content:"\f0d8"; }
	
	.no-touch .cbp-hsmenu > li > a:hover,
	.no-touch .cbp-hsmenu > li > a:focus,
	.cbp-hsmenu > li.cbp-hsitem-open > a {
		color: #FFF;
		background-color: #0071b9;
	}
	
	.cbp-hssubmenu > li {
		margin: 2px 0;
		vertical-align: auto;
	}
	.cbp-hssubmenu > li a {
		display: table-cell;
		vertical-align: middle;
		width: calc(940px / 3);
		height: 50px;
		padding: 5px;
		font-size: 14px;
		color: #333;
		line-height: 14px;
	}
	.no-touch .cbp-hssubmenu > li a:hover,
	.no-touch .cbp-hssubmenu > li a:focus {
		color: #333;
		background-color: #f4f4f4;
	}
}

@media (max-width: 639px) {
	.cbp-hssubmenu > li {
		display: block;
		width: auto;
		border-bottom: 1px solid #d4d4d4;
	}
	.cbp-hssubmenu > li:last-child { border-bottom:none; }
	
	.cbp-hssubmenu > li a {
		display: block;
		width: auto;
		height: auto;
		padding: 10px 15px;
		color: #777;
		text-align: left;
		background: none !important;
	}
}