/*
 * Cookie banner - modulo GDPR Web Vision S.r.l. (v1.0.0)
 * Banner nero, testi bianchi, pulsanti blu. Tutte le regole sono isolate sotto .wv-cc
 * per non interferire con la grafica del sito.
 */

.wv-cc,
.wv-cc *,
.wv-cc *::before,
.wv-cc *::after {
	box-sizing: border-box;
}

.wv-cc [hidden] {
	display: none !important;
}

.wv-cc {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	letter-spacing: normal;
	text-align: left;
}

.wv-cc p {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: inherit;
	line-height: 1.55;
}

.wv-cc strong,
.wv-cc b {
	color: inherit;
}

.wv-cc a {
	color: #8ab4f8;
	text-decoration: underline;
}

.wv-cc a:hover,
.wv-cc a:focus {
	color: #c6dafc;
}

/* ---------------------------------------------------------------- Banner */

.wv-cc .wv-cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	max-height: 85vh;
	overflow-y: auto;
	background: #000;
	color: #fff;
	box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.35);
	-webkit-overflow-scrolling: touch;
}

.wv-cc .wv-cc-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 64px 20px 28px;
}

.wv-cc .wv-cc-title {
	margin: 0 0 6px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.wv-cc .wv-cc-text {
	font-size: 14px;
	color: #fff;
}

.wv-cc .wv-cc-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-top: 16px;
}

/* ------------------------------------------------------------- Pulsanti */

.wv-cc .wv-cc-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 160px;
	min-height: 46px;
	margin: 0;
	padding: 10px 22px !important;
	border: 2px solid #1565c0;
	border-radius: 6px;
	background: #1565c0;
	box-shadow: none;
	color: #fff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wv-cc .wv-cc-actions .wv-cc-btn + .wv-cc-btn {
	margin-left: 12px;
}

.wv-cc .wv-cc-btn:hover {
	background: #0d47a1;
	border-color: #0d47a1;
}

.wv-cc .wv-cc-btn:active {
	background: #0b3c8c;
	border-color: #0b3c8c;
}

.wv-cc .wv-cc-btn:focus-visible,
.wv-cc .wv-cc-x:focus-visible,
.wv-cc .wv-cc-fab:focus-visible,
.wv-cc a:focus-visible {
	outline: 3px solid #8ab4f8;
	outline-offset: 2px;
}

/* Pulsante X (chiudi = continua senza accettare) */
.wv-cc .wv-cc-x {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	min-width: 0;
	height: 42px;
	margin: 0;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #fff !important;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
}

.wv-cc .wv-cc-x:hover {
	background: #222;
}

/* --------------------------------------------- Pulsante di richiamo (cookie) */

.wv-cc .wv-cc-fab {
	-webkit-appearance: none;
	appearance: none;
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 2147482999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	min-width: 0;
	height: 54px;
	margin: 0;
	padding: 0 !important;
	border: 2px solid #1565c0;
	border-radius: 50%;
	background: #000;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
	color: #fff !important;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.wv-cc .wv-cc-fab:hover {
	background: #1565c0;
	transform: scale(1.06);
}

/* ------------------------------------------------- Pannello preferenze */

.wv-cc .wv-cc-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.wv-cc .wv-cc-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.65);
}

.wv-cc .wv-cc-dialog {
	position: relative;
	width: 100%;
	max-width: 660px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 26px 26px 20px 26px;
	border: 1px solid #333;
	border-radius: 10px;
	background: #000;
	box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
	color: #fff;
	-webkit-overflow-scrolling: touch;
}

.wv-cc .wv-cc-dialog:focus {
	outline: none;
}

.wv-cc .wv-cc-dialog > .wv-cc-title {
	padding-right: 44px;
	font-size: 20px;
}

.wv-cc .wv-cc-dialog > .wv-cc-text {
	margin-bottom: 14px;
}

.wv-cc .wv-cc-cat {
	padding: 14px 0;
	border-top: 1px solid #333;
}

.wv-cc .wv-cc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	font-weight: 400;
	cursor: default;
}

.wv-cc label.wv-cc-cat-head {
	cursor: pointer;
}

.wv-cc .wv-cc-cat-title {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.wv-cc .wv-cc-always {
	font-size: 13px;
	font-weight: 700;
	color: #8ab4f8;
	white-space: nowrap;
}

.wv-cc .wv-cc-cat-text {
	margin-top: 6px;
	font-size: 13.5px;
	color: #fff;
}

/* Interruttore on/off */
.wv-cc .wv-cc-switch {
	position: relative;
	flex: 0 0 auto;
	width: 50px;
	height: 28px;
	margin-left: 16px;
}

.wv-cc .wv-cc-switch input {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.wv-cc .wv-cc-slider {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 28px;
	background: #5f6368;
	transition: background-color 0.2s ease;
}

.wv-cc .wv-cc-slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.wv-cc .wv-cc-switch input:checked + .wv-cc-slider {
	background: #1565c0;
}

.wv-cc .wv-cc-switch input:checked + .wv-cc-slider::before {
	transform: translateX(22px);
}

.wv-cc .wv-cc-switch input:focus-visible + .wv-cc-slider {
	outline: 3px solid #8ab4f8;
	outline-offset: 2px;
}

.wv-cc .wv-cc-dialog .wv-cc-actions {
	margin-top: 6px;
	padding-top: 16px;
	border-top: 1px solid #333;
}

.wv-cc .wv-cc-small {
	margin-top: 14px;
	font-size: 12.5px;
	color: #fff;
}

.wv-cc .wv-cc-small code {
	padding: 1px 5px;
	border-radius: 3px;
	background: #222;
	color: #fff;
	font-family: Menlo, Consolas, monospace;
	font-size: 12px;
	word-break: break-all;
}

html.wv-cc-lock,
html.wv-cc-lock body {
	overflow: hidden;
}

/* --------------------------------------------------------------- Mobile */

@media screen and (max-width: 736px) {
	.wv-cc .wv-cc-inner {
		padding: 16px 16px 14px 16px;
	}

	.wv-cc .wv-cc-banner .wv-cc-title {
		padding-right: 44px;
		font-size: 16px;
	}

	.wv-cc .wv-cc-text {
		font-size: 13px;
	}

	.wv-cc .wv-cc-x {
		top: 8px;
		right: 8px;
	}

	.wv-cc .wv-cc-actions {
		display: block;
		margin-top: 12px;
	}

	.wv-cc .wv-cc-btn {
		width: 100%;
		min-height: 44px;
	}

	.wv-cc .wv-cc-actions .wv-cc-btn + .wv-cc-btn {
		margin-left: 0;
		margin-top: 8px;
	}

	.wv-cc .wv-cc-dialog {
		padding: 20px 16px 16px 16px;
	}

	.wv-cc .wv-cc-fab {
		right: 12px;
		bottom: 12px;
		width: 48px;
		height: 48px;
	}
}

@media print {
	.wv-cc {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wv-cc *,
	.wv-cc *::before {
		transition: none !important;
	}
}
