/* =========================================================
   Nautica Web Shop — Featured Categories Frontend Styles
   ========================================================= */

.nws-featured-cats-section {
	width: 100%;
	box-sizing: border-box;
	padding: 48px 0;
}

.nws-featured-cats-inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.nws-featured-cats-title {
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 800;
	color: #0a2540;
	margin: 0 0 24px;
	line-height: 1.2;
}

/* ── Grid ────────────────────────────────────────────────── */
.nws-featured-cats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 900px) {
	.nws-featured-cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.nws-featured-cats-grid { grid-template-columns: 1fr; }
}

/* ── Card ────────────────────────────────────────────────── */
.nws-fcat-card {
	display: flex;
	align-items: flex-end;
	height: 120px;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	position: relative;
	background-color: #f0ede8;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transition: transform .22s ease, box-shadow .22s ease;
}

/* Overlay sfumato in basso a sinistra → testo sempre leggibile */
.nws-fcat-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(240, 237, 232, 0.90) 0%,
		rgba(240, 237, 232, 0.60) 50%,
		rgba(240, 237, 232, 0.00) 100%
	);
	pointer-events: none;
}

.nws-fcat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(10, 37, 64, .12);
	text-decoration: none;
	color: inherit;
}

/* ── Contenuto ───────────────────────────────────────────── */
.nws-fcat-card__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 26px;
	max-width: 65%;
}

.nws-fcat-card__name {
	font-size: 17px;
	font-weight: 700;
	color: #0a2540;
	margin: 0;
	line-height: 1.25;
	text-transform: lowercase;
}

.nws-fcat-card__desc {
	font-size: 13px;
	color: #4a5568;
	margin: 0;
	line-height: 1.5;
}

/* ── Injector overrides ──────────────────────────────────── */
.wp-block-post-content > .nws-featured-cats-section {
	max-width: 1300px !important;
	width: 100%;
	box-sizing: border-box;
}
.wp-block-post-content .nws-featured-cats-section {
	--wp--style--global--content-size: 1300px;
}
.wp-block-post-content > .nws-featured-cats-section,
.entry-content > .nws-featured-cats-section {
	border: none !important;
	outline: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 560px) {
	.nws-fcat-card { min-height: 140px; }
	.nws-fcat-card__content { max-width: 80%; padding: 18px 20px; }
	.nws-fcat-card__name { font-size: 15px; }
}
