/* header navigation */
#navigation {
	display: none;
	z-index: 9999;
	background-color: transparent !important;
}

.qfl-top-menu {
	background: none;
	position: absolute;
	z-index: 1000;
	width: 100%;
	left: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.qfl-top-menu li {
	padding: 0;
	display: inline-block;
}

.qfl-top-menu li a,
.qfl-top-menu li span {
	display: block;
	font-size: 14px;
	padding: 0 10px;
	color: #102C53;
	height: 72px;
	line-height: 72px;
	font-weight: 500;
	text-decoration: none;
	position: relative;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

.qfl-top-menu li span {
	font-weight: 700;
}

@media screen and (min-width: 992px) {
	.qfl-top-menu .open-submenu,
	.qfl-top-menu .open-submenu:after {
		display: none;
	}
}

/* Desktop */
@media only screen and (min-width: 992px) {

	#mobile-mio-menu {
		display: none;
	}

	#navigation {
		display: block;
	}

	.qfl-top-menu {
		border-radius: 3px;
		position: static;
		width: auto;
		text-align: right;
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.qfl-top-menu > li {
		display: flex;
		align-items: center;
		position: static;
	}

	.qfl-top-menu a span.icona-cerca {
		position: relative;
		top: 4px;
		padding: 0;
		margin: 0;
	}

	.qfl-top-menu li a {
		text-align: center;
		font-size: 14px;
		font-weight: 500;
		color: #102C53;
		height: 72px;
		line-height: 72px;
	}

	.qfl-top-menu .menu-item-has-children > a,
	.qfl-top-menu .menu-item-has-children > span,
	.qfl-top-menu .page_item_has_children > a,
	.qfl-top-menu .page_item_has_children > span {
		padding-right: 25px;
	}

	.qfl-top-menu .menu-item-has-children > a::after,
	.qfl-top-menu .menu-item-has-children > span::after,
	.qfl-top-menu .page_item_has_children > a::after,
	.qfl-top-menu .page_item_has_children > span::after {
		content: '\276F';
		font-family: fontawesome;
		position: absolute;
		right: 10px;
		margin: 1px 0 0 15px;
		transform: rotate(90deg);
		transition: transform 0.25s ease;
	}

	.qfl-top-menu > li.is-open > a::after,
	.qfl-top-menu > li.is-open > span::after {
		transform: rotate(-90deg);
	}

	.qfl-top-menu li a:hover,
	.qfl-top-menu li span:hover {
		border-bottom: 2px solid #102C53;
	}

	.qfl-top-menu li .sub-menu > li > a:hover,
	.qfl-top-menu li .sub-menu > li > span:hover {
		text-decoration: none;
		border-bottom: 1px solid #102C53;
		color: #2942DB;
	}

	.qfl-top-menu li span:hover {
		border-bottom: none;
	}

	.qfl-top-menu > li > .sub-menu > li > a {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		position: relative;
	}

	.qfl-top-menu > li > .sub-menu > li > a::after {
		content: "\ebb5";
		font-family: "unicons-line";
		font-style: normal;
		font-weight: normal;
		line-height: 1;
		flex-shrink: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 18px;
		height: 18px;
		border-radius: 50%;
		background-color: #2942db;
		color: #fff;
		font-size: 11px;
		opacity: 0;
		transform: translateX(-4px);
		transition: all .2s ease;
	}
	
	.qfl-top-menu > li > .sub-menu > li > a:hover {
		border-bottom: .5px solid #2942DB;
		color:#102C53;
	}

	.qfl-top-menu > li > .sub-menu > li > a:hover::after {
		opacity: 1;
		transform: translateX(0);
	}

	.qfl-top-menu .sub-menu,
	.qfl-top-menu .children {
		display: none;
		margin: 0;
		padding: 0;
		position: absolute;
		top: 100%;
		left: 0;
		background: #F8F8F7;
		width: 200px;
		z-index: 1000;
		border-radius: 6px;
	}

	.qfl-top-menu .sub-menu li,
	.qfl-top-menu .children li {
		display: block;
		text-align: center;
	}

	.qfl-top-menu .sub-menu li a,
	.qfl-top-menu .children li a {
		font-size: 18px;
		font-weight: 500;
		color: #102C53;
		border-top: 0;
	}

	/* MEGA MENU FULL WIDTH */
	.qfl-top-menu > li > .sub-menu {
		position: fixed;
		top: 72px;
		left: 0;
		width: 100vw;
		max-width: 100vw;
		margin: 0;
		padding: 24px calc((100vw - 960px) / 2);
		border-radius: 0;
		background: #fff;
		box-shadow: 0 12px 32px rgba(0,0,0,0.12);
		display: none;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		justify-content: center;
		gap: 2rem;
		z-index: 9999;
		opacity: .96;
	}	

	.qfl-top-menu > li.is-open > .sub-menu {
		display: grid !important;
		justify-items: start;
	}

	.qfl-top-menu > li > .sub-menu > li {
		break-inside: avoid;
		page-break-inside: avoid;
		margin: 0;
		max-width: none;
	}

	.qfl-top-menu > li > .sub-menu > li > a {
		font-weight: 500;
		font-size: 1rem;
		padding: 0;
		border-top: 0;
		margin: 1.5rem;
		white-space: normal;
		height: auto;
		line-height: 1.4;
		text-align: left;
	}

	.qfl-top-menu .sub-menu .sub-menu {
		position: static;
		width: auto;
		display: block;
		border: 0;
		box-shadow: none;
		background: transparent;
		padding: 0;
	}

	.qfl-top-menu .sub-menu .sub-menu li a {
		font-size: 15px;
		height: auto;
		line-height: 1.4;
		padding: 6px 0;
		border-bottom: 0;
	}

	@media (min-width: 1200px) {
		.qfl-top-menu > li > .sub-menu {
			padding-left: calc((100vw - 1140px) / 2) !important;
			padding-right: calc((100vw - 1140px) / 2) !important;
		}
	}

	@media (min-width: 1400px) {
		.qfl-top-menu > li > .sub-menu {
			padding-left: calc((100vw - 1320px) / 2) !important;
			padding-right: calc((100vw - 1320px) / 2) !important;
		}
	}

	.mega-menu-header {
		grid-column: 1 / -1;
		display: flex;
		justify-content: start;
		align-items: center;
		padding: 1rem 0;
		margin-bottom: 1.5rem;
	}

	.mega-menu-header h3 {
		margin: 0;
		font-size: 32px;
		line-height: 35.2px;
		padding-right: 10px;
		padding-bottom: 10px;
		font-weight: 700;
		color: #102C53;
	}

	.qfl-top-menu > li > .sub-menu .mega-menu-header {
		grid-column: 1 / -1;
	}
	
	.menu-intranet{
		display:none!important;
	}
}

.qfl-mobile-menu-tools {
	display: none;
}

/* Mobile */
@media screen and (max-width: 991px) {	

	#navigation {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		width: 100vw !important;
	}

	.qfl-top-menu {
		margin: 0;
		background: #ffffff;
		width: 100%;
		/*border:1px solid red;*/
		/*padding: 0 calc((100vw - 510px) / 2);*/
	}
	
	.qfl-top-menu .sub-menu {
		margin: 0;
		font-size: 14px;
		padding: 0 0 0 20px;		
	}

	.qfl-top-menu .sub-menu li a {
		padding: 0 20px;
	}

	.qfl-top-menu li {
		display: block;
		margin:0 auto;
	}	
	
	/* Small Devices (sm Tablets, 576px and up) */
	@media (min-width: 576px) {
	  .qfl-top-menu li {
		max-width:540px;
	  }
	}

	/* Medium Devices (md Desktops, 768px and up) */
	@media (min-width: 768px) {
	  .qfl-top-menu li {
		max-width:720px;
	  }
	}	

	.qfl-top-menu li.menu-item-has-children {
		position: relative;
	}

	.qfl-top-menu li.menu-item-has-children > a {
		padding-right: 60px !important;
		pointer-events: auto !important;
		cursor: pointer !important;
	}

	.qfl-top-menu .open-submenu {
		width: 50px;
		height: 50px;
		position: absolute;
		top: 0;
		right: 0;
		color: #2942DB;
		box-sizing: border-box;
		font-size: 24px;
		line-height: 50px;
		text-align: center;
		border: none;
		cursor: pointer;
		z-index: 10;
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.qfl-top-menu .open-submenu:before {
		content: '\2b';
		font-family: fontawesome;
		position: static;
		width: auto;
		top: auto;
		left: auto;
	}

	.qfl-top-menu li.submenu-opened > .open-submenu:before {
		content: '\f068';
		font-family: fontawesome;
	}

	.qfl-top-menu .sub-menu.closed {
		display: none !important;
	}

	.qfl-top-menu .submenu-opened .sub-menu {
		display: block !important;
	}

	.qfl-top-menu li a,
	.qfl-top-menu li span {
		color: #102C53;
		height: 50px;
		line-height: 50px;
	}

	.qfl-top-menu a {
		border-bottom: 1px solid #000;
		text-align: left;
	}

	.qfl-top-menu a span {
		padding: 0;
		margin: 0;
	}

	.qfl-top-menu .current-menu-parent > a {
		border-left: 3px solid #2942DB;
		background: #F3F3F1;
	}

	.qfl-top-menu .current_page_item > a,
	.qfl-top-menu .current_page_item > span,
	.qfl-top-menu .current-menu-item > a,
	.qfl-top-menu .current-menu-item > span {
		border-left: 3px solid #2942DB;
		height: 50px;
		line-height: 50px;
		background: #F3F3F1;
	}

	.qfl-top-menu > li > a,
	.qfl-top-menu > li > span {
		height: 50px;
		line-height: 50px;
		margin: 0;
		border-bottom: 1px solid #102C53;
	}

	.qfl-top-menu .sub-menu > li > a {
		height: 50px;
		line-height: 50px;
		margin: 0;
		border-left: 1px solid #102C53;
	}

	.mega-menu-header {
		display: none;
	}
	
	
	.qfl-mobile-menu-tools {
		display: flex;
		align-items: center;
		gap: 20px;
		padding: 0 55px;
		background: #fff;
		margin: 0;
		margin-top: 0px;
		margin-top: 0px;
		position: static;
		margin-top: 120px;
	}
	
	.mobile-mio-menu {
		z-index: 10001;
	}

	#navigation {
		z-index: 9999;
	}

	.qfl-mobile-lang {
		font-weight: 700;
		color: #102C53;
		font-size: 14px;
		text-decoration: none;
		line-height: 1;
	}

	.qfl-mobile-search {
		width: 40px;
		height: 40px;
		/*border: 1px solid #DCE3F8;
		border-radius: 50%;*/
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-decoration: none;
	}

	.qfl-mobile-search img {
		width: 22px;
		height: 22px;
		display: block;
	}
	
	.search-icon{
		display:none!important;
	}
	
}

