/* ============================================================
   Cookie banner — conforme alle linee guida Garante 10/06/2021.
   I tre pulsanti hanno lo stesso peso visivo: nessun "accetta"
   evidenziato e nessun "rifiuta" declassato a link grigio.
   ============================================================ */

#c-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: #ffffff;
	border-top: 3px solid #79b847;
	box-shadow: 0 -2px 14px rgba(0, 0, 0, .18);
	font-size: 14px;
	line-height: 1.5;
	color: #222222;
	padding: 16px 20px;
}

#c-banner[hidden] { display: none !important; }

.c-wrap {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.c-text { flex: 1 1 420px; min-width: 260px; margin: 0; }
.c-text a { color: #4b7d24; text-decoration: underline; }
.c-text a:hover, .c-text a:focus { color: #35591a; }

.c-actions {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Tutti e tre identici: stessa dimensione, stesso colore, stesso peso. */
.c-btn {
	font: inherit;
	font-weight: 600;
	min-width: 168px;
	min-height: 44px;          /* WCAG 2.2 target size */
	padding: 11px 18px;
	border: 2px solid #79b847;
	border-radius: 4px;
	background: #ffffff;
	color: #35591a;
	cursor: pointer;
	text-align: center;
}

.c-btn:hover { background: #f2f9ea; }

.c-btn:focus-visible,
.c-btn:focus {
	outline: 3px solid #1a4a8a;
	outline-offset: 2px;
}

/* --- pannello di dettaglio --- */
.c-panel {
	max-width: 1180px;
	margin: 14px auto 0;
	border-top: 1px solid #ebebeb;
	padding-top: 14px;
}

.c-panel[hidden] { display: none !important; }

.c-cat {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f2f2f2;
}

.c-cat:last-of-type { border-bottom: 0; }
.c-cat input { margin-top: 4px; width: 20px; height: 20px; flex: 0 0 auto; }
.c-cat label { font-weight: 600; display: block; cursor: pointer; }
.c-cat p { margin: 2px 0 0; color: #555555; font-size: 13px; }
.c-cat input:disabled + div label { color: #666666; }

.c-panel-actions { margin-top: 14px; }

/* --- link permanente nel footer --- */
.c-reopen {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 767px) {
	#c-banner { padding: 14px; font-size: 13px; }
	.c-wrap { gap: 12px; }
	.c-actions { width: 100%; }
	.c-btn { flex: 1 1 100%; min-width: 0; }
}
