/* =========================================================
   Nautica Web Shop — Promos Frontend Styles
   ========================================================= */

/* ── Section wrapper ─────────────────────────────────────── */
/* Mirrors .nws-slider-wrap: max-width 1300px, centred with margin: 0 auto */
.nws-promos-section {
	width: 100%;
	max-width: 1300px;
	margin: 40px auto;
	box-sizing: border-box;
	align-self: unset !important;
}

/* Inner is a transparent pass-through — no horizontal padding so the
   cards align flush with the slider's edges */
.nws-promos-inner {
	width: 100%;
	box-sizing: border-box;
}

/* ── Featured grid ───────────────────────────────────────── */
.nws-promos-featured {
	display: grid;
	gap: 16px;
}

/* 1 promo: full width */
.nws-promos-featured--1 {
	grid-template-columns: 1fr;
}

/* 2 promos: side by side */
.nws-promos-featured--2 {
	grid-template-columns: 3fr 2fr;
	grid-template-rows: 1fr;
	min-height: 380px;
}
.nws-promos-featured--2 .nws-promo--large {
	grid-row: span 1;
}

/* 3 promos: large left (2 rows) + 2 small right */
.nws-promos-featured--3 {
	grid-template-columns: 3fr 2fr;
	grid-template-rows: 1fr 1fr;
	min-height: 460px;
}
.nws-promos-featured--3 .nws-promo--large {
	grid-row: span 2;
}

/* ── Extra promos grid ───────────────────────────────────── */
.nws-promos-extra {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 16px;
}

/* ── Promo card base ─────────────────────────────────────── */
.nws-promo {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.nws-promo__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

.nws-promo:hover .nws-promo__bg {
	transform: scale(1.04);
}

/* ── Bottom gradient overlay (leggibilità testi) ─────────── */
.nws-promo::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.68) 0%,
		rgba(0, 0, 0, 0.30) 40%,
		rgba(0, 0, 0, 0) 70%
	);
	pointer-events: none;
}

/* ── Content ─────────────────────────────────────────────── */
.nws-promo__content {
	position: relative;
	z-index: 2;
	padding: 32px 36px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
}

.nws-promo--small .nws-promo__content,
.nws-promo--extra .nws-promo__content {
	padding: 24px 28px;
	gap: 8px;
}

/* ── Text elements ───────────────────────────────────────── */
.nws-promo__subtitle {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1;
}

.nws-promo__title {
	margin: 0;
	font-size: 32px;
	font-weight: 900;
	color: #fff;
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.nws-promo--small .nws-promo__title,
.nws-promo--extra .nws-promo__title {
	font-size: 20px;
}

.nws-promo__desc {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.55;
	max-width: 340px;
}

.nws-promo--small .nws-promo__desc,
.nws-promo--extra .nws-promo__desc {
	font-size: 12px;
	max-width: 100%;
}

/* ── Button — styles cascade from inline, these are fallback ── */
.nws-promo__btn {
	margin-top: 6px;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}
.nws-promo__btn:hover {
	background: #0a2540 !important;
	color: #fff !important;
	transform: translateX(3px);
}

/* ── Extra grid cards — smaller height ───────────────────── */
.nws-promos-extra .nws-promo {
	min-height: 200px;
}
.nws-promos-extra .nws-promo__title {
	font-size: 20px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
	.nws-promos-featured--3,
	.nws-promos-featured--2 {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		min-height: unset;
	}
	.nws-promos-featured--3 .nws-promo--large,
	.nws-promos-featured--2 .nws-promo--large {
		grid-row: span 1;
		min-height: 280px;
	}
	.nws-promo--small {
		min-height: 220px;
	}
	.nws-promos-extra {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 580px) {
	.nws-promos-section {
		padding: 0 12px;
	}
	.nws-promos-featured,
	.nws-promos-extra {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.nws-promos-featured--3 .nws-promo--large {
		min-height: 240px;
	}
	.nws-promo__content {
		padding: 22px 24px;
	}
	.nws-promo__title {
		font-size: 22px !important;
	}
}
