/**
 * Home — carosello servizi (1 col mobile, 3 col desktop, scroll orizzontale).
 */

.psh-home-services {
	padding-block: 0.5rem;
}

.psh-home-services .psh-section-head {
	margin-bottom: clamp(2rem, 4.5vw, 2.75rem);
}

/* Carosello: flex scroll, scrollbar nascosta, frecce custom */
.psh-home-services__carousel-wrap {
	position: relative;
}

.psh-home-services__carousel {
	--psh-svc-gap: clamp(1rem, 2.4vw, 1.5rem);
}

.psh-home-services__carousel .psh-featured-carousel__track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--psh-svc-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	margin: 0;
	padding: 0.25rem 0 0.75rem;
}

.psh-home-services__carousel .psh-featured-carousel__track::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.psh-home-services__carousel::before,
.psh-home-services__carousel::after {
	display: none;
}

.psh-home-services__carousel .psh-home-service-slide {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.psh-home-services__nav {
	position: absolute;
	top: 42%;
	z-index: 3;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 14%, transparent);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--psh-text-color, #222);
	background: color-mix(in srgb, var(--psh-background-color, #fff) 92%, transparent);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.psh-home-services__nav:hover:not(:disabled),
.psh-home-services__nav:focus-visible:not(:disabled) {
	border-color: color-mix(in srgb, var(--psh-primary-color, #111) 35%, transparent);
	background: var(--psh-background-color, #fff);
	transform: translateY(-50%) scale(1.04);
}

.psh-home-services__nav:focus-visible {
	outline: 2px solid var(--psh-button-color, var(--psh-primary-color, #111));
	outline-offset: 2px;
}

.psh-home-services__nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.psh-home-services__nav[hidden] {
	display: none;
}

.psh-home-services__nav--prev {
	left: -0.35rem;
}

.psh-home-services__nav--next {
	right: -0.35rem;
}

@media (min-width: 768px) {
	.psh-home-services__carousel-wrap {
		padding-inline: 2.75rem;
	}

	.psh-home-services__carousel .psh-featured-carousel__track {
		padding-bottom: 0.5rem;
	}

	.psh-home-services__carousel .psh-home-service-slide {
		flex: 0 0 calc((100% - (2 * var(--psh-svc-gap))) / 3);
		width: calc((100% - (2 * var(--psh-svc-gap))) / 3);
		max-width: calc((100% - (2 * var(--psh-svc-gap))) / 3);
	}

	.psh-home-services__nav--prev {
		left: 0;
	}

	.psh-home-services__nav--next {
		right: 0;
	}
}

.psh-home-service-slide__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.psh-home-service-slide__link:focus-visible {
	outline: 2px solid var(--psh-button-color, var(--psh-primary-color, #111));
	outline-offset: 3px;
}

.psh-home-service-slide .psh-featured-slide__footer {
	padding: 0.85rem 1rem 1rem;
}

.psh-home-service-slide .psh-featured-slide__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.25;
}

.psh-home-service-slide__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 11rem;
	aspect-ratio: 4 / 3;
	color: color-mix(in srgb, var(--psh-primary-color, #111) 55%, transparent);
	background: color-mix(in srgb, var(--psh-primary-color, #111) 10%, transparent);
}

.psh-featured-work--services .psh-featured-slide:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--psh-primary-color, #111) 22%, transparent);
	box-shadow: 0 14px 40px color-mix(in srgb, var(--psh-primary-color, #111) 12%, transparent);
}

.psh-featured-work--services .psh-featured-slide {
	transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.psh-home-services__cta {
	display: flex;
	justify-content: center;
	margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.psh-home-services__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(100%, 18rem);
	padding: 0.85rem 1.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

@media (min-width: 768px) {
	.psh-home-services__cta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psh-featured-work--services .psh-featured-slide {
		transition: none;
	}
}
