/* Case Study — design rev. 2026
   Card scura su sezione chiara: immagine incassata, tag maiuscolo, titolo
   Manrope, riga azioni in basso a destra. Scoped a post_type=career per non
   toccare la griglia prodotti ("Cosa fa Jenia"), che ha un'altra variante. */

.jew-case-post-grid[data-post-type="career"] {
	--jew-cpg-gap: 25px;
	max-width: 1350px;
	margin-left: auto;
	margin-right: auto;
}

.jew-case-post-grid[data-post-type="career"] .jew-cpg__grid {
	align-items: stretch;
}

.jew-case-post-grid[data-post-type="career"] .jew-cpg__item {
	display: flex;
}

.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #000000;
	border: 1px solid rgba(17, 21, 30, 0.08);
	border-radius: 24px;
	padding: 10px;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.03);
	overflow: hidden;
}

.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-featured {
	display: block;
	border-radius: 18px;
	overflow: hidden;
	background: #15142d;
}

.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-featured img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 410 / 270;
	object-fit: cover;
}

.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px 18px 16px;
	gap: 8px;
}

.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-cats,
.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-cats a {
	font-family: var(--jeny-font-display, "Manrope", system-ui, sans-serif);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-inner .pxl-grid__item-title,
.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-inner .pxl-grid__item-title a {
	font-family: var(--jeny-font-display, "Manrope", system-ui, sans-serif) !important;
	font-size: 26px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em !important;
	color: #ffffff !important;
	text-transform: none !important;
	text-decoration: none;
	margin: 6px 0 0;
}

.jew-case-post-grid[data-post-type="career"] .jew-cpg__action {
	margin-top: auto;
	padding-top: 18px;
	gap: 8px;
}

.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-btn-label {
	height: 40px;
	padding: 0 18px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-family: var(--jeny-font-display, "Manrope", system-ui, sans-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-transform: none;
}

.jew-case-post-grid[data-post-type="career"] .jew-cpg__arrow {
	width: 40px;
	height: 40px;
	background: #0b0b0b;
}

.jew-case-post-grid[data-post-type="career"] .jew-cpg__arrow svg {
	width: 17px;
	height: 16px;
}

@media (max-width: 767px) {
	.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-inner .pxl-grid__item-title,
	.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-inner .pxl-grid__item-title a {
		font-size: 22px !important;
	}
	.jew-case-post-grid[data-post-type="career"] .pxl-grid__item-content {
		padding: 18px 14px 14px;
	}
}

/* ------------------------------------------------------------------
   Prodotti — "Cosa fa Jenia" (post_type=b2b)
   Card navy #11151E con icona centrata, footer #0E0C0E, titolo bianco
   20px e azione a destra (pill chiara + freccia). L'immagine editoriale
   del prodotto resta nei dati ma qui è sostituita dall'icona dedicata
   (meta `jew_card_icon`), come nel frame.
------------------------------------------------------------------ */

.jew-case-post-grid[data-post-type="b2b"] {
	--jew-cpg-gap: 38px;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__grid {
	align-items: stretch;
}

.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__item {
	display: flex;
}

.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 400px;
	gap: 0;
	background: #0e0c0e;
	border: 1px solid #000000;
	border-radius: 22px;
	overflow: hidden;
	/* il tema applica 8px di padding alla card: qui lo spazio lo gestisce il footer */
	padding: 0 !important;
}

.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-featured {
	display: none;
}

/* Il tema sovrappone al riquadro un velo nero e un gradiente radiale
   (pensati per la foto sfocata): qui la card è piatta e l'icona deve restare nitida. */
.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner::before,
.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner::after {
	display: none !important;
}

.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__icon {
	display: flex;
	align-self: stretch;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 273px;
	background: #11151e;
	border-bottom: 1px solid #000000;
	border-radius: 22px 22px 0 0;
}

/* Proporzione del frame: area icona 400×273 sulla card 398×402.
   Con l'altezza fissa, su una card da 280px l'area diventava quasi quadrata. */
@media (min-width: 768px) {
	.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__icon {
		height: auto;
		aspect-ratio: 400 / 273;
	}
}

.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__icon img {
	display: block;
	width: auto;
	height: auto;
	max-width: 140px;
	max-height: 120px;
	object-fit: contain;
}

.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0 !important;
	padding: 26px 17px 10px !important;
}

.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-cats {
	display: none;
}

.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner .pxl-grid__item-title,
.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner .pxl-grid__item-title a {
	font-family: var(--jeny-font-display, "Manrope", system-ui, sans-serif) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1.375 !important;
	letter-spacing: 0 !important;
	color: #ffffff !important;
	text-decoration: none;
	margin: 0;
}

.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__action {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 14px;
}

/* Frame: pill 150×32 `#d9d9d9` al 20% (Rectangle 4, opacity .2) con testo
   bianco Manrope 10px ExtraBold maiuscolo, quindi un chip traslucido.
   Il tema la riportava a 14px Sora con raggio 10, vedi selettore sotto. */
.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner .pxl-grid__item-content .pxl-grid__item-btn-label {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 13px;
	border: 0;
	border-radius: 100px;
	background: rgba(217, 217, 217, 0.2);
	color: #ffffff;
	font-family: var(--jeny-font-display, "Manrope", system-ui, sans-serif);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.366;
	letter-spacing: 0;
	text-transform: uppercase;
	overflow: visible;
}

.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__arrow {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #181d27;
	color: #ffffff;
}

.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__arrow svg {
	width: 12px;
	height: 11px;
}

/* A 1024 il col_lg (3) stringe le card a 280px con il titolo su tre righe:
   due colonne come per la variante blog. */
@media (min-width: 768px) and (max-width: 1199px) {
	.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner {
		min-height: 0;
	}

	.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__icon {
		height: 200px;
		aspect-ratio: auto;
	}

	.jew-case-post-grid[data-post-type="b2b"] .jew-cpg__icon img {
		max-width: 150px;
		max-height: 96px;
	}

	.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner .pxl-grid__item-title,
	.jew-case-post-grid[data-post-type="b2b"] .pxl-grid__item-inner .pxl-grid__item-title a {
		font-size: 18px !important;
	}
}

/* ------------------------------------------------------------------
   Blog — card editoriale (post_type=post)
   Frame "BLOG JENIA REV2026": card 515×328 su sezione #F1F1F1, raggio 22,
   etichetta categoria 16/22 in alto, titolo 34/46.75, pill 150×32 con
   cerchio viola in basso a destra. Niente immagine: la card è di testo.
   ------------------------------------------------------------------ */

.jew-case-post-grid[data-post-type="post"] {
	--jew-cpg-gap: 41px;
	/* Il frame misura 1627px dentro una sezione senza padding orizzontale:
	   sotto i 1707px la griglia si ferma a 40px dai bordi invece di
	   appiccicare le card ai lati del viewport. */
	width: calc(100% - 80px);
	max-width: 1627px;
	margin-left: auto;
	margin-right: auto;
}

.jew-case-post-grid[data-post-type="post"] .jew-cpg__grid {
	align-items: stretch;
}

.jew-case-post-grid[data-post-type="post"] .jew-cpg__item {
	display: flex;
}

.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
	width: 100%;
	min-height: 328px;
	padding: 14px 42px 38px;
	background: #11151e;
	border: 1px solid #000000;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: none;
}

