/* =========================================================================
 * TD Accessibility – CSS dei fix front-end
 * ========================================================================= */

/* ---- Skip link "Salta al contenuto" ---- */
.tda-skiplink {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 2147483640;
	padding: 10px 16px;
	background: #000;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	border-radius: 0 0 6px 0;
}
.tda-skiplink:focus {
	left: 0;
	outline: 3px solid #ffeb3b;
	outline-offset: 0;
}

/* ---- Focus outline visibile da tastiera (WCAG 2.4.11 Focus Appearance) ---- */
html.tda-focus-on :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid #1d4ed8 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85) !important;
}
/* Fallback per browser senza :focus-visible */
html.tda-focus-on :is(a, button, input, select, textarea, summary, [tabindex]):focus {
	outline: 3px solid #1d4ed8;
	outline-offset: 2px;
}

/* ---- screen-reader-text: fallback se il tema non lo definisce ---- */
.tda-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.tda-sr-only:focus {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	clip: auto !important;
}
