@charset "UTF-8";
/*
 * ST - Ricerca live custom
 * Popup ricerca e risultati rapidi.
 */

body.st_search_aperto {
	overflow: hidden;
}

.st_search_popup,
.st_search_popup * {
	box-sizing: border-box;
}

.st_search_popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 55px 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.st_search_popup.aperto {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.st_search_overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 42, 63, 0.88);
}

.st_search_box {
	position: relative;
	z-index: 2;
	width: min(1100px, 92vw);
	max-height: calc(100vh - 110px);
	overflow: auto;
	background: #ffffff;
	color: #0d2a3f;
	border-radius: 22px;
	padding: 58px 62px 52px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	transform: translateY(18px);
	transition: transform 0.25s ease;
}

.st_search_popup.aperto .st_search_box {
	transform: translateY(0);
}

.st_search_close {
	position: absolute;
	right: 26px;
	top: 24px;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: #f4f8fa;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.st_search_close:hover {
	background: #5ea4c8;
	transform: rotate(90deg);
}

.st_search_close span {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24px;
	height: 4px;
	border-radius: 4px;
	background: #0d2a3f;
	transition: background-color 0.25s ease;
}

.st_search_close:hover span {
	background: #ffffff;
}

.st_search_close span:first-child {
	transform: translate(-50%, -50%) rotate(45deg);
}

