/**
 * Hub registrazione — estensione home-facile (palette #0445AF, #FFC532, #04B8D8).
 */

.vc-registration-hub {
	--vc-reg-hub-blue: #0445af;
	--vc-reg-hub-gold: #ffc532;
	--vc-reg-hub-cyan: #04b8d8;
	padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

.vc-registration-hub__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vc-reg-hub-cyan);
}

.vc-registration-hub__perks {
	padding: 0 1rem 1rem;
	max-width: 72rem;
	margin: 0 auto;
}

.vc-registration-hub__perks-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: center;
}

/* Scelta ente/docente — stile allineato a registrazione azienda */
.vc-mkt-ente-choices {
	display: grid;
	gap: 1rem;
	margin: 0 0 1.25rem;
}

@media (min-width: 640px) {
	.vc-mkt-ente-choices {
		grid-template-columns: 1fr 1fr;
	}
}

.vc-mkt-ente-choice {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	border-radius: 12px;
	border: 2px solid rgba(4, 69, 175, 0.12);
	background: #fff;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.vc-mkt-ente-choice:hover,
.vc-mkt-ente-choice:focus {
	border-color: var(--vc-reg-hub-cyan, #04b8d8);
	box-shadow: 0 6px 24px rgba(4, 69, 175, 0.14);
	transform: translateY(-2px);
}

.vc-mkt-ente-choice__badge {
	align-self: flex-start;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: var(--vc-reg-hub-gold, #ffc532);
	color: #1a1a1a;
}

.vc-mkt-ente-choice__title {
	font-size: 1.125rem;
	line-height: 1.25;
}

.vc-mkt-ente-choice__lead {
	font-size: 0.9375rem;
	color: #5c6570;
	line-height: 1.45;
}

.vc-mkt-ente-choice__features {
	margin: 0;
	padding: 0 0 0 1.1rem;
	font-size: 0.875rem;
	color: #3d4650;
}

.vc-mkt-ente-choice__cta {
	margin-top: auto;
	align-self: flex-start;
	pointer-events: none;
}

/* Pillole valore — card brand */
.vc-hub-perks {
	padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem);
	max-width: 56rem;
	margin: 0 auto;
}

.vc-hub-perks__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.vc-hub-perks__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.vc-hub-perks__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1.1rem 1rem 1.15rem;
	border-radius: 16px;
	background: linear-gradient(165deg, #ffffff 0%, #f4f8fc 100%);
	border: 1px solid rgba(4, 69, 175, 0.14);
	box-shadow:
		0 4px 20px rgba(4, 69, 175, 0.07),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	position: relative;
	overflow: hidden;
}

.vc-hub-perks__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--vc-reg-hub-blue, #0445af) 0%, var(--vc-reg-hub-cyan, #04b8d8) 100%);
}

.vc-hub-perks__card--gratis::before {
	background: linear-gradient(90deg, #0445af 0%, #04b8d8 100%);
}

.vc-hub-perks__card--sicuro::before {
	background: linear-gradient(90deg, #04b8d8 0%, #0445af 100%);
}

.vc-hub-perks__card--preventivi::before {
	background: linear-gradient(90deg, #ffc532 0%, #04b8d8 55%, #0445af 100%);
}

.vc-hub-perks__glyph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 12px;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--vc-reg-hub-blue, #0445af);
	background: rgba(4, 69, 175, 0.08);
}

.vc-hub-perks__label {
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vc-reg-hub-blue, #0445af);
}

.vc-hub-perks__text {
	font-size: 0.92rem;
	line-height: 1.45;
	color: #475569;
	font-weight: 500;
}

.vc-registration-hub__perks-list li {
	font-size: 0.9375rem;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	background: rgba(4, 69, 175, 0.08);
	color: #1a2b4a;
}

.vc-registration-hub__perks-list strong {
	color: var(--vc-reg-hub-blue);
}

.vc-registration-hub__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.vc-registration-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.vc-registration-hub__via {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: rgba(26, 43, 74, 0.75);
}

.vc-registration-hub .vc-home-facile__card-link {
	min-height: 44px;
}

.vc-registration-hub .vc-home-facile__card-title {
	font-size: clamp(1.125rem, 4vw, 1.35rem);
}

.vc-registration-hub__card--professionista .vc-home-facile__card-icon {
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 64 64'%3E%3Crect x='10' y='26' width='44' height='26' rx='4' stroke='%230445AF' stroke-width='2.5'/%3E%3Cpath stroke='%230445AF' stroke-width='2.5' d='M20 26v-8a12 12 0 0124 0v8'/%3E%3Cpath stroke='%23FFC532' stroke-width='2.5' d='M10 36h44'/%3E%3Cpath stroke='%2304B8D8' stroke-width='2.5' d='M28 42h8v6h-8z'/%3E%3Ccircle cx='48' cy='18' r='6' stroke='%23FFC532' stroke-width='2'/%3E%3Cpath stroke='%23FFC532' stroke-width='2' d='M48 15v6M45 18h6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.vc-registration-hub__card--ente .vc-home-facile__card-icon {
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 64 64'%3E%3Cpath stroke='%230445AF' stroke-width='2.5' d='M6 26L32 14l26 12'/%3E%3Cpath stroke='%230445AF' stroke-width='2.5' d='M14 30v10'/%3E%3Cpath stroke='%230445AF' stroke-width='2.5' d='M50 30v10'/%3E%3Cpath stroke='%230445AF' stroke-width='2.5' d='M32 14v12'/%3E%3Cpath stroke='%23FFC532' stroke-width='2.5' d='M12 48V28l20 12'/%3E%3Cpath stroke='%2304B8D8' stroke-width='2.5' d='M52 48V28L32 40'/%3E%3Cpath stroke='%23FFC532' stroke-width='2' d='M26 38h12'/%3E%3Cpath stroke='%23FFC532' stroke-width='2' d='M26 44h8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

body:has(.vc-registration-hub) .content-wrap,
body:has(.vc-registration-hub) .content-container,
body:has(.vc-registration-hub) .entry.content-bg,
body:has(.vc-registration-hub) .site-main {
	max-width: none;
	padding-inline: 0;
}

.page .entry-content > .vc-registration-hub {
	margin-inline: 0;
	max-width: none;
}

/* Il mio account — hub ospiti + accesso secondario */
.vc-my-account-guest {
	max-width: none;
}

.vc-my-account-access {
	max-width: 42rem;
	margin: 2rem auto 0;
	padding: 0 1rem max(1.5rem, env(safe-area-inset-bottom, 0px));
}

.vc-my-account-access__teaser {
	text-align: center;
	font-size: 1rem;
	margin: 0;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	background: rgba(4, 69, 175, 0.06);
	color: #1a2b4a;
}

.vc-my-account-access__teaser a {
	font-weight: 700;
	color: var(--vc-reg-hub-blue, #0445af);
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.vc-my-account-access__details {
	border: 1px solid rgba(4, 69, 175, 0.15);
	border-radius: 12px;
	padding: 0.75rem 1rem 1rem;
	background: #fff;
}

.vc-my-account-access__summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
	color: var(--vc-reg-hub-blue, #0445af);
	min-height: 44px;
	display: flex;
	align-items: center;
}

.vc-my-account-access__forms .woocommerce-form {
	font-size: 16px;
}

.vc-my-account-access__back {
	margin: 1rem 0 0;
	text-align: center;
	font-size: 0.9375rem;
}

.vc-my-account-access__back a {
	color: var(--vc-reg-hub-cyan, #04b8d8);
	font-weight: 600;
}

body.vc-my-account-login-page .woocommerce-MyAccount-navigation,
body.vc-my-account-login-page .u-columns.col2-set .col-2,
body.vc-my-account-login-page form.register {
	display: none !important;
}

body.vc-my-account-login-page .u-columns.col2-set .col-1 {
	width: 100% !important;
	float: none !important;
	max-width: 36rem;
	margin: 0 auto;
}

body:has(.vc-my-account-login) .content-wrap,
body:has(.vc-my-account-login) .content-container,
body:has(.vc-my-account-login) .entry.content-bg,
body:has(.vc-my-account-login) .site-main {
	max-width: none;
	padding-inline: 0;
}

.vc-my-account-login__form-wrap {
	max-width: 36rem;
	margin: 0 auto 1.5rem;
	padding: 0 1rem;
}

.vc-my-account-login__form-wrap form.woocommerce-form-login {
	border: 1px solid rgba(4, 69, 175, 0.28);
	border-radius: 22px;
	padding: 1.5rem 1.35rem 1.65rem;
	background: #fff;
}

.vc-my-account-login__register {
	max-width: 36rem;
	margin: 0 auto 2rem;
	padding: 1.25rem 1rem 1.5rem;
	text-align: center;
	border-radius: 16px;
	background: rgba(4, 69, 175, 0.06);
	border: 1px solid rgba(4, 69, 175, 0.12);
}

.vc-my-account-login__register-text {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a2b4a;
}

.vc-my-account-login__register-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 48px;
	padding: 0.65rem 1.5rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #fff !important;
	background: linear-gradient(135deg, #0445af 0%, #04b8d8 100%);
	box-shadow: 0 6px 18px rgba(4, 69, 175, 0.22);
}

.vc-my-account-login__register-btn:hover,
.vc-my-account-login__register-btn:focus {
	color: #fff !important;
	transform: translateY(-1px);
}

/* Account loggato */
body.vc-my-account-logged-page .woocommerce-MyAccount-content > p:first-of-type {
	display: none;
}

body:has(.vc-my-account-logged) .content-wrap,
body:has(.vc-my-account-logged) .content-container,
body:has(.vc-my-account-logged) .entry.content-bg,
body:has(.vc-my-account-logged) .site-main {
	max-width: none;
	padding-inline: 0;
}

.vc-my-account-logged__wcfm {
	max-width: 42rem;
	margin: 0 auto 1.25rem;
	padding: 0 1rem;
}

.vc-my-account-logged__wcfm-btn {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border-radius: 18px;
	text-decoration: none !important;
	color: #fff !important;
	background: linear-gradient(135deg, #0445af 0%, #0369a1 45%, #04b8d8 100%);
	box-shadow: 0 10px 28px rgba(4, 69, 175, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.vc-my-account-logged__wcfm-btn:hover,
.vc-my-account-logged__wcfm-btn:focus {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(4, 69, 175, 0.35);
	color: #fff !important;
}

.vc-my-account-logged__wcfm-icon {
	font-size: 1.75rem;
	line-height: 1;
	flex-shrink: 0;
}

.vc-my-account-logged__wcfm-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1;
	text-align: left;
}

.vc-my-account-logged__wcfm-text strong {
	font-size: 1rem;
	letter-spacing: 0.03em;
}

.vc-my-account-logged__wcfm-text small {
	font-size: 0.85rem;
	opacity: 0.92;
	font-weight: 500;
}

.vc-my-account-logged__wcfm-arrow {
	font-size: 1.25rem;
	font-weight: 700;
}

.vc-my-account-logged__links {
	max-width: 42rem;
	margin: 0 auto 1.5rem;
	padding: 0 1rem;
}

.vc-my-account-logged__links-title {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #64748b;
	text-align: center;
}

.vc-my-account-logged__logout {
	max-width: 42rem;
	margin: 0 auto 2rem;
	padding: 0 1rem 1.5rem;
	text-align: center;
}

.vc-my-account-logged__logout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 48px;
	padding: 0.6rem 1.35rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none !important;
	color: #b91c1c !important;
	background: #fff;
	border: 1.5px solid rgba(185, 28, 28, 0.35);
	transition: background 0.15s ease, border-color 0.15s ease;
}

/* Privato mobile: nascondi sidebar WooCommerce (desktop usa sidebar — vedi privato-desktop-account.css) */
@media (max-width: 781px) {
	body.vc-my-account-privato .woocommerce-MyAccount-navigation,
	body.vc-my-account-privato .woocommerce-MyAccount-navigation ul {
		display: none !important;
	}

	body.vc-my-account-privato .woocommerce-MyAccount-content {
		width: 100% !important;
		max-width: none !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.vc-my-account-privato.woocommerce-account .entry-content > .woocommerce {
		display: block;
		max-width: none;
	}

	body.vc-my-account-privato .vc-my-account-privato__back {
		max-width: 42rem;
		margin: 0 auto 1rem;
		padding: 0 1rem;
	}

	body.vc-my-account-privato .vc-my-account-privato__back a {
		display: inline-flex;
		align-items: center;
		gap: 0.35rem;
		font-weight: 700;
		color: #0445af;
		text-decoration: none;
	}

	body.vc-my-account-privato .vc-my-account-privato__back a:hover,
	body.vc-my-account-privato .vc-my-account-privato__back a:focus {
		color: #04b8d8;
	}
}

body.vc-my-account-privato .vc-my-account-privato__back a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 700;
	color: #0445af;
	text-decoration: none;
}

body.vc-my-account-privato .vc-my-account-privato__back a:hover,
body.vc-my-account-privato .vc-my-account-privato__back a:focus {
	color: #04b8d8;
}

.vc-my-account-logged__logout-btn:hover,
.vc-my-account-logged__logout-btn:focus {
	background: #fef2f2;
	border-color: #b91c1c;
}

.vc-my-account-login__form-wrap .woocommerce-form-login .form-row,
.vc-my-account-login__form-wrap .woocommerce-form-login label {
	font-size: 16px;
}

.vc-my-account-login__form-wrap .woocommerce-form-login button {
	border-radius: 999px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

body.vc-my-account-lost-password-page .woocommerce-MyAccount-navigation,
body.vc-my-account-lost-password-page .entry-title {
	display: none !important;
}

body:has(.vc-my-account-reset) .content-wrap,
body:has(.vc-my-account-reset) .content-container,
body:has(.vc-my-account-reset) .entry.content-bg,
body:has(.vc-my-account-reset) .site-main {
	max-width: none;
	padding-inline: 0;
}

.vc-my-account-reset .vc-my-account-login__form-wrap form.lost_reset_password {
	border: 1px solid rgba(4, 69, 175, 0.28);
	border-radius: 22px;
	padding: 1.5rem 1.35rem 1.65rem;
	background: #fff;
}

.vc-my-account-reset__spam,
.vc-my-account-reset__back {
	max-width: 36rem;
	margin: 0 auto 1rem;
	padding: 0 1rem;
	text-align: center;
	font-size: 0.9375rem;
	color: #4a5568;
}

.vc-my-account-reset__back a {
	color: var(--vc-reg-hub-cyan, #04b8d8);
	font-weight: 600;
}

.vc-my-account-reset__back {
	margin-bottom: 2rem;
}