/* Hamburger */
.mobile-mio-menu {
	margin: 15px 10px;
	width: 20px;
	min-width:20px;
	height: 16px;
	min-height:16px;
	position: relative;
	border: none;
	border-radius: 6px;
	box-shadow: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	font-size: 0;
	color: #102C53;
}

.mobile-mio-menu span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #000;
	transition: all 0.3s ease;
}

.mobile-mio-menu span:nth-child(1) {
	top: 0;
}

.mobile-mio-menu span:nth-child(2) {
	top: 6px;
}

.mobile-mio-menu span:nth-child(3) {
	top: 12px;
	width: 10px;
}

.mobile-mio-menu.active span:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.mobile-mio-menu.active span:nth-child(2) {
	opacity: 0;
}

.mobile-mio-menu.active span:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
	width: 100%;
}

/* Gradient testo */
h3 i,
.h3 i {
	-webkit-background-clip: text;
	-webkit-text-fill-color: rgba(0,0,0,0);
	background-clip: text;
	font-family: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	background-image: linear-gradient(72deg, #2942db 6.74%, #67b3ff 82.36%);
}

/* Bottone animato nel mega menu header */
.mega-menu-header .btn-scopri {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid #DBEAF9;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
}

.mega-menu-header .btn-scopri:hover,
.mega-menu-header .btn-scopri:focus,
.mega-menu-header .btn-scopri:active {
	text-decoration: none;
}

.mega-menu-header .btn-scopri .text {
	display: none;
	color: #2942DB;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.mega-menu-header .btn-scopri::after {
	content: '\ebb5';
	font-family: unicons-line;
	display: inline-block;
	font-size: 18px;
	font-weight: 600;
	color: #2942DB;
	position: absolute;
	left: 0;
	margin: 0 0 0 13px;
	transition: all 0.3s ease;
}

.mega-menu-header .btn-scopri:hover {
	width: 135px;
	padding: 0 1.25rem;
	border-radius: 50px;
	border: 1px solid #DBEAF9;
	gap: 0.5rem;
	background: transparent;
}

.mega-menu-header .btn-scopri:hover .text {
	display: inline-block;
	transition: all 0.3s ease;
	padding: 0 0 0 45px;
	transform: translateX(-30px);
}

.mega-menu-header .btn-scopri:hover::after {
	transform: translateX(75px);
	left: 20px;
}