/*
 * Stili del tema Spreafico: font, colori del kit Elementor del sito vecchio,
 * testata, piede, banner cookie e segnaposto della mappa. Misure prese dal
 * sito italiano il 2026-10-24 (riferimento/misure/).
 */

/* Font (ospitati nel tema, non più da Google Fonts) */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/open-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kit: stessa specificità della regola `.elementor-kit-1285 a` */

:root {
	--sc-primary: #0071a1;
	--sc-black: #000;
	--sc-white: #fff;
	--sc-heading-font: "Open Sans", sans-serif;
	--sc-dropdown-font: "Roboto", sans-serif;
}

.sc-site a {
	color: var(--sc-primary);
}

/*
 * Correzione: i blocchi "media e testo" vuoti nella descrizione della home
 * allargavano la pagina a 461 px sui telefoni (sforamento orizzontale).
 */
.wp-block-media-text {
	max-width: 100%;
}

.wp-block-media-text > * {
	min-width: 0;
}

/* Testata */

.sc-header__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 13vh;
	padding: 10px;
	padding-block: 0;
	background-color: var(--sc-primary);
}

.sc-header__logo,
.sc-header__logo img {
	display: block;
}

.sc-header__logo img {
	width: 198px;
	max-width: 100%;
	height: auto;
}

.sc-header__nav {
	padding-inline: 10px;
	background-color: var(--sc-black);
}

.sc-header__inner {
	display: flex;
	flex-direction: column;
	max-width: 1140px;
	margin-inline: auto;
	padding-block: 10px;
}

.sc-menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-menu > li {
	display: flex;
	margin: 0;
}

.sc-site .sc-menu a {
	position: relative;
	display: flex;
	flex-grow: 1;
	align-items: center;
	padding: 13px 20px;
	font-family: var(--sc-heading-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	color: var(--sc-white);
	text-decoration: none;
	white-space: nowrap;
}

.sc-menu a::after {
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 3px;
	content: "";
	background-color: var(--sc-primary);
	opacity: 0;
	transition: opacity 0.3s;
}

.sc-menu a:hover::after,
.sc-menu a:focus-visible::after,
.sc-menu .current-menu-item > a::after {
	opacity: 1;
}

.sc-site .sc-menu-toggle {
	display: none;
}

@media (max-width: 1024px) {
	.sc-header__inner {
		gap: 20px;
	}

	.sc-site .sc-menu-toggle,
	.sc-site .sc-menu-toggle:hover,
	.sc-site .sc-menu-toggle:focus {
		display: flex;
		align-self: center;
		align-items: center;
		justify-content: center;
		margin: 0 auto;
		padding: 0.25em;
		font-size: 22px;
		line-height: 1;
		color: var(--sc-white);
		background-color: rgba(0, 0, 0, 0.05);
		border: 0;
		border-radius: 3px;
		cursor: pointer;
	}

	.sc-menu-toggle svg {
		display: block;
		width: 1em;
		height: 1em;
		fill: currentColor;
	}

	.sc-menu-toggle .sc-menu-toggle__close,
	.sc-menu-toggle[aria-expanded="true"] .sc-menu-toggle__open {
		display: none;
	}

	.sc-menu-toggle[aria-expanded="true"] .sc-menu-toggle__close {
		display: block;
	}

	.sc-menu {
		display: block;
		max-height: 0;
		margin-top: 10px;
		overflow: hidden;
		background-color: var(--sc-white);
		transform: scaleY(0);
		transform-origin: top;
		transition: transform 0.3s;
	}

	.sc-header__nav.is-open .sc-menu {
		max-height: 100vh;
		overflow-y: auto;
		transform: scaleY(1);
	}

	.sc-menu > li {
		display: block;
	}

	.sc-site .sc-menu a {
		padding: 10px 20px;
		font-family: var(--sc-dropdown-font);
		font-size: 13px;
		font-weight: 500;
		line-height: 20px;
		color: #33373d;
		white-space: normal;
	}

	.sc-site .sc-menu a:hover,
	.sc-site .sc-menu .current-menu-item > a {
		color: var(--sc-white);
		background-color: #3f444b;
	}

	.sc-menu a::after {
		display: none;
	}
}

/* Piede */

.sc-footer {
	padding-inline: 10px;
	color: var(--sc-white);
	background-color: var(--sc-black);
}

.sc-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 1140px;
	margin-inline: auto;
	padding-block: 10px;
}

.sc-footer__columns {
	display: flex;
	gap: 20px;
	padding: 10px;
}

.sc-footer__column {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 10px;
}

.sc-footer__title {
	margin: 0;
	padding: 0;
	font-family: var(--sc-heading-font);
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	color: var(--sc-white);
}

.sc-footer__text {
	font-family: var(--sc-heading-font);
	font-weight: 400;
	color: var(--sc-white);
}

.sc-footer__divider {
	padding-block: 15px;
}

.sc-footer__divider span {
	display: block;
	width: 100%;
	border-block-start: 1px solid rgba(255, 255, 255, 0.149);
}

@media (max-width: 767px) {
	.sc-footer__columns {
		flex-direction: column;
	}

	.sc-footer__column {
		flex-basis: auto;
	}
}

/* Mappa di Google bloccata fino al consenso */

.sc-embed {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1rem;
	text-align: center;
	background-color: #f1f3f4;
	border: 1px solid #dadce0;
}

.sc-embed__inner p {
	max-width: 32rem;
	margin: 0 auto 0.9rem;
}

.sc-site .sc-embed__button,
.sc-site .sc-embed__button:hover,
.sc-site .sc-embed__button:focus {
	padding: 0.6rem 1.2rem;
	font-family: var(--sc-heading-font);
	font-weight: 600;
	color: var(--sc-white);
	background-color: var(--sc-primary);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

.sc-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.sc-embed.is-loaded {
	padding: 0;
	background: none;
	border: 0;
}

/* Banner cookie TreeCookie */

html[data-tc-known] [data-tree-cookie-banner] {
	display: none;
}

.sc-consent {
	font-family: var(--sc-heading-font);
}

.sc-consent__banner {
	position: fixed;
	inset-inline: 1rem;
	bottom: 1rem;
	z-index: 9999;
	max-width: 24rem;
	padding: 1.5rem;
	color: var(--sc-white);
	background-color: rgba(0, 0, 0, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	animation: sc-consent-in 240ms ease both;
}

.sc-consent__title {
	margin: 0;
	font-family: var(--sc-heading-font);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sc-white);
}

.sc-consent__text {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
}

.sc-consent__links {
	margin: 0.85rem 0 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
}

.sc-site .sc-consent__links a {
	color: var(--sc-white);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sc-consent__actions {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.sc-site .sc-consent__button,
.sc-site .sc-consent__button:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 2.875rem;
	padding: 0 1.25rem;
	font-family: var(--sc-heading-font);
	font-size: 1rem;
	font-weight: 600;
	color: var(--sc-white);
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.sc-site .sc-consent__button:hover {
	color: var(--sc-white);
	background-color: rgba(255, 255, 255, 0.06);
	border-color: var(--sc-primary);
}

.sc-consent button:focus-visible {
	outline: 2px solid var(--sc-white);
	outline-offset: 2px;
}

.sc-consent__modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.sc-consent__modal[hidden] {
	display: none;
}

.sc-consent__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.6);
}

.sc-consent__card {
	position: relative;
	width: 100%;
	max-width: 36rem;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	color: var(--sc-white);
	background-color: #000;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
	animation: sc-consent-in 200ms ease both;
}

.sc-consent__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sc-site .sc-consent__close,
.sc-site .sc-consent__close:hover,
.sc-site .sc-consent__close:focus {
	display: inline-flex;
	padding: 0.5rem;
	color: rgba(255, 255, 255, 0.75);
	background-color: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.sc-site .sc-consent__close:hover {
	color: var(--sc-white);
	background-color: rgba(255, 255, 255, 0.08);
}

.sc-consent__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
}

.sc-consent__body .sc-consent__text {
	margin: 0 0 0.25rem;
}

.sc-consent__row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	cursor: pointer;
}

.sc-consent__row:has(input:disabled) {
	cursor: default;
}

.sc-consent__meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.125rem;
}

.sc-consent__label {
	font-weight: 600;
}

.sc-consent__desc {
	font-size: 0.85rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

.sc-consent__toggle {
	position: relative;
	flex-shrink: 0;
	width: 2.75rem;
	height: 1.5rem;
	background-color: rgba(255, 255, 255, 0.22);
	border-radius: 9999px;
	transition: background-color 250ms ease;
}

.sc-consent__toggle span {
	position: absolute;
	top: 0.125rem;
	left: 0.125rem;
	width: 1.25rem;
	height: 1.25rem;
	background-color: var(--sc-white);
	border-radius: 9999px;
	transition: transform 250ms ease;
}

.sc-consent__row:has(input:checked) .sc-consent__toggle {
	background-color: var(--sc-primary);
}

.sc-consent__row:has(input:checked) .sc-consent__toggle span,
.sc-consent__toggle--locked span {
	transform: translateX(1.25rem);
}

.sc-consent__toggle--locked {
	opacity: 0.6;
}

.sc-consent__row:has(input:focus-visible) {
	outline: 2px solid var(--sc-white);
	outline-offset: 2px;
}

.sc-consent__foot {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.5rem;
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sc-site .sc-consent__save,
.sc-site .sc-consent__save:hover,
.sc-site .sc-consent__save:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.875rem;
	padding: 0 2rem;
	font-family: var(--sc-heading-font);
	font-size: 1rem;
	font-weight: 600;
	color: var(--sc-white);
	background-color: var(--sc-primary);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

@media (min-width: 640px) {
	.sc-consent__banner {
		inset-inline-end: auto;
	}

	.sc-consent__foot {
		flex-direction: row;
		justify-content: flex-end;
	}

	.sc-consent__foot .sc-consent__button {
		width: auto;
	}
}

@keyframes sc-consent-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-consent__banner,
	.sc-consent__card,
	.sc-menu,
	.sc-menu a::after,
	.sc-consent__toggle,
	.sc-consent__toggle span {
		transition: none;
		animation: none;
	}
}
