html.hp-lock,
html.hp-lock body {
	overflow: hidden;
}

.hp-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .5);
}

.hp-backdrop[hidden] {
	display: none;
}

.hp-modal {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	outline: none;
	opacity: 0;
	transform: translateX(40px);
	transition: opacity .5s ease-in-out, transform .6s ease-in-out;
}

.hp-backdrop.is-open .hp-modal {
	opacity: 1;
	transform: none;
}

/* Brand: rosso Homa con foto in trasparenza, come i modal della vecchia produzione. */
.hp-style-brand {
	background-color: #fff;
	background-image: var(--hp-bg, none);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	isolation: isolate;
}

.hp-style-brand::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #db3b25;
	mix-blend-mode: screen;
}

.hp-style-brand:not(.has-bg)::before {
	mix-blend-mode: normal;
}

.hp-style-light {
	background: #fff;
	color: #404040;
	text-align: center;
}

.hp-inner {
	width: 60%;
	margin: 0 auto;
	padding: 75px 0;
}

.hp-title {
	margin: 0 0 20px;
	font-family: futura-std, "Futura PT", Futura, sans-serif;
	font-size: 30px;
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: inherit;
}

.hp-title strong,
.hp-title b {
	font-family: futura-std-bold, futura-std, sans-serif;
	font-weight: 700;
}

.hp-style-light .hp-title {
	color: #db3b25;
}

.hp-text {
	margin-bottom: 38px;
	font-family: futura-std, "Futura PT", Futura, sans-serif;
	font-size: 16px;
	font-style: italic;
	line-height: 1.6;
}

.hp-style-light .hp-text {
	font-style: normal;
}

.hp-text p {
	margin: 0 0 .4em;
	color: inherit;
}

.hp-btn {
	display: inline-block;
	width: 100%;
	max-width: 320px;
	padding: 12px 16px;
	border: 0;
	border-radius: 3px;
	background: #fff;
	color: #db3b25;
	font-family: futura-std-bold, futura-std, sans-serif;
	font-size: 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.hp-btn:hover,
.hp-btn:focus-visible {
	background: #f3f3f3;
	color: #db3b25;
}

.hp-style-light .hp-btn {
	background: #db3b25;
	color: #fff;
}

.hp-style-light .hp-btn:hover,
.hp-style-light .hp-btn:focus-visible {
	background: #b8301f;
	color: #fff;
}

.hp-close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	width: 44px;
	height: 48px;
	border: 0;
	border-radius: 3px;
	background: #e20f0f;
	color: #000;
	font-size: 16px;
	cursor: pointer;
}

.hp-style-light .hp-close {
	background: #f0f0f0;
	color: #404040;
}

/* Modulo */
.hp-form {
	margin: 0 auto 24px;
	text-align: left;
}

.hp-field {
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
}

.hp-field span {
	display: block;
	margin-bottom: 4px;
}

.hp-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 15px;
	color: #222;
	background: #fff;
}

.hp-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-bottom: 14px;
	font-size: 14px;
}

.hp-check input {
	margin-top: 3px;
}

.hp-form-msg {
	min-height: 1.2em;
	margin: 0 0 10px;
	font-size: 14px;
}

.hp-form .hp-btn {
	display: block;
	margin: 0 auto;
}

.hp-form.is-busy {
	opacity: .6;
	pointer-events: none;
}

@media (max-width: 767px) {
	.hp-inner {
		width: auto;
		padding: 60px 24px 40px;
	}

	.hp-title {
		font-size: 24px;
		letter-spacing: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hp-modal {
		transition: none;
		transform: none;
	}
}
