/* ABC – Layout Project: contenuto 60% a sinistra, form a destra */

.abc-project-layout {
	display: flow-root; /* clearfix moderno: contiene i float */
	width: 100%;
}

.abc-project-layout__content {
	float: left;
	width: 60%;
	box-sizing: border-box;
	padding-right: 40px;
}

.abc-project-layout__sidebar {
	float: right;
	width: 40%;
	box-sizing: border-box;
}

/* Il form resta visibile mentre si scorre il testo (desktop) */
.abc-project-layout__form {
	position: sticky;
	top: 120px; /* regola in base all'altezza dell'header fisso */
	padding: 30px;
	background: #f5f5f5;
	box-sizing: border-box;
}

/* Campi del form a tutta larghezza della colonna */
.abc-project-layout__form .wpcf7 input[type="text"],
.abc-project-layout__form .wpcf7 input[type="email"],
.abc-project-layout__form .wpcf7 input[type="tel"],
.abc-project-layout__form .wpcf7 select,
.abc-project-layout__form .wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Immagini e gallerie nel contenuto non devono sforare la colonna */
.abc-project-layout__content img,
.abc-project-layout__content iframe,
.abc-project-layout__content video {
	max-width: 100%;
	height: auto;
}

/* Tablet e mobile: colonne impilate, form sotto il testo */
@media (max-width: 991px) {
	.abc-project-layout__content,
	.abc-project-layout__sidebar {
		float: none;
		width: 100%;
		padding-right: 0;
	}

	.abc-project-layout__sidebar {
		margin-top: 40px;
	}

	.abc-project-layout__form {
		position: static;
	}
}
