.cardnew {
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 150px 130px 40px;
	grid-template-areas: "image" "text" "stats";
	border-radius: 18px;
	background: white;
	box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.9);
	font-family: roboto;
	text-align: center;
	cursor: pointer;
	margin: 10px;
}

.card-imagenew {
	grid-area: image;
	background: url("tmg-article_default_mobile.jpg");
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
	background-size: cover;
}

.card-textnew {
	grid-area: text;
	margin: 15px;
}
.card-textnew .datenew {
	color: #2ecc71;
	font-size: 13px;
}
.card-textnew p {
	color: grey;
	font-size: 12px;
	font-weight: 300;
}

.card-textnew h2 {
	margin-top: 0px;
	font-size: 23px;
}
.card-statsnew {
	grid-area: stats;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr;
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
	background: #2ecc71;
}
.card-statsnew .statnew {
	padding: 10px;
	/*display: flex;*/
	align-items: center;
	justify-content: center;
	/*-direction: column;*/
	color: white;
}
.card-statsnew .bordernew {
	border-left: 1px solid #27ae60;
	border-right: 1px solid #27ae60;
}
.card-statsnew .valuenew {
	font-size: 16px;
	font-weight: 500;
	font-family: Roboto;
}
.card-statsnew .valuenew sup {
	font-size: 12px;
	font-family: Roboto;
}
.card-statsnew .typenew {
	font-size: 11px;
	font-weight: 300;
	text-transform: uppercase;
}
.cardnew:hover {
	/*transform: scale(1.15);*/
	box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6);
}

/*card2*/
.card-imagenew.card2 {
	background: url("xmas.jpg");
	background-size: cover;
}
.card-textnew.card2 .date2 {
	color: #e74c3c;
}
.card-statsnew.card2 .border2 {
	border-left: 1px solid #c0392b;
	border-right: 1px solid #c0392b;
}
.card-statsnew.card2 {
	background: #e74c3c;
}
/*card3*/
.card-imagenew.card3 {
	background: url("compleanno.jpg");
	background-size: cover;
}
.card-textnew.card3 .date {
	color: #3498db;
}
.card-statsnew.card3 .border {
	border-left: 1px solid #2980b9;
	border-right: 1px solid #2980b9;
}
.card-statsnew.card3 {
	background: #3498db;
}

.cardnewrivista {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 400px; /* puoi aumentare se vuoi più grande */
	margin: auto;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
}

.card-imagenewrivista {
	background-size: cover;
	background-position: center;
	width: 100%;
	aspect-ratio: 9 / 16; /* mantiene la proporzione */
	max-height: 350px;
}
