/**
 * Fondo pagina: Indietro + Home + Torna su (globale servizi.vitacomoda.it)
 */

.vc-mkt-totop-wrap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.75rem 16px 1.75rem;
	padding-bottom: max(1.75rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
	box-sizing: border-box;
}

.vc-mkt-footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 28rem;
}

.vc-mkt-footer-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	flex: 1 1 auto;
	min-height: 48px;
	min-width: 7.5rem;
	padding: 0.6rem 1.15rem;
	border: 2px solid rgba(4, 69, 175, 0.22);
	border-radius: 999px;
	background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
	color: #0445af !important;
	font-family: "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(4, 69, 175, 0.12);
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	box-sizing: border-box;
}

.vc-mkt-footer-nav__btn:hover,
.vc-mkt-footer-nav__btn:focus-visible {
	transform: translateY(-2px);
	background: linear-gradient(180deg, #fff8e0 0%, #ffe082 100%);
	border-color: rgba(255, 197, 50, 0.85);
	box-shadow: 0 12px 28px rgba(255, 197, 50, 0.32);
	outline: none;
	color: #062042 !important;
	text-decoration: none !important;
}

.vc-mkt-footer-nav__btn:active {
	transform: translateY(0);
}

.vc-mkt-footer-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: #0445af;
	color: #fff;
	font-size: 0.88rem;
	line-height: 1;
	font-weight: 800;
}

.vc-mkt-footer-nav__btn:hover .vc-mkt-footer-nav__icon,
.vc-mkt-footer-nav__btn:focus-visible .vc-mkt-footer-nav__icon {
	background: #062042;
}

.vc-mkt-totop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 48px;
	min-width: 48px;
	padding: 0.65rem 1.35rem;
	border: 2px solid rgba(4, 69, 175, 0.22);
	border-radius: 999px;
	background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
	color: #0445af;
	font-family: "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(4, 69, 175, 0.14);
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.vc-mkt-totop:hover,
.vc-mkt-totop:focus-visible {
	transform: translateY(-2px);
	background: linear-gradient(180deg, #fff8e0 0%, #ffe082 100%);
	border-color: rgba(255, 197, 50, 0.85);
	box-shadow: 0 12px 28px rgba(255, 197, 50, 0.35);
	outline: none;
	color: #062042;
}

.vc-mkt-totop:active {
	transform: translateY(0);
}

.vc-mkt-totop__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: #0445af;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1;
	font-weight: 800;
}

.vc-mkt-totop:hover .vc-mkt-totop__icon,
.vc-mkt-totop:focus-visible .vc-mkt-totop__icon {
	background: #062042;
}

/* Spazio sopra tab bar account mobile */
@media (max-width: 781px) {
	body.vc-privato-mobile-shell-account .vc-mkt-totop-wrap,
	body.vc-privato-mobile-nav-only .vc-mkt-totop-wrap {
		padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
		margin-bottom: var(--vc-privato-tab-h, 56px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-mkt-totop,
	.vc-mkt-footer-nav__btn {
		transition: none !important;
	}
}
