/**
 * Banner marchi scorrevole — stile Woodmart Popular Brands.
 */

.pcp-brand-marquee-section {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	clear: both;
	background: #fff;
}

.pcp-brand-marquee-section .elementor-widget-wrap {
	text-align: center;
}

.elementor-widget-heading.pcp-brand-marquee-section-title {
	display: block !important;
	width: 100% !important;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	text-align: center !important;
}

.elementor-widget-heading.pcp-brand-marquee-section-title .elementor-widget-container {
	display: block;
	width: 100%;
	text-align: center !important;
}

.elementor-widget-heading.pcp-brand-marquee-section-title .elementor-heading-title,
h2.pcp-brand-marquee-section-title {
	display: block;
	width: 100%;
	margin: 0 auto 1.5rem;
	padding: clamp(1.75rem, 3vw, 2.5rem) 1.25rem 0;
	max-width: 100%;
	text-align: center !important;
	font-family: var(--bzo-title_typo-font-family, inherit);
	font-size: clamp(1.75rem, 2.8vw, 2.125rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0.01em;
	text-transform: none !important;
	color: var(--pcp-black-bar, #1a1a1a);
	position: relative;
}

h2.pcp-brand-marquee-section-title::before,
.elementor-widget-heading.pcp-brand-marquee-section-title .elementor-heading-title::before {
	content: "";
	display: block;
	width: min(140px, 28vw);
	height: 1px;
	margin: 0 auto 1.1rem;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--pcp-blue-primary-border, rgba(37, 99, 235, 0.22)) 50%,
		transparent 100%
	);
}

h2.pcp-brand-marquee-section-title::after,
.elementor-widget-heading.pcp-brand-marquee-section-title .elementor-heading-title::after {
	content: "";
	display: block;
	width: 52px;
	height: 3px;
	margin: 0.85rem auto 0;
	border-radius: 999px;
	background: var(--pcp-blue-primary, var(--pcp-green, #2563eb));
}

.pcp-brand-marquee-slot--elementor {
	width: 100%;
	max-width: 100%;
	clear: both;
}

.pcp-brand-marquee-slot--elementor .pcp-brand-marquee-bar__logo img {
	filter: none;
}

.pcp-brand-marquee-bar {
	background: #fff;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
	clear: both;
}

.pcp-brand-marquee-slot--under-hero {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 28px;
	padding: 0 15px;
	box-sizing: border-box;
	clear: both;
	position: relative;
	z-index: 2;
	isolation: isolate;
}

.pcp-brand-marquee-slot--full-row {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	clear: both;
}

.pcp-brand-marquee-slot--full-row .pcp-brand-marquee-bar__frame {
	max-width: 100%;
	padding: 0 24px;
}

.pcp-brand-marquee-slot--full-row .pcp-brand-marquee-bar__inner {
	padding: 40px 0;
}

.pcp-brand-marquee-slot--full-row .pcp-brand-marquee-bar__group {
	gap: 5rem;
}

.elementor-section.elementor-section-stretched .pcp-brand-marquee-slot--full-row,
.elementor-section.elementor-section-full_width .pcp-brand-marquee-slot--full-row {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Esce dal container boxed di Elementor quando la sezione non è full width */
.elementor-widget-shortcode .pcp-brand-marquee-slot--full-row {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__label {
	display: none;
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 1.25rem;
	padding: 40px 0;
	border-top: 1px solid rgba(26, 26, 26, 0.1);
	border-bottom: 1px solid rgba(26, 26, 26, 0.1);
	background: #fff;
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__track-wrap {
	min-width: 0;
	overflow: hidden;
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__viewport {
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__center-label {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.35rem 1.75rem;
	text-align: center;
	background: #fff;
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__center-accent {
	display: block;
	width: 42px;
	height: 3px;
	border-radius: 999px;
	background: var(--pcp-blue-primary, var(--pcp-green, #2563eb));
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__center-title {
	display: block;
	margin: 0;
	font-size: clamp(1rem, 1.35vw, 1.35rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pcp-black-bar, #1a1a1a);
	line-height: 1.15;
	white-space: nowrap;
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__group {
	gap: 3.5rem;
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__track {
	animation: pcp-brand-marquee-scroll 28s linear infinite;
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__track--reverse {
	animation-name: pcp-brand-marquee-scroll-reverse;
}

.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__track-wrap:hover .pcp-brand-marquee-bar__track {
	animation-play-state: paused;
}

.pcp-brand-marquee-slot--mid-page {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 40px 0;
	padding: 0;
	clear: both;
	background: #fff;
}

.pcp-brand-marquee-slot--mid-page .pcp-brand-marquee-bar__frame {
	max-width: 100%;
	padding: 0 24px;
}

.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__inner {
	justify-content: center;
	padding: 40px 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
}

.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__track-wrap {
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__group {
	gap: 4.5rem;
}

.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__logo {
	width: 220px;
	height: 72px;
}

.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__logo img {
	max-width: 200px;
	max-height: 60px;
	filter: none;
}

.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__track {
	animation: pcp-brand-marquee-scroll 34s linear infinite;
}

.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__track-wrap:hover .pcp-brand-marquee-bar__track {
	animation-play-state: paused;
}

@keyframes pcp-brand-marquee-scroll {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

@keyframes pcp-brand-marquee-scroll-reverse {
	0% {
		transform: translate3d(-50%, 0, 0);
	}
	100% {
		transform: translate3d(0, 0, 0);
	}
}

.pcp-brand-marquee-slot--under-hero .pcp-brand-marquee-bar {
	width: 100%;
}

.pcp-brand-marquee-slot--under-hero .pcp-brand-marquee-bar__frame {
	max-width: 1470px;
}

.pcp-brand-marquee-bar__frame {
	position: relative;
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 15px;
}

.pcp-brand-marquee-bar__tick {
	position: absolute;
	width: 14px;
	height: 3px;
	background: #e4151a;
	z-index: 2;
}

.pcp-brand-marquee-bar__tick--tl {
	top: 0;
	left: 15px;
}

.pcp-brand-marquee-bar__tick--tr {
	top: 0;
	right: 15px;
}

.pcp-brand-marquee-bar__tick--bl {
	bottom: 0;
	left: 15px;
}

.pcp-brand-marquee-bar__tick--br {
	bottom: 0;
	right: 15px;
}

.pcp-brand-marquee-bar__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 1.35rem 0;
	border-top: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
}

.pcp-brand-marquee-bar__label {
	flex: 0 0 auto;
	min-width: 150px;
	max-width: 190px;
	line-height: 1.2;
}

.pcp-brand-marquee-bar__eyebrow {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #e4151a;
}

.pcp-brand-marquee-bar__title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111;
}

.pcp-brand-marquee-bar__track-wrap {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.pcp-brand-marquee-bar__viewport {
	overflow: hidden;
	width: 100%;
}

.pcp-brand-marquee-bar__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: max-content;
	will-change: transform;
	animation: pcp-brand-marquee-scroll 28s linear infinite;
}

.pcp-brand-marquee-bar__track-wrap:hover .pcp-brand-marquee-bar__track {
	animation-play-state: paused;
}

.pcp-brand-marquee-bar__group {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2.75rem;
	flex-shrink: 0;
	padding-inline: 1.25rem;
}

.pcp-brand-marquee-bar__logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 44px;
	text-decoration: none;
	opacity: 0.92;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.pcp-brand-marquee-bar__logo:hover {
	opacity: 1;
	transform: scale(1.05);
}

.pcp-brand-marquee-bar__logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 110px;
	max-height: 36px;
	object-fit: contain;
	object-position: center;
	filter: grayscale(100%);
	transition: filter 0.2s ease;
}

.pcp-brand-marquee-bar__logo:hover img {
	filter: grayscale(0%);
}

.elementor-widget-shortcode .pcp-brand-marquee-bar {
	width: 100%;
}

@media (max-width: 767px) {
	.pcp-brand-marquee-section .elementor-widget-wrap,
	.elementor-widget-wrap:has(> .pcp-brand-marquee-section-title) {
		display: flex;
		flex-direction: column;
		align-items: center !important;
		text-align: center !important;
	}

	.elementor-widget-heading.pcp-brand-marquee-section-title,
	.elementor-element.pcp-brand-marquee-section-title {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		align-self: stretch !important;
		text-align: center !important;
	}

	.elementor-widget-heading.pcp-brand-marquee-section-title .elementor-widget-container,
	.elementor-element.pcp-brand-marquee-section-title > .elementor-widget-container {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		text-align: center !important;
	}

	h2.pcp-brand-marquee-section-title,
	.elementor-widget-heading.pcp-brand-marquee-section-title .elementor-heading-title,
	.elementor-element.pcp-brand-marquee-section-title .elementor-heading-title {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		text-align: center !important;
	}

	.elementor-element.elementor-element-c504e19.pcp-brand-marquee-section-title {
		text-align: center !important;
	}

	h2.pcp-brand-marquee-section-title,
	.elementor-widget-heading.pcp-brand-marquee-section-title .elementor-heading-title {
		margin-bottom: 1.1rem;
		padding-top: 1.35rem;
		font-size: clamp(1.375rem, 5vw, 1.75rem);
		letter-spacing: 0.01em;
	}

	h2.pcp-brand-marquee-section-title::before,
	.elementor-widget-heading.pcp-brand-marquee-section-title .elementor-heading-title::before {
		width: min(100px, 36vw);
		margin-bottom: 0.85rem;
	}

	.pcp-brand-marquee-slot--full-row {
		margin: 32px 0 40px;
	}

	.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__inner {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 28px 0;
	}

	.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__center-label {
		order: -1;
		padding: 0 1rem 0.25rem;
	}

	.pcp-brand-marquee-bar--centered-title .pcp-brand-marquee-bar__track-wrap:last-child {
		display: none;
	}

	.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__inner {
		padding: 28px 0;
	}

	.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__logo {
		width: 170px;
		height: 52px;
	}

	.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__logo img {
		max-width: 150px;
		max-height: 40px;
	}

	.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__group {
		gap: 3rem;
	}

	.pcp-brand-marquee-bar--logos-only .pcp-brand-marquee-bar__track {
		animation-duration: 22s;
	}

	.pcp-brand-marquee-bar__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		padding: 1rem 0;
	}

	.pcp-brand-marquee-bar__label {
		max-width: none;
	}

	.pcp-brand-marquee-bar__track-wrap {
		width: 100%;
	}

	.pcp-brand-marquee-bar__group {
		gap: 2rem;
	}

	.pcp-brand-marquee-bar__logo {
		width: 96px;
		height: 38px;
	}

	.pcp-brand-marquee-bar__logo img {
		max-width: 88px;
		max-height: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcp-brand-marquee-bar__track {
		animation-duration: 90s;
	}
}
