/* WOCC Consent — banner (porta lo stile di CookieConsent.astro, con variabili host-aware) */
.wocc-cc {
	position: fixed;
	left: 0; right: 0;
	z-index: 99999;
	display: flex;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
	--cc-accent: #00a3cc;
	--cc-radius: 16px;
	--cc-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wocc-cc--bottom { bottom: 0; align-items: flex-end; }
.wocc-cc--center { top: 0; bottom: 0; align-items: center; background: rgba(0,0,0,.35); }
.wocc-cc[hidden] { display: none; }

.wocc-cc-card {
	pointer-events: auto;
	max-width: 920px;
	width: 100%;
	border-radius: var(--cc-radius, 16px);
	padding: 18px 20px;
	box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
	font: 14px/1.5 var(--cc-font, system-ui, -apple-system, sans-serif);
}

/* Layout a barra a piena larghezza */
.wocc-cc--bar { padding: 0; }
.wocc-cc--bar .wocc-cc-card { max-width: none; border-radius: 0; box-shadow: 0 -8px 24px -12px rgba(0,0,0,.5); }

/* Temi */
.wocc-cc--dark .wocc-cc-card { background: #0e1c24; color: #eaf2f5; border: 1px solid rgba(255,255,255,.1); }
.wocc-cc--light .wocc-cc-card { background: #ffffff; color: #1a2228; border: 1px solid rgba(0,0,0,.1); }
.wocc-cc--custom .wocc-cc-card { background: var(--cc-bg, #0e1c24); color: var(--cc-fg, #eaf2f5); border: 1px solid rgba(127,127,127,.25); }

.wocc-cc-main strong { font-size: 15px; display: block; margin-bottom: 4px; }
.wocc-cc-main p { margin: 0; opacity: .92; }
.wocc-cc--light .wocc-cc-main p { color: #4a5860; opacity: 1; }
.wocc-cc-main a { color: var(--cc-accent, #00a3cc); text-decoration: underline; }

/* Riga link alle policy (sempre visibile) */
.wocc-cc-links { margin: 8px 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.wocc-cc-links a { color: var(--cc-accent, #00a3cc); font-weight: 600; text-decoration: underline; display: inline-flex; align-items: center; }
.wocc-cc-links a + a::before { content: ""; }
.wocc-cc-links a:not(:first-child) { position: relative; }
.wocc-cc-links a:not(:first-child)::before { content: "·"; position: absolute; left: -11px; opacity: .6; text-decoration: none; }

.wocc-cc-opts { margin: 14px 0 4px; display: grid; gap: 8px; }
.wocc-cc-opts[hidden] { display: none; }
.wocc-cc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 10px; padding: 10px 14px; background: rgba(127,127,127,.08); border: 1px solid rgba(127,127,127,.18); }
.wocc-cc-row span { display: flex; flex-direction: column; }
.wocc-cc-row b { font-size: 13.5px; }
.wocc-cc-row small { font-size: 12px; opacity: .8; }
.wocc-cc-row input { width: 18px; height: 18px; accent-color: var(--cc-accent, #00a3cc); }

.wocc-cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.wocc-cc-btn { border: 0; border-radius: calc(var(--cc-radius, 16px) * .55); padding: 10px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.wocc-cc-btn[hidden] { display: none; }
.wocc-cc-btn.primary, .wocc-cc-btn.save { background: var(--cc-accent, #00a3cc); color: #fff; }
/* "Solo necessari" con pari prominenza di "Accetta tutti" (EDPB 03/2022). */
.wocc-cc-btn.equal { background: rgba(127,127,127,.28); color: currentColor; border: 1px solid rgba(127,127,127,.5); }
.wocc-cc--light .wocc-cc-btn.equal { background: #e9edf0; color: #1a2228; }
.wocc-cc-btn.ghost { background: transparent; color: currentColor; border: 1px solid rgba(127,127,127,.4); font-weight: 600; opacity: .85; }
@media (max-width: 560px) { .wocc-cc-actions { justify-content: stretch; } .wocc-cc-btn { flex: 1; } }

/* Pulsante flottante di richiamo preferenze */
.wocc-cc-toggle {
	position: fixed;
	bottom: 18px;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	background: var(--cc-accent, #00a3cc);
	color: #fff;
	border-radius: 999px;
	padding: 11px 16px;
	box-shadow: 0 8px 24px -8px rgba(0,0,0,.55);
	font: 600 13px/1 system-ui, -apple-system, sans-serif;
	transition: transform .15s ease, box-shadow .15s ease;
}
.wocc-cc-toggle:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0,0,0,.6); }
.wocc-cc-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wocc-cc-toggle--left { left: 18px; }
.wocc-cc-toggle--right { right: 18px; }
.wocc-cc-toggle--center { left: 50%; transform: translateX(-50%); }
.wocc-cc-toggle--center:hover { transform: translateX(-50%) translateY(-2px); }

/* Selettore lingua sulle pagine policy */
.wocc-policy-langs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(127,127,127,.25); font: 14px/1 system-ui, -apple-system, sans-serif; }
.wocc-policy-langs a { text-decoration: none; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(127,127,127,.3); color: inherit; opacity: .8; }
.wocc-policy-langs a:hover { opacity: 1; }
.wocc-policy-langs a.is-active { background: var(--cc-accent, #00a3cc); border-color: var(--cc-accent, #00a3cc); color: #fff; opacity: 1; }
.wocc-cc-toggle svg { display: block; }
@media (max-width: 560px) { .wocc-cc-toggle-label { display: none; } .wocc-cc-toggle { padding: 12px; } }

/* Placeholder per iframe bloccati (YouTube/Maps/Vimeo) */
.wocc-embed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; min-height: 220px; padding: 24px; background: #0e1c24; color: #eaf2f5; border: 1px dashed rgba(255,255,255,.2); border-radius: var(--cc-radius, 12px); font: 14px/1.5 var(--cc-font, system-ui, -apple-system, sans-serif); }
.wocc-embed b { font-size: 15px; }
.wocc-embed small { color: #9fb6bf; max-width: 460px; }
.wocc-embed .wocc-embed-btn { border: 0; border-radius: 9px; padding: 10px 18px; font-weight: 700; cursor: pointer; background: var(--cc-accent, #00a3cc); color: #fff; }
