/* BC Hero Carousel */

/* Il widget occupa tutta la larghezza disponibile nel contenitore.
   La larghezza personalizzata da Avanzato > Layout continua a funzionare. */
.elementor-widget-bc-hero-carousel {
	--container-widget-width: 100%;
	--container-widget-flex-grow: 1;
}

.elementor-widget-bc-hero-carousel,
.e-con > .elementor-widget-bc-hero-carousel,
.e-con-inner > .elementor-widget-bc-hero-carousel {
	width: var(--container-widget-width, 100%);
	max-width: 100%;
	flex-grow: var(--container-widget-flex-grow, 1);
}

.elementor-widget-bc-hero-carousel > .elementor-widget-container {
	width: 100%;
}

.bc-hc {
	--bc-hc-speed: 700ms;
	--bc-hc-easing: cubic-bezier(.65, 0, .35, 1);
	--bc-hc-arrow-x: 20px;
	--bc-hc-arrow-y: 20px;
	--bc-hc-icon-size: 22px;
	position: relative;
	width: 100%;
}

.bc-hc-viewport {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
}

.bc-hc-track {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	height: 100%;
}

/* Ogni contenitore figlio è una slide */
.bc-hc-track > .e-con {
	--width: 100%;
	--min-height: 0;
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

/* Scorrimento */
.bc-hc--slide .bc-hc-track {
	transition: transform var(--bc-hc-speed) var(--bc-hc-easing);
	will-change: transform;
}

.bc-hc.is-instant .bc-hc-track,
.bc-hc.is-instant .bc-hc-track > .e-con {
	transition: none !important;
}

/* Dissolvenza */
.bc-hc--fade .bc-hc-track > .e-con {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: opacity var(--bc-hc-speed) var(--bc-hc-easing), visibility 0s linear var(--bc-hc-speed);
}

.bc-hc--fade .bc-hc-track > .e-con.is-active,
.bc-hc--fade:not(.is-ready) .bc-hc-track > .e-con:first-child {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--bc-hc-speed) var(--bc-hc-easing), visibility 0s;
}

/* Frecce */
.bc-hc-arrow {
	position: absolute;
	z-index: 5;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: var(--bc-hc-icon-size);
	line-height: 1;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
	-webkit-tap-highlight-color: transparent;
}

.bc-hc-arrow svg {
	width: var(--bc-hc-icon-size);
	height: var(--bc-hc-icon-size);
	fill: currentColor;
}

.bc-hc-arrow svg[fill="none"] {
	fill: none;
}

.bc-hc-arrow i {
	font-size: var(--bc-hc-icon-size);
}

.bc-hc-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.bc-hc-arrow[disabled] {
	opacity: .35;
	cursor: default;
}

.bc-hc-prev {
	left: var(--bc-hc-arrow-x);
}

.bc-hc-next {
	right: var(--bc-hc-arrow-x);
}

/* Indicatori */
.bc-hc-dots {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}

.bc-hc-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background-color .25s, transform .25s;
}

.bc-hc-dot.is-active {
	background-color: #fff;
	transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
	.bc-hc-track,
	.bc-hc-track > .e-con {
		transition: none !important;
	}
}
