/* Il widget occupa tutta la larghezza anche nei container Flexbox */
.elementor-widget.elementor-widget-kf-video-hero {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
}

.kf-vh {
	--kf-fade: #fcfcfc;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: #e9e9e7;
	isolation: isolate;
}

.kf-vh .kf-vh__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	border: 0;
}

.kf-vh__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.kf-vh__fade {
	position: absolute;
	left: 0;
	right: 0;
	height: 30%;
	pointer-events: none;
	z-index: 1;
}

/* -1px evita la riga sottile che a volte compare sul bordo */
.kf-vh__fade--top {
	top: -1px;
	background: linear-gradient(to bottom, var(--kf-fade), transparent);
}

.kf-vh__fade--bottom {
	bottom: -1px;
	background: linear-gradient(to top, var(--kf-fade), transparent);
}

.kf-vh__content {
	position: absolute;
	left: 3%;
	bottom: 7%;
	z-index: 2;
	max-width: 90%;
}

.kf-vh .kf-vh__text {
	margin: 0 0 1.5em;
	color: #fff;
	font-size: clamp(16px, 1.4vw, 24px);
	line-height: 1.5;
}

.kf-vh .kf-vh__link {
	--kf-ul-w: 50px;
	--kf-ul-h: 1px;
	--kf-ul-offset: 4px;
	position: relative;
	display: inline-block;
	color: #fff;
	text-decoration: none;
	font-size: clamp(16px, 1.4vw, 24px);
	line-height: 1.3;
}

.kf-vh .kf-vh__link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: calc(var(--kf-ul-offset) * -1);
	width: var(--kf-ul-w);
	max-width: 100%;
	height: var(--kf-ul-h);
	background-color: currentColor;
	transition: width 0.3s ease;
}

.kf-vh-hover-full-yes .kf-vh .kf-vh__link:hover::after,
.kf-vh-hover-full-yes .kf-vh .kf-vh__link:focus-visible::after {
	width: 100%;
}

.kf-vh .kf-vh__link:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 6px;
}

/* Il doppio selettore serve a battere gli stili dei pulsanti del tema */
.kf-vh button.kf-vh__sound {
	position: absolute;
	right: 3%;
	bottom: 7%;
	z-index: 3;
	width: 48px;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid #fff;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.2);
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kf-vh button.kf-vh__sound:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.kf-vh button.kf-vh__sound[hidden] {
	display: none;
}

.kf-vh .kf-vh__ico {
	display: grid;
	place-items: center;
	line-height: 1;
}

.kf-vh .kf-vh__sound svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	display: block;
}

/* SVG caricati: forza il colore scelto nel pannello */
.kf-vh .kf-vh__sound svg [fill]:not([fill="none"]) {
	fill: currentColor;
}

.kf-vh .kf-vh__sound svg [stroke]:not([stroke="none"]) {
	stroke: currentColor;
}

.kf-vh .kf-vh__sound i {
	font-size: 22px;
	line-height: 1;
	color: inherit;
}

.kf-vh .kf-vh__sound .kf-vh__ico-on,
.kf-vh .kf-vh__sound.is-on .kf-vh__ico-off {
	display: none;
}

.kf-vh .kf-vh__sound.is-on .kf-vh__ico-on {
	display: grid;
}

@media (prefers-reduced-motion: reduce) {
	.kf-vh .kf-vh__link::after,
	.kf-vh button.kf-vh__sound {
		transition: none;
	}
}