/* Velo e gradiente radiali del tema (pensati per la foto sfocata): qui la
   card è di testo su navy piatto. */
.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner::before,
.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner::after {
	display: none !important;
}

/* La card è di solo testo: immagine e icona restano fuori. */
.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-featured,
.jew-case-post-grid[data-post-type="post"] .jew-cpg__icon {
	display: none;
}

.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0 !important;
	gap: 0 !important;
}

.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-cats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	height: auto;
	padding: 0 !important;
	margin: 0 0 24px;
}

.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-cats a {
	display: inline-block;
	margin: 0;
	padding: 0 !important;
	font-family: var(--jeny-font-display, "Manrope", system-ui, sans-serif);
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 22px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #ffffff;
	text-decoration: none;
}

.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner .pxl-grid__item-title,
.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner .pxl-grid__item-title a {
	margin: 0;
	font-family: var(--jeny-font-display, "Manrope", system-ui, sans-serif) !important;
	font-size: 34px !important;
	font-weight: 400 !important;
	line-height: 46.75px !important;
	letter-spacing: 0;
	text-transform: none !important;
	color: #ffffff !important;
	text-decoration: none;
}

.jew-case-post-grid[data-post-type="post"] .jew-cpg__action {
	justify-content: flex-end;
	margin-top: auto !important;
	padding-top: 22px;
	gap: 10px;
}

.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-btn-label {
	height: 32px;
	padding: 0 16px !important;
	border-radius: 100px !important;
	background: rgba(217, 217, 217, 0.2) !important;
	color: #ffffff !important;
	font-family: var(--jeny-font-display, "Manrope", system-ui, sans-serif) !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.jew-case-post-grid[data-post-type="post"] .jew-cpg__arrow {
	width: 36px;
	height: 36px;
	background: #8235ce;
}

.jew-case-post-grid[data-post-type="post"] .jew-cpg__arrow svg {
	width: 16px;
	height: 15px;
}

/* Sotto i 1200px la card da 515px non ci sta in tre colonne: 282px di larghezza
   con titolo 34px fanno card alte 600px. Passo a due colonne prima che il
   controllo `col_lg` del widget (3) stringa troppo la griglia. */
@media (min-width: 768px) and (max-width: 1199px) {
	.jew-case-post-grid[data-post-type="post"] .jew-cpg__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.jew-case-post-grid[data-post-type="post"] {
		--jew-cpg-gap: 24px;
		width: calc(100% - 40px);
	}

	.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner {
		padding: 20px 28px 28px;
	}

	.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner .pxl-grid__item-title,
	.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner .pxl-grid__item-title a {
		font-size: 26px !important;
		line-height: 35px !important;
	}
}

@media (max-width: 767px) {
	.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner {
		min-height: 0;
		padding: 18px 22px 24px;
		border-radius: 18px;
	}

	.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-cats,
	.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-cats a {
		margin-bottom: 12px;
		font-size: 13px;
		line-height: 18px;
	}

	.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner .pxl-grid__item-title,
	.jew-case-post-grid[data-post-type="post"] .pxl-grid__item-inner .pxl-grid__item-title a {
		font-size: 22px !important;
		line-height: 30px !important;
	}
}
