/* CSS specifico home. */

.ml-objectives-section {
	padding: 80px 0;
	position: relative;
	background-color: #08090f;
}

.ml-objectives-section > .ml-heading,
.ml-objectives-section > .ml-objectives-columns {
	width: min(100% - 80px, 1600px);
	margin-inline: auto;
}

.ml-objectives-hint {
	position: absolute;
	top: 80px;
	right: max(40px, calc((100% - 1600px) / 2 + 40px));
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: right;
	color: #ffffff;
	font-size: 15px;
	line-height: 1.3;
}

.ml-objectives-hint-icon {
	width: 38px;
	height: 38px;
	background-color: #ebfe5b;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ml-objectives-hint-icon img {
	width: 20px;
	height: auto;
	display: block;
}

.ml-objectives-list {
	display: flex;
	flex-direction: column;
}

.ml-objectives-col-main {
	width: 100%;
}

.ml-objectives-section .ml-heading {
	color: #ffffff;
	margin-top: 0;
}

.ml-objective-item {
	font-weight: 300;
	display: flex;
	align-items: center;
	width: 100%;
	gap: 10px;
	color: #ffffff;
	font-size: 30px;
	line-height: 1.3;
	border-bottom: 1px solid #777;
	padding: 20px 0;
	text-decoration: none;
	transition: padding-left 0.25s ease, background-color 0.25s ease;
}

.ml-objective-item:last-child {
	border-bottom: 0;
}

.ml-objective-item:hover,
.ml-objective-item:focus,
.ml-objective-item:focus-visible {
	text-decoration: none;
}

.ml-objective-item:hover {
	padding-left: 12px;
	background-color: rgba(0, 0, 0, 0.02);
}

.ml-objective-item:focus-visible {
	outline: 2px solid #ebfe5b;
	outline-offset: 6px;
}

.ml-objective-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.ml-objective-icon img {
	width: 25px;
	height: 25px;
	margin-right: 0;
}

.ml-home-service {
	padding: clamp(56px, 7vw, 96px) 40px;
	color: #ffffff;
}

.ml-home-service--web {
	background: #3f2fee;
	--ml-home-service-divider: rgba(237, 237, 237, 0.6);
}

.ml-home-service--seo {
	background: #ffd500;
	--ml-home-service-divider: rgba(0, 0, 0, 0.35);
}

.ml-home-service--ads {
	background: #6e14cf;
	--ml-home-service-divider: rgba(237, 237, 237, 0.6);
}

.ml-home-service--dark-text {
	color: #171717;
}

.ml-home-service__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	width: 100%;
	max-width: 1600px;
	margin-inline: auto;
}

.ml-home-service__content,
.ml-home-service__media {
	min-width: 0;
}

.ml-home-service__content > *:first-child {
	margin-top: 0;
}

.ml-home-service__content > *:last-child {
	margin-bottom: 0;
}

.ml-home-service__title {
	margin: 0 0 24px;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.05;
}

.ml-home-service__text {
	margin: 0 0 28px;
	font-size: 23px;
	line-height: 1.3;
	font-weight: 300;
	max-width: none;
}

.ml-home-service__list {
	margin: 0 0 32px;
	padding: 0;
	margin-inline-start: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ml-home-service__list li {
	position: relative;
	margin: 0;
	padding: 10px 0 10px 34px;
	font-size: 23px;
	line-height: 1.3;
	font-weight: 700;
	border-bottom: 1px solid var(--ml-home-service-divider, rgba(237, 237, 237, 0.6));
}

.ml-home-service__list li:last-child {
	border-bottom: 0;
}

.ml-home-service__list li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 8px;
	height: 14px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-58%) rotate(40deg);
}

.ml-home-service__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 20px 40px;
	border-radius: 999px;
	border: 0;
	background: #0a0a0f;
	color: #ffffff;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ml-home-service__button::after {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-image: url("https://www.marcoloprete.it/wp-content/uploads/2026/01/top-right.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: transform 0.25s ease;
}

.ml-home-service__button:hover,
.ml-home-service__button:focus-visible {
	background: #2368ff;
	color: #ffffff;
	text-decoration: none;
	box-shadow: none;
}

.ml-home-service__button:hover::after,
.ml-home-service__button:focus-visible::after {
	transform: translate(4px, -4px);
}

.ml-home-service__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.ml-home-service__media img {
	display: block;
	width: 100%;
	border-radius: 28px;
	box-shadow: 0 28px 54px rgba(0, 0, 0, 0.16);
}

@media (min-width: 768px) {
	.ml-home-service--reverse .ml-home-service__content {
		order: 2;
	}

	.ml-home-service--reverse .ml-home-service__media {
		order: 1;
	}
}

@media screen and (max-width: 768px) {
	.ml-objectives-section,
	.ml-blog-section,
	.ml-testimonials-section {
		padding-left: 20px;
		padding-right: 20px;
	}

	.ml-objectives-section > .ml-heading,
	.ml-objectives-section > .ml-objectives-columns {
		width: 100%;
	}

	.ml-objectives-hint {
		display: none;
	}

	.ml-objective-item {
		font-size: 20px;
	}

	.ml-home-service {
		padding-inline: 20px;
	}

	.ml-home-service__inner {
		grid-template-columns: 1fr;
	}

	.ml-home-service .ml-home-service__media {
		order: 1;
	}

	.ml-home-service .ml-home-service__content {
		order: 2;
	}

	.ml-home-service__title {
		font-size: clamp(1.8rem, 10vw, 2.6rem);
	}

	.ml-home-service__text,
	.ml-home-service__list li {
		font-size: 20px;
		line-height: 1.3;
	}

	.ml-home-service__button {
		width: 100%;
	}
}

/* Smart Slider home hero typography */

.home .n2-ss-slider .titoloslider,
.home .n2-ss-slider .titoloslider *,
.home .n2-ss-slider h1,
.home .n2-ss-slider h1 * {
	font-family: "Schibsted Grotesk", sans-serif !important;
}

.titoloslider {
	-webkit-text-fill-color: transparent;
	background-image: linear-gradient(263deg, #279ff0 31%, #de68ff 84%);
	-webkit-background-clip: text;
	background-clip: text;
	padding-bottom: 20px;
}
