/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* --- Video hero controls --- */
.gspb_container__videoContainer {
	position: relative;
}

.tdg-video-toggle {
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.tdg-video-toggle:hover,
.tdg-video-toggle:focus-visible {
	background: rgba(0, 0, 0, 0.65);
	border-color: #fff;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.tdg-video-toggle .tdg-icon-play {
	display: none;
}

.tdg-video-toggle.is-paused .tdg-icon-pause {
	display: none;
}

.tdg-video-toggle.is-paused .tdg-icon-play {
	display: block;
}

/* --- Rispetta prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0ms !important;
		animation-duration: 0ms !important;
	}
}

/* --- Footer link target size (WCAG 2.5.8 AA) --- */
.ct-footer [data-column] p a {
	display: inline-block;
	padding-block: 0.35em;
}

/* --- Footer headings: h2 stilisticamente equivalente ai precedenti <p><strong> --- */
.ct-footer [data-column] h2.wp-block-heading {
	font-size: 1rem;
	font-weight: 700;
	line-height: inherit;
	margin-block-end: var(--theme-content-spacing);
	letter-spacing: inherit;
	text-transform: none;
}

/* --- Fluent Forms: colore errore con contrasto WCAG AA su #FFDE80 (4.94:1) --- */
.fluentform {
	--fluentform-danger: #C00000;
}

/* --- Accordion Greenshift: contenuto chiuso non raggiungibile da tastiera --- */
.gs-accordion-item.gsclose > .gs-accordion-item__content {
	visibility: hidden;
}
.gs-accordion-item.gsopen > .gs-accordion-item__content {
	visibility: visible;
}

/* --- Scroll padding per focus sotto sticky header --- */
:root {
	scroll-padding-top: 186px;
}

/* --- Disabilita sticky header su viewport troppo bassa --- */
@media (max-height: 500px) {
	[data-sticky*=yes],
	[data-sticky*=fixed] {
		position: relative !important;
		top: auto !important;
	}
}
