/* Navbar moderna — onepotcatering */
:root { --nav-navy:#0C2A4C; --nav-red:#B22422; --nav-ink:#16233b; }

.mta-nav {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #fff;
	box-shadow: 0 1px 0 rgba(12,20,38,.08);
	transition: box-shadow .25s ease;
}
.mta-nav.is-scrolled { box-shadow: 0 6px 24px rgba(12,20,38,.12); }
/* Resta sotto la WP admin bar quando presente (evita che lo sticky ci finisca dietro scrollando) */
@media screen and (min-width: 783px) {
	body.admin-bar .mta-nav { top: 32px; }
}
@media screen and (min-width: 601px) and (max-width: 782px) {
	body.admin-bar .mta-nav { top: 46px; }
}
/* ≤600px l'admin bar non è fixed → navbar resta a top:0 */
.mta-nav__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: 76px;
	display: flex;
	align-items: center;
	gap: 24px;
}

/* Logo */
.mta-nav__logo { display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 0; text-decoration: none; color: var(--nav-navy); font-weight: 800; }
.mta-nav__logo img { height: 52px; width: auto; display: block; }

/* Nav desktop */
.mta-nav__nav { flex: 1; display: flex; justify-content: center; }
.mta-nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mta-nav__menu > li { position: relative; }
.mta-nav__menu a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 8px;
	color: var(--nav-ink); font-weight: 600; font-size: 15px; text-decoration: none;
	text-transform: uppercase; letter-spacing: .3px;
	transition: color .15s, background .15s;
}
.mta-nav__menu > li > a:hover,
.mta-nav__menu > li.current-menu-item > a { color: var(--nav-red); }
.mta-nav__menu .menu-item-has-children > a::after {
	content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform .2s; opacity: .6;
}

