/**
 * Header COMFA — top bar navy + menu principale navy su barra bianca (tutte le pagine).
 */
.whb-top-bar,
.whb-top-bar.whb-with-bg,
.whb-top-bar.whb-color-light,
.whb-main-header .whb-top-bar,
.cf-header-refactor .whb-top-bar{
	background:var(--cf-navy,#0f2744)!important;
	background-color:var(--cf-navy,#0f2744)!important;
}
.whb-top-bar .wd-header-text,
.whb-top-bar .wd-html-block,
.whb-top-bar .comfa-topbar,
.whb-top-bar .comfa-topbar a,
.whb-top-bar .cf-top-nav .wd-nav > li > a,
.whb-top-bar .wd-nav-secondary > li > a{
	color:#fff!important;
}
.whb-header-bottom,
.whb-header-bottom.whb-color-light,
.whb-header-bottom.whb-color-dark,
.whb-main-header .whb-header-bottom{
	--wd-navigation-color:15,39,68!important;
	--nav-color:rgba(15,39,68,1)!important;
	--nav-color-hover:var(--cf-blue,#1a6fc4)!important;
	--nav-color-active:var(--cf-blue,#1a6fc4)!important;
	color:var(--cf-navy,#0f2744)!important;
}
.whb-header-bottom .wd-nav-header,
.whb-header-bottom .wd-nav-main,
.whb-header-bottom .wd-nav{
	--wd-navigation-color:15,39,68!important;
	--nav-color:rgba(15,39,68,1)!important;
	--nav-color-hover:var(--cf-blue,#1a6fc4)!important;
	--nav-color-active:var(--cf-blue,#1a6fc4)!important;
}
.whb-header-bottom .wd-nav-main > li > a,
.whb-header-bottom .wd-nav > li > a,
.whb-header-bottom .wd-nav-main > li > a .nav-link-text,
.whb-header-bottom .wd-nav > li > a .nav-link-text,
.whb-main-header.whb-color-dark .whb-header-bottom .wd-nav-main > li > a,
.whb-main-header.whb-color-dark .whb-header-bottom .wd-nav > li > a,
.whb-main-header.whb-color-dark .whb-header-bottom .wd-nav-main > li > a .nav-link-text,
.whb-main-header.whb-color-dark .whb-header-bottom .wd-nav > li > a .nav-link-text,
.whb-header-bottom.whb-color-light .wd-nav-main > li > a,
.whb-header-bottom.whb-color-light .wd-nav > li > a,
.whb-header-bottom.whb-color-light .wd-nav-main > li > a .nav-link-text,
.whb-header-bottom.whb-color-light .wd-nav > li > a .nav-link-text{
	color:var(--cf-navy,#0f2744)!important;
}
.whb-header-bottom .wd-nav-main > li:hover > a,
.whb-header-bottom .wd-nav-main > li.current-menu-item > a,
.whb-header-bottom .wd-nav > li:hover > a,
.whb-header-bottom .wd-nav > li.current-menu-item > a,
.whb-header-bottom .wd-nav-main > li:hover > a .nav-link-text,
.whb-header-bottom .wd-nav-main > li.current-menu-item > a .nav-link-text,
.whb-header-bottom .wd-nav > li:hover > a .nav-link-text,
.whb-header-bottom .wd-nav > li.current-menu-item > a .nav-link-text{
	color:var(--cf-blue,#1a6fc4)!important;
}

/* Layout centrato e più largo — banda header ~1520px, logo e menu distanziati */
@media (min-width:1025px){
	.whb-top-bar .whb-row-inner,
	.whb-header-bottom .whb-row-inner{
		max-width:1520px!important;
		width:100%!important;
		padding-inline:clamp(20px,2.5vw,40px)!important;
	}
	.whb-top-bar .whb-flex-row,
	.whb-header-bottom .whb-flex-row{
		justify-content:center!important;
		gap:0;
		width:100%!important;
	}
	.whb-top-bar .whb-column5,
	.whb-top-bar .whb-column7,
	.whb-top-bar .whb-col-left.whb-empty-column,
	.whb-top-bar .whb-col-right.whb-empty-column{
		display:none!important;
	}
	.whb-top-bar .whb-column6,
	.whb-top-bar .whb-col-center{
		display:flex!important;
		flex-direction:row!important;
		flex-wrap:nowrap!important;
		align-items:center!important;
		justify-content:flex-start!important;
		gap:8px 12px!important;
		flex:1 1 auto!important;
		width:100%!important;
		max-width:1520px!important;
	}
	.whb-top-bar .wd-header-text,
	.whb-top-bar .comfa-topbar{
		text-align:left;
		flex:0 0 auto;
		margin-right:auto!important;
	}
	.whb-top-bar .cf-top-nav,
	.whb-top-bar .wd-header-secondary-nav,
	.whb-top-bar .whb-comfa_top_menu{
		flex:0 0 auto!important;
		display:flex!important;
		justify-content:flex-end!important;
		margin-left:0!important;
	}
	.whb-top-bar .whb-column6 > .wd-button-wrapper,
	.whb-top-bar .whb-column6 > .whb-comfa_header_cta,
	.whb-top-bar .whb-col-center > .wd-button-wrapper,
	.whb-top-bar .whb-col-center > .whb-comfa_header_cta{
		flex:0 0 auto!important;
		margin-left:0!important;
	}
	.whb-top-bar .wd-button.btn{
		flex:0 0 auto;
	}
	.whb-header-bottom .whb-column11,
	.whb-header-bottom .whb-column13,
	.whb-header-bottom .whb-col-left.whb-empty-column,
	.whb-header-bottom .whb-col-right.whb-empty-column{
		display:none!important;
	}
	.whb-header-bottom .whb-column12,
	.whb-header-bottom .whb-col-center{
		display:flex!important;
		flex-direction:row!important;
		flex-wrap:nowrap!important;
		align-items:center!important;
		justify-content:space-between!important;
		gap:32px 48px!important;
		flex:1 1 auto!important;
		width:100%!important;
		max-width:1520px!important;
	}
	.whb-header-bottom .whb-column12 > .site-logo,
	.whb-header-bottom .whb-column12 > .wd-header-nav,
	.whb-header-bottom .whb-col-center > .site-logo,
	.whb-header-bottom .whb-col-center > .wd-header-nav{
		flex:0 0 auto!important;
		width:auto!important;
		max-width:none!important;
		margin:0!important;
	}
	.whb-header-bottom .whb-column12 .wd-nav-main,
	.whb-header-bottom .whb-col-center .wd-nav-main{
		justify-content:flex-end!important;
		flex-wrap:nowrap!important;
		gap:4px 8px;
	}
	.whb-header-bottom .wd-header-nav,
	.whb-header-bottom .wd-header-main-nav{
		justify-content:flex-end!important;
		flex:1 1 auto!important;
	}
	.whb-header-bottom .wd-nav-main > li > a{
		padding-left:18px!important;
		padding-right:18px!important;
		font-size:13px!important;
	}
}

/* —— Dropdown menu (desktop) —— */
@media (min-width:1025px){
	.whb-header-bottom .wd-dropdown-menu.wd-design-default,
	.whb-top-bar .wd-dropdown-menu.wd-design-default{
		--wd-dropdown-width:340px;
		width:340px!important;
		min-width:280px;
		max-width:min(380px,calc(100vw - 32px));
		padding:6px!important;
		margin-top:6px!important;
		border-radius:var(--cf-radius,4px)!important;
		box-sizing:border-box;
	}
	/* Menu principale: pannello bianco */
	.whb-header-bottom .wd-dropdown-menu.wd-design-default{
		background:#fff!important;
		border:1px solid rgba(15,39,68,.12)!important;
		box-shadow:0 14px 40px rgba(15,39,68,.16),0 2px 8px rgba(15,39,68,.06)!important;
		border-top:3px solid var(--cf-blue,#1a6fc4)!important;
	}
	.whb-header-bottom .wd-dropdown-menu.wd-design-default > .container{
		padding:0!important;
		width:100%!important;
		max-width:none!important;
	}
	.whb-header-bottom .wd-dropdown-menu .wd-sub-menu{
		--sub-menu-color:var(--cf-navy,#0f2744);
		--sub-menu-color-hover:var(--cf-blue,#1a6fc4);
		padding:4px 0!important;
	}
	.whb-header-bottom .wd-dropdown-menu.wd-design-default .wd-sub-menu > li > a,
	.whb-header-bottom .wd-dropdown-menu .wd-sub-menu > li > a{
		color:var(--cf-navy,#0f2744)!important;
		font-family:var(--cf-font-body,"IBM Plex Sans",sans-serif)!important;
		font-size:14px!important;
		font-weight:500!important;
		line-height:1.45!important;
		padding:11px 16px!important;
		margin:2px 4px!important;
		border-radius:2px!important;
		white-space:normal!important;
		word-break:normal!important;
		overflow-wrap:break-word!important;
		transition:background .18s ease,color .18s ease!important;
	}
	.whb-header-bottom .wd-dropdown-menu .wd-sub-menu > li > a .nav-link-text{
		color:inherit!important;
		font-weight:inherit!important;
	}
	.whb-header-bottom .wd-dropdown-menu .wd-sub-menu > li:hover > a,
	.whb-header-bottom .wd-dropdown-menu .wd-sub-menu > li.current-menu-item > a,
	.whb-header-bottom .wd-dropdown-menu .wd-sub-menu > li.current-menu-ancestor > a{
		color:var(--cf-blue,#1a6fc4)!important;
		background:rgba(26,111,196,.09)!important;
	}
	.whb-header-bottom .wd-dropdown-menu .wd-sub-menu > li.current-menu-item > a{
		font-weight:600!important;
		box-shadow:inset 3px 0 0 var(--cf-blue,#1a6fc4)!important;
		padding-left:13px!important;
	}
	/* Top bar: pannello scuro */
	.whb-top-bar .wd-dropdown-menu.wd-design-default{
		background:var(--cf-navy,#0f2744)!important;
		border:1px solid rgba(255,255,255,.14)!important;
		box-shadow:0 14px 36px rgba(0,0,0,.32)!important;
		border-top:3px solid var(--cf-blue-light,#4a9ad4)!important;
	}
	.whb-top-bar .wd-dropdown-menu.wd-design-default > .container{
		padding:0!important;
	}
	.whb-top-bar .wd-dropdown-menu .wd-sub-menu{
		--sub-menu-color:rgba(255,255,255,.9);
		--sub-menu-color-hover:#fff;
		padding:4px 0!important;
	}
	.whb-top-bar .wd-dropdown-menu.wd-design-default .wd-sub-menu > li > a,
	.whb-top-bar .wd-dropdown-menu .wd-sub-menu > li > a{
		color:rgba(255,255,255,.9)!important;
		font-size:13px!important;
		font-weight:500!important;
		line-height:1.4!important;
		padding:10px 16px!important;
		margin:2px 4px!important;
		border-radius:2px!important;
		transition:background .18s ease,color .18s ease!important;
	}
	.whb-top-bar .wd-dropdown-menu .wd-sub-menu > li > a .nav-link-text{
		color:inherit!important;
	}
	.whb-top-bar .wd-dropdown-menu .wd-sub-menu > li:hover > a,
	.whb-top-bar .wd-dropdown-menu .wd-sub-menu > li.current-menu-item > a{
		color:#fff!important;
		background:rgba(255,255,255,.12)!important;
	}
}

/* —— Mobile header (≤1024px): telefono + menu hamburger —— */
@media (max-width:1024px){
	.whb-top-bar .whb-top-bar-inner{
		flex-wrap:wrap!important;
		align-items:stretch!important;
	}
	.whb-top-bar .container{
		padding-inline:0!important;
		max-width:100%!important;
		width:100%!important;
	}
	/* Riga 1: solo telefoni cliccabili */
	.whb-top-bar .whb-column6.whb-visible-lg,
	.whb-top-bar .whb-col-center.whb-visible-lg{
		display:flex!important;
		flex:1 1 100%!important;
		width:100%!important;
		max-width:100%!important;
		order:1!important;
		justify-content:center!important;
		align-items:center!important;
		padding:8px 16px 6px!important;
		gap:0!important;
		flex-wrap:nowrap!important;
	}
	.whb-top-bar .whb-column6 .wd-header-nav,
	.whb-top-bar .whb-column6 .wd-button-wrapper,
	.whb-top-bar .whb-column6 .whb-comfa_header_cta{
		display:none!important;
	}
	.whb-top-bar .whb-column6 .wd-header-text{
		display:block!important;
		width:100%!important;
		text-align:center!important;
	}
	.whb-top-bar .comfa-topbar{
		display:inline-flex!important;
		justify-content:center!important;
		align-items:center!important;
		flex-wrap:nowrap!important;
		white-space:nowrap!important;
		font-size:12px!important;
		line-height:1.3!important;
		gap:4px 8px!important;
		width:100%!important;
	}
	.whb-top-bar .comfa-topbar__contact{
		display:inline-flex!important;
		flex-wrap:nowrap!important;
		align-items:center!important;
		gap:4px 8px!important;
		white-space:nowrap!important;
	}
	.whb-top-bar .comfa-topbar a{
		display:inline-flex!important;
		align-items:center!important;
		pointer-events:auto!important;
		position:relative!important;
		z-index:2!important;
		padding:6px 4px!important;
		min-height:44px!important;
		-webkit-tap-highlight-color:rgba(255,255,255,.25);
	}
	/* Riga 2: hamburger + logo centrato */
	.whb-top-bar .whb-col-mobile,
	.whb-top-bar [class*="whb-column_mobile"]{
		display:flex!important;
		flex:1 1 100%!important;
		width:100%!important;
		order:2!important;
		align-items:center!important;
		justify-content:space-between!important;
		padding:6px 12px 10px!important;
		min-height:52px!important;
		margin-inline:0!important;
	}
	.whb-top-bar .whb-col-mobile .wd-header-mobile-nav,
	.whb-top-bar [class*="whb-column_mobile"] .wd-header-mobile-nav{
		flex:0 0 auto!important;
		order:1!important;
		margin-inline:0!important;
	}
	.whb-top-bar .whb-col-mobile .site-logo,
	.whb-top-bar [class*="whb-column_mobile"] .site-logo{
		flex:1 1 auto!important;
		display:flex!important;
		justify-content:center!important;
		order:2!important;
		margin-inline:0!important;
	}
	.whb-top-bar .whb-col-mobile .site-logo .wd-main-logo,
	.whb-top-bar [class*="whb-column_mobile"] .site-logo .wd-main-logo{
		display:inline-flex!important;
		background:#fff;
		border-radius:2px;
		padding:4px 10px;
	}
	.whb-top-bar .whb-col-mobile .wd-header-mobile-nav > a,
	.whb-top-bar [class*="whb-column_mobile"] .wd-header-mobile-nav > a{
		display:inline-flex!important;
		align-items:center!important;
		gap:6px!important;
		min-height:44px!important;
		min-width:44px!important;
		padding:8px!important;
		color:#fff!important;
		pointer-events:auto!important;
	}
	.whb-top-bar .whb-col-mobile .wd-tools-text,
	.whb-top-bar [class*="whb-column_mobile"] .wd-tools-text{
		color:#fff!important;
		font-size:12px!important;
		font-weight:600!important;
		text-transform:uppercase;
	}
	.whb-top-bar .whb-col-mobile .wd-tools-icon:before,
	.whb-top-bar [class*="whb-column_mobile"] .wd-tools-icon:before{
		color:#fff!important;
	}
	.whb-top-bar .whb-col-mobile .wd-main-logo img,
	.whb-top-bar [class*="whb-column_mobile"] .wd-main-logo img{
		max-height:40px!important;
		width:auto!important;
	}
}
