/*
 * Header (parts/testata.php), al posto del template Elementor 20.
 * Tablet 768-1024 px come desktop; sotto i 768 px niente barra grigia e loghi
 * in colonna.
 */

.testata-barra {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	min-height: 37px;
	background-color: #F8F8F8;
}

/* Ricerca: lente e campo, senza pulsante; contorno di 2 px quando è attiva. */
.testata-cerca {
	display: flex;
	min-height: 30px;
	border-radius: 3px;
	overflow: hidden;
	transition: 0.2s;
}

.testata-cerca:focus-within {
	outline: 2px solid;
}

.testata-cerca-icona {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-left: 10px;
	opacity: 0.6;
	color: var(--grigio-testo);
	font-size: 15px;
}

.testata-cerca-icona svg {
	display: block;
	width: 15px;
	height: 15px;
}

.testata .testata-cerca-campo {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	flex-basis: 100%;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 3px;
	background: none;
	font-family: inherit;
	font-size: 15px;
	line-height: 1;
	color: var(--grigio-testo);
	vertical-align: middle;
	white-space: normal;
	outline-offset: -2px;
	transition: color 0.2s;
}

.testata .testata-cerca-campo:focus {
	color: inherit;
	outline: 0;
}

.testata-cerca-campo::placeholder {
	color: inherit;
	font-family: inherit;
	opacity: 0.6;
}

.testata-loghi {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 10px;
	border-bottom: 1px solid #D7D7D7;
}

.testata-loghi a {
	display: inline-block;
}

.testata-loghi img {
	height: auto;
	max-width: 100%;
	vertical-align: middle;
}

.testata-foglio img {
	width: 115px;
}

.testata-review {
	text-align: center;
}

.testata-review img {
	width: 18vw;
}

.testata-menu {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
	padding: 10px;
	border-bottom: 2px solid #000;
}

.testata .testata-menu a,
.testata .testata-menu a:hover {
	color: var(--blu);
}

@media (max-width: 767px) {
	.testata-barra {
		display: none;
	}

	.testata-loghi {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.testata-foglio img {
		width: 90px;
	}

	.testata-review img {
		width: 50vw;
	}

	.testata-menu {
		flex-wrap: wrap;
	}
}
