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

.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;
}

/* 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;
	}
}
