h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	color: #082b52 !important;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
	color: #b4b4b4 !important;
}

/* Permetti al dropdown di uscire verticalmente dalla table-responsive */
.table-responsive {
	overflow: visible !important;
}

/* Se vuoi mantenere lo scroll orizzontale su mobile */
@media (max-width: 767.98px) {
	.table-responsive {
		overflow-x: auto;
		overflow-y: visible;
	}
}

h1 {
	font-size: 28px;
}

.topbar {
	background-color: #082a52 !important;
}

.logo {
	height: 60px;
}

.logo-small {
	height: auto;
}

/* Stepper */
.stepper {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 0 0 1.25rem 0;
}
.stepper-item {
	text-align: center;
	color: #6c757d;
	cursor: pointer;
}
.stepper-item span {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 2px solid #dee2e6;
	font-weight: 600;
	margin-bottom: 0.25rem;
	background: #fff;
}
.stepper-item small {
	display: block;
	font-size: 0.8rem;
}
.stepper-item.active span,
.stepper-item.completed span {
	border-color: var(--bs-success);
	color: var(--bs-success);
}
.stepper-item.completed span {
	background: rgba(var(--bs-success-rgb), 0.2);
}

/* Auto-height morbido del wrapper */
#msf-wrapper {
	transition: height 0.3s ease;
}

/* Animazioni di ingresso/uscita step */
.msf-step {
	opacity: 1;
	transition: opacity 0.2s ease;
}
.msf-step.is-hiding {
	opacity: 0;
}
.msf-step.is-showing {
	opacity: 1;
}

/* Pulsanti in footer card */
.card-footer {
	background: #f3f3f3;
	border-top: 1px solid #dee2e6;
}

/* dopo Bootstrap */
.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: #082b52;
	--bs-btn-border-color: #082b52;

	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #0a3e7b;
	--bs-btn-hover-border-color: #0a3e7b;

	/* usa l'RGB del tuo colore focus (qui #0a3e7b => 10,62,123) */
	--bs-btn-focus-shadow-rgb: 10, 62, 123;

	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #0a3e7b;
	--bs-btn-active-border-color: #0a3e7b;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #082b52;
	--bs-btn-disabled-border-color: #082b52;
}

/* (opzionale) ring focus un po’ più visibile */
.btn-primary:focus-visible {
	box-shadow: 0 0 0 0.25rem rgba(10, 62, 123, 0.35);
}

.btn-outline-primary {
	--bs-btn-color: #082b52;
	--bs-btn-border-color: #082b52;
	--bs-btn-hover-bg: #082b52;
	--bs-btn-hover-border-color: #082b52;
	--bs-btn-active-bg: #082b52;
	--bs-btn-active-border-color: #082b52;
	--bs-btn-disabled-color: #082b52;
	--bs-btn-focus-shadow-rgb: 10, 62, 123;
}

#nome_cognome {
	font-weight: 600;
}

#review-cards .card-body {
	padding: 0.9rem 1rem;
}

.riepilogo-title {
	color: rgb(43, 43, 43) !important;
	font-weight: 600;
	font-size: 15px;
}
.riepilogo-value {
	color: rgb(43, 43, 43) !important;
	font-weight: 400;
	font-size: 15px;
}

/* righe compatte nel riepilogo */
.review-row {
	border-bottom: 1px solid #eff1f4;
}
.card-body .review-row:last-child {
	border-bottom: none;
}
#review-cards .card-header {
	border-bottom: 1px solid #eef0f2;
}
#review-cards .card-body {
	padding-top: 0.75rem;
	padding-bottom: 0.5rem;
}
.offer-infortuni {
	border: 1px solid rgba(13, 110, 253, 0.15);
	background: linear-gradient(180deg, rgba(13, 110, 253, 0.04), rgba(13, 110, 253, 0.02));
	box-shadow: 0 6px 14px rgba(13, 110, 253, 0.08);
	border-radius: 0.75rem;
}
.offer-infortuni .form-check-input {
	transform: scale(1.1);
	margin-top: 0.2rem;
}
.offer-infortuni .list-inline {
	margin-left: 0.25rem;
}
#acc-infortuni .list-group-item {
	border-color: #eef0f2;
}

/* card collapsable stile offerta (neutro) */
.review-collapsible {
	border: 1px solid rgba(33, 37, 41, 0.08);
	background: linear-gradient(180deg, rgba(33, 37, 41, 0.03), rgba(33, 37, 41, 0.015));
	box-shadow: 0 6px 14px rgba(33, 37, 41, 0.06);
	border-radius: 0.75rem;
}

/* header cliccabile */
.review-toggle {
	text-align: left;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(33, 37, 41, 0.08);
	border-radius: 0.65rem;
	background-color: #fff;
}
.review-toggle:hover {
	background-color: #fafbfc;
}

/* chevron che ruota con collapse */
.review-chevron {
	transition: transform 0.2s ease;
}
.review-toggle[aria-expanded="true"] .review-chevron {
	transform: rotate(180deg);
}

