
.sce-catalog {
	--sce-accent: #111;
	--sce-text: #1a1a1a;
	--sce-sticky-top: 0px;
	--sce-nav-height: 58px;
	position: relative;
	color: var(--sce-text);
}

.sce-category-nav {
	position: sticky;
	top: var(--sce-sticky-top);
	z-index: 20;
	background: rgba(255,255,255,.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0,0,0,.08);
}

.sce-category-nav__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 3vw, 42px);
	min-height: 58px;
	overflow-x: auto;
	scrollbar-width: none;
}

.sce-category-nav__inner::-webkit-scrollbar { display: none; }

.sce-category-link {
	appearance: none;
	-webkit-appearance: none;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 18px 2px 14px;
	margin: 0;
	color: inherit;
	font: inherit;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	position: relative;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
	transition: color .18s ease;
}

.sce-category-link::before,
.sce-category-link::after {
	content: none !important;
	display: none !important;
}

.sce-category-link:hover,
.sce-category-link:focus,
.sce-category-link:focus-visible,
.sce-category-link:active,
.sce-category-link.is-active,
.sce-category-link[aria-current="true"] {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	text-decoration: none !important;
	color: var(--sce-category-interaction-color, var(--sce-accent));
}

.sce-category-section {
	scroll-margin-top: calc(var(--sce-sticky-top) + var(--sce-nav-height) + 24px);
	padding-top: clamp(46px, 7vw, 88px);
}

.sce-category-title {
	margin: 0 0 clamp(24px, 3vw, 38px);
	font-size: clamp(28px, 3vw, 44px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.sce-sofa-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.sce-sofa-card { min-width: 0; }

.sce-sofa-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 0;
	background: #f6f6f4;
	overflow: hidden;
	position: relative;
	cursor: zoom-in;
}

.sce-sofa-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	--sce-thumb-zoom: 1;
	display: block;
	transform: scale(var(--sce-thumb-zoom));
	transition: transform .35s ease, opacity .35s ease;
}

.sce-sofa-card__image:hover .sce-sofa-card__img {
	transform: scale(calc(var(--sce-thumb-zoom) * 1.018));
	opacity: .96;
}

.sce-sofa-card__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: rgba(255,255,255,.88);
	color: #111;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .2s ease, transform .2s ease;
}

.sce-sofa-card__image:hover .sce-sofa-card__zoom {
	opacity: 1;
	transform: translateY(0);
}

.sce-sofa-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 13px;
}

.sce-sofa-card__title {
	margin: 0;
	font-size: clamp(15px, 1.15vw, 18px);
	font-weight: 500;
	line-height: 1.35;
}

.sce-tech-sheet {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	color: var(--sce-text);
	border: 1px solid rgba(0,0,0,.14);
	border-radius: 999px;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.sce-tech-sheet:hover {
	background: var(--sce-accent);
	color: #fff;
	border-color: var(--sce-accent);
	transform: translateY(-1px);
}

.sce-back-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 30;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,.14);
	background: rgba(255,255,255,.94);
	color: #111;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}

.sce-back-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.sce-lightbox[hidden] {
	display: none !important;
}

.sce-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: clamp(10px, 2vw, 24px);
	box-sizing: border-box;
}

.sce-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, .94);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: sceFadeIn .18s ease both;
}

.sce-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(96vw, 1600px);
	height: min(94dvh, 1080px);
	max-width: 100%;
	max-height: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto auto;
	min-height: 0;
	gap: 0;
	align-items: stretch;
	overflow: hidden;
	animation: sceZoomIn .22s ease both;
}

.sce-lightbox__stage {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	min-width: 0;
	min-height: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 0;
	box-sizing: border-box;
	touch-action: pan-y;
}

/*
 * La lightbox deve mostrare SEMPRE il file originale per intero.
 * Dimensioniamo il box dell'immagine sul viewport disponibile e lasciamo
 * a object-fit: contain il compito di adattarla senza alcun ritaglio.
 * Gli zoom/crop delle miniature non possono propagarsi qui.
 */
.sce-lightbox__image {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	padding: clamp(14px, 2vw, 28px) clamp(54px, 5.5vw, 88px);
	box-sizing: border-box !important;
	object-fit: contain !important;
	object-position: center center !important;
	user-select: none;
	-webkit-user-drag: none;
	opacity: 1;
	transform: none !important;
	transition: opacity .16s ease;
}

