/* Montina Heritage – modulo pubblico e verifica. Eredita il carattere del tema. */
.mh-form,
.mh-verifica {
	--mh-ink: #161616;
	--mh-muted: #6b6b6b;
	--mh-line: #d9d9d6;
	--mh-soft: #f6f5f2;
	--mh-accent: #161616;
	--mh-ok: #2f6b3a;
	--mh-err: #a3262a;
	--mh-radius: 2px;
	color: var(--mh-ink);
	max-width: 880px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}
.mh-form *,
.mh-verifica * { box-sizing: border-box; }

.mh-eyebrow {
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mh-muted);
	margin: 0 0 8px;
}
.mh-form h2,
.mh-verifica h2 {
	font-size: clamp(26px, 4vw, 36px);
	line-height: 1.15;
	margin: 0 0 14px;
	font-weight: 600;
}
.mh-intro { padding-bottom: 28px; border-bottom: 1px solid var(--mh-ink); margin-bottom: 8px; }
.mh-intro p { margin: 0 0 10px; max-width: 64ch; }
.mh-nota { color: var(--mh-muted); font-size: 14px; }

.mh-form fieldset {
	border: 0;
	border-bottom: 1px solid var(--mh-line);
	padding: 28px 0;
	margin: 0;
	min-width: 0;
}
.mh-form fieldset:last-of-type { border-bottom: 0; }
.mh-form legend {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 0;
	margin-bottom: 18px;
	float: left;
	width: 100%;
}
.mh-form legend + * { clear: both; }
.mh-step {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 1px solid var(--mh-ink);
	border-radius: 50%;
	font-size: 12px;
	letter-spacing: 0;
}
.mh-help { color: var(--mh-muted); font-size: 14px; margin: 0 0 16px; }

.mh-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
}
.mh-grid-2 { grid-column: 1 / -1; }
.mh-full { grid-column: 1 / -1; }

.mh-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mh-field > span {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mh-muted);
}
.mh-field small { color: var(--mh-muted); font-size: 13px; }

.mh-form input[type="text"],
.mh-form input[type="email"],
.mh-form input[type="tel"],
.mh-form input[type="number"],
.mh-form select,
.mh-form textarea,
.mh-verifica input[type="text"] {
	width: 100%;
	font: inherit;
	color: var(--mh-ink);
	background: #fff;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	padding: 11px 12px;
	min-height: 46px;
	transition: border-color .15s;
}
.mh-form textarea { min-height: 0; resize: vertical; }
.mh-form input:focus,
.mh-form select:focus,
.mh-form textarea:focus,
.mh-verifica input:focus {
	outline: 2px solid var(--mh-ink);
	outline-offset: 1px;
	border-color: var(--mh-ink);
}
.mh-dim { display: flex; align-items: center; gap: 10px; }
.mh-dim input { max-width: 120px; }
.mh-dim span { color: var(--mh-muted); }

.mh-checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 24px;
	margin-bottom: 10px;
}
.mh-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	cursor: pointer;
}
.mh-check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--mh-ink); flex: none; }
.mh-consent { margin: 14px 0 4px; font-size: 14px; }
.mh-consent a { color: inherit; }

.mh-shots {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	list-style: none;
	counter-reset: shot;
	padding: 0;
	margin: 0 0 18px;
}
.mh-shots li {
	counter-increment: shot;
	background: var(--mh-soft);
	padding: 10px 12px 10px 38px;
	position: relative;
	font-size: 14px;
	line-height: 1.35;
}
.mh-shots li::before {
	content: counter(shot);
	position: absolute;
	left: 12px;
	top: 10px;
	font-weight: 600;
	font-size: 13px;
}

.mh-drop {
	position: relative;
	border: 1px dashed #9a9a96;
	border-radius: var(--mh-radius);
	padding: 26px 18px;
	text-align: center;
	margin-bottom: 18px;
	transition: background .15s, border-color .15s;
}
.mh-drop.is-over { background: var(--mh-soft); border-color: var(--mh-ink); }
.mh-drop input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
}
.mh-drop-label { display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.mh-drop-label span { color: var(--mh-muted); font-size: 14px; }
.mh-previews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
	margin-top: 14px;
	position: relative;
	z-index: 1;
	pointer-events: none;
}
.mh-previews:empty { display: none; }
.mh-previews figure { margin: 0; aspect-ratio: 1; background: var(--mh-soft); overflow: hidden; }
.mh-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-count { grid-column: 1 / -1; font-size: 13px; color: var(--mh-muted); text-align: left; }

.mh-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.mh-btn {
	font: inherit;
	font-weight: 600;
	letter-spacing: .06em;
	background: var(--mh-accent);
	color: #fff;
	border: 1px solid var(--mh-accent);
	border-radius: var(--mh-radius);
	padding: 14px 28px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.mh-btn:hover { background: #fff; color: var(--mh-accent); }
.mh-btn[disabled] { opacity: .6; cursor: progress; }
.mh-small { font-size: 13px; color: var(--mh-muted); margin: 0; }

.mh-alert {
	border-left: 3px solid var(--mh-err);
	background: #fbf1f1;
	padding: 12px 16px;
	margin: 20px 0 0;
	font-size: 15px;
}
.mh-has-err input,
.mh-has-err select,
.mh-has-err textarea { border-color: var(--mh-err); }
.mh-drop.mh-has-err { border-color: var(--mh-err); }
.mh-err-msg { color: var(--mh-err); font-size: 13px; display: block; }
.mh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mh-grazie { text-align: center; padding: 40px 0; }
.mh-grazie p { max-width: 56ch; margin: 0 auto 10px; }
.mh-codice {
	display: inline-block;
	font-size: 20px;
	letter-spacing: .08em;
	border: 1px solid var(--mh-ink);
	padding: 8px 18px;
	margin: 6px 0 18px !important;
	font-variant-numeric: tabular-nums;
}

/* ---------- Verifica ---------- */
.mh-verifica-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin: 18px 0 28px; }
.mh-esito {
	border: 1px solid var(--mh-line);
	display: grid;
	grid-template-columns: 220px 1fr;
}
.mh-esito-foto { background: var(--mh-soft); min-height: 220px; }
.mh-esito-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-esito-body { padding: 22px 26px; }
.mh-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 6px 12px;
	margin-bottom: 14px;
}
.mh-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mh-badge-ok { color: var(--mh-ok); background: #eef5ef; }
.mh-badge-ko { color: var(--mh-err); background: #fbf1f1; }
.mh-esito h3 { margin: 0 0 4px; font-size: 24px; }
.mh-esito dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: 15px; }
.mh-esito dt { color: var(--mh-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.mh-esito dd { margin: 0; }
.mh-esito-nota { font-size: 13px; color: var(--mh-muted); margin-top: 16px; }

@media (max-width: 680px) {
	.mh-grid,
	.mh-checks,
	.mh-shots,
	.mh-verifica-form,
	.mh-esito { grid-template-columns: 1fr; }
	.mh-esito-foto { min-height: 200px; }
	.mh-dim input { max-width: none; }
}