.st_search_close span:last-child {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.st_search_head {
	max-width: 760px;
	margin-bottom: 32px;
}

.st_search_head span {
	display: block;
	margin-bottom: 12px;
	color: #5ea4c8;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	line-height: 1;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.st_search_head h2 {
	margin: 0;
	color: #0d2a3f;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(34px, 4vw, 50px);
	line-height: 1.05;
	font-weight: 900;
	text-transform: uppercase;
}

.st_search_line {
	width: 74px;
	height: 5px;
	margin-top: 16px;
	border-radius: 999px;
	background: #e2de45;
}

.st_search_form {
	position: relative;
	width: 100%;
	margin-bottom: 14px;
}

.st_search_input {
	width: 100%;
	height: 68px;
	border: none;
	border-radius: 14px;
	background: #f4f8fa;
	color: #0d2a3f;
	font-family: "Montserrat", sans-serif;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 600;
	padding: 0 78px 0 24px;
	outline: none;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.st_search_input:focus {
	background: #eef6f9;
	box-shadow: 0 0 0 3px rgba(94, 164, 200, 0.18);
}

.st_search_input::placeholder {
	color: rgba(13, 42, 63, 0.45);
}

.st_search_submit {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 10px;
	background: #5ea4c8;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.25s ease;
}

.st_search_submit:hover {
	background: #0d2a3f;
}

.st_search_submit {
	background-image: url('../Immagini/search-bianco.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
}

.st_search_submit span {
	display: none !important;
}

.st_search_hint {
	margin: 0 0 24px;
	color: rgba(13, 42, 63, 0.68);
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
}

.st_search_results {
	width: 100%;
}

.st_search_status {
	width: 100%;
	padding: 22px 0 0;
	color: #0d2a3f;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 700;
}

.st_search_results_list {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 20px;
	margin-top: 26px;
}

.st_search_result {
	width: 100%;
	min-width: 0;
	display: block;
	min-height: 116px;
	background: #f4f8fa;
	color: #0d2a3f;
	border-radius: 16px;
	padding: 18px 20px;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.st_search_result:hover {
	background: #eef6f9;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(13, 42, 63, 0.08);
}

.st_search_result_type {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-bottom: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	line-height: 1;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.st_search_result_type--post {
	background: #0d2a3f;
	color: #ffffff;
}

.st_search_result_type--servizi {
	background: #5ea4c8;
	color: #ffffff;
}

.st_search_result_type--guide_tutorial {
	background: #e2de45;
	color: #0d2a3f;
}

.st_search_result h3 {
	margin: 0;
	color: #0d2a3f;
	font-family: "Montserrat", sans-serif;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 900;
}

.st_search_more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	padding: 13px 22px;
	border-radius: 999px;
	background: #0d2a3f;
	color: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	line-height: 1;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.st_search_more:hover {
	background: #5ea4c8;
	color: #ffffff;
	transform: translateY(-2px);
}

@media only screen and (max-width: 800px) {
	.st_search_popup {
		align-items: flex-start;
		padding: 22px 0;
	}

	.st_search_box {
		width: 92%;
		max-height: calc(100vh - 44px);
		padding: 48px 24px 34px;
		border-radius: 18px;
	}

	.st_search_close {
		right: 16px;
		top: 16px;
		width: 42px;
		height: 42px;
	}

	.st_search_close span {
		width: 21px;
		height: 4px;
	}

	.st_search_head {
		margin-bottom: 26px;
		padding-right: 44px;
	}

	.st_search_head h2 {
		font-size: 31px;
		line-height: 1.12;
	}

	.st_search_input {
		height: 58px;
		font-size: 17px;
		padding-left: 17px;
		padding-right: 66px;
	}

	.st_search_submit {
		width: 42px;
		height: 42px;
		right: 8px;
		background-size: 22px 22px;
	}

	.st_search_results_list {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 14px;
		margin-top: 20px;
	}

	.st_search_result {
		min-height: auto;
		padding: 16px;
	}

	.st_search_result h3 {
		font-size: 17px;
	}
}


/* =========================
   ICONA MENU RICERCA
========================= */

.menu-item.st_search_open > a,
.gm-menu-item.st_search_open > a,
.st_search_open > a,
a.st_search_open,
a[href="#st-search"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px;
	min-width: 44px;
	height: 44px;
	padding-left: 0 !important;
	padding-right: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	position: relative;
}

.menu-item.st_search_open > a::before,
.gm-menu-item.st_search_open > a::before,
.st_search_open > a::before,
a.st_search_open::before,
a[href="#st-search"]::before {
	content: "";
	display: block;
	width: 25px;
	height: 25px;
	background-image: url('../Immagini/search-blu.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-item.st_search_open > a:hover::before,
.gm-menu-item.st_search_open > a:hover::before,
.st_search_open > a:hover::before,
a.st_search_open:hover::before,
a[href="#st-search"]:hover::before {
	opacity: 0.78;
	transform: scale(1.04);
}

.menu-item.st_search_open > a span,
.gm-menu-item.st_search_open > a span,
.st_search_open > a span,
a.st_search_open span,
a[href="#st-search"] span {
	display: none !important;
}

/* ==========================================
   ICONA CERCA BIANCA NEL MENU MOBILE
========================================== */

@media only screen and (max-width: 1024px) {

	.gm-navigation-drawer .st_search_open > a::before,
	.gm-mobile-nav .st_search_open > a::before,
	.gm-navbar-nav .st_search_open > a::before,
	.gm-menu-mobile .st_search_open > a::before,
	.gm-main-menu-wrapper .st_search_open > a::before,
	.gm-main-menu-wrapper a[href="#st-search"]::before,
	.st_search_open > a::before,
	a.st_search_open::before,
	a[href="#st-search"]::before {
		background-image: url('../Immagini/search-bianco.png') !important;
		opacity: 1 !important;
	}

	.gm-navigation-drawer .st_search_open > a,
	.gm-mobile-nav .st_search_open > a,
	.gm-navbar-nav .st_search_open > a,
	.gm-menu-mobile .st_search_open > a,
	.gm-main-menu-wrapper .st_search_open > a,
	.gm-main-menu-wrapper a[href="#st-search"],
	.st_search_open > a,
	a.st_search_open,
	a[href="#st-search"] {
		color: transparent !important;
	}
}


/* =========================
   POPUP NEWSLETTER BREVO
========================= */

body.st_newsletter_aperto {
	overflow: hidden;
}

.st_newsletter_popup,
.st_newsletter_popup * {
	box-sizing: border-box;
}

.st_newsletter_popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 55px 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.st_newsletter_popup.aperto {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.st_newsletter_overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 42, 63, 0.88);
}

.st_newsletter_box {
	position: relative;
	z-index: 2;
	width: min(760px, 92vw);
	max-height: calc(100vh - 110px);
	overflow: auto;
	background: #ffffff;
	color: #0d2a3f;
	border-radius: 22px;
	padding: 58px 62px 52px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	transform: translateY(18px);
	transition: transform 0.25s ease;
}

.st_newsletter_popup.aperto .st_newsletter_box {
	transform: translateY(0);
}

.st_newsletter_close {
	position: absolute;
	right: 26px;
	top: 24px;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: #f4f8fa;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.st_newsletter_close:hover {
	background: #5ea4c8;
	transform: rotate(90deg);
}

.st_newsletter_close span {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24px;
	height: 4px;
	border-radius: 4px;
	background: #0d2a3f;
	transition: background-color 0.25s ease;
}

.st_newsletter_close:hover span {
	background: #ffffff;
}

.st_newsletter_close span:first-child {
	transform: translate(-50%, -50%) rotate(45deg);
}

.st_newsletter_close span:last-child {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.st_newsletter_head {
	margin-bottom: 30px;
	padding-right: 44px;
}

.st_newsletter_head > span {
	display: block;
	margin-bottom: 12px;
	color: #5ea4c8;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	line-height: 1;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.st_newsletter_head h2 {
	margin: 0;
	color: #0d2a3f;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(34px, 4vw, 50px);
	line-height: 1.05;
	font-weight: 900;
	text-transform: uppercase;
}

.st_newsletter_line {
	width: 74px;
	height: 5px;
	margin-top: 16px;
	border-radius: 999px;
	background: #e2de45;
}

/* Form Brevo: stili confinati al popup newsletter. */
.st_newsletter_form {
	width: 100%;
	font-family: "Montserrat", sans-serif;
}

.st_newsletter_form p {
	margin: 0 0 18px;
}

.st_newsletter_form label {
	display: block;
	margin-bottom: 8px;
	color: #0d2a3f;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;
}

.st_newsletter_form input[type="text"],
.st_newsletter_form input[type="email"] {
	display: block;
	width: 100%;
	height: 56px;
	margin-top: 8px;
	border: 0;
	border-radius: 12px;
	background: #f4f8fa;
	color: #0d2a3f;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	padding: 0 18px;
	outline: none;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.st_newsletter_form input[type="text"]:focus,
.st_newsletter_form input[type="email"]:focus {
	background: #eef6f9;
	box-shadow: 0 0 0 3px rgba(94, 164, 200, 0.18);
}

.st_newsletter_form .sib-terms-area {
	margin-top: 4px;
	margin-bottom: 22px;
}

.st_newsletter_form .sib-terms-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 600;
}

.st_newsletter_form .sib-terms-label input[type="checkbox"],
.st_newsletter_form input[type="checkbox"][name="terms"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 2px 0 0;
	accent-color: #0d2a3f;
}

.st_newsletter_form .sib-terms-label a,
.st_newsletter_form a {
	color: #0d2a3f;
	font-weight: 800;
	text-decoration: underline;
}

.st_newsletter_form .sib-submit-area {
	margin-bottom: 0;
}

.st_newsletter_form .sib-default-btn,
.st_newsletter_form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	border: 0;
	border-radius: 999px;
	background: #0d2a3f;
	color: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	line-height: 1;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 15px 24px;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.st_newsletter_form .sib-default-btn:hover,
.st_newsletter_form input[type="submit"]:hover {
	background: #5ea4c8;
	transform: translateY(-2px);
}

.st_newsletter_form .sib-alert-message,
.st_newsletter_form .sib_msg_disp,
.st_newsletter_form .sib-form-message-panel {
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

@media only screen and (max-width: 800px) {
	.st_newsletter_popup {
		align-items: flex-start;
		padding: 22px 0;
	}

	.st_newsletter_box {
		width: 92%;
		max-height: calc(100vh - 44px);
		padding: 48px 24px 34px;
		border-radius: 18px;
	}

	.st_newsletter_close {
		right: 16px;
		top: 16px;
		width: 42px;
		height: 42px;
	}

	.st_newsletter_close span {
		width: 21px;
		height: 4px;
	}

	.st_newsletter_head {
		margin-bottom: 24px;
		padding-right: 44px;
	}

	.st_newsletter_head h2 {
		font-size: 31px;
		line-height: 1.12;
	}

	.st_newsletter_form input[type="text"],
	.st_newsletter_form input[type="email"] {
		height: 52px;
		font-size: 16px;
	}

	.st_newsletter_form .sib-default-btn,
	.st_newsletter_form input[type="submit"] {
		width: 100%;
	}
}


/* =========================
   BREVO - MESSAGGIO SUCCESSO PERSISTENTE
   Il messaggio Double Opt-In resta visibile finche il popup non viene chiuso.
========================= */

.st_newsletter_form .sib-alert-message-success,
.st_newsletter_form .sib_msg_disp:has(.sib-alert-message-success),
.st_newsletter_form .sib-form-message-panel:has(.sib-alert-message-success) {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	height: auto !important;
	max-height: none !important;
	animation: none !important;
	transition: none !important;
}

.st_newsletter_form .sib-alert-message-success,
.st_newsletter_form .sib-alert-message-success * {
	font-weight: 600 !important;
}
