/* =========================================================
   WebVox - Fix header/menu responsive - 2026-11-26
   Caricato da mu-plugins/webvox-header-menu-fix.php in fondo all'<head>
   (dopo il "CSS aggiuntivo" del Customizer e dopo Max Mega Menu).

   Breakpoint mobile = 1279px (Max Mega Menu > Temi > "Default" >
   Responsive breakpoint; VamTam lo legge da li' per l'header mobile).
   Da 1280px in su: menu orizzontale su UNA sola riga.
   ========================================================= */

/* ---------- desktop (>= 1280px) ---------- */
@media screen and (min-width: 1280px) {

	/* Annulla la regola del CSS aggiuntivo "@media (max-width:1530px)
	   .first-row .logo-wrapper { width:100%; flex-direction:row ... }"
	   pensata per l'header mobile: torna ai valori desktop del tema. */
	body.responsive-layout header.main-header .first-row .logo-wrapper {
		width: auto;
		height: auto;
		flex-direction: column;
		align-items: normal;
	}

	body.responsive-layout header.main-header .first-row { flex: 0 0 auto; }
	body.responsive-layout header.main-header .second-row { flex: 1 1 auto; min-width: 0; }
	body header.main-header .logo-wrapper.logo-type-image { margin-right: 30px; }

	/* menu su una riga, allineato a destra */
	body #mega-menu-wrap-menu-header #mega-menu-menu-header {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-end;
		align-items: center;
	}
	body #mega-menu-wrap-menu-header #mega-menu-menu-header > li.mega-menu-item {
		flex: 0 0 auto;
	}
	body #mega-menu-wrap-menu-header #mega-menu-menu-header > li.mega-menu-item > a.mega-menu-link {
		white-space: nowrap;
		padding-left: 9px;
		padding-right: 9px;
	}
	body #mega-menu-wrap-menu-header #mega-menu-menu-header > li.mega-lang-item > a.mega-menu-link {
		padding-left: 6px;
		padding-right: 6px;
	}

	/* tendine (es. Blog > Rassegna stampa) allineate a destra della voce:
	   non escono dallo schermo e non creano scroll orizzontale */
	body #mega-menu-wrap-menu-header #mega-menu-menu-header > li.mega-menu-flyout.mega-menu-item > ul.mega-sub-menu {
		left: auto;
		right: 0;
	}
}

/* ---------- laptop 1280-1599px: header piu' compatto ---------- */
@media screen and (min-width: 1280px) and (max-width: 1599px) {
	body header.main-header .header-maybe-limit-wrapper.header-padding {
		padding-left: 30px;
		padding-right: 30px;
	}
	body header.main-header .logo-wrapper .logo img {
		max-width: 230px;
		height: auto;
	}
	body #mega-menu-wrap-menu-header #mega-menu-menu-header > li.mega-menu-item > a.mega-menu-link {
		padding-left: clamp(5px, .55vw, 9px);
		padding-right: clamp(5px, .55vw, 9px);
	}
}

/* ---------- laptop 1280-1439px: testo menu leggermente ridotto ---------- */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
	body #mega-menu-wrap-menu-header #mega-menu-menu-header > li.mega-menu-item > a.mega-menu-link {
		font-size: 13px;
		letter-spacing: .5px;
	}
}
