/**
 * Area utente servizi — schede dashboard (da comics, palette blu).
 */

.vc-home-access {
	margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
	padding: 0 clamp(1rem, 3vw, 1.5rem);
	max-width: 1100px;
}

.vc-home-access__inner {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: 20px;
	background:
		radial-gradient(ellipse 90% 60% at 100% 0%, rgba(4, 184, 216, 0.12), transparent 55%),
		radial-gradient(ellipse 70% 50% at 0% 100%, rgba(4, 69, 175, 0.08), transparent 50%),
		linear-gradient(165deg, #ffffff 0%, #f4f8fc 100%);
	border: 1px solid rgba(4, 69, 175, 0.18);
	box-shadow: 0 8px 32px rgba(4, 69, 175, 0.08);
}

.vc-home-access__eyebrow {
	display: inline-flex;
	margin: 0 0 0.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(4, 69, 175, 0.1);
	color: #0445af;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.vc-home-access__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.03em;
}

.vc-home-access__lead {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	line-height: 1.55;
	color: #475569;
	max-width: 42rem;
}

.vc-home-access__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.vc-home-access__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 48px;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vc-home-access__btn--primary {
	color: #fff !important;
	background: linear-gradient(135deg, #0445af 0%, #04b8d8 100%);
	border: none;
	box-shadow: 0 6px 20px rgba(4, 69, 175, 0.28);
}

.vc-home-access__btn--primary:hover,
.vc-home-access__btn--primary:focus {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(4, 69, 175, 0.35);
	color: #fff !important;
}

.vc-home-access__btn--ghost {
	color: #0445af !important;
	background: #fff;
	border: 1.5px solid rgba(4, 69, 175, 0.35);
}

.vc-home-access__btn--ghost:hover,
.vc-home-access__btn--ghost:focus {
	border-color: #04b8d8;
	background: rgba(4, 184, 216, 0.08);
	color: #02367f !important;
}

.vc-home-access__hint {
	margin: 0;
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.45;
}

.vc-home-access__logout {
	margin: 1rem 0 0;
	text-align: center;
	font-size: 0.9rem;
}

.vc-home-access__logout a {
	color: #64748b;
	font-weight: 600;
}

/* Schede dashboard "LE TUE AREE" — stile senior: gradiente, anello e bagliore ciclamino */
.vc-user-space-cards {
	--vc-space-blue: #0445af;
	--vc-space-blue-2: #04b8d8;
	--vc-cyclamen: #d6006e;
	--vc-cyclamen-2: #ff4fa3;
	--vc-cyclamen-soft: rgba(214, 0, 110, 0.35);
	--vc-cyclamen-glow: rgba(214, 0, 110, 0.5);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.25rem), 1fr));
	gap: 0.9rem;
	max-width: 46rem;
	margin: 0.35rem 0 0;
	padding: 0;
	box-sizing: border-box;
}

@media (min-width: 600px) {
	.vc-user-space-cards {
		gap: 1.05rem;
		grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	}
}

.vc-user-space-cards__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	text-decoration: none !important;
	background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
	border: 1.5px solid rgba(4, 69, 175, 0.22);
	border-radius: 18px;
	padding: 1rem 0.6rem 1.05rem;
	min-height: 96px;
	box-shadow:
		0 1px 2px rgba(4, 69, 175, 0.06),
		0 10px 20px -14px rgba(4, 69, 175, 0.28);
	overflow: hidden;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	transition:
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.28s ease,
		border-color 0.28s ease;
	box-sizing: border-box;
}

/* anello luminoso ciclamino (visibile su hover/focus) */
.vc-user-space-cards__card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.6px;
	background: linear-gradient(135deg, var(--vc-cyclamen) 0%, var(--vc-cyclamen-2) 45%, var(--vc-space-blue-2) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.28s ease;
	z-index: 1;
	pointer-events: none;
}

/* sweep di luce che attraversa la card */
.vc-user-space-cards__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 70%;
	height: 100%;
	background: linear-gradient(115deg, transparent 0%, rgba(255, 79, 163, 0.16) 45%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 79, 163, 0.16) 55%, transparent 100%);
	transform: skewX(-18deg);
	transition: left 0.55s ease;
	z-index: 2;
	pointer-events: none;
}

