/*
	Theme Name: MarmiVrech
	Author: Coral Crew
	Author URI: https://coralcrew.it/
	Description: Website for MarmiVrech
	Version: 1.0
*/

.archivio_progetti {
	.main_container {
		background-color: initial;
		color: #4D5758;

		/* article {
			h2,
			p {
				color: currentColor;
			}
		} */
	}
}

.sectors-wrapper {
	/* display: grid; */
	/* grid-template-columns: 1fr; */
	/* gap: 40px; */
	margin-bottom: 40px;
	width: 90%;
	margin-inline: auto;

	.sector-section {
		padding-top: 80px;

		&:first-child {
			/* padding-top: 40px; */
		}

		.sector-section--wrapper {
			background-color: #F2F0EF;
			padding: 40px;
		}

		.sector-section--intro {
			display: grid;
			grid-template-columns: 1fr;

			@media (width > 860px) {
				grid-template-columns: 1fr 1fr;
			}

			gap: 40px;
			align-items: center;

			.intro-image {
				aspect-ratio: 4/3;
				object-fit: cover;
			}
		}

		.sector-section--gallery {
			display: grid;
			grid-template-columns: 1fr;
			gap: 20px;
			margin-top: 40px;

			@media (width > 768px) {
				grid-template-columns: repeat(3, 1fr);
			}

			img {
				aspect-ratio: 4/3;
				object-fit: cover;
			}
		}
	}
}

.anchors {
	width: 90%;
	margin-inline: auto;
	border-bottom: 1px solid currentColor;
	padding: 0.5rem 0;
	position: sticky;
	top: 60px;
	z-index: 10;
	background: #fff;
	/* margin-bottom: 2rem; */

	@media (width >=768px) {
		top: 80px;

	}

	ul {
		display: flex;
		flex-wrap: wrap;
		list-style: none;
		padding: 0;
		margin: 0;
		gap: 2rem;

		li {
			a {
				text-transform: uppercase;
			}

			&.is-active {
				a {
					text-decoration: line-through;

				}
			}
		}
	}
}

.why {
	background-color: #4D5758;
	color: #fff;
	padding: 4rem 2rem;

	@media (width > 768px) {
		padding: 8rem 5rem;
	}

	.why__title {
		margin-bottom: 4rem;
	}

	.why__items {
		display: grid;
		grid-template-columns: 1fr;
		background-color: #fff;

		@media (width > 920px) {
			/* grid-template-columns: repeat(5, 1fr); */
			grid-template-columns: minmax(0, 21.3%) minmax(0, 18%) minmax(0, 21.3%) minmax(0, 18%) minmax(0, 21.3%);
		}

		.why__item {
			background: #fff;
			color: #4D5758;


			&.why__item--image {
				aspect-ratio: 16/9;

				@media (width > 920px) {
					aspect-ratio: auto;
				}

				img {
					width: 100%;
					height: 100%;
					object-fit: cover;
				}
			}

			&.why__item--content {
				padding: 2rem;

				@media (width > 768px) {
					aspect-ratio: 1/1;
				}

				.why__item-title {
					font-family: 'MV Text';
					font-size: 24px;
				}
			}
		}
	}
}

.process .process__trigger {
	/* appearance: none; */
	color: currentColor;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: left;
	text-transform: uppercase;
	font-family: 'MV Text';
	cursor: pointer;

}

.process .process__trigger:focus-visible {
	outline: 1px solid currentColor;
}

.process .process__trigger.is-active {
	text-decoration: line-through;
}

.process .process__trigger:hover {
	opacity: 0.5;
}

.process {
	margin-block: 10rem;

	.process__title {
		margin-bottom: 3rem;
	}

	.process__nav {
		padding-bottom: 1rem;
		border-bottom: 1px solid currentColor;
		display: flex;
		gap: 3rem;


	}

	.process__panel {
		padding-block: 4rem;
		display: grid;
		grid-template-columns: 1fr;
		gap: 4rem;

		border-bottom: 1px solid #F2F0EF;

		@media (width > 768px) {
			grid-template-columns: repeat(12, 1fr);
		}

		.process__media {
			@media (width > 768px) {
				grid-column: span 3 /span 3;
			}

			img {
				aspect-ratio: 4/3;
				object-fit: cover;
			}
		}

		.process__icon {
			@media (width > 768px) {
				grid-column: span 1 /span 1;
			}
		}

		.process__content {
			@media (width > 768px) {
				grid-column: span 8 /span 8;
			}

			.process__text {
				margin-block: 2rem;
			}

			.process__features {
				display: flex;
				flex-wrap: wrap;
				gap: 1rem;
				list-style: none;
				padding: 0;

				li {
					background-color: #F2F0EF;
					padding: 0.25rem 0.75rem;
				}
			}
		}
	}

	.process__panel:not(.is-active) {
		display: none;
	}
}

.strengths {
	position: relative;
	display: grid;
	place-items: center;
	padding-block: 6rem;
	margin-block: 6rem;

	.strengths__bg {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		z-index: 0;
	}

	.strengths__box {
		position: relative;
		z-index: 1;
		width: 90%;
		max-width: 1100px;
		padding: 3rem;
		background-color: #fff;
		display: grid;
		grid-template-columns: 1fr;
		gap: 2rem;

		@media (width > 768px) {
			height: 60vh;
			grid-template-columns: 1fr 2fr;
			gap: 4rem;
			padding: 4rem;
		}

		.strengths__title {
			color: #D09D0F;
		}
	}
}

.custom-list-style {
	&::before {
		content: '';
		width: 0.75em;
		height: 0.75em;
		margin-right: 0.5em;
		display: inline-block;
		background-color: currentColor;
		mask: url('images/icons/check.svg') no-repeat center / contain;
		-webkit-mask: url('images/icons/check.svg') no-repeat center / contain;
	}
}

.rendered_text {
	ul {
		list-style: none;
		padding-left: 0;

		li {
			position: relative;
			/* padding-left: 2rem; */

			&::before {
				content: '';
				/* position: absolute; */
				/* left: 0; */
				/* top: 0.35em; */
				width: 0.75em;
				height: 0.75em;
				margin-right: 0.5em;
				display: inline-block;
				background-color: #D09D0F;
				mask: url('images/icons/check.svg') no-repeat center / contain;
				-webkit-mask: url('images/icons/check.svg') no-repeat center / contain;
			}
		}
	}
}


.swiper-navigation-icon {
	display: none;
}


.title-big {
	font-size: 35px;

	@media (width > 768px) {
		font-size: 60px;

	}
}

.confidentiality-section {
	background-color: #2F312E;
	color: white;
	padding: 4rem 5%;
}


.banner_slider {
	.swiper-slide {
		background-color: #000;

		img {
			opacity: 0.5;
		}
	}
}

.carousel__track {
  --gap: 1rem;
  --item-width: min(80%, 320px);

  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;

  overflow-x: auto;
  overscroll-behavior-x: contain;    
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gap);
  scrollbar-width: thin;            
}

.carousel__item {
  flex: 0 0 var(--item-width);        
  scroll-snap-align: start;
}

.carousel__track:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel__track { scroll-behavior: smooth; }
}

.sectionCompanyInner__grid {	
	display: flex;
	@media (width > 1024px) {
		 --gap: 2px;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}
}

.sectionCompanyInner__grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}