/*
 * Author: Luca Arzilli, ALSolutions
 *
 * Project Name: Easy ENC
 *
 */

/* HOME PAGE */

/* welcome */

body {
	margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
	height:100vh;
	background-size:cover;
	background-position: center 10vh;
	background-image:url('../img/bg/EASYENC-HEADER.webp');
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
}

header .container-fluid {
	position: relative;
	z-index: 1;
	width: 100%;
}

header .header-content {
	width: 100%;
}

header h1 {
  font-size: clamp(30px, 4vw, 60px);
  line-height: clamp(35px, 4vw, 65px);
  color:#F9FAFB;
  font-weight:200;
  margin-bottom: 0;
}

header span {
  color:#84BA3F;
  font-weight:500;
}

header .header-content button {
	font-size: clamp(13px, 1.4vw, 16px);
	font-weight: bold;
	color: #1E1E1E;
	background: #84BA3F;
	border: none;
	border-radius: 30px;
	margin-top: 50px;
	padding: 12px 24px;
}
header .header-content button:hover,
header .header-content button:focus {
	background: #7ab33a;
	color: #1E1E1E;
}

.container-bg {
	padding:0 2vw;
}

/* Contenitore alto quanto l’immagine; h2 sopra l’immagine */
#intro .intro-hero {
	position: relative;
}

#intro .intro-hero__img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

#intro .intro-hero__title {
	position: absolute;
	bottom: 7vh;
	left: 56vw;
	right: auto;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: clamp(30px, 4vw, 60px);
	line-height: clamp(35px, 4vw, 65px);
	font-weight: 200;
	text-align: left;
	max-width: 30vw;
}

#intro h5 {
	color:#0D4768;
	font-size: clamp(50px, 10vw, 70px);
	line-height: clamp(50px, 10vw, 70px);
	font-weight:300;
	text-align:left;
	margin-top:7vh;
	margin-bottom:3vh;
}
#intro p {
	color:#0D4768;
	margin-top:1vh;
}
/* Riga e colonna dell’immagine INTRO sopra l’hero (con margin negativo) */
#intro .intro__row {
	position: relative;
	z-index: 2;
}

#intro .intro__img-col {
	position: relative;
	z-index: 2;
}

#intro .intro__img {
	margin-top: -25vh;
	display: block;
}

#roi h2 {
	margin: 0;
	margin-left: 5vw;
	font-size: clamp(30px, 4vw, 60px);
	line-height: clamp(35px, 4vw, 65px);
	font-weight: 200;
	text-align: left;
	max-width: 40vw;
}

#roi span {
	color:#84BA3F;
	font-weight:500;
}
#roi p {
	margin-left: 5vw;
	margin-top: 5vh;
	margin-bottom: 5vh;
	max-width: 40vw;
}
#roi button {
	font-size: clamp(13px, 1.4vw, 16px);
	font-weight: bold;
	color: #1E1E1E;
	background: #84BA3F;
	border: none;
	border-radius: 30px;
	padding: 12px 24px;
	margin-left: 5vw;
	margin-bottom: 7vh;
}
#roi button:hover,
#roi button:focus {
	background: #7ab33a;
	color: #1E1E1E;
}

#roi small {
	font-size: clamp(13px, 1.1vw, 15px);
	color: #2B6586;
	line-height: 1.45;
	margin-left: 2vw;
}

/* Blocco immagine ROI: sfondo + immagine sopra */
#roi .roi__visual {
	position: relative;
}

#roi .roi__bg {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

#roi .roi__img {
	position: absolute;
	left: 50vw;
	top: -40vh;
	max-width: 41.666667%;
	width: auto;
	height: auto;
	z-index: 2;
}

#why h2 {
	font-size: clamp(30px, 3vw, 40px);
	line-height: clamp(35px, 3vw, 45px);
	font-weight: 300;
}
#why p {
	margin-top: 5vh;
	margin-bottom: 7vh;
}

#features {
	background: #fff;
}

#features h2 {
	font-size: clamp(30px, 3vw, 40px);
	line-height: clamp(35px, 3vw, 45px);
	font-weight: 300;
}

#features p {
	margin-top: 5vh;
	margin-bottom: 7vh;
}

#features .features-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: clamp(14px, 1.2vw, 17px);
}

#features .features-table th,
#features .features-table td {
	border: none;
	border-bottom: 1px solid #ddd;
	padding: 1rem 1.25rem;
	text-align: center;
	vertical-align: middle;
}

#features .features-table thead th {
	border-top: none;
}

#features .features-table th:first-child,
#features .features-table td:first-child {
	text-align: left;
	color: #0D4768;
	font-weight: 500;
}