/* Dropdown */
.mta-nav__menu .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0;
	min-width: 250px; max-width: 320px;
	background: #fff; border: 1px solid #eef0f3; border-radius: 12px;
	box-shadow: 0 18px 44px rgba(12,20,38,.16);
	padding: 8px; margin: 0; list-style: none;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 10;
}
.mta-nav__menu > li:hover > .sub-menu,
.mta-nav__menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mta-nav__menu .sub-menu a { padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; line-height: 1.35; color: #3a4760; }
.mta-nav__menu .sub-menu a:hover { background: #f6f7f9; color: var(--nav-red); }

/* Actions */
.mta-nav__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.mta-nav__cta {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--nav-red); color: #fff !important; text-decoration: none !important;
	font-weight: 700; font-size: 15px; padding: 11px 22px; border-radius: 10px;
	transition: background .2s, transform .2s; white-space: nowrap;
}
.mta-nav__cta:hover { background: #911c1b; transform: translateY(-1px); }

/* Currency switcher */
.mta-cur-switch { position: relative; }
.mta-cur-switch__btn {
	display: inline-flex !important; align-items: center; gap: 7px;
	background: #fff !important; border: 1.5px solid #c9ccd2 !important; border-radius: 10px;
	padding: 9px 13px !important; cursor: pointer; font-weight: 700 !important; font-size: 14px !important; color: var(--nav-navy) !important;
	-webkit-appearance: none; appearance: none; line-height: 1; text-transform: none !important; box-shadow: none !important;
}
.mta-cur-switch__btn:hover { border-color: var(--nav-red) !important; background: #fff !important; color: var(--nav-navy) !important; }
.mta-cur-switch__current { letter-spacing: .2px; }
.mta-cur-switch__caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .6; transition: transform .2s; }
.mta-cur-switch.open .mta-cur-switch__caret { transform: rotate(-135deg); }
.mta-cur-switch__menu {
	position: absolute; top: calc(100% + 8px); right: 0; min-width: 130px;
	background: #fff; border: 1px solid #eef0f3; border-radius: 12px; box-shadow: 0 18px 44px rgba(12,20,38,.16);
	list-style: none; margin: 0; padding: 6px;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 20;
}
.mta-cur-switch.open .mta-cur-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mta-cur-switch__opt {
	display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px;
	cursor: pointer; font-weight: 600; font-size: 14px; color: var(--nav-ink);
}
.mta-cur-switch__opt:hover { background: #f6f7f9; }
.mta-cur-switch__opt.active { background: var(--nav-red); color: #fff; }
.mta-cur-switch__sym { width: 16px; text-align: center; opacity: .85; }

/* Hamburger */
.mta-nav__toggle {
	display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
	flex-direction: column; justify-content: center; gap: 5px; padding: 0;
	-webkit-appearance: none; appearance: none;
}
.mta-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--nav-navy); margin: 0 auto; border-radius: 2px; transition: transform .25s, opacity .2s; }
body.mta-nav-open .mta-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mta-nav-open .mta-nav__toggle span:nth-child(2) { opacity: 0; }
body.mta-nav-open .mta-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel + overlay */
.mta-nav__overlay { position: fixed; inset: 0; background: rgba(8,14,28,.5); z-index: 9998; opacity: 0; transition: opacity .25s; }
.mta-nav__panel {
	position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 86vw);
	background: #fff; z-index: 9999; padding: 88px 22px 28px; overflow-y: auto;
	transform: translateX(100%); transition: transform .3s ease;
	box-shadow: -10px 0 40px rgba(0,0,0,.18);
}
body.mta-nav-open .mta-nav__panel { transform: translateX(0); }
body.mta-nav-open .mta-nav__overlay { opacity: 1; }
body.mta-nav-open { overflow: hidden; }

.mta-nav__menu--mobile { flex-direction: column; align-items: stretch; gap: 2px; }
.mta-nav__menu--mobile > li { width: 100%; }
.mta-nav__menu--mobile a { font-size: 17px; padding: 14px 12px; border-radius: 10px; justify-content: space-between; }
.mta-nav__menu--mobile .menu-item-has-children > a::after { transform: rotate(45deg); }
.mta-nav__menu--mobile .menu-item-has-children.is-open > a::after { transform: rotate(-135deg); }
.mta-nav__menu--mobile .sub-menu {
	position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 10px;
	min-width: 0; max-width: none; display: none;
}
.mta-nav__menu--mobile .menu-item-has-children.is-open > .sub-menu { display: block; }
.mta-nav__menu--mobile .sub-menu a { font-size: 15px; padding: 11px 12px; }
.mta-nav__cta--block { display: none; width: 100%; margin-top: 18px; padding: 15px; }

/* Breakpoint */
@media (max-width: 1023px) {
	.mta-nav__nav { display: none; }
	.mta-nav__actions .mta-nav__cta:not(.mta-nav__cta--block) { display: none; }
	/* Valuta + hamburger spinti a destra */
	.mta-nav__actions { margin-left: auto; gap: 10px; }
	.mta-nav__toggle {
		display: flex; width: 42px; height: 42px;
		border: 1.5px solid #e2e4e9; border-radius: 11px; background: #fff;
	}
	.mta-cur-switch__btn { height: 42px; padding: 0 12px !important; }
	.mta-nav__cta--block { display: flex; }
}
@media (min-width: 1024px) {
	.mta-nav__overlay, .mta-nav__panel { display: none !important; }
	/* Navbar più compatta col logo grande che sporge leggermente sotto la barra */
	.mta-nav { overflow: visible; }
	.mta-nav__inner { height: 104px; }
	.mta-nav__logo img { height: 150px; }
	.mta-nav__logo { transform: translateY(18px); }
}
@media (max-width: 600px) {
	.mta-nav { overflow: visible; }
	.mta-nav__inner { height: 64px; padding: 0 16px; position: relative; }
	/* Logo grande, centrato nella barra, sporgente sotto */
	.mta-nav__logo {
		position: absolute; left: 50%; top: 4px;
		transform: translateX(-50%);
	}
	.mta-nav__logo img { height: 116px; }
	/* Controlli ai lati: valuta a sinistra, hamburger a destra */
	.mta-nav__actions { margin-left: 0; width: 100%; justify-content: space-between; gap: 8px; }
	.mta-nav__panel { padding-top: 76px; }
}