.sce-lightbox__stage.is-loading .sce-lightbox__image {
	opacity: 0;
	transform: none !important;
}

.sce-lightbox__stage::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 2px solid rgba(255,255,255,.25);
	border-top-color: rgba(255,255,255,.95);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	animation: sceSpinner .7s linear infinite;
	transition: opacity .12s ease;
}

.sce-lightbox__stage.is-loading::after {
	opacity: 1;
}

.sce-lightbox__close,
.sce-lightbox__nav {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	background: rgba(20,20,20,.58);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 20px rgba(0,0,0,.18);
	transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.sce-lightbox__close:hover,
.sce-lightbox__nav:hover {
	background: rgba(255,255,255,.16);
}

.sce-lightbox__close:focus-visible,
.sce-lightbox__nav:focus-visible {
	outline: 2px solid rgba(255,255,255,.9);
	outline-offset: 2px;
}

.sce-lightbox__close {
	position: absolute;
	right: 6px;
	top: 6px;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	z-index: 5;
}

.sce-lightbox__nav {
	position: absolute;
	top: 50%;
	width: 50px;
	height: 50px;
	margin-top: -25px;
	border-radius: 999px;
	z-index: 4;
}

.sce-lightbox__prev {
	left: 8px;
}

.sce-lightbox__next {
	right: 8px;
}

.sce-lightbox__nav[hidden] {
	display: none !important;
}

.sce-lightbox__counter {
	grid-column: 1;
	grid-row: 2;
	min-height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: rgba(255,255,255,.78);
	font-size: 13px;
	line-height: 1;
	padding: 5px 0 8px;
	box-sizing: border-box;
}

.sce-lightbox__thumbs {
	grid-column: 1;
	grid-row: 3;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 100%;
	min-height: 58px;
	padding: 3px 6px 6px;
	box-sizing: border-box;
	scrollbar-width: thin;
	overscroll-behavior-inline: contain;
}

.sce-lightbox__thumbs[hidden] {
	display: none !important;
}

.sce-lightbox__thumb {
	width: 72px;
	height: 52px;
	flex: 0 0 auto;
	padding: 2px;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 3px;
	background: rgba(255,255,255,.06);
	cursor: pointer;
	opacity: .58;
	overflow: hidden;
	transition: opacity .16s ease, border-color .16s ease, transform .16s ease;
}

.sce-lightbox__thumb:hover {
	opacity: .86;
}

.sce-lightbox__thumb.is-active {
	opacity: 1;
	border-color: rgba(255,255,255,.95);
}

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

body.sce-lightbox-open {
	overflow: hidden !important;
	touch-action: none;
}


@keyframes sceSpinner {
	to { transform: rotate(360deg); }
}

@keyframes sceFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sceZoomIn {
	from { opacity: 0; transform: scale(.985); }
	to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1024px) {
	.sce-sofa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.sce-category-nav__inner {
		justify-content: flex-start;
		padding-inline: 14px;
		gap: 24px;
	}

	.sce-category-section { padding-top: 48px; }

	.sce-sofa-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
	}

	.sce-sofa-card__meta { padding-top: 9px; }
	.sce-sofa-card__title { font-size: 14px; }

	.sce-tech-sheet {
		width: 34px;
		height: 34px;
	}

	.sce-sofa-card__zoom { display: none; }

	.sce-back-top {
		right: 14px;
		bottom: 14px;
		width: 42px;
		height: 42px;
	}

	.sce-lightbox {
		padding: 0;
	}

	.sce-lightbox__dialog {
		width: 100vw;
		height: 100dvh;
		max-width: none;
		max-height: none;
	}

	.sce-lightbox__stage {
		padding: 0;
	}

	.sce-lightbox__image {
		padding: 56px 48px 12px;
	}

	.sce-lightbox__close {
		right: 10px;
		top: 10px;
		width: 42px;
		height: 42px;
	}

	.sce-lightbox__nav {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}

	.sce-lightbox__prev { left: 5px; }
	.sce-lightbox__next { right: 5px; }

	.sce-lightbox__counter {
		min-height: 26px;
		padding: 4px 0 6px;
	}

	.sce-lightbox__thumbs {
		justify-content: flex-start;
		min-height: 54px;
		padding: 3px 8px 7px;
	}

	.sce-lightbox__thumb {
		width: 62px;
		height: 44px;
	}
}

@media (max-width: 430px) {
	.sce-sofa-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.sce-catalog *,
	.sce-catalog *::before,
	.sce-catalog *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
