:root {
	--home_hero-padding: 9rem;
	--home_hero-padding-mobile: 5rem;

	--logos_opacity_wordpress: 0.4;
	--logos_opacity_laravel: 0.4;
	--logos_opacity_plesk: 0.3;
	--logos_opacity_imunify360: 0.4;
	--logos_opacity_jetbackup: 0.4;
	--logos_opacity_cloudlinux: 0.25;
	--logos_opacity_nginx: 0.4;
	--logos_opacity_php: 0.25;
	--logos_opacity_mariadb: 0.35;

	--background_soft_gradient_blue_opacity: 50%;
}

/* shared section background, white at the top fading to soft blue at the bottom */
.background_soft_gradient_blue {
	background: linear-gradient(to bottom, color-mix(in srgb, var(--primary-white) var(--background_soft_gradient_blue_opacity), transparent), color-mix(in srgb, var(--default-light-background-softer) var(--background_soft_gradient_blue_opacity), transparent));
}

.home_hero {
	width: 100%;
	margin: 0 auto;

	background: url(/themes/italy/images/components/hero_26/hero-background.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

.home_hero > .row {
	min-height: inherit;
	display: flex;
	justify-content: center;
	align-items: center;
	
	padding-left: 1rem;
	padding-right: 1rem;
}

.home_hero > .row:first-child {
	padding-top: var(--home_hero-padding);
	padding-bottom: var(--home_hero-padding);
}

.home_hero > .row:nth-child(2) {
	padding-bottom: var(--home_hero-padding);
	flex-wrap: wrap;
}

.home_hero h1, .home_hero p {
	text-align: center;
}

.home_hero h1 {
	font-family: Ubuntu, Arial, sans-serif;
	font-weight: bold;
	font-size: 3.8rem;
	margin-top: -0.3rem;
	color: var(--primary-color-darker);
}

.home_hero_cta_section {
	text-align: center;
}

.home_hero_cta_section .small_button_blue, .home_hero_cta_section .small_button_green {
	min-width: 220px;
	padding: 0.6em 1.2em;
	margin: 1rem 0.5rem 0rem 0.5rem;
}

.home_hero_screenshot img {
	border-radius: calc(2*var(--border-radius-default));
	box-shadow: 0px 0px 20px #ddd;
}

.home_hero_screenshot + .home_hero_screenshot {
	margin-top: 1.5rem;
}

a.home_hero_feature {
	margin-top: 1.2rem;
	/*background-color: color-mix(in srgb, #0D435E 10%, transparent);*/
	background-color: color-mix(in srgb, #ffffff 60%, transparent);
	border-radius: calc(var(--border-radius-default)*2);
	padding: 1rem 1.2rem;
	transition: background-color 0.5s;
	display: block;
}

.home_hero_feature h4 {
	font-family: Ubuntu, Arial, sans-serif;
	font-weight: bold;
	margin-bottom: 0;
	color: var(--primary-color-darker);
	transition: color 0.5s;
	font-size: 1.25rem;
}

.home_hero_feature h4 img {
	margin-top: -3px;
	margin-right: 8px;
}

/* both checks share one grid cell so they sit on top of each other */
.home_hero_feature_icon {
	display: inline-grid;
	vertical-align: middle;
}

.home_hero_feature_icon img {
	grid-area: 1 / 1;
	transition: opacity 0.5s;
}

.home_hero_feature_check_white {
	opacity: 0;
}

.home_hero_feature:hover {
	background-color: color-mix(in srgb, var(--primary-color) 100%, transparent);
	color: #ffffff !important;
}

.home_hero_feature:hover h4 {
	color: #ffffff !important;
}

.home_hero_feature:hover .home_hero_feature_check {
	opacity: 0;
}

.home_hero_feature:hover .home_hero_feature_check_white {
	opacity: 1;
}

.home_hero_feature:first-child {
	margin-top: 0;
}

.home_hero_feature p {
	text-align: left;
	margin-bottom: 0;
}

/* the track holds the logo list twice, so sliding it by half loops seamlessly */
.logos_row {
	width: 100%;
	overflow: hidden;
	padding: 2rem 0;}

.logos_track {
	display: flex;
	width: max-content;
	animation: logos_scroll 90s linear infinite;
}

.logos_group {
	display: flex;
	align-items: center;
}

.logos_item {
	padding: 0 2.2rem;
}

.logos_item img {
	width: auto;
	max-width: none;
	filter: grayscale(100%);
}

/* each logo gets its own height so they can be balanced visually */
.logos_img_wordpress {
	height: 40px;
	opacity: var(--logos_opacity_wordpress);
}

.logos_img_laravel {
	height: 40px;
	opacity: var(--logos_opacity_laravel);
}

.logos_img_plesk {
	height: 40px;
	opacity: var(--logos_opacity_plesk);
}

.logos_img_imunify360 {
	height: 40px;
	opacity: var(--logos_opacity_imunify360);
}

.logos_img_jetbackup {
	height: 30px;
	opacity: var(--logos_opacity_jetbackup);
}

.logos_img_cloudlinux {
	height: 40px;
	opacity: var(--logos_opacity_cloudlinux);
}

.logos_img_nginx {
	height: 25px;
	opacity: var(--logos_opacity_nginx);
}

.logos_img_php {
	height: 40px;
	opacity: var(--logos_opacity_php);
}

.logos_img_mariadb {
	height: 40px;
	opacity: var(--logos_opacity_mariadb);
}

@keyframes logos_scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* image and features stack below the large breakpoint */
@media only screen and (max-width: 64em) {
	.home_hero_features {
		margin-top: 2rem;
	}
}

@media only screen and (max-width: 40em) {
	.home_hero > .row:first-child {
		padding-top: var(--home_hero-padding-mobile);
		padding-bottom: var(--home_hero-padding-mobile);
	}

	.home_hero > .row:nth-child(2) {
		padding-bottom: var(--home_hero-padding-mobile);
	}

	.home_hero_screenshot img {
		border-radius: var(--border-radius-default);
		box-shadow: 0px 0px 10px #ccc;
	}

	.home_hero h1 {
		font-size: 2rem;
	}

	/* wrapped heading text stays in its own column to the right of the check */
	.home_hero_feature h4 {
		display: flex;
		align-items: flex-start;
	}

	.home_hero_feature h4 img {
		margin-top: 2px;
	}

	.logos_track {
		animation-duration: 45s;
	}
}
