.main_body {
	margin: 0 auto;
}

.main_body .section_title {
   width: 100%; 
   text-align: center;
}	
@media screen and (min-width : 400px) {
	.main_body .section_title { border-bottom: 2px solid var(--third_color); line-height: 0.1em; }
}	
h1 { display: inline; }					   

.section_title h2 {
	background: var(--fourth_color); 
	display: inline;			 
}
@media screen and (min-width : 400px) {
	.section_title h2 { padding: 0 10px;  }
}

.home_descr {
	text-align: center;
	margin: 0 auto;
	background-color: color-mix(in srgb, var(--second_color) 20%, transparent);
    padding: 40px;
    border-top: 2px solid var(--first_light);
    border-bottom: 2px solid var(--first_light);
}
@media screen and (min-width : 481px) {
	.home_descr { margin: 0 auto 100px; }
}

	.text_home_descr {
		max-width: 750px;
		margin: auto;
	}

.section_descr {
	text-align: center;
	font-style: italic;
	margin: 40px 20px;
	max-width: 520px;
}
@media screen and (min-width : 540px) {
	.section_descr { margin: 40px auto; }
}

.label_img {
	padding: 7px;
	background-color: var(--first_color);
	text-align: center;
	text-transform: uppercase;
	position: absolute;
	width: 100%;
	bottom: 0;
	text-shadow: 1px 1px 1px #000000;
	border-top: 2px solid var(--first_light);
}

.img_label_container {
	position: relative;
	display: flex;
	flex-direction: column;
	/*height: 100%;*/
}

/* container_borgo */

.content_borgo {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 0 10px;
}
@media screen and (min-width : 1420px) {
	.content_borgo { padding: unset; }
}

	.content_borgo a {
		color: var(--fourth_color);
		font-weight: 400;
		text-decoration: none;
	}

	.borgo_item {
		margin-bottom: 30px;
		width: 47%;
		overflow: hidden;
	}
	.borgo_item:last-of-type {
		margin-bottom: unset;
	}
	@media screen and (min-width : 993px) and (max-width : 1410px) {
		.borgo_item { width: 18%; }
		.borgo_item:nth-last-of-type(-n+2) { margin-bottom: unset; }
	}
	@media screen and (min-width : 1411px)  {
		.borgo_item { width: 18%; }
		.borgo_item:nth-last-of-type(-n+2) { margin-bottom: unset; }
	}
	
		.container_borgo .img_label_container {
			position: relative;
			height: 96%;
			overflow: hidden;
			align-items: center;
		}
		@media screen and (min-width : 993px) {
			.container_borgo .img_label_container { height: 98%; }
		}
		
			.container_borgo .img_item {
				max-height: 318px;
				overflow: hidden;
				text-align: center; /* per centrare l'immagine per safari */
			}

				.borgo_img {
					width: 100%;
				}
	
	.first_item {
		width: 100%;
	}
	@media screen and (min-width : 480px) and (max-width : 992px) {
		.first_item { width: 61%; }
	}
	@media screen and (min-width : 993px) {
		.first_item { width: 39%; }
	}
	
		.first_item .borgo_img {
			height: 100%;
			width: auto;
		}
		@media screen and (min-width : 481px) and (max-width : 992px) {
			.first_item .borgo_img { width: auto; height: 100%; }
		}
	
	.social_item {
		width: 100%;
	}
	@media screen and (min-width : 480px) and (max-width : 992px) {
		.social_item { width: 32%; }
	}
	@media screen and (min-width : 993px) {
		.social_item { width: 18%; }
	}
	
		.social_item .img_label_container {
			margin-bottom: 9px;
		}
		@media screen and (min-width : 480px) and (max-width : 992px) {
			.social_item .img_label_container { height: 96%; margin-bottom: unset; }
		}
		@media screen and (min-width : 993px) {
			.social_item .img_label_container { height: 98%; margin-bottom: unset; }
		}
		
		.social_item .borgo_img {
			height: auto;
			width: 100%;
		}
		@media screen and (min-width : 480px) {
			.social_item .borgo_img { height: 100%; width: auto; }
		}
		
	.video_item {
		width: 100%;
	}
	@media screen and (min-width : 993px) {
		.video_item { width: 68%; }
	}
	
		.video_item .img_item {
			max-height: 630px;
		}
		@media screen and (min-width : 993px) {
			.video_item .img_item { max-height: 441px; width: auto; }
			.img_label_video { align-content: flex-end; flex-wrap: wrap; }
		}

			.img_label_video .borgo_img {
				height: auto;
				width: 100%;
			}
			@media screen and (min-width : 993px) {
				.img_label_video .borgo_img  { height: 100%; width: auto; }
			}
			
	
	.special_item {
		width: 100%;
	}
	@media screen and (min-width : 993px) {
		.special_item { width: 29.5%; }
	}
		
		.special_item .img_item {
			max-height: 431px;
			overflow: hidden;
		}
		
			.special_item .borgo_img {
				width: 100%;
				position: relative;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				height: auto;
			}
			@media screen and (min-width : 993px) {
				.special_item .borgo_img { width: auto; height: 100%; }
			}

			

/* container_territorio */

