/* =========================================================
   Nautica Web Shop — Sezione Brand (marquee infinito)
   ========================================================= */

.nws-brands-section {
	padding: 40px 0 48px;
	background: #f8f9fb;
	border-top: 1px solid #e8ecf0;
	overflow: hidden;
}

.nws-brands-section__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 24px;
}

.nws-brands-section__title {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 28px;
	letter-spacing: .01em;
}
.nws-brands-section__title::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	background: var(--nws-page-accent, #0d3ea3);
	border-radius: 2px;
	margin: 10px auto 0;
}

/* ── Track wrapper: maschera i bordi con fade ── */
.nws-brands__track-wrap {
	position: relative;
	overflow: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.nws-brands__track-wrap::before,
.nws-brands__track-wrap::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 80px;
	z-index: 2;
	pointer-events: none;
}
.nws-brands__track-wrap::before {
	left: 0;
	background: linear-gradient(to right, #f8f9fb, transparent);
}
.nws-brands__track-wrap::after {
	right: 0;
	background: linear-gradient(to left, #f8f9fb, transparent);
}

/* ── Track: flex con animazione ── */
.nws-brands__track {
	display: flex;
	align-items: center;
	gap: 0;
	width: max-content;
	animation: nws-brands-scroll 28s linear infinite;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
}
.nws-brands__track:hover {
	animation-play-state: paused;
}

@keyframes nws-brands-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ── Item singolo ── */
.nws-brands__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	margin: 0 8px;
	background: #fff;
	border: 1px solid #e8ecf0;
	border-radius: 12px;
	transition: box-shadow .2s, border-color .2s, transform .2s;
}
.nws-brands__item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
	border-color: #cbd5e1;
	transform: translateY(-2px);
}
.nws-brands__item a {
	display: flex;
	align-items: center;
	text-decoration: none;
}
.nws-brands__item img {
	max-width: 120px;
	max-height: 52px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(25%);
	opacity: .85;
	transition: filter .2s, opacity .2s;
}
.nws-brands__item:hover img {
	filter: grayscale(0%);
	opacity: 1;
}
.nws-brands__name {
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	white-space: nowrap;
}

/* Override: lascia la sezione a piena larghezza anche dentro post-content */
.wp-block-post-content > .nws-brands-section,
.entry-content > .nws-brands-section {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
}
