/* Card compatta: solo struttura. Colori, font e raggi arrivano dai controlli Elementor. */

.stm-cc-grid,
.stm-ia-zone--compact .stm-ia-grid,
.stm-availability-calendar--compact .stm-cal-list {
	display: grid;
	gap: 1.25rem;
	align-items: stretch;
}

.stm-cc {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	border: 1px solid transparent;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 40, 70, 0.06), 0 8px 24px rgba(20, 40, 70, 0.06);
}

.stm-cc__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #f3f6fa;
}

.stm-cc__media-link {
	position: absolute;
	inset: 0;
	display: block;
}

.stm-cc__img,
.elementor .stm-cc__media .stm-cc__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: var(--stm-cc-focal, center center);
}

.stm-cc__date,
.stm-cc__status {
	position: absolute;
	top: 12px;
	z-index: 2;
	max-width: calc(50% - 16px);
	padding: 0.28em 0.7em;
	line-height: 1.2;
}

:where(.stm-cc__date) {
	border-radius: var(--stm-cc-date-radius, var(--stm-cc-pill-radius, 4px));
}

:where(.stm-cc__status) {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border-radius: var(--stm-cc-status-radius, var(--stm-cc-pill-radius, 4px));
}

:where(.stm-cc__status)::before {
	content: "";
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: var(--stm-dot-available, #2E9E5B);
}

:where(.stm-cc__status--last)::before {
	background: var(--stm-dot-last, #D98A00);
}

:where(.stm-cc__status--soldout)::before {
	background: var(--stm-dot-soldout, #9AA6B2);
}

.stm-status-dot-off :where(.stm-cc__status)::before {
	content: none;
}

.stm-cc__date { left: 12px; }
.stm-cc__status { right: 12px; }

.stm-cc__body {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	flex: 1 1 auto;
	padding: 0.9rem 1rem 0.4rem;
}

.stm-cc__region {
	margin: 0;
}

.stm-cc__title {
	margin: 0;
	overflow-wrap: break-word;
	word-break: normal;
	text-transform: none;
}

.stm-cc__title a {
	color: inherit;
	text-decoration: none;
}

.stm-cc__traits {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
}

.stm-cc__traits li {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
}

.stm-cc__check {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 0.15em;
}

.stm-cc__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid transparent;
}

.stm-cc__price {
	margin: 0;
	min-width: 0;
	white-space: nowrap;
}

.stm-cc__wish {
	position: absolute;
	z-index: 3;
	right: 0.55rem;
	bottom: 0.55rem;
	top: auto;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #1e3a5f;
	box-shadow: 0 1px 4px rgba(20, 40, 70, 0.18);
}

.stm-cc__wish.is-saved {
	background: #c4440f;
	color: #fff;
}

.stm-cc__foot .stm-waitlist-cta--joined {
	flex: 1 0 100%;
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	gap: 0.65rem;
	padding: 0;
	background: transparent;
	border: 0;
}

.stm-cc__from {
	display: inline-block;
	margin-right: 0.2em;
}

.stm-cc__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0.55em 1em;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	font: inherit;
	border-radius: var(--stm-cc-cta-radius, 6px);
}

.stm-cc__cta--waitlist {
	background: transparent;
}

:where(.stm-ia-filter) {
	border-radius: var(--stm-ia-filter-radius, 4px);
}
