.cds-mm-header {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99999;
	width: 100%;
	background: linear-gradient(180deg, rgba(19, 18, 17, 1) 0%, rgba(19, 18, 17, 0) 100%);
	color: #fff;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	pointer-events: none;
}

body.admin-bar .cds-mm-header {
	top: 32px;
}

.cds-mm-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 85%;
	max-width: 100%;
	min-height: 96px;
	margin: 0 auto;
	padding: 18px 0;
	pointer-events: auto;
}

.cds-mm-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	max-width: 220px;
	color: #fff;
	text-decoration: none;
}

.cds-mm-logo-image {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 58px;
	object-fit: contain;
}

.cds-mm-logo-text {
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
}

.cds-mm-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
	min-width: 0;
}

.cds-mm-menu-list {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cds-mm-menu-list .menu-item {
	position: relative;
	margin: 0;
	padding: 0;
}

.cds-mm-menu-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 10px 35px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: transparent;
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cds-mm-menu-list .menu-item-has-children > a {
	gap: 10px;
}

.cds-mm-menu-list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	background: url("/wp-content/uploads/2026/07/Freccia-bianca-menu.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.cds-mm-menu-list .menu-item-has-children:hover > a::after,
.cds-mm-menu-list .menu-item-has-children:focus-within > a::after,
.cds-mm-menu-list .menu-item-has-children.is-open > a::after {
	transform: rotate(180deg);
}

.cds-mm-menu-list a:hover,
.cds-mm-menu-list a:focus-visible,
.cds-mm-menu-list .current-menu-item > a,
.cds-mm-menu-list .current-menu-ancestor > a {
	border-color: #E4002B;
	background: #E4002B;
	color: #fff !important;
}

.cds-mm-menu-list .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	display: grid;
	gap: 0;
	min-width: 300px;
	margin: 0;
	padding: 32px;
	border-radius: 8px;
	background: rgba(17, 17, 16, 0.7);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	list-style: none;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.cds-mm-menu-list .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}

.cds-mm-menu-list .menu-item:hover > .sub-menu,
.cds-mm-menu-list .menu-item:focus-within > .sub-menu,
.cds-mm-menu-list .menu-item.is-open > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.cds-mm-menu-list .sub-menu a {
	width: 100%;
	justify-content: space-between;
	gap: 24px;
	min-height: 0;
	padding: 12px 0;
	border: 0;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-radius: 0;
	background: transparent;
	font-size: 14px;
	line-height: 1.25;
	text-align: left;
}

.cds-mm-menu-list .sub-menu a::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	background: url("/wp-content/uploads/2026/05/arrow-down-right-white.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.cds-mm-menu-list .sub-menu li:not(:first-child) > a {
	border-top: 0;
}

.cds-mm-menu-list .sub-menu a:hover,
.cds-mm-menu-list .sub-menu a:focus-visible,
.cds-mm-menu-list .sub-menu .current-menu-item > a,
.cds-mm-menu-list .sub-menu .current-menu-ancestor > a {
	border-color: #fff;
	background: transparent;
	color: #fff !important;
}

.cds-mm-menu-list .sub-menu a:hover::after,
.cds-mm-menu-list .sub-menu a:focus-visible::after {
	transform: translate(2px, -2px);
}

.cds-mm-menu-list .menu-prodotti {
	position: static;
}

.cds-mm-products-mega {
	position: fixed;
	top: 110px;
	left: 1vw;
	width: 98vw;
	max-height: calc(100vh - 130px);
	overflow: auto;
	padding: 86px clamp(32px, 8vw, 170px);
	border-radius: 8px;
	background: rgba(17, 17, 16, 0.7);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.cds-mm-products-mega::before {
	content: "";
	position: fixed;
	left: 0;
	right: 0;
	top: 96px;
	height: 24px;
}

body.admin-bar .cds-mm-products-mega {
	top: 142px;
	max-height: calc(100vh - 162px);
}

body.admin-bar .cds-mm-products-mega::before {
	top: 128px;
}

.cds-mm-menu-list .menu-prodotti:hover > .cds-mm-products-mega,
.cds-mm-menu-list .menu-prodotti:focus-within > .cds-mm-products-mega,
.cds-mm-menu-list .menu-prodotti.is-open > .cds-mm-products-mega {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.cds-mm-products-mega-inner {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr);
	gap: clamp(42px, 7vw, 110px);
	align-items: end;
}

.cds-mm-products-mega-left {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cds-mm-products-mega-title {
	margin: 0 0 70px;
	color: #fff;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.1;
}

.cds-mm-products-mega-tabs {
	display: grid;
	gap: 0;
}

.cds-mm-products-mega-tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 18px 0;
	border: 0;
	border-bottom: 1px solid #fff;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	text-align: left;
	text-transform: uppercase;
}

.cds-mm-products-mega-tab:first-child {
	border-top: 1px solid #fff;
}

.cds-mm-products-mega-tab::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	background: url("/wp-content/uploads/2026/05/arrow-right-white.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.cds-mm-products-mega-tab:hover::after,
.cds-mm-products-mega-tab:focus-visible::after,
.cds-mm-products-mega-tab.is-active::after {
	transform: translateX(3px);
}

.cds-mm-products-mega-right {
	min-width: 0;
}

.cds-mm-products-mega-panel {
	display: grid;
	grid-template-columns: repeat(var(--cds-mm-products-count, 4), minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
	min-height: 515px;
}

.cds-mm-products-mega-panel[hidden] {
	display: none;
}

.cds-mm-products-card {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 515px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background-color: #fff;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	text-decoration: none;
}

.cds-mm-menu-list a.cds-mm-products-card {
	border: 0;
	background-color: #fff;
	background-position: center center;
	background-size: cover;
}

.cds-mm-menu-list .cds-mm-products-card:hover,
.cds-mm-menu-list .cds-mm-products-card:focus-visible {
	border: 0;
	background-color: #fff;
	color: #fff !important;
}

.cds-mm-products-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(19, 18, 17, 0) 20%, #131211 100%);
	z-index: 1;
	transition: background 0.2s ease;
}

.cds-mm-products-card:hover .cds-mm-products-card-overlay,
.cds-mm-products-card:focus-visible .cds-mm-products-card-overlay {
	background: linear-gradient(to bottom, rgba(228, 0, 43, 0) 20%, #E4002B 100%);
}

.cds-mm-products-card-content {
	position: absolute;
	right: 24px;
	bottom: 22px;
	left: 24px;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.cds-mm-products-card-copy {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.cds-mm-products-card-title {
	display: block;
	color: #fff;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 25px;
	font-weight: 300;
	line-height: 1;
	text-transform: uppercase;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.cds-mm-products-card-parent {
	color: #fff;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.15;
	text-transform: uppercase;
}

.cds-mm-products-card-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	background: url("/wp-content/uploads/2026/05/arrow-down-right-white.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.cds-mm-products-card:hover .cds-mm-products-card-icon,
.cds-mm-products-card:focus-visible .cds-mm-products-card-icon {
	transform: translate(2px, -2px);
}

.cds-mm-products-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: end;
	gap: 14px;
	min-height: 54px;
	padding: 14px 22px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: transparent;
	color: #fff !important;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.cds-mm-products-all::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	background: url("/wp-content/uploads/2026/05/arrow-down-right-white.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.cds-mm-menu-list .cds-mm-products-all:hover,
.cds-mm-menu-list .cds-mm-products-all:focus-visible {
	border-color: #fff;
	background: transparent;
	color: #fff !important;
}

.cds-mm-products-all:hover::after,
.cds-mm-products-all:focus-visible::after {
	transform: translate(2px, -2px);
}

.cds-mm-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	flex: 0 0 auto;
	order: 3;
}

.cds-mm-search {
	position: relative;
	display: flex;
	align-items: center;
}

.cds-mm-search-toggle,
.cds-mm-language {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	padding: 0;
}

.cds-mm-search-toggle {
	width: 28px;
	height: 28px;
}

.cds-mm-search-toggle svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: #fff;
}

.cds-mm-language {
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
}

.cds-mm-burger {
	display: none;
	position: relative;
	width: 25px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.cds-mm-burger span {
	position: absolute;
	left: 0;
	display: block;
	width: 25px;
	height: 2px;
	background: #fff;
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.cds-mm-burger span:nth-child(1) {
	top: 0;
}

.cds-mm-burger span:nth-child(2) {
	top: 9px;
}

.cds-mm-burger span:nth-child(3) {
	top: 18px;
}

.cds-mm-burger.is-active span:nth-child(1) {
	top: 9px;
	transform: rotate(45deg);
}

.cds-mm-burger.is-active span:nth-child(2) {
	opacity: 0;
}

.cds-mm-burger.is-active span:nth-child(3) {
	top: 9px;
	transform: rotate(-45deg);
}

.cds-mm-mobile-panel {
	display: none;
}

.cds-mm-search-panel {
	position: absolute;
	top: calc(100% + 18px);
	right: 0;
	width: min(380px, 80vw);
	padding: 18px;
	border-radius: 4px;
	background: rgba(19, 18, 17, 0.96);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.cds-mm-search-input {
	width: 100%;
	padding: 0 0 12px;
	border: 0;
	border-bottom: 1px solid #fff;
	background: transparent;
	color: #fff;
	font-size: 16px;
	line-height: 1.2;
	outline: none;
	appearance: none;
}

.cds-mm-search-input::placeholder {
	color: rgba(255, 255, 255, 0.72);
	opacity: 1;
}

.cds-mm-search-results {
	display: grid;
	gap: 10px;
	max-height: 280px;
	margin-top: 14px;
	overflow: auto;
}

.cds-mm-search-result {
	display: grid;
	gap: 3px;
	color: #fff;
	text-decoration: none;
}

.cds-mm-search-result:hover .cds-mm-search-result-title,
.cds-mm-search-result:focus-visible .cds-mm-search-result-title {
	color: #E4002B;
}

.cds-mm-search-result-title {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	transition: color 0.2s ease;
}

.cds-mm-search-result-type,
.cds-mm-search-message {
	color: rgba(255, 255, 255, 0.68);
	font-size: 12px;
	line-height: 1.3;
}

body.cds-mm-enabled #main-header,
body.cds-mm-enabled #top-header {
	display: none !important;
}

body.cds-mm-products-mega-open {
	overflow: hidden;
}

body.cds-mm-mobile-open {
	overflow: hidden;
}

@media (max-width: 980px) {
	.cds-mm-header {
		position: fixed;
		z-index: 999999;
		background: #131211;
		pointer-events: auto;
	}

	body.admin-bar .cds-mm-header {
		top: 46px;
	}

	.cds-mm-inner {
		width: 90%;
		min-height: 82px;
		gap: 20px;
		padding: 14px 0;
	}

	.cds-mm-nav {
		display: none;
	}

	.cds-mm-actions {
		order: 2;
		margin-left: auto;
	}

	.cds-mm-burger {
		display: block;
		order: 3;
	}

	.cds-mm-language {
		order: 2;
	}

	.cds-mm-search {
		order: 1;
	}

	.cds-mm-mobile-panel {
		position: fixed;
		inset: 82px 0 0;
		z-index: 999998;
		display: block;
		overflow: auto;
		background: #131211;
		color: #fff;
		padding: 0;
		pointer-events: auto;
	}

	body.admin-bar .cds-mm-mobile-panel {
		inset: 128px 0 0;
	}

	.cds-mm-mobile-panel[hidden] {
		display: none;
	}

	.cds-mm-mobile-primary,
	.cds-mm-mobile-subpanel {
		min-height: 100%;
		padding: 34px 5%;
		background: #131211;
	}

	.cds-mm-mobile-primary {
		position: relative;
		z-index: 1;
		opacity: 1;
		transition: opacity 0.2s ease;
	}

	.cds-mm-mobile-panel.has-subpanel-open .cds-mm-mobile-primary {
		opacity: 0;
		pointer-events: none;
	}

	.cds-mm-mobile-subpanel {
		position: absolute;
		inset: 0;
		z-index: 2;
		overflow: auto;
		pointer-events: none;
		transform: translateX(100%);
		transition: transform 0.28s ease;
	}

	.cds-mm-mobile-subpanel[hidden] {
		display: block;
	}

	.cds-mm-mobile-subpanel.is-active {
		pointer-events: auto;
		transform: translateX(0);
	}

	.cds-mm-mobile-list,
	.cds-mm-mobile-sublist,
	.cds-mm-mobile-third-list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.cds-mm-mobile-link,
	.cds-mm-mobile-second-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 18px;
		width: 100%;
		border: 0;
		border-bottom: 1px solid #414140;
		background: transparent;
		color: #fff;
		font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
		text-align: left;
		text-decoration: none;
		cursor: pointer;
	}

	.cds-mm-mobile-link {
		padding: 24px 0;
		font-size: 24px;
		font-weight: 500;
		line-height: 1.15;
	}

	.cds-mm-mobile-link::after {
		content: "";
		display: inline-block;
		width: 20px;
		height: 20px;
		flex: 0 0 20px;
		background: url("/wp-content/uploads/2026/05/arrow-right-white.svg") center / contain no-repeat;
	}

	.cds-mm-mobile-back {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		margin: 0 0 22px auto;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		cursor: pointer;
		font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
		font-size: 16px;
		font-weight: 500;
	}

	.cds-mm-mobile-back::before {
		content: "";
		display: inline-block;
		width: 20px;
		height: 20px;
		background: url("/wp-content/uploads/2026/05/arrow-right-white.svg") center / contain no-repeat;
		transform: rotate(180deg);
	}

	.cds-mm-mobile-subitem {
		padding: 24px 0;
		border-bottom: 1px solid #414140;
	}

	.cds-mm-mobile-second-link {
		padding: 0;
		border-bottom: 0;
		font-size: 18px;
		font-weight: 500;
		line-height: 1.2;
		text-transform: uppercase;
	}

	.cds-mm-mobile-second-link::after {
		content: "";
		display: inline-block;
		width: 20px;
		height: 20px;
		flex: 0 0 20px;
		background: url("/wp-content/uploads/2026/05/arrow-right-white.svg") center / contain no-repeat;
	}

	.cds-mm-mobile-third-list {
		display: grid;
		gap: 12px;
		margin-top: 18px;
	}

	.cds-mm-mobile-third-list a {
		color: #CFCFCF;
		font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
		font-size: 16px;
		font-weight: 400;
		line-height: 1.3;
		text-decoration: none;
	}
}

@media (max-width: 767px) {
	.cds-mm-inner {
		width: 92%;
		min-height: 74px;
		gap: 14px;
	}

	.cds-mm-logo {
		max-width: 150px;
	}

	.cds-mm-logo-image {
		max-height: 44px;
	}

	.cds-mm-nav {
		display: none;
	}

	.cds-mm-actions {
		gap: 14px;
		margin-left: auto;
	}

	.cds-mm-search-panel {
		right: -42px;
		width: min(330px, 88vw);
	}

	.cds-mm-mobile-panel {
		top: 74px;
	}

	.cds-mm-mobile-primary,
	.cds-mm-mobile-subpanel {
		padding: 28px 4%;
	}

	body.admin-bar .cds-mm-mobile-panel {
		top: 120px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .cds-mm-header {
		top: 46px;
	}
}
