/* MenuReady Registration Wizard */
:root {
	--mrrw-primary: #0B847E;
	--mrrw-primary-hover: #096b66;
	--mrrw-primary-light: rgba(11, 132, 126, 0.08);
	--mrrw-checkbox-bg: #fff;
	--mrrw-checkbox-checked-bg: #8F381B;
}

.mrrw-wizard {
	max-width: 560px;
	margin: 0.5rem auto;
	padding: 0.5rem 1rem;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	border-radius: 20px;
}

.mrrw-wizard.mrrw-wizard--no-shadow {
	box-shadow: none;
}

.mrrw-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	gap: 0;
}

/* Barra step solo da step 2 in poi (intro senza indicatori) */
#mrrw-wizard[data-current-step="1"] .mrrw-progress {
	display: none;
}

.mrrw-step-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #666;
	transition: background 0.2s, color 0.2s;
	flex-shrink: 0;
}

.mrrw-step-dot .mrrw-step-icon {
	width: 18px;
	height: 18px;
	display: block;
}

.mrrw-step-dot.active {
	background: #8F381B;
	color: #fff;
}

.mrrw-step-line {
	width: 36px;
	height: 3px;
	background: #e0e0e0;
	margin: 0 2px;
	transition: background 0.25s ease;
	border-radius: 2px;
	flex-shrink: 0;
}

@media (min-width: 480px) {
	.mrrw-step-dot {
		width: 40px;
		height: 40px;
	}
	.mrrw-step-dot .mrrw-step-icon {
		width: 20px;
		height: 20px;
	}
	.mrrw-step-line {
		width: 40px;
		height: 4px;
	}
}

/* Barra solo step 2–3: linea tra i punti verde quando si è allo step piano */
#mrrw-wizard[data-current-step="3"] .mrrw-progress .mrrw-step-line:nth-child(2) {
	background: #8F381B;
}

.mrrw-progress-label {
	text-align: center;
	margin: 0 0 1.5rem;
	font-size: 0.9rem;
	color: #50575e;
}

.mrrw-step-title {
	display: none;
}

.mrrw-step-title.active {
	display: inline;
}

.mrrw-step-heading {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	color: #1d2327;
	letter-spacing: 0;
}

.mrrw-step-desc {
	margin: 0 0 1.0rem;
	color: #646970;
	font-size: 0.95rem;
}

/* Step intro: hero ad alto impatto */
.mrrw-step--intro {
	text-align: center;
}

.mrrw-intro-hero {
	margin: 0 0 1.25rem;
	padding: 0 0 1rem;
	border-bottom: 1px solid rgba(11, 132, 126, 0.15);
}

.mrrw-intro-badge {
	display: inline-block;
	margin: 0 0 0.85rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, #8F381B 0%, #8F381B 100%);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(143, 56, 27, 0.35);
}

.mrrw-intro-headline {
	margin: 0 0 0.65rem;
	font-size: clamp(1.45rem, 4.5vw, 1.85rem);
	font-weight: 800;
	line-height: 1.15;
	color: #1d2327;
	letter-spacing: -0.02em;
}

/* Stesso blocco hero negli step 2–3: compatto e centrato */
.mrrw-intro-repeat {
	text-align: center;
	margin-bottom: 1.25rem;
}

.mrrw-intro-repeat .mrrw-intro-hero {
	margin-bottom: 0.9rem;
	padding-bottom: 0.85rem;
}

.mrrw-intro-repeat .mrrw-intro-headline {
	font-size: clamp(1.15rem, 3.5vw, 1.45rem);
}

.mrrw-intro-repeat .mrrw-intro-kicker {
	font-size: 0.95rem;
}

.mrrw-intro-repeat .mrrw-intro-highlight {
	margin-bottom: 0;
	padding: 0.95rem 1rem;
}

.mrrw-intro-kicker {
	margin: 0;
	max-width: 28em;
	margin-left: auto;
	margin-right: auto;
	font-size: 1rem;
	line-height: 1.5;
	color: #141414;
}

