/* Cookie consent banner — modello Garante (pulsanti equivalenti, bottom bar) */
#cc-banner,
#cc-banner * { box-sizing: border-box; }

#cc-banner {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 2147483000;
	background: #1b1b1b;
	color: #f2f2f2;
	padding: 16px 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 -2px 12px rgba(0,0,0,.35);
}
#cc-banner .cc-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
#cc-banner .cc-text { flex: 1 1 360px; min-width: 260px; }
#cc-banner .cc-text a { color: #9cd0ff; text-decoration: underline; }
#cc-banner .cc-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
/* I tre pulsanti hanno lo stesso peso visivo (requisito Garante) */
#cc-banner .cc-btn {
	appearance: none;
	border: 1px solid #6aa9e0;
	background: #2a2a2a;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 16px;
	min-width: 130px;
	min-height: 44px;          /* WCAG 2.2 target size */
	border-radius: 6px;
	cursor: pointer;
}
#cc-banner .cc-btn:hover { background: #383838; }
#cc-banner .cc-btn:focus-visible { outline: 3px solid #9cd0ff; outline-offset: 2px; }
#cc-banner .cc-close {
	position: absolute; top: 6px; right: 10px;
	background: none; border: 0; color: #bbb;
	font-size: 22px; line-height: 1; cursor: pointer;
	min-width: 44px; min-height: 44px;
}
#cc-banner .cc-close:focus-visible { outline: 3px solid #9cd0ff; }

/* Pannello "Personalizza" */
#cc-modal {
	position: fixed; inset: 0; z-index: 2147483001;
	background: rgba(0,0,0,.55);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
#cc-modal[hidden] { display: none; }
#cc-modal .cc-card {
	background: #fff; color: #1b1b1b;
	max-width: 560px; width: 100%;
	border-radius: 10px; padding: 24px;
	max-height: 85vh; overflow: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#cc-modal h2 { margin: 0 0 12px; font-size: 20px; }
#cc-modal .cc-row {
	display: flex; justify-content: space-between; gap: 14px;
	padding: 14px 0; border-top: 1px solid #eee;
}
#cc-modal .cc-row h3 { margin: 0 0 4px; font-size: 15px; }
#cc-modal .cc-row p { margin: 0; font-size: 13px; color: #555; }
#cc-modal .cc-switch { flex: 0 0 auto; align-self: center; }
#cc-modal .cc-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
#cc-modal .cc-btn {
	border: 1px solid #1f6fb2; background: #1f6fb2; color: #fff;
	font-weight: 600; padding: 10px 16px; min-height: 44px; border-radius: 6px; cursor: pointer;
}
#cc-modal .cc-btn.cc-secondary { background: #fff; color: #1f6fb2; }
#cc-modal .cc-btn:focus-visible { outline: 3px solid #1f6fb2; outline-offset: 2px; }
#cc-modal input[type=checkbox] { width: 22px; height: 22px; }
#cc-modal input[type=checkbox]:disabled { opacity: .5; }

@media (max-width: 600px) {
	#cc-banner .cc-actions { width: 100%; }
	#cc-banner .cc-btn { flex: 1 1 100%; }
}
