/* Carosello Tacca — stili base (le personalizzazioni sono gestite dai controlli di stile di Elementor) */

.tacca-carosello {
	position: relative;
	overflow: hidden;
}

.tacca-carosello .swiper-wrapper {
	align-items: stretch;
}

.tacca-carosello__slide {
	height: auto;
}

.tacca-carosello__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.tacca-carosello__media {
	position: relative;
	width: 100%;
	height: 320px;
	overflow: hidden;
}
.no-height .tacca-carosello .tacca-carosello__media {
	height: unset !important;
}

.tacca-carosello__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tacca-carosello__content {
	flex: 1;
}

.tacca-carosello__title {
	margin: 0 0 10px;
}

.tacca-carosello__description {
	margin: 0;
}

/* Contenuto sovrapposto all'immagine */
.tacca-carosello--content-overlay .tacca-carosello__card {
	position: relative;
}

.tacca-carosello--content-overlay .tacca-carosello__content {
	position: absolute;
	inset: auto 0 0 0;
	background: linear-gradient( to top, rgba( 0, 0, 0, 0.65 ), rgba( 0, 0, 0, 0 ) );
	color: #fff;
}

/* Frecce di navigazione */
.tacca-carosello__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #fff;
	color: #201d1e;
	cursor: pointer;
	transform: translateY( -50% );
	transition: background-color 0.2s ease, color 0.2s ease;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.15 );
}

.tacca-carosello__arrow--prev {
	left: 10px;
}

.tacca-carosello__arrow--next {
	right: 10px;
}

.tacca-carosello__arrow svg {
	width: 55%;
	height: 55%;
}

.tacca-carosello__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Paginazione */
.tacca-carosello .swiper-pagination {
	position: relative;
	margin-top: 16px;
}

.tacca-carosello .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	margin: 0 5px;
}