.mrrw-intro-highlight {
	margin: 0 0 1.35rem;
	padding: 1.1rem 1.15rem;
	text-align: center;
	background: linear-gradient(160deg, rgba(143, 56, 27, 0.12) 0%, rgba(143, 56, 27, 0.04) 100%);
	border-radius: 14px;
	border: 1px solid rgba(143, 56, 27, 0.22);
	box-shadow: 0 8px 24px rgba(143, 56, 27, 0.08);
}

.mrrw-intro-highlight-main {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	font-weight: 800;
	color: #210A07;
	line-height: 1.25;
}

.mrrw-intro-highlight-sub {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #3c434a;
}

.mrrw-intro-benefits {
	list-style: none;
	margin: 0 0 1.35rem;
	padding: 0;
	text-align: left;
}

.mrrw-intro-benefit {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.85rem;
	font-size: 0.925rem;
	line-height: 1.45;
	color: #2c3338;
	font-weight: 500;
}

.mrrw-intro-benefit:last-child {
	margin-bottom: 0;
}

.mrrw-intro-benefit-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-top: 0.05rem;
	border-radius: 50%;
	background: #8F381B;
	color: #fff;
}

.mrrw-intro-benefit-icon svg {
	display: block;
}

.mrrw-intro-offer {
	margin: 0;
	padding: 1rem 1.1rem;
	background: var(--mrrw-primary-light, rgba(11, 132, 126, 0.08));
	border-radius: 10px;
	border: 1px solid rgba(11, 132, 126, 0.2);
}

.mrrw-intro-offer--impact {
	text-align: left;
	padding: 1.15rem 1.2rem 1.2rem;
	border-radius: 14px;
	border-width: 2px;
	border-color: rgba(143, 56, 27, 0.35);
	background: linear-gradient(180deg, #fff 0%, rgba(143, 56, 27, 0.06) 100%);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.mrrw-intro-offer-head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.5rem;
}

.mrrw-intro-offer-emoji {
	font-size: 1.75rem;
	line-height: 1;
}

.mrrw-intro-offer-title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 800;
	color: #1d2327;
	line-height: 1.25;
}

.mrrw-intro-offer-lead {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #210A07;
}

.mrrw-intro-offer-text {
	margin: 0;
	color: #141414;
	font-size: 0.925rem;
	line-height: 1.55;
}

.mrrw-step {
	transition: opacity 0.2s;
}

.mrrw-step.hidden {
	display: none !important;
}

/* Campo "Specificare" visibile solo quando Tipologia = Altro */
.mrrw-field-type-other.hidden,
#mrrw-wrap-type-other.hidden {
	display: none !important;
}

/* Campi PEC/SDI visibili solo quando Partita IVA è attiva */
.mrrw-field-partita-iva.hidden,
#mrrw-wrap-partita-iva.hidden {
	display: none !important;
}

/* Switch Partita IVA */
.mrrw-field-switch {
	margin-bottom: 1rem;
}
.mrrw-switch-label {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	user-select: none;
}
.mrrw-switch-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.mrrw-switch-slider {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	background: #e0e0e0;
	border-radius: 24px;
	transition: background 0.2s;
}
.mrrw-switch-slider::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	transition: transform 0.2s;
}
.mrrw-switch-input:checked + .mrrw-switch-slider {
	background: #0B847E;
}
.mrrw-switch-input:checked + .mrrw-switch-slider::after {
	transform: translateX(20px);
}
.mrrw-switch-input:focus-visible + .mrrw-switch-slider {
	box-shadow: 0 0 0 2px #0B847E;
}
.mrrw-switch-text {
	font-weight: 500;
	color: #1d2327;
}
.mrrw-field-group.mrrw-field-partita-iva {
	margin-top: 0;
}
.mrrw-field-group.mrrw-field-partita-iva .mrrw-field {
	margin-bottom: 1.25rem;
}

