/* ==========================================================================
   PRODUCT CARD — variante blocco threecol (1/3)
   Figma node: 2023:23238
   ========================================================================== */

.s4w-product-card-threecol {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 20px;
	border: 1px solid var(--stroke-soft-200, #e2e4e9);
	height: 100%;
	box-sizing: border-box;
	min-width: 0;
}

/* Media */
.s4w-product-card-threecol__media-link {
	display: block;
	text-decoration: none;
	overflow: hidden;
	flex-shrink: 0;
}

.s4w-product-card-threecol__media {
	width: 100%;
	aspect-ratio: 3 / 4;
	background-color: var(--bg-weak-100, #f8f7f6);
	position: relative;
	overflow: hidden;
}

.s4w-product-card-threecol__image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: auto;
	height: 85%;
	max-width: 80%;
	object-fit: contain;
	display: block;
	transition: transform 0.4s ease;
}

.s4w-product-card-threecol__media-link:hover .s4w-product-card-threecol__image {
	transform: translate(-50%, -50%) scale(1.03);
}

/* Body */
.s4w-product-card-threecol__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex-shrink: 0;
}

/* Meta: formati + annate */
.s4w-product-card-threecol__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.s4w-product-card-threecol__formati {
	display: flex;
	gap: 0;
	flex-wrap: wrap;
}

.s4w-product-card-threecol__formato-btn {
	border: 1px solid var(--stroke-soft-200);
	border-radius: 0;
	background: var(--bg-white-0);
	padding: 4px 10px;
	margin-left: -1px;
	font-family: var(--font-primary);
	font-size: var(--paragraph-small);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
	line-height: 1.4;
}

.s4w-product-card-threecol__formato-btn:first-child {
	margin-left: 0;
}

.s4w-product-card-threecol__formato-btn:hover {
	border-color: var(--text-main-900);
	position: relative;
	z-index: 1;
}

.s4w-product-card-threecol__formato-btn.is-active {
	border-color: var(--text-main-900);
	background: var(--bg-weak-100);
	position: relative;
	z-index: 1;
}

.s4w-product-card-threecol__annate {
	font-family: var(--font-secondary);
	font-size: var(--paragraph-small);
	font-weight: var(--weight-regular);
	line-height: 1.6;
	color: var(--text-sub-500, #525866);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-left: auto;
}

/* Testi */
.s4w-product-card-threecol__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.s4w-product-card-threecol__name-link {
	text-decoration: none;
	color: inherit;
}

.s4w-product-card-threecol__name {
	font-family: var(--font-secondary);
	font-size: 22px;
	font-weight: var(--weight-regular);
	line-height: 1.4;
	letter-spacing: -0.44px;
	color: var(--text-main-900, #0a0d14);
	margin: 0;
}

.s4w-product-card-threecol__name-link:hover .s4w-product-card-threecol__name {
	text-decoration: underline;
}

.s4w-product-card-threecol__denominazione {
	font-family: var(--font-secondary);
	font-size: var(--paragraph-medium);
	font-weight: var(--weight-regular);
	line-height: 1.6;
	color: var(--text-main-900, #0a0d14);
	margin: 0;
}

.s4w-product-card-threecol__desc {
	font-family: var(--font-secondary);
	font-size: 15px;
	font-weight: var(--weight-regular);
	line-height: 1.6;
	color: var(--text-soft-400, #7b818e);
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Prezzo */
.s4w-product-card-threecol__price-row {
	padding-top: 8px;
	display: flex;
	align-items: center;
}

.s4w-product-card-threecol__price {
	font-family: var(--font-primary);
	font-size: var(--paragraph-medium);
	font-weight: var(--weight-book);
	line-height: 20px;
	letter-spacing: 0.64px;
	text-transform: uppercase;
	color: var(--text-main-900, #0a0d14);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Widget Spotify in fondo alla card */
.s4w-product-card-threecol__spotify {
	width: 100%;
	margin-top: auto;
	line-height: 0;
	font-size: 0;
}

.s4w-product-card-threecol__spotify iframe {
	width: 100% !important;
	max-width: 100%;
	display: block;
	vertical-align: bottom;
	height: 80px !important;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.s4w-product-card-threecol__spotify iframe.is-loaded {
	opacity: 1;
}

/* Quando la colonna contiene la card threecol,
   il bordo e padding vengono gestiti dalla card stessa */
.s4w-threecol__col:has(.s4w-product-card-threecol) .s4w-col__inner {
	border: none;
	padding: 0;
}
