.apt {
	display: flex;
	flex-direction: row; /* Layout orizzontale di default */
	min-height: 800px; /* Altezza minima invece di fissa */
	height: auto;
	gap: 10px;
	padding: 20px;
}

.apt-testo {
	width: 40%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color:rgb(1,152,117);
	padding:70px 75px 10px 75px;
}
.apt-testo>h1 {
	font-size:49px;
	font-weight:700;
}
.apt-testo>p{
	color:black;
	font-size:19px;
	font-weight:400;
	/*line-height:23.75px;*/
}
.apt-separator {
	margin:30px 0 30px 0;
	height:6px;
	width:120px;
	background:rgb(1,152,117);
}
.apt-immagini {
	width: 60%;
	display: grid;
	grid-template-columns: 5fr 7fr;
	grid-template-rows: 1fr 1fr;
	gap: 15px;
	height: 800px; /* Altezza della griglia immagini */
}

.apt-immagini-container {
	overflow: hidden;
}

.apt-immagini-content {
	width: 100%;
	height: 100%;
	object-fit: cover; /* CRUCIALE: evita deformazioni ritagliando l'immagine */
	display: block;
	transition: transform 300ms ease-in-out;
}

.apt-immagini-content:hover {
	transform: scale(1.1);
}

/* Gestione Immagini nella Griglia */
.apt-immagini-big {
	grid-column: 2 / 2;
	grid-row: 1 / 3;
}
.disponibilita {
	border:1px solid rgb(1,152,117);
	background:rgb(204, 255, 243);
	border-radius:4px;
	color:rgb(1,151,117);
	font-size:13px;
	font-weight:700px;
	height:31px;
	cursor:pointer;
	width:287px;
	display:flex;
	justify-content:center;
	align-items:center;
	transition: all 0.2s ease-in-out 0.1s;
	margin:20px 0 20px 0;
}
.disponibilita:hover {
	background:rgb(1,152,117);
	color:#FFFFFF;
}

/* MEDIA QUERY: Sotto i 768px il layout cambia */

@media (max-width: 800px) {
	.apt {
		flex-direction: column;
		height: auto;
	}

	.apt-immagini {
		width: 100%;
		height: 300px;
		order: 1;
	}

	.apt-testo {
		width: 100%;
		text-align: center;
		order: 2;
		padding: 20px 0;
	}
	.apt-separator {
		margin:20px auto;
	}
	.disp-row{
		margin:10px auto;
	}
	.disponibilita {
		font-size:10px;
	}
}