/* Nelb WooCommerce Macchedil Pack — Articolo precedente/successivo. */

.nelb-pn {
	--nelb-primary: #FE3F12;
	--nelb-pn-lines: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	align-items: stretch;
}

.nelb-pn-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 14px;
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 10px rgba(20, 20, 20, .03);
	transition: background .15s ease, border-color .15s ease, transform .08s ease;
	min-width: 0;
}
.nelb-pn-card:hover {
	background: #F5F7F7;
}
.nelb-pn-card:active {
	transform: scale(.997);
}
.nelb-pn-card.is-next {
	text-align: right;
}

.nelb-pn-arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #ededed;
	color: #212121;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nelb-pn-card:hover .nelb-pn-arrow {
	background: var(--nelb-primary);
	color: #fff;
	border-color: var(--nelb-primary);
}

.nelb-pn-thumb {
	display: block;
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(135deg, #F5F7F7, #E9EBEE);
}
.nelb-pn-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nelb-pn-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}
.nelb-pn-dir {
	font-weight: 800;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9a9a9a;
	line-height: 1;
}
.nelb-pn-title {
	font-weight: 800;
	font-size: 14px;
	line-height: 1.25;
	color: #212121;
	display: -webkit-box;
	-webkit-line-clamp: var(--nelb-pn-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.nelb-pn-placeholder {
	display: block;
}

/* Mobile */
@media (max-width: 767px) {
	.nelb-pn.mob-stacked {
		grid-template-columns: 1fr;
	}
	.nelb-pn .nelb-pn-thumb {
		width: 64px;
		height: 64px;
		flex: 0 0 64px;
	}
	.nelb-pn-title {
		font-size: 13px;
	}
	.nelb-pn-arrow {
		width: 28px;
		height: 28px;
	}
}
