/*!
 * Eva Cookie Consent – stile del banner, del pannello preferenze e del pulsante di richiamo
 * Banner nero, testi bianchi, pulsanti blu.
 */
#eva-cc,
#eva-cc * {
	box-sizing: border-box;
}

#eva-cc {
	--cc-bg: #000;
	--cc-text: #fff;
	--cc-muted: #c9c9c9;
	--cc-line: #2e2e2e;
	--cc-blue: #1565c0;
	--cc-blue-hover: #0d47a1;
	--cc-focus: #64b5f6;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cc-text);
}

#eva-cc [hidden] {
	display: none !important;
}

#eva-cc p {
	margin: 0 0 10px 0;
	line-height: 1.55 !important;
}

#eva-cc a {
	color: var(--cc-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

#eva-cc a:hover {
	color: var(--cc-focus);
}

#eva-cc :focus {
	outline: none;
}

#eva-cc :focus-visible {
	outline: 2px solid var(--cc-focus);
	outline-offset: 2px;
}

/* ---------- Pulsanti ---------- */
#eva-cc .cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 20px;
	margin: 0;
	border: 0;
	border-radius: 6px;
	background: var(--cc-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s ease;
}

#eva-cc .cc-btn:hover {
	background: var(--cc-blue-hover);
}

#eva-cc .cc-x {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 26px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
}

#eva-cc .cc-x:hover {
	background: #1f1f1f;
}

/* ---------- Banner ---------- */
#eva-cc .cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	background: var(--cc-bg);
	color: var(--cc-text);
	border-top: 3px solid var(--cc-blue);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .45);
	animation: eva-cc-up .35s ease-out;
}

#eva-cc .cc-banner-inner {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px 56px 20px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}

#eva-cc .cc-text {
	flex: 1 1 auto;
	max-height: 46vh;
	overflow-y: auto;
}

#eva-cc .cc-title {
	margin: 0 0 6px 0;
	font-family: 'Oswald', 'Open Sans', sans-serif;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #fff;
}

#eva-cc .cc-desc {
	margin: 0;
	color: var(--cc-text);
	font-size: 13.5px;
}

#eva-cc .cc-actions {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 200px;
}

/* ---------- Pannello preferenze ---------- */
#eva-cc .cc-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483001;
	background: rgba(0, 0, 0, .7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

#eva-cc .cc-modal {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	background: var(--cc-bg);
	color: var(--cc-text);
	border: 1px solid var(--cc-line);
	border-top: 3px solid var(--cc-blue);
	border-radius: 10px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, .6);
}

#eva-cc .cc-modal-head {
	position: relative;
	padding: 18px 56px 12px 22px;
	border-bottom: 1px solid var(--cc-line);
}

#eva-cc .cc-modal-head .cc-title {
	margin: 0;
}

#eva-cc .cc-modal-body {
	padding: 16px 22px;
	overflow-y: auto;
}

#eva-cc .cc-modal-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 22px 18px 22px;
	border-top: 1px solid var(--cc-line);
}

#eva-cc .cc-modal-foot .cc-btn {
	flex: 1 1 160px;
}

#eva-cc .cc-cat {
	border: 1px solid var(--cc-line);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 0 0 12px 0;
	background: #0b0b0b;
}

#eva-cc .cc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

#eva-cc .cc-cat-name {
	font-weight: 700;
	font-size: 15px;
	color: #fff;
}

#eva-cc .cc-cat p {
	color: var(--cc-muted);
	font-size: 13px;
	margin: 0 0 6px 0;
}

#eva-cc .cc-always {
	font-size: 12px;
	font-weight: 700;
	color: var(--cc-focus);
	white-space: nowrap;
}

#eva-cc details {
	margin-top: 4px;
}

#eva-cc summary {
	cursor: pointer;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

#eva-cc .cc-services {
	list-style: none;
	margin: 8px 0 0 0;
	padding: 0;
}

#eva-cc .cc-services li {
	padding: 8px 0;
	border-top: 1px dashed var(--cc-line);
	font-size: 12.5px;
	color: var(--cc-muted);
	line-height: 1.5;
}

#eva-cc .cc-services li b {
	color: #fff;
}

#eva-cc .cc-meta {
	font-size: 12px;
	color: var(--cc-muted);
	margin-top: 4px;
}

#eva-cc .cc-meta code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: #fff;
	word-break: break-all;
}

/* Interruttore on/off */
#eva-cc .cc-switch {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 48px;
	height: 26px;
	cursor: pointer;
}

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

#eva-cc .cc-slider {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 26px;
	background: #5a5a5a;
	transition: background-color .15s ease;
}

#eva-cc .cc-slider::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s ease;
}

#eva-cc .cc-switch input:checked + .cc-slider {
	background: var(--cc-blue);
}

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

#eva-cc .cc-switch input:focus-visible + .cc-slider {
	outline: 2px solid var(--cc-focus);
	outline-offset: 2px;
}

/* ---------- Pulsante di richiamo (in basso a destra) ---------- */
#eva-cc .cc-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 2147482999;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--cc-blue);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, background-color .15s ease;
}

#eva-cc .cc-float:hover {
	background: var(--cc-blue-hover);
	transform: scale(1.06);
}

#eva-cc .cc-float svg {
	width: 30px;
	height: 30px;
	display: block;
}

html.eva-cc-lock {
	overflow: hidden;
}

@keyframes eva-cc-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	#eva-cc .cc-banner { animation: none; }
	#eva-cc .cc-btn, #eva-cc .cc-float, #eva-cc .cc-slider, #eva-cc .cc-slider::before { transition: none; }
}

/* ---------- Tablet / smartphone ---------- */
@media (max-width: 760px) {
	#eva-cc .cc-banner-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 18px 16px 16px 16px;
	}

	#eva-cc .cc-title {
		padding-right: 36px;
		font-size: 17px;
	}

	#eva-cc .cc-text {
		max-height: 42vh;
	}

	#eva-cc .cc-desc {
		font-size: 13px;
		line-height: 1.5;
	}

	#eva-cc .cc-actions {
		gap: 8px;
	}

	#eva-cc .cc-btn {
		min-height: 40px;
		padding: 9px 16px;
	}

	#eva-cc .cc-actions {
		min-width: 0;
	}

	#eva-cc .cc-modal-foot .cc-btn {
		flex: 1 1 100%;
	}

	#eva-cc .cc-float {
		right: 14px;
		bottom: 14px;
		width: 48px;
		height: 48px;
	}
}