#features .features-table__col-easyenc {
	background: #e8f5e9;
}

#features .features-table tbody tr:last-child .features-table__col-easyenc {
	border-bottom: 2px solid #84BA3F;
}

#features .features-table__logo {
	max-height: 36px;
	width: auto;
	object-fit: contain;
}

#features .features-table__check,
#features .features-table__cross {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 14px;
}

#features .features-table__check {
	background: #84BA3F;
	color: #fff;
}

#features .features-table__cross {
	background: #e53935;
	color: #fff;
}

#why .why__img-col {
	padding:0 7vw;
}

#why .why__cards [class*="col-"] {
	padding-left: 0.6rem;
	padding-right: 0.6rem;
	margin-bottom: 1.25rem;
}

#why .why-card {
	background: #fff;
	border-radius: 16px;
	border: 2px solid #E5E4E4;
	padding: 2rem 1.5rem;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#why .why-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #E8ECF0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
}

#why .why-card__icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

#why .why-card__stat {
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 500;
	color: #84BA3F;
	line-height: 1.2;
	margin-bottom: 0.75rem;
}

#why .why-card__title {
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 500;
	color: #0D4768;
	line-height: 1.35;
	margin: 0 0 0.5rem 0;
}

#why .why-card__desc {
	font-size: clamp(13px, 1.1vw, 15px);
	color: #2B6586;
	line-height: 1.45;
	margin: 0;
}

#why button {
	font-size: clamp(13px, 1.4vw, 16px);
	font-weight: bold;
	color: #1E1E1E;
	background: #84BA3F;
	border: none;
	border-radius: 30px;
	padding: 12px 24px;	
	margin-top: 5vh;
}
#why button:hover,
#why button:focus {
	background: #7ab33a;
	color: #1E1E1E;
}

#reviews h2 {
	font-size: clamp(30px, 3vw, 40px);
	line-height: clamp(35px, 3vw, 45px);
	font-weight: 300;
	margin-bottom: 5vh;
}

#reviews .reviews__wrap {
	margin-left: 7vw;
	margin-right: 7vw;
	position: relative;
}

#reviews .review-card {
	background: #fff;
	border-radius: 16px;
	border: 2px solid #E5E4E4;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	min-height: 320px;
}

#reviews .review-card__img {
	flex: 0 0 50%;
	max-width: 50%;
	background: #FFF;
	padding: 0 5vw;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

#reviews .review-card__img img {
	width: 100%;
	height: auto;
	max-height: 60vh;
	object-fit: contain;
	object-position: center bottom;
}

#reviews .review-card__body {
	flex: 1;
	padding: 0 5vw 0 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#reviews .review-card__name {
	font-size: clamp(18px, 1.5vw, 22px);
	font-weight: 700;
	color: #0D4768;
	margin: 0 0 2vh 0;
}

#reviews .review-card__text {
	font-size: clamp(14px, 1.1vw, 16px);
	line-height: 1.5;
	color: #0D4768;
	font-style: italic;
	margin: 0 0 2vh 0;
}

#reviews .review-card__rating {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin: 0;
}

#reviews .review-card__trustpilot-logo {
	height: clamp(20px, 2vw, 28px);
	width: auto;
	object-fit: contain;
}
#reviews .review-card__stars-img {
	height: clamp(15px, 1.5vw, 20px);
	width: auto;
	object-fit: contain;
}

#reviews .review-card__rating img:first-child {
	margin-right: 0.5rem;
}

/* Carousel frecce: cerchi azzurri, frecce blu */
#reviews .carousel-control-prev,
#reviews .carousel-control-next {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #0D4768;
	background: #f5f4f6;
	opacity: 1;
	top: 50%;
	transform: translateY(-50%);
	bottom: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

#reviews .carousel-control-prev {
	left: -4rem;
}

#reviews .carousel-control-next {
	right: -4rem;
}

#reviews .carousel-control-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

@media (max-width: 575px) {
	section {
		padding:60px 0px;
	}
	#why .why__cards .col-12 {
		margin-bottom: 1.5rem;
	}
	#why .why__cards .col-12:last-child {
		margin-bottom: 0;
	}
	#reviews .reviews__wrap {
		padding: 0 0.5rem;
		margin-left: 5vw;
		margin-right: 5vw;
	}
	#reviews .review-card {
		flex-direction: column;
		min-height: auto;
	}
	#reviews .review-card__img {
		flex: 0 0 auto;
		max-width: 100%;
		height: 280px;
	}
	#reviews .carousel-control-prev {
		left: -2rem;
	}
	#reviews .carousel-control-next {
		right: -2rem;
	}
}

