.vs-wrapper {
	position: relative;
	max-width: var(--vs-max-width, 1440px);
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.vs-wrapper * {
	box-sizing: border-box;
}

.vs-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 4px 20px;
	margin: 0;
	list-style: none;
}

.vs-track::-webkit-scrollbar {
	display: none;
	height: 0;
}

.vs-slide {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: calc((100% - 24px * (var(--vs-desktop-items) - 1)) / var(--vs-desktop-items));
}

.vs-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	will-change: transform;
}

.vs-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.vs-card-media {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	position: relative;
	background: #eee;
}

.vs-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.vs-card:hover .vs-card-media img {
	transform: scale(1.08);
}

.vs-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vs-card-title {
	font-size: 26px;
	font-weight: 500;
	color: #333e48;
	margin: 0;
	line-height: 1.25;
}

.vs-card-desc {
	font-size: 16px;
	font-weight: 300;
	color: #333e48;
	margin: 0;
	line-height: 1.5;
}

.vs-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 16px;
	font-weight: 500;
	color: #333e48;
	text-decoration: none;
	width: fit-content;
}

.vs-card-cta .vs-arrow {
	color: #1d7990;
	transition: transform 0.25s ease;
}

.vs-card-cta:hover .vs-arrow {
	transform: translateX(4px);
}

.vs-card-cta--nolink {
	cursor: default;
}

.vs-nav-group {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 4px;
}

.vs-nav {
	position: static;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	border: 1px solid #333e48;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #1d7990;
	transition: border-color 0.2s ease;
	padding: 0;
}

.vs-nav.is-disabled {
	border-color: #b4c6d4;
	pointer-events: none;
}

/* Desktop: se tutte le card entrano a schermo, il carousel non esiste -> niente controller. */
@media (min-width: 768px) {
	.vs-desktop-no-scroll .vs-nav-group {
		display: none;
	}
}

/* Mobile: fino a 3 elementi -> colonne verticali, oltre 3 -> carousel con anteprima. */
@media (max-width: 767px) {
	.vs-mobile-carousel .vs-slide {
		width: 88%;
	}

	.vs-mobile-columns .vs-track {
		flex-direction: column;
		overflow: visible;
		scroll-snap-type: none;
		padding-bottom: 4px;
	}

	.vs-mobile-columns .vs-slide {
		width: 100%;
		scroll-snap-align: none;
	}

	/* In colonna non esiste scroll orizzontale: niente controller. */
	.vs-mobile-columns .vs-nav-group {
		display: none;
	}
}
