.schede-testo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.schede-testo-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #fdfdfd padding-box,
    linear-gradient(180deg, #a6487b, #5c285f) border-box;
  border: 4px solid transparent;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.2);
  text-align: left;
  flex: 0 1 calc((100% - 4rem) / 3);
  min-width: 250px;
}

.schede-testo-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem 2rem;
}

.schede-testo-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.schede-testo-card-img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.schede-testo-card-title {
	font-family: 'DM Sans', sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: #5c285f;
	margin: 0;
	line-height: 1.2;
}

.schede-testo-card-text {
	font-family: 'DM Sans', sans-serif;
	font-size: 1rem;
	color: #22181c;
	line-height: 1.5;
}

.schede-testo-card-text p {
	margin: 0;
}

.schede-testo-card-text a {
	color: #4bb8a9;
	text-decoration: underline;
}

.schede-testo-card-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	border-radius: 10px;
	background-color: #5c285f;
	padding: 0.625rem 1.5rem;
	font-family: 'DM Sans', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #fdfdfd;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.2s ease;
	line-height: 1.4;
}

.schede-testo-card-cta:hover {
	opacity: 0.85;
	color: #fdfdfd;
}

@media (max-width: 768px) {
	.schede-testo-grid {
		flex-direction: column;
		align-items: center;
	}

	.schede-testo-card {
		width: 100%;
		max-width: 500px;
		flex: none;
		min-width: 0;
		border-radius: 14px;
	}

	.schede-testo-card-content {
		padding: 1.25rem;
	}
}