.content_territorio {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	flex-wrap: wrap;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 10px;
}
@media screen and (min-width : 481px) and (max-width : 1419px) {
	.content_territorio { flex-direction: row; }
}
@media screen and (min-width : 1420px) {
	.content_territorio { padding: unset; flex-direction: row; }
}

	.content_territorio a {
		color: var(--fourth_color);
		font-weight: 400;
		text-decoration: none;
	}
	
	.territorio_item {
		width: 100%;
	}
	.territorio_item:first-of-type {
		margin-bottom: 30px;
	}
	@media screen and (min-width : 481px) and (max-width : 992px) {
		.territorio_item { width: 47%; }
		.territorio_item:first-of-type { margin-bottom: unset; }
	}
	@media screen and (min-width : 993px) {
		.territorio_item { width: 48.7%; margin-bottom: unset; }
		.territorio_item:first-of-type { margin-bottom: unset; }
	}
	
		.img_descr_container {
			position: relative;
			display: flex;
			align-items: center;
		}
		
			.div_territorio_img {
				height: 325px;
				overflow: hidden;
			}
			@media screen and (min-width : 481px) and (max-width : 767px) {
				.div_territorio_img { height: 400px; }
			}
			@media screen and (min-width : 768px) and (max-width : 992px) {
				.div_territorio_img { height: 280px; }
			}
			@media screen and (min-width : 993px) {
				.div_territorio_img { height: 230px; }
			}
			
				.territorio_img {
					height: 100%;
					float: right;
				}
				@media screen and (min-width : 993px) {
					.territorio_img { width: 700px; height: unset; }
				}
			
			.background_descr_territorio {
				position: absolute;
				width: 100%;
				bottom: 0;
				height: 50%;
				background-color: color-mix(in srgb, var(--first_color) 50%, transparent);
				padding: 10px;
				border-top: 2px solid var(--first_light);
				display: flex;
				align-items: flex-end;
			}
			@media screen and (min-width : 993px) {
				.background_descr_territorio { width: 50%; max-height: unset; height: 100%; top: 0; border-right: 2px solid var(--first_light); border-top: unset; align-items: center; }
			}
			
				.descr_territorio {
					width: 100%;
					height: 77%;
				}
				@media screen and (min-width : 481px) and (max-width : 767px) {
					.descr_territorio { height: 80%; }
				}
				@media screen and (min-width : 768px) and (max-width : 992px) {
					.descr_territorio { height: 73%; }
				}
				@media screen and (min-width : 993px) {
					.descr_territorio { width: 80%; height: unset; }
				}
		
			.territorio_icon {
				position: absolute;
				top: 50%;
				transform: translate(50%, -50%);
				right: 50%;
				width: 80px;
			}
			@media screen and (min-width : 993px) {
				.territorio_icon { width: 110px; }
			}
			
			
/* container_prodotti_tipici */

.content_prodotti_tipici {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 10px;
}
@media screen and (min-width : 768px) and (max-width : 1419px) {
	.content_prodotti_tipici { flex-direction: row; justify-content: space-between; }
}
@media screen and (min-width : 1420px) {
	.content_prodotti_tipici { padding: unset; flex-direction: row; justify-content: space-between; }
}
	
	.content_prodotti_tipici a {
		color: var(--fourth_color);
		font-weight: 400;
		text-decoration: none;
	}
	
	.prodotti_tipici_item {
		width: 100%;
		margin-bottom: 30px;
	}
	.prodotti_tipici_item:last-child {
		margin-bottom: unset;
	}
	@media screen and (min-width : 768px) {
		.prodotti_tipici_item:first-child { width: 57.5%; margin-bottom: 30px; }
		.prodotti_tipici_item:nth-last-child(2) { margin-bottom: unset; }
		.prodotti_tipici_item:last-child { width: 57.5%; }
		.prodotti_tipici_item { width: 40%; }
	}
		
		.prodotti_tipici_item .img_label_container, .prodotti_tipici_img {
			height: max((100vw - 200px), 105px);
			overflow: hidden;
			align-items: center;
			height: 170px;
		}
		@media screen and (min-width : 410px) and (max-width : 480px) {
			.prodotti_tipici_item .img_label_container, .prodotti_tipici_img { height: 147px; }
		}
		@media screen and (min-width : 481px) and (max-width : 767px) {
			.prodotti_tipici_item .img_label_container, .prodotti_tipici_img { height: 218px; }
		}
		@media screen and (min-width : 768px)  {
			.prodotti_tipici_item .img_label_container, .prodotti_tipici_img { height: 215px; }
		}
			
			.prodotti_tipici_item .img_item {
				display: flex;
				align-items: flex-start;
				overflow: hidden;
			}
			
			.prodotti_tipici_item:nth-child(2) .prodotti_tipici_img, .prodotti_tipici_item:nth-child(3) .prodotti_tipici_img {
				width: max((100vw - 62px)*(50 / 25), 140px);
				position: relative;
				height: unset;
			}
			@media screen and (min-width : 481px) and (max-width : 767px) {
				.prodotti_tipici_item:nth-child(2) .prodotti_tipici_img, .prodotti_tipici_item:nth-child(3) .prodotti_tipici_img { width: max((100vw - 130px)*(50 / 25), 140px); }
			}
			@media screen and (min-width : 768px)  {
				.prodotti_tipici_item:nth-child(2) .prodotti_tipici_img, .prodotti_tipici_item:nth-child(3) .prodotti_tipici_img { width: unset; height: unset; }
			}