/**
 * Case Study Block Styles
 *
 * @package SoftStrategyGutenbergBlocks
 */

.softstrategy-case-study {
	width: 100%;
	box-sizing: border-box;
}

.softstrategy-case-study__container {
	width: 100%;
	box-sizing: border-box;
}

.softstrategy-case-study__content-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

.softstrategy-case-study__content {
	flex: 1;
	width: 100%;
	box-sizing: border-box;
	padding: 2rem;
}

.softstrategy-case-study__image {
	width: 100%;
	min-height: 300px;
	box-sizing: border-box;
	position: relative;
}

.softstrategy-case-study__image-mobile {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.softstrategy-case-study__titolo {
	margin-bottom: 1rem;
}

.softstrategy-case-study__label {
	margin-bottom: 2rem;
}

.softstrategy-case-study__obiettivo {
	margin-bottom: 0;
}

/* Desktop: Two columns layout (50% each) */
@media (min-width: 992px) {
	.softstrategy-case-study__content-wrapper {
		flex-direction: row;
		align-items: stretch;
	}

	.softstrategy-case-study__content {
		width: 50%;
		padding: 3rem;
	}

	.softstrategy-case-study__image {
		width: 50%;
		min-height: 100%;
	}

	.softstrategy-case-study__image-mobile {
		display: none;
	}
}

/* Mobile: Image on top, visible */
@media (max-width: 991px) {
	.softstrategy-case-study__content-wrapper {
		flex-direction: column;
	}

	.softstrategy-case-study__content {
		width: 100%;
		padding: 2rem;
		margin-top: 0;
		order: 2;
	}

	.softstrategy-case-study__image {
		width: 100%;
		order: 1;
		background-image: none !important;
		min-height: auto;
	}

	.softstrategy-case-study__image-mobile {
		display: block;
	}
}

/* Stili per la versione Swiper */
.softstrategy-case-study--swiper .softstrategy-case-study__content {
	padding: 2rem;
}

@media (min-width: 992px) {
	.softstrategy-case-study--swiper .softstrategy-case-study__content {
		padding: 3rem;
	}
}
