.header {
	display: block;
	background-color: var(--bianco);
	color: var(--nero-header);
}

.header *,
.overlay * {
	box-sizing: border-box;
}

.header .container {
	padding-right: calc(var(--larghezza-search) + 20px);
}

.header-top {
	background-color: var(--nero-header);
	color: var(--bianco);
}

.header-top > .container {
	min-height: var(--hSmallHeader);
	gap: 24px;
}

.header-top a,
.header-top a[href^="tel:"] {
	color: inherit;
}

.header-top .testo-small,
.header-top .testo-small * {
	letter-spacing: 0;
}

.header-info {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.header-lingua {
	margin-left: auto;
	flex-shrink: 0;
	position: relative;
}

.header-lingua summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-lingua summary::-webkit-details-marker {
	display: none;
}

.header-lingua summary::after,
.menu-desktop .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	flex-shrink: 0;
}

.header-lingua ul {
	position: absolute;
	right: 0;
	top: 100%;
	min-width: 140px;
	margin: 0;
	padding: 10px 16px;
	background-color: var(--nero-header);
	list-style: none;
	z-index: 3;
}

.header-main > .container {
	min-height: var(--hBigHeader);
	gap: 30px;
}

.header .logo-header {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	width: 250px;
	min-height: 64px;
}

.header .logo-header a {
	display: block;
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.header .logo-header img {
	display: block;
	max-width: 100%;
	width: auto;
	height: 60px;
	object-fit: contain;
}

.logo-header .logo-header-simbolo {
	display: block;
	width: 250px;
	height: 50px;
	transition: var(--transition);
	margin: calc(var(--distance-margin-standard) / 2) 0;
}

.logo-footer .logo-footer-simbolo {
	display: block;
	width: 250px;
	height: 70px;
	transition: var(--transition);
	margin: calc(var(--distance-margin-standard) / 2) 0;
}

.logo-header .logo-header-simbolo img,
.logo-footer .logo-footer-simbolo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

.menu-top ul,
.header .menu-desktop ul {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 24px;
	padding: 0;
	margin: 0;
}

.header .menu-desktop {
	flex: 1;
	min-width: 0;
}

.header .menu-desktop > ul {
	justify-content: center;
}

.menu-top li,
.header .menu-desktop li {
	margin: 0;
	position: relative;
	line-height: inherit;
}

.menu-top a,
.header .menu-desktop a {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.header .menu-desktop ul li a {
	color: var(--nero-header);
}

.header .menu-desktop a:hover,
.header .menu-desktop .current-menu-item > a {
	color: var(--rosso);
}

.header .menu-desktop ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 200px;
	padding: 12px 0;
	background-color: var(--bianco);
	box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.header .menu-desktop .sub-menu a {
	padding: 8px 20px;
	white-space: normal;
}

.header .menu-desktop li:hover > .sub-menu,
.header .menu-desktop li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.header .menu-desktop .sub-menu .sub-menu {
	left: 100%;
	top: 0;
}

.header-search {
	position: absolute;
	right: 0;
	top: 0;
	width: var(--larghezza-search);
	height: 84px;
	padding: 19px 40px;
	background-color: var(--rosso);
	color: var(--bianco);
	align-items: center;
	clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
}

.form-search {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	border: 1px solid currentColor;
	color: inherit;
}

.form-search button,
.form-search input {
	background: transparent;
	color: inherit;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	line-height: inherit;
}

.form-search button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	padding: 0;
	cursor: pointer;
}

.form-search input {
	width: 100%;
	min-width: 0;
	padding: 8px 8px 8px 0;
}

.form-search input::placeholder {
	color: inherit;
	opacity: 1;
}

.header :focus-visible,
.overlay :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.form-search:focus-within {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.header .form-search:focus-within,
.overlay .form-search:focus-within,
.header .form-search button:focus-visible,
.header .form-search input:focus-visible,
.overlay .form-search button:focus-visible,
.overlay .form-search input:focus-visible {
	outline: none;
}

.header + .overlay + main {
	margin-top: var(--header-height);
}

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

body.open-menu .header {
	transform: none;
}

.overlay {
	background-color: var(--bianco);
	color: var(--nero-header);
	height: 100dvh;
	overflow-y: auto;
}

.overlay .overlay-content {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	height: auto;
	gap: 30px;
}

.overlay .menu-header,
.overlay .sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.overlay .menu-header li {
	margin: 0;
}

.overlay .menu-header a {
	display: block;
	padding: 10px 0;
	color: inherit;
	text-decoration: none;
}

.overlay .sub-menu {
	padding-left: 20px;
}

.overlay .current-menu-item > a,
.overlay .menu-header a:hover {
	color: var(--rosso);
}

footer ul li a {
  font-weight: 400;
}