.casi-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px;
	max-width: 1100px;
	margin: 0 auto;
}

.casi-card {
	position: relative;
	display: grid;
	grid-template-columns: 46% 1fr;
	align-items: stretch;
	min-height: 250px;
	background: #F6F5F2;
	border-radius: 24px;
	overflow: hidden;
	text-decoration: none !important;
	transition: background .25s ease;
}
.casi-card:hover { background: #243b8f; }

/* Forma bianca (SVG) dietro l'immagine: risalta in hover, si fonde da normale */
.casi-shape {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 75%;
	top:-10px;
    /* transform: scaleY(-1); */
}

/* Immagine a sinistra, incorniciata dalla forma bianca */
.casi-media {
	position: relative;
	z-index: 2;
	padding: 18px;
	display: flex;
}
.casi-img {
	width: 100%;
	min-height: 200px;
	border-radius: 16px;
	background-size: cover;
	background-position: center;
	background-color: #d9d7d2;
}

/* Pannello testo a destra */
.casi-body {
	position: relative;
	z-index: 2;
	padding: 24px 24px 20px;
	display: flex;
	flex-direction: column;
}
.casi-cat {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #9a9a9a;
}
.casi-title {
	font-size: 19px;
	font-weight: 400;
	color: #1925AA;
	line-height: 1.3;
	margin: 40px 0 0;
}
.casi-arrow {
	margin-top: auto;
	align-self: flex-end;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: #243b8f;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Stato hover */
.casi-card:hover .casi-title { color: #fff; }
.casi-card:hover .casi-arrow { background: #76aa9f; color: #fff; }

/* --- Responsive --- */

/* Da 2 colonne a 1 colonna */
@media (max-width: 880px) {
	.casi-grid { grid-template-columns: 1fr; }
}

/* Card impilata (immagine sopra, testo sotto) su schermi piccoli */
@media (max-width: 520px) {
	.casi-card {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.casi-shape { display: none; }
	.casi-body { padding: 18px 20px 20px; }
}