.mrrw-fields .mrrw-field {
	margin-bottom: 1.25rem;
}

.mrrw-fields label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 500;
	color: #1d2327;
}

.mrrw-fields .required {
	color: #d63638;
}

.mrrw-fields input[type="text"],
.mrrw-fields input[type="email"],
.mrrw-fields input[type="tel"],
.mrrw-fields input[type="number"],
.mrrw-fields select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.mrrw-fields input:focus,
.mrrw-fields select:focus {
	border-color: #8F381B;
	outline: none;
	box-shadow: 0 0 0 1px #8F381B;
}

.mrrw-fields input.mrrw-invalid,
.mrrw-fields select.mrrw-invalid {
	border-color: #d63638;
}

.mrrw-field-row {
	display: flex;
	gap: 1rem;
}

.mrrw-field-row > span {
	flex: 1;
}

/* Piani */
.mrrw-plans {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Contenitore di riferimento per il ribbon (absolute) */
.mrrw-plan-card {
	position: relative;
	display: block;
	height: auto;
	box-sizing: border-box;
	cursor: pointer;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	transition: border-color 0.2s, background 0.2s;
	overflow: hidden;
}

.mrrw-plan-card.discounted {
	padding-bottom: 2.5rem;
}

/* Ribbon a nastro sull’angolo della card (top-right) */
.mrrw-plan-card--popular {
	overflow: visible;
}

/* Ribbon con angolo piegato, 45° sui bordi della card */
.mrrw-plan-ribbon {
	--f: 0.5em; /* control the folded part */
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	line-height: 1.8;
	padding-inline: 1lh;
	padding-bottom: var(--f);
	border-image: conic-gradient(#0008 0 0) 51% / var(--f);
	clip-path: polygon(
		100% calc(100% - var(--f)), 100% 100%, calc(100% - var(--f)) calc(100% - var(--f)),
		var(--f) calc(100% - var(--f)), 0 100%, 0 calc(100% - var(--f)),
		999px calc(100% - var(--f) - 999px), calc(100% - 999px) calc(100% - var(--f) - 999px)
	);
	transform: translate(calc((1 - cos(45deg)) * 100%), -100%) rotate(45deg);
	transform-origin: 0% 100%;
	background-color: #8F381B;
	font-size: 14px;
	font-weight: bold;
	color: #fff;
	pointer-events: none;
}

.mrrw-plan-card:hover {
	border-color: #8F381B;
	background: #f6f7f7;
}

.mrrw-plan-card input {
	display: none;
}

.mrrw-plan-card input:checked + .mrrw-plan-inner,
.mrrw-plan-card:has(input:checked) {
	border-color: #8F381B;
}

.mrrw-plan-card:has(input:checked) {
	border-color: #8F381B;
	background: rgba(143, 56, 27, 0.08);
}

.mrrw-plan-inner {
	display: block;
}

.mrrw-plan-label {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}

.mrrw-plan-desc,
.mrrw-plan-price-wrap {

	display: flex;
	flex-direction: row;
	justify-content: space-between;
	font-size: 0.9rem;
	color: #646970;
}

.mrrw-plan-price-wrap {
	margin-top: 0.25rem;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 0.35rem;
}

.mrrw-plan-price {
	font-weight: 500;
	color: #1d2327;
}

.mrrw-plan-price--strikethrough {
	text-decoration: line-through;
	color: #646970;
	font-weight: 400;
}

.mrrw-plan-price--discounted {
	color: #0B847E;
	font-weight: 600;
}

.mrrw-plan-price-iva {
	font-size: 0.85em;
	font-weight: 400;
	color: #646970;
}

.mrrw-plan-trial-note,
.mrrw-plan-iva-note {
	margin: 0 0 0.5rem;
	color: #646970;
	font-size: 0.85rem;
	font-style: italic;
}

.mrrw-consents {
	margin-top: 0.5rem;
}

.mrrw-consents .mrrw-field-checkbox {
	margin-bottom: 0rem;
}

.mrrw-consents .mrrw-field-checkbox:last-child {
	margin-bottom: 0;
}

.mrrw-field-checkbox > label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.mrrw-field-checkbox input[type="checkbox"] {
	margin-top: 0.2rem;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #8F381B;
	border-radius: 4px;
	background-color: var(--mrrw-checkbox-bg, #fff);
	cursor: pointer;
	position: relative;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mrrw-field-checkbox input[type="checkbox"]:checked {
	background-color: var(--mrrw-checkbox-checked-bg, #8F381B);
	border-color: var(--mrrw-checkbox-checked-bg, #8F381B);
}

.mrrw-field-checkbox input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 4px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mrrw-field-checkbox input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(143, 56, 27, 0.2);
}

.mrrw-field-checkbox a {
	color: #210A07;
	text-decoration: underline;
}

.mrrw-field-checkbox a:hover {
	color: #210A07;
	text-decoration: underline;
}

/* Badge sconto sulla card */
.mrrw-plan-discount {
	position: absolute;
	bottom: 0.5rem;
	right: 0.75rem;
	z-index: 1;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	background-color: #d63638;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

/* Riepilogo */
.mrrw-summary {
	margin-bottom: 1rem;
}

.mrrw-summary-block {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e0e0e0;
}

.mrrw-summary-block:last-child {
	border-bottom: 0;
}

.mrrw-summary-block h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: #50575e;
}

.mrrw-summary-block dl {
	margin: 0;
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 0.25rem 1rem;
}

.mrrw-summary-block dt {
	margin: 0;
	color: #646970;
	font-weight: 500;
}

.mrrw-summary-block dd {
	margin: 0;
	color: #1d2327;
}

/* Azioni */
.mrrw-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
	padding-top: 1rem;
	/*border-top: 1px solid #e0e0e0;*/
}

.mrrw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 10px 24px;
	font-family: "Inter", Sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1rem;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	border-radius: 20px !important; 
	cursor: pointer;
	border: 4px solid #8F381B;
	background-color: #8F381B !important;
	color: #fff;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mrrw-btn:hover {
	color: #fff !important;
}

.mrrw-btn-icon {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
}

.mrrw-btn-icon--left { order: -1; }
.mrrw-btn-icon--right { order: 1; }

.mrrw-btn:hover {
	background: rgba(143, 56, 27, 0.7) !important;
	color: #fff;
}

.mrrw-btn-prev {
	background: #fff;
	color: #0B847E;
}

.mrrw-btn-prev:hover {
	background: rgba(11, 132, 126, 0.08);
	color: #096b66;
}

.mrrw-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.mrrw-message {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-size: 0.95rem;
}

.mrrw-message.mrrw-success {
	background: #edfaef;
	border: 1px solid #00a32a;
	color: #1e4620;
}

.mrrw-message.mrrw-error {
	background: #fcf0f1;
	border: 1px solid #d63638;
	color: #3c434a;
}

/* Admin */
.mrrw-code-example {
	background: #f6f7f7;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-size: 12px;
	margin-top: 0.5rem;
	overflow-x: auto;
}

.mrrw-btn.hidden {
	visibility: hidden;
}

.mrrw-plan-desc {
	overflow: hidden;
	position: relative;
	transition: max-height 0.3s ease;
}

.mrrw-plan-desc ul {
	margin-bottom: 8px;
}

.mrrw-plan-desc.expanded {
	max-height: none;
}

.mrrw-show-more {
	display: block;
	margin-top: 0px;
	font-size: 14px;
	color: #210A07;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0 !important;
	text-decoration: underline;
}

.mrrw-intro-offer-title {
	letter-spacing: 0;
}

@media only screen and (min-width: 768px) {
	.mrrw-field-checkbox > label {
		align-items: center;
	}
}