/* =========================================================
   PACIBO SLIDER — Frontend CSS (scopato sotto .pcbs-*)
   ========================================================= */

/* SECTION LAYOUT — flex per evitare problemi di grid track-sizing con `auto` */
.pcbs-section {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 24px;
	box-sizing: border-box;
	font-family: var(--pcbs-font, inherit);
}
.pcbs-section--slider-only {
	justify-content: center;
}

/* COLONNA DETTAGLI (sinistra) */
.pcbs-details {
	flex: 1 1 320px;
	min-width: 280px;
	max-width: 480px;
}
.pcbs-heading {
	display: inline-block;
	background: var(--pcbs-heading-bg, #000);
	color: var(--pcbs-heading-color, #fff);
	font-size: var(--pcbs-heading-size, 56px);
	font-weight: 900;
	line-height: 1;
	padding: 12px 18px;
	margin: 0 0 36px;
	letter-spacing: -.5px;
	text-transform: uppercase;
	font-family: inherit;
}

/* Detail per slide: tutti renderizzati ma solo l'attivo è visibile */
.pcbs-detail {
	display: none;
	font-family: inherit;
}
.pcbs-detail.is-active {
	display: block;
}
.pcbs-title {
	font-size: var(--pcbs-title-size, 24px);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 16px;
	color: inherit;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.pcbs-desc {
	font-size: var(--pcbs-desc-size, 14px);
	line-height: 1.65;
	margin: 0 0 22px;
	color: inherit;
	font-family: inherit;
}
.pcbs-desc p { margin: 0 0 .8em; }
.pcbs-desc p:last-child { margin: 0; }
.pcbs-specs {
	font-size: var(--pcbs-specs-size, 14px);
	font-weight: 700;
	margin: 0 0 28px;
	color: inherit;
	font-family: inherit;
	letter-spacing: .5px;
}
.pcbs-cta {
	display: inline-block;
	background: var(--pcbs-cta-bg, #000);
	color: var(--pcbs-cta-color, #fff);
	font-size: var(--pcbs-cta-size, 14px);
	font-weight: 700;
	letter-spacing: 1px;
	padding: 16px 28px;
	text-decoration: none;
	text-transform: uppercase;
	font-family: inherit;
	transition: opacity .2s ease;
}
.pcbs-cta:hover { opacity: .85; }

/* SLIDER BOX */
.pcbs-slider {
	position: relative;
	flex-shrink: 0;
	width: 760px;
	max-width: 100%;
	height: 430px;
	overflow: hidden;
	box-sizing: border-box;
}

/* Mini-reset interno: protegge il layout da CSS globali del tema */
.pcbs-slider *,
.pcbs-slider *::before,
.pcbs-slider *::after { box-sizing: border-box; }
.pcbs-slider img {
	max-width: none;
	height: auto;
	display: block;
	border: 0;
}
.pcbs-slider a {
	text-decoration: none;
	color: inherit;
	display: block;
}
.pcbs-slider button {
	font: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

/* CAN (lattina) */
.pcbs-can {
	position: absolute;
	bottom: 12.5%;
	left: 0;
	width: var(--pcbs-small-w, 20%);
	height: var(--pcbs-small-h, 72%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	cursor: pointer;
	transition:
		left   .65s cubic-bezier(.22, 1, .36, 1),
		width  .65s cubic-bezier(.22, 1, .36, 1),
		height .65s cubic-bezier(.22, 1, .36, 1),
		transform .65s cubic-bezier(.22, 1, .36, 1),
		opacity .35s ease;
	will-change: transform, left, width, height, opacity;
}
.pcbs-can a { width: 100%; height: 100%; }
.pcbs-can img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain !important;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: none;
}

/* Stati visivi — usano CSS variables impostate inline dal plugin */
.pcbs-can.is-featured {
	width: var(--pcbs-featured-w, 30%);
	height: var(--pcbs-featured-h, 91%);
	left: var(--pcbs-featured-left, 11%);
	z-index: 5;
	transform: translateY(15px);
	opacity: 1;
}
.pcbs-can.is-small-1 {
	left: var(--pcbs-small1-left, 45%);
	z-index: 4;
	transform: translateY(0);
	opacity: 1;
}
.pcbs-can.is-small-2 {
	left: var(--pcbs-small2-left, 69%);
	z-index: 3;
	transform: translateY(0);
	opacity: 1;
}
.pcbs-can.is-hidden-right {
	left: 100%;
	opacity: 0;
	pointer-events: none;
	transform: translateY(0) scale(.8);
	z-index: 0;
}
.pcbs-can.is-hidden-left {
	left: var(--pcbs-hidden-left, -25%);
	opacity: 0;
	pointer-events: none;
	transform: translateY(0) scale(.8);
	z-index: 0;
}

/* Linea ombra a terra */
.pcbs-shadow {
	position: absolute;
	left: 12.5%;
	right: 12.5%;
	bottom: 11.6%;
	height: 18px;
	background: radial-gradient(ellipse at center, rgba(0,0,0,.18), transparent 68%);
	filter: blur(3px);
	pointer-events: none;
	z-index: 1;
}

/* Frecce */
.pcbs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	background: var(--pcbs-arrow-bg, #050505);
	color: var(--pcbs-arrow-color, #fff);
	font-size: 28px;
	line-height: 1;
	display: grid;
	place-items: center;
	cursor: pointer;
	z-index: 10;
	border-radius: 0;
	transition: background .2s ease, transform .15s ease;
}
.pcbs-arrow:hover { background: var(--pcbs-arrow-hover-bg, #ff2d55); }
.pcbs-arrow:active { transform: translateY(-50%) scale(.94); }
.pcbs-arrow--prev { left: 18px; }
.pcbs-arrow--next { right: 18px; }

.pcbs-empty {
	padding: 24px;
	background: #fafafa;
	border: 1px dashed #ccc;
	font-family: monospace;
	font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
	.pcbs-section {
		grid-template-columns: 1fr;
		gap: 32px;
		justify-items: center;
		text-align: center;
	}
	.pcbs-details { max-width: 100%; }
	.pcbs-slider { margin: 0 auto; }
}
@media (max-width: 620px) {
	.pcbs-section { padding: 40px 16px; }
	.pcbs-slider { height: 330px; }
	.pcbs-heading { font-size: clamp(32px, 10vw, 56px); }
	.pcbs-arrow {
		width: 28px; height: 28px; font-size: 22px;
	}
	.pcbs-arrow--prev { left: 8px; }
	.pcbs-arrow--next { right: 8px; }
}