.vc-user-space-cards__card:hover,
.vc-user-space-cards__card:focus-visible {
	transform: translateY(-4px) scale(1.015);
	border-color: transparent;
	box-shadow:
		0 12px 28px -10px var(--vc-cyclamen-soft),
		0 0 0 1px rgba(214, 0, 110, 0.1),
		0 0 26px var(--vc-cyclamen-glow);
	outline: none;
}

.vc-user-space-cards__card:hover::after,
.vc-user-space-cards__card:focus-visible::after {
	opacity: 1;
}

.vc-user-space-cards__card:hover::before,
.vc-user-space-cards__card:focus-visible::before {
	left: 130%;
}

.vc-user-space-cards__card:active {
	transform: translateY(-1px) scale(0.99);
	border-color: transparent;
	box-shadow:
		0 8px 20px -8px var(--vc-cyclamen-soft),
		0 0 0 1px rgba(214, 0, 110, 0.16),
		0 0 18px var(--vc-cyclamen-glow);
}

.vc-user-space-cards__card:active::after {
	opacity: 1;
}

/* Touch / coarse pointer: mostra anello ciclamino anche al tap */
@media (hover: none), (pointer: coarse) {
	.vc-user-space-cards__card:focus-visible,
	.vc-user-space-cards__card:active {
		border-color: transparent;
		box-shadow:
			0 10px 24px -10px var(--vc-cyclamen-soft),
			0 0 22px var(--vc-cyclamen-glow);
	}

	.vc-user-space-cards__card:focus-visible::after,
	.vc-user-space-cards__card:active::after {
		opacity: 1;
	}
}

/* badge glyph circolare */
.vc-user-space-cards__glyph {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.1rem;
	height: 3.1rem;
	margin: 0 auto 10px;
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--vc-space-blue);
	background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eaf1ff 70%);
	box-shadow:
		inset 0 0 0 1.5px rgba(4, 69, 175, 0.18),
		0 4px 10px -4px rgba(4, 69, 175, 0.35);
	transition:
		transform 0.25s ease,
		color 0.25s ease,
		box-shadow 0.25s ease,
		background 0.25s ease;
}

.vc-user-space-cards__card:hover .vc-user-space-cards__glyph,
.vc-user-space-cards__card:focus-visible .vc-user-space-cards__glyph {
	color: #ffffff;
	background: linear-gradient(135deg, var(--vc-cyclamen) 0%, var(--vc-cyclamen-2) 100%);
	box-shadow:
		inset 0 0 0 1.5px rgba(255, 255, 255, 0.45),
		0 6px 16px -4px var(--vc-cyclamen-glow);
	transform: scale(1.08) rotate(-3deg);
}

.vc-user-space-cards__label {
	position: relative;
	z-index: 3;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: var(--vc-space-blue);
	line-height: 1.25;
	max-width: 100%;
	word-break: break-word;
	transition: color 0.25s ease;
}

.vc-user-space-cards__card:hover .vc-user-space-cards__label,
.vc-user-space-cards__card:focus-visible .vc-user-space-cards__label {
	color: var(--vc-cyclamen);
}

@media (min-width: 600px) {
	.vc-user-space-cards__label {
		font-size: 12.5px;
	}
}

/* impulso luminoso ciclamino (classe aggiunta via JS all'hover) */
.vc-user-space-cards__card.vc-fx-pulse {
	animation: vcFxPulse 0.55s ease;
}

@keyframes vcFxPulse {
	0% {
		box-shadow:
			0 12px 28px -10px var(--vc-cyclamen-soft),
			0 0 0 0 var(--vc-cyclamen-glow);
	}
	100% {
		box-shadow:
			0 12px 28px -10px var(--vc-cyclamen-soft),
			0 0 0 16px rgba(214, 0, 110, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-user-space-cards__card,
	.vc-user-space-cards__card::before,
	.vc-user-space-cards__glyph {
		transition: none;
	}
	.vc-user-space-cards__card.vc-fx-pulse {
		animation: none;
	}
}

.woocommerce-account .vc-user-space-cards {
	margin: 0.35rem 0 1.85rem;
}
