/**
 * Press Logos Strip — JUNK Plastic Rehab
 * "As seen on" prefooter grid of media/press logos.
 */

/* ── Section wrapper ── */
.press-strip {
	padding: 56px 0;
	background-color: var(--color-bg, #fff);
	border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
}

/* ── Eyebrow label ── */
.press-strip__eyebrow {
	margin: 0 0 32px;
	font-size: var(--typo-overline-size, 11px);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
	text-align: center;
}

/* ── Logo grid ── */
.press-strip__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0;
}

/* Each logo cell */
.press-strip__item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 32px;
	/* Subtle dividers between items */
	border-right: 1px solid var(--color-border, rgba(0,0,0,0.08));
}

/* Remove right border on last visible item in each row.
   With flex-wrap this is approximated by removing on last-child. */
.press-strip__item:last-child {
	border-right: none;
}

/* ── Logo image ── */
.press-strip__logo {
	display: block;
	height: 28px;       /* altezza fissa — necessario per SVG senza dimensioni intrinseche */
	width: auto;
	max-width: 120px;
	opacity: 0.3;
	transition: opacity 0.25s ease;
}

/* Hover: piena visibilità */
.press-strip__item:hover .press-strip__logo {
	opacity: 1;
}

/* ── Link wrapper ── */
.press-strip__link {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
	.press-strip__item {
		padding: 16px 24px;
	}
}

@media (max-width: 767px) {
	.press-strip {
		padding: 40px 0;
	}

	.press-strip__eyebrow {
		margin-bottom: 24px;
	}

	.press-strip__grid {
		gap: 0;
	}

	.press-strip__item {
		padding: 14px 20px;
		/* Su mobile: 3 per riga con separatori */
		width: 33.333%;
		border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
	}

	/* Rimuovi bordo destro ogni 3 elementi (ultima colonna) */
	.press-strip__item:nth-child(3n) {
		border-right: none;
	}

	/* Rimuovi bordo inferiore negli ultimi elementi dell'ultima riga */
	.press-strip__item:nth-last-child(-n+3):nth-child(3n+1),
	.press-strip__item:nth-last-child(-n+3):nth-child(3n+1) ~ .press-strip__item {
		border-bottom: none;
	}

	.press-strip__logo {
		max-height: 22px;
		max-width: 90px;
	}
}
