.header.demo-1 .imgcarrulogo,
.header.demo-1 .imgcarrulogo2 {
	height: auto;
}

.header.demo-1 {
	height: var(--cover-height);
	min-height: 0;
	background-attachment: scroll;
	overflow: hidden;
}

.header.demo-1 .header-overlay,
.header.demo-1 .carousel,
.header.demo-1 .carousel-inner,
.header.demo-1 .carousel-inner > .item {
	height: 100%;
}

.header.demo-1 .carrufondo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

@media (max-width: 1149px) {
	.header.demo-1 {
		height: auto;
		min-height: 0;
		background-image: none;
	}

	.header.demo-1 .header-overlay {
		position: relative;
	}

	.header.demo-1 .carrucont {
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 24px;
		min-height: var(--cover-height);
		padding: 32px 44px 64px;
		background: linear-gradient(0deg, rgba(10, 36, 55, .8), rgba(10, 36, 55, .15));
	}

	.header.demo-1 .imgcarrulogo,
	.header.demo-1 .imgcarrulogo2 {
		width: min(240px, 65vw);
		height: auto;
		max-height: min(240px, 32svh);
		object-fit: contain;
		margin: 0;
	}

	.header.demo-1 .caption {
		position: static;
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
		transform: none;
		text-align: center;
	}

	.header.demo-1 .caption h1 {
		margin: 0 0 16px;
		font-size: clamp(28px, 6vw, 40px);
		line-height: 1.2;
		letter-spacing: 3px;
	}

	.header.demo-1 .caption h6 {
		margin: 0;
		font-size: clamp(14px, 3vw, 20px);
		line-height: 1.6;
		letter-spacing: 1px;
	}

	.header.demo-1 .caption br {
		display: none;
	}

	.header.demo-1 .carrufondo {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center top;
	}

}

.home-sections {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
}

.home-sections::before,
.home-sections::after {
	display: none;
}

.home-sections > div {
	float: none;
	width: auto;
	min-width: 0;
	padding: 0;
}

.home-sections .team-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e1ece9;
	border-bottom: 3px solid #cbdcde;
	border-radius: 6px;
	background: #fff;
	color: #18374b;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-sections .team-item:focus-visible {
	border-bottom-color: #007f78;
	box-shadow: 0 8px 24px rgba(24, 55, 75, .12);
	outline-offset: 4px;
}

@media (hover: hover) {
	.home-sections .team-item:hover {
		transform: translateY(-5px);
		border-bottom-color: #007f78;
		box-shadow: 0 8px 24px rgba(24, 55, 75, .12);
	}
}

.home-sections .team-item:active {
	transform: translateY(-1px);
	border-bottom-color: #007f78;
}

.home-sections .team-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1.2;
	object-fit: contain;
}

.home-sections .team-info {
	flex: 1;
	min-height: 82px;
	padding: 14px 12px;
	border-top: 1px solid #edf3f1;
	letter-spacing: 0;
	box-shadow: none;
}

.home-sections .team-info h6 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 6px;
	color: #18374b;
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	font-weight: 600 !important;
	line-height: 1.5;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.home-sections .team-info p {
	margin: 0;
	color: #00665c;
	font: 12px/1.6 "Open Sans", sans-serif;
	letter-spacing: 0;
}

.home-sections .team-info h6 i {
	flex-shrink: 0;
	color: #007f78;
	font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.home-sections .team-item {
		transition: none;
	}

	.home-sections .team-item:hover,
	.home-sections .team-item:active {
		transform: none;
	}
}

.home-partners {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
	gap: 28px 40px;
	max-width: 1040px;
	margin: 0 auto;
	padding: 24px 0;
}

.home-partner {
	min-width: 0;
}

.home-partner > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 12px;
}

.home-partner .img-home {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 96px;
	object-fit: contain;
}

.home-partner .item-img-overlay {
	display: none;
}

.home-partner a:focus-visible,
.home-sections a:focus-visible {
	outline: 3px solid #007f78 !important;
	outline-offset: 3px;
}

@media (max-width: 991px) {
	.home-sections {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-partners {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.home-sections,
	.home-partners {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.home-partner > a {
		min-height: 100px;
		padding: 8px;
	}

	.home-partner .img-home {
		max-height: 80px;
	}
}

@media (max-width: 359px) {
	.home-sections,
	.home-partners {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-sections .team-img img {
		max-height: 240px;
	}
}
