/*! ADS Consent 1.0.0 */
#adsc-root {
	--adsc-bg: #111111;
	--adsc-fg: #f5f5f5;
	--adsc-muted: #b9b9b9;
	--adsc-line: #2c2c2c;
	--adsc-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--adsc-fg);
}
#adsc-root *, #adsc-root *::before, #adsc-root *::after { box-sizing: border-box; }
#adsc-root [hidden] { display: none !important; }
#adsc-root p { margin: 0 0 .6em; color: inherit; }
#adsc-root a { color: var(--adsc-primary, #F2600C); text-decoration: underline; }

/* Banner */
#adsc-banner {
	position: fixed;
	z-index: 2147483000;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	width: calc(100% - 32px);
	max-width: 1040px;
	background: var(--adsc-bg);
	border: 1px solid var(--adsc-line);
	border-radius: var(--adsc-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
	padding: 22px 24px 18px;
	display: flex;
	gap: 20px;
	align-items: flex-end;
}
.adsc-banner-body { flex: 1 1 auto; padding-right: 18px; }
#adsc-root .adsc-title { font-weight: 700; font-size: 16px; margin-bottom: .35em; letter-spacing: .01em; }
#adsc-root .adsc-text { font-size: 14px; color: var(--adsc-muted); margin: 0; }
#adsc-root .adsc-text a { color: var(--adsc-fg); }

.adsc-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; justify-content: flex-end; }

#adsc-root .adsc-btn {
	appearance: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	border-radius: 6px;
	padding: 11px 20px;
	cursor: pointer;
	border: 2px solid transparent;
	min-width: 120px;
	transition: filter .15s ease, background .15s ease;
	text-transform: none;
	letter-spacing: normal;
}
#adsc-root .adsc-btn-primary { background: var(--adsc-primary, #F2600C); color: #fff; border-color: var(--adsc-primary, #F2600C); }
#adsc-root .adsc-btn-primary:hover { filter: brightness(1.08); }
#adsc-root .adsc-btn-outline { background: transparent; color: var(--adsc-fg); border-color: #5a5a5a; }
#adsc-root .adsc-btn-outline:hover { border-color: var(--adsc-fg); }
#adsc-root .adsc-btn-link { background: transparent; color: var(--adsc-fg); text-decoration: underline; min-width: 0; padding-left: 8px; padding-right: 8px; }
#adsc-root .adsc-btn:focus-visible, #adsc-root .adsc-x:focus-visible, #adsc-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

#adsc-root .adsc-x {
	position: absolute;
	top: 8px;
	right: 10px;
	background: transparent;
	border: 0;
	color: var(--adsc-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}
#adsc-root .adsc-x:hover { color: var(--adsc-fg); }

/* Pannello preferenze */
#adsc-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.adsc-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.adsc-panel {
	position: relative;
	background: var(--adsc-bg);
	border: 1px solid var(--adsc-line);
	border-radius: var(--adsc-radius);
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 26px 26px 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
#adsc-root .adsc-panel .adsc-title { font-size: 20px; padding-right: 30px; }
.adsc-cats { margin: 18px 0 8px; border-top: 1px solid var(--adsc-line); }
.adsc-cat { padding: 14px 0; border-bottom: 1px solid var(--adsc-line); }
.adsc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.adsc-cat-label { font-weight: 700; }
#adsc-root .adsc-cat-desc, #adsc-root .adsc-services { font-size: 13px; color: var(--adsc-muted); margin: 0 0 .3em; }
.adsc-always { font-size: 12px; font-weight: 700; color: var(--adsc-primary, #F2600C); text-transform: uppercase; letter-spacing: .04em; }
#adsc-root .adsc-links { font-size: 13px; margin: 12px 0 16px; }
.adsc-panel .adsc-actions { justify-content: flex-end; }

/* Interruttore */
.adsc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.adsc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.adsc-slider { position: absolute; inset: 0; background: #444; border-radius: 24px; transition: background .15s ease; }
.adsc-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s ease; }
.adsc-switch input:checked + .adsc-slider { background: var(--adsc-primary, #F2600C); }
.adsc-switch input:checked + .adsc-slider::before { transform: translateX(20px); }
.adsc-switch input:focus-visible + .adsc-slider { outline: 3px solid #fff; outline-offset: 2px; }
.adsc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pulsante flottante */
#adsc-float {
	position: fixed;
	z-index: 2147482999;
	left: 16px;
	bottom: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--adsc-line);
	background: var(--adsc-bg);
	color: var(--adsc-primary, #F2600C);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
	padding: 0;
}
#adsc-float:hover { color: #fff; }

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

@media (max-width: 780px) {
	#adsc-banner { flex-direction: column; align-items: stretch; bottom: 0; width: 100%; border-radius: var(--adsc-radius) var(--adsc-radius) 0 0; padding: 20px 16px 16px; max-height: 80vh; overflow-y: auto; }
	.adsc-banner-body { padding-right: 24px; }
	.adsc-actions { justify-content: stretch; }
	#adsc-root .adsc-btn { flex: 1 1 auto; }
	#adsc-root .adsc-btn-link { flex-basis: 100%; order: 3; }
	.adsc-panel { padding: 22px 16px 16px; }
}