/* righe compatte */
.review-row {
	border-bottom: 1px solid #eff1f4;
}
.card-body .review-row:last-child {
	border-bottom: none;
}

/* header delle card non collapsable */
#review-cards .card-header {
	border-bottom: 1px solid #eef0f2;
}
#review-cards .card-body {
	padding-top: 0.75rem;
	padding-bottom: 0.5rem;
}
/* usa lo stesso stile base dell'offerta, ma con palette neutra */
.offer-personali {
	border-color: rgba(33, 37, 41, 0.08);
	background: linear-gradient(180deg, rgba(33, 37, 41, 0.03), rgba(33, 37, 41, 0.015));
	box-shadow: 0 6px 14px rgba(33, 37, 41, 0.06);
}

/* Firma */
.sig-box {
	background: #fff;
}
.sig-canvas-wrap {
	width: 100%;
	border: 1px dashed #cfd6df;
	background: #fafbfc;
	border-radius: 0.5rem;
	overflow: hidden;
}
.sig-canvas {
	width: 100%;
	height: 100%;
	display: block;
	touch-action: none;
}

/* Accordion status */
.acc-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.acc-btn .status-icon {
	font-size: 1rem;
}
.acc-btn.status-pending {
	background: #f8f8f8;
	color: var(--bs-secondary-text);
}
.acc-btn.status-accepted {
	background: var(--bs-success-bg-subtle);
	color: var(--bs-success-text);
	border-color: var(--bs-success-border-subtle);
}
.acc-btn.status-accepted .status-icon {
	color: var(--bs-success);
}
.acc-btn.status-pending .status-icon {
	color: var(--bs-secondary);
}
.acc-btn .status-badge {
	font-size: 0.75rem;
}
/* Stato DECLINED (rosso) */
.acc-btn.status-declined {
	background: var(--bs-danger-bg-subtle);
	color: var(--bs-danger-text);
	border-color: var(--bs-danger-border-subtle);
}
.acc-btn.status-declined .status-icon {
	color: var(--bs-danger);
}

.text-area-div {
	padding: 10px;
	background-color: #fafbfc;
	font-size: 14px;
	height: 100%;
}

dotlottie-wc {
	margin: 0 auto;
}

.background-info {
	background-color: rgb(56 134 177 / 19%) !important;
}

/* === Loading Overlay === */
.loading-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(255, 255, 255, 0.98) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 99999 !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	margin: 0 !important;
	padding: 0 !important;
}

.loading-overlay.active {
	opacity: 1;
	visibility: visible;
}

.loading-content {
	text-align: center;
	max-width: 500px;
	padding: 2rem;
	position: relative;
	z-index: 100000;
}

.loading-spinner {
	width: 80px;
	height: 80px;
	margin: 0 auto 2rem;
	border: 6px solid #e9ecef;
	border-top-color: #0d6efd;
	border-radius: 50%;
	animation: spin-loader 1s linear infinite;
}

@keyframes spin-loader {
	to {
		transform: rotate(360deg);
	}
}

.loading-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #212529;
	margin-bottom: 0.5rem;
}

.loading-text {
	color: #6c757d;
	margin-bottom: 1.5rem;
}

.loading-steps {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1rem;
	margin-top: 1.5rem;
	text-align: left;
}

.loading-step {
	display: flex;
	align-items: center;
	padding: 0.5rem 0;
	font-size: 0.9rem;
	color: #6c757d;
	transition: color 0.3s ease;
}

.loading-step.active {
	color: #0d6efd;
	font-weight: 500;
}

.loading-step.completed {
	color: #198754;
}

.loading-step-icon {
	width: 24px;
	height: 24px;
	margin-right: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.loading-step .bi-circle {
	color: #dee2e6;
}

.loading-step.active .bi-circle {
	color: #0d6efd;
}

.loading-step.completed .bi-check-circle-fill {
	color: #198754;
}

/* Progress bar alternativa */
.loading-progress {
	width: 100%;
	height: 4px;
	background: #e9ecef;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 1rem;
}

.loading-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #0d6efd, #0dcaf0);
	width: 0%;
	transition: width 0.5s ease;
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

/* Animazione spinner per step attivo */
.bi-arrow-repeat.spin {
	display: inline-block;
	animation: spin-icon 1s linear infinite;
}

@keyframes spin-icon {
	to {
		transform: rotate(360deg);
	}
}

/* Previeni scroll quando overlay è attivo */
body.loading-active {
	overflow: hidden !important;
}

/* === Mobile: stepper compatto (il link gira su WhatsApp, si compila da telefono) === */
@media (max-width: 575.98px) {
	.stepper {
		gap: 0.35rem;
	}
	.stepper-item span {
		width: 30px;
		height: 30px;
		font-size: 0.85rem;
	}
	.stepper-item small {
		display: none;
	}
	.stepper-item.active small {
		display: block;
		font-size: 0.72rem;
	}
	h3 {
		font-size: 20px;
	}
	.logo {
		height: 44px;
	}
}
