/* WEH Area Utente */
:root {
	--weh-au-magenta: #B8146F;
	--weh-au-magenta-deep: #8E0F55;
	--weh-au-soft: #FBE9F3;
	--weh-au-ink: #242139;
	--weh-au-muted: #6b6478;
	--weh-au-line: #ece6ee;
	--weh-au-panel: #f8f6fa;
}

/* ── Modali (popup registrazione e login) ─────────────────── */
html.weh-au-lock { overflow: hidden; }
html.weh-au-lock .econobot-chat-floating,
body.rwsvg-modal-open .econobot-chat-floating { display: none !important; } /* Caterina usa lo z-index massimo: nascosta sopra popup e modale d'acquisto */
.weh-au-modal[hidden] { display: none !important; }
.weh-au-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.weh-au-overlay { position: absolute; inset: 0; background: rgba(36, 33, 57, .55); }
.weh-au-box {
	position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; color: var(--weh-au-ink); border-radius: 18px; padding: 28px 28px 22px;
	box-shadow: 0 24px 60px rgba(36, 33, 57, .25); font-size: 15px; line-height: 1.5;
}
.weh-au-box-small { max-width: 420px; }
.weh-au-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--weh-au-muted); cursor: pointer; }
.weh-au-kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--weh-au-magenta); font-weight: 700; }
.weh-au-box h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; color: var(--weh-au-ink); }
.weh-au-lead { margin: 0 0 18px; color: var(--weh-au-muted); }
.weh-au-form { display: grid; gap: 12px; }
.weh-au-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--weh-au-ink); }
.weh-au-form input[type=text], .weh-au-form input[type=email], .weh-au-form input[type=password], .weh-au-form select {
	width: 100%; box-sizing: border-box; border: 1px solid #d9d2de; border-radius: 10px; padding: 10px 12px;
	font-size: 15px; font-weight: 400; background: #fff; color: var(--weh-au-ink);
}
.weh-au-form select { display: block !important; height: auto !important; min-height: 44px; position: static !important; clip: auto !important; -webkit-appearance: auto; appearance: auto; }
.weh-au-form input:focus, .weh-au-form select:focus { outline: 2px solid var(--weh-au-magenta); outline-offset: 1px; border-color: var(--weh-au-magenta); }
.weh-au-form .is-invalid { border-color: #c62828 !important; }
.weh-au-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.weh-au-check { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 400 !important; }
.weh-au-check input { margin-top: 3px; }
.weh-au-check.is-invalid, .weh-au-check input.is-invalid { color: #c62828; }
.weh-au-msg { min-height: 1.2em; margin: 0; font-size: 13px; color: #c62828; }
.weh-au-msg.is-ok { color: var(--weh-au-muted); }
.weh-au-btn {
	display: inline-block; text-align: center; border: 0; border-radius: 40px; padding: 12px 24px; cursor: pointer;
	background: var(--weh-au-magenta); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none !important;
}
.weh-au-btn:hover { background: var(--weh-au-magenta-deep); }
.weh-au-btn[disabled] { opacity: .6; cursor: wait; }
.weh-au-switch { margin: 14px 0 0; font-size: 13px; color: var(--weh-au-muted); text-align: center; }
.weh-au-switch a, .weh-au-form a { color: var(--weh-au-magenta); }

/* ── Pagina Pacchetti ─────────────────────────────────────── */
.weh-au-packages { max-width: 1100px; margin: 0 auto; color: var(--weh-au-ink); }
.weh-au-note { background: var(--weh-au-soft); border-radius: 12px; padding: 12px 16px; }
.weh-au-pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 32px; }
.weh-au-pack { border: 1px solid var(--weh-au-line); border-radius: 16px; padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.weh-au-pack.is-featured { border: 2px solid var(--weh-au-magenta); background: var(--weh-au-soft); }
.weh-au-pack h3 { margin: 0; font-size: 22px; }
.weh-au-pack-note { margin: 0; color: var(--weh-au-muted); font-size: 14px; }
.weh-au-price { margin: 6px 0 10px; font-size: 30px; font-weight: 800; color: var(--weh-au-magenta-deep); }
.weh-au-price del { font-size: 16px; font-weight: 400; color: var(--weh-au-muted); margin-left: 6px; }
.weh-au-pack .weh-au-btn { margin-top: auto; }
.weh-au-sec-title { font-size: 20px; margin: 0 0 12px; }
.weh-au-sec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.weh-au-sec-list li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--weh-au-line); }
.weh-au-sec-list a { color: var(--weh-au-ink); text-decoration: none; }
.weh-au-sec-list li.is-unlocked span { color: #2e7d32; font-size: 13px; font-weight: 700; }

/* ── Dashboard ────────────────────────────────────────────── */
.weh-au-dash { max-width: 860px; margin: 0 auto; color: var(--weh-au-ink); font-size: 15px; line-height: 1.5; }
.weh-au-dash-head { display: flex; align-items: center; gap: 16px; padding: 8px 0 20px; border-bottom: 1px solid var(--weh-au-line); margin-bottom: 20px; }
.weh-au-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--weh-au-magenta); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; }
.weh-au-dash-who { flex: 1; min-width: 0; }
.weh-au-dash-who h2 { margin: 0; font-size: 24px; }
.weh-au-dash-who p { margin: 2px 0 0; color: var(--weh-au-muted); font-size: 13px; overflow-wrap: anywhere; }
.weh-au-link { color: var(--weh-au-magenta); font-weight: 600; text-decoration: none; }
.weh-au-card { border: 1px solid var(--weh-au-line); border-radius: 16px; padding: 20px; margin-bottom: 16px; background: #fff; }
.weh-au-card h3 { margin: 0 0 12px; font-size: 18px; }
.weh-au-muted { color: var(--weh-au-muted); font-size: 13px; }
.weh-au-card a { color: var(--weh-au-magenta); }
.weh-au-empty { text-align: center; padding: 32px 20px; background: var(--weh-au-soft); border-color: transparent; }
.weh-au-empty h3 { font-size: 22px; }
.weh-au-empty-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.weh-au-action { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 12px; padding: 16px; text-decoration: none !important; color: var(--weh-au-ink) !important; border: 1px solid var(--weh-au-line); }
.weh-au-action strong { color: var(--weh-au-magenta-deep); }
.weh-au-action span { font-size: 13px; color: var(--weh-au-muted); }
.weh-au-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.weh-au-kpis div { background: var(--weh-au-panel); border-radius: 14px; padding: 14px 16px; }
.weh-au-kpis strong { display: block; font-size: 24px; color: var(--weh-au-magenta-deep); }
.weh-au-kpis span { font-size: 13px; color: var(--weh-au-muted); }
.weh-au-orders, .weh-au-modules, .weh-au-tests { list-style: none; margin: 0; padding: 0; }
.weh-au-orders li { padding: 10px 0; border-bottom: 1px solid var(--weh-au-line); }
.weh-au-order-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.weh-au-order-top span { color: var(--weh-au-muted); font-size: 13px; }
.weh-au-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.weh-au-pill { background: var(--weh-au-soft); color: var(--weh-au-magenta-deep); border-radius: 40px; padding: 2px 10px; font-size: 12px; }
.weh-au-modules li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--weh-au-line); }
.weh-au-mod-title { color: var(--weh-au-ink) !important; text-decoration: none; font-weight: 600; }
.weh-au-status { font-size: 12px; border-radius: 40px; padding: 2px 10px; background: var(--weh-au-panel); color: var(--weh-au-muted); }
.weh-au-modules li.is-unlocked .weh-au-status { background: #e8f5e9; color: #2e7d32; }
.weh-au-modules li.is-locked .weh-au-status { background: var(--weh-au-soft); color: var(--weh-au-magenta-deep); }
.weh-au-mini { font-size: 13px; font-weight: 700; text-decoration: none; }
.weh-au-tests li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--weh-au-line); }
.weh-au-tests li > div:first-child { display: flex; flex-direction: column; }
.weh-au-score { font-weight: 800; color: var(--weh-au-magenta-deep); }
.weh-au-tone { font-size: 13px; color: var(--weh-au-muted); }
.weh-au-tone-red { color: #c62828; }
.weh-au-tone-yellow { color: #b26a00; }
.weh-au-tone-green { color: #2e7d32; }
.weh-au-tone-purple { color: #6a1b9a; }
.weh-au-tone-blue { color: #1565c0; }
.weh-au-account p { margin: 0 0 6px; }

/* ── Voce Accedi / Profilo nel menu: pulsante in evidenza ─── */
.weh-au-menu-item > a.weh-au-pill {
	display: inline-flex !important; align-items: center; gap: 6px;
	background: var(--weh-au-magenta); color: #fff !important; border-radius: 40px;
	font-weight: 700; line-height: 1.2; box-shadow: 0 4px 12px rgba(184, 20, 111, .25);
}
.weh-au-menu-item > a.weh-au-pill:hover, .weh-au-menu-item > a.weh-au-pill:focus { background: var(--weh-au-magenta-deep); color: #fff !important; }
.weh-au-menu-item > a.weh-au-pill.is-profile { background: transparent; color: var(--weh-au-magenta) !important; box-shadow: inset 0 0 0 2px var(--weh-au-magenta); }
.weh-au-menu-item > a.weh-au-pill.is-profile:hover { background: var(--weh-au-soft); }
.weh-au-menu-item > a.weh-au-pill::before, .weh-au-menu-item > a.weh-au-pill::after { display: none !important; } /* niente sottolineatura di Elementor */
.weh-au-ico { width: 14px; height: 14px; flex: none; }

/* Header desktop: voci un po' più strette, altrimenti il pulsante va a capo (misurato: 843 px su 872) */
@media (min-width: 1025px) {
	.elementor-location-header .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item { padding-left: 6px !important; padding-right: 6px !important; }
	.elementor-location-header .elementor-nav-menu--main .weh-au-menu-item { margin-left: 8px; display: flex; align-items: center; }
	.elementor-location-header .elementor-nav-menu--main .weh-au-menu-item > a.weh-au-pill { padding: 8px 16px !important; }
}

/* Menu mobile: pulsante largo in fondo all'elenco */
.elementor-nav-menu--dropdown .weh-au-menu-item { padding: 12px 20px; }
.elementor-nav-menu--dropdown .weh-au-menu-item > a.weh-au-pill { width: 100%; justify-content: center; padding: 12px 20px !important; }

@media (max-width: 900px) {
	.weh-au-pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.weh-au-two, .weh-au-pack-grid, .weh-au-sec-list, .weh-au-empty-actions, .weh-au-kpis { grid-template-columns: 1fr; }
	.weh-au-box { padding: 24px 18px 18px; }
	.weh-au-box h2 { font-size: 22px; }
	.weh-au-tests li { grid-template-columns: 1fr auto; }
	.weh-au-tests li > div:nth-child(3) { display: none; }
	.weh-au-modules li { grid-template-columns: 1fr auto; }
	.weh-au-modules .weh-au-mini { grid-column: 2; }
}

/* ── 1.0.9 · Pillola dell'utente collegato con mini menu ─────────────────────────────
   Pillola: iniziali + «Ciao Nome» + freccia. Un clic apre la card (sul computer, sotto la pillola);
   nel pannello del telefono (menu a tendina di Elementor) la card è già aperta come scheda. */
.weh-au-user { position: relative; }
.weh-au-user-btn {
	display: inline-flex !important; align-items: center; gap: 8px; margin: 0; padding: 4px 12px 4px 4px !important;
	font: inherit; font-size: 14px !important; font-weight: 700 !important; line-height: 1.2; color: var(--weh-au-magenta) !important;
	background: #fff !important; border: 0 !important; border-radius: 999px !important; box-shadow: inset 0 0 0 2px var(--weh-au-magenta) !important;
	cursor: pointer; transition: background-color .2s;
}
.weh-au-user-btn:hover, .weh-au-user.is-open .weh-au-user-btn { background: var(--weh-au-soft) !important; }
.weh-au-user-btn:focus-visible { outline: 3px solid rgba(184, 20, 111, .35); outline-offset: 2px; }
.weh-au-user-btn::before, .weh-au-user-btn::after { display: none !important; }
.weh-au-ini {
	display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; font-size: 12px; font-weight: 800; letter-spacing: .02em;
	color: #2A4840; background: #DCE35B; border-radius: 50%;
}
.weh-au-hi { max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.weh-au-chev { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.weh-au-user.is-open .weh-au-chev { transform: rotate(180deg); }

.weh-au-umenu {
	position: absolute; top: calc(100% + 12px); right: 0; z-index: 1001; display: none; width: 270px; padding: 10px;
	background: linear-gradient(90deg, #B8146F 0%, #FF69B4 55%, #DCE35B 100%) top / 100% 4px no-repeat, #fff;
	border: 1px solid #F1E3EA; border-radius: 18px;
	box-shadow: 0 30px 60px -24px rgba(42, 72, 64, .38), 0 10px 22px -12px rgba(184, 20, 111, .25);
}
.weh-au-umenu::before { content: ""; position: absolute; top: -14px; right: 0; left: 0; height: 14px; }
.weh-au-user.is-open .weh-au-umenu { display: block; animation: wehAuDrop .18s ease-out; }
@keyframes wehAuDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.weh-au-um-head { display: flex; align-items: center; gap: 10px; margin: 4px 4px 8px; padding: 6px 4px 12px; border-bottom: 1px dashed #F1E3EA; }
.weh-au-um-head .weh-au-ini { width: 40px; height: 40px; font-size: 14px; }
.weh-au-um-head strong { display: block; font-family: "IBM Plex Serif", serif; font-size: 17px; line-height: 1.2; color: #2A4840; }
.weh-au-um-head em { display: block; margin-top: 2px; font-size: 12.5px; font-style: normal; font-weight: 600; color: #B8146F; }
.weh-au-umenu a {
	display: flex !important; align-items: center; gap: 10px; padding: 9px 10px !important; font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.25;
	color: #2A4840 !important; text-decoration: none !important; background: transparent !important; border-radius: 12px; transition: background-color .2s, color .2s;
}
.weh-au-umenu a::before, .weh-au-umenu a::after { display: none !important; }
.weh-au-umenu a svg { width: 17px; height: 17px; flex: none; color: #B8146F; }
.weh-au-umenu a:hover, .weh-au-umenu a:focus-visible { color: #B8146F !important; background: #FDEAF3 !important; outline: none; }
.weh-au-umenu a.is-out { margin-top: 6px; border-top: 1px dashed #F1E3EA; border-radius: 0 0 12px 12px; color: #6b7a75 !important; }

@media (min-width: 1025px) {
	.elementor-location-header .elementor-nav-menu--main .weh-au-user { margin-left: 8px; display: flex; align-items: center; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
	.elementor-location-header .elementor-nav-menu--main .weh-au-hi { display: none; }
	.elementor-location-header .elementor-nav-menu--main .weh-au-user-btn { padding-right: 8px !important; }
}

/* Pannello del telefono e menu a tendina: niente pillola, la scheda è già aperta */
.elementor-nav-menu--dropdown .weh-au-user { padding: 10px 10px 4px !important; }
.elementor-nav-menu--dropdown .weh-au-user-btn { display: none !important; }
.elementor-nav-menu--dropdown .weh-au-umenu { position: static; display: block; width: auto; box-shadow: 0 16px 30px -24px rgba(42, 72, 64, .4); animation: none; }
.elementor-nav-menu--dropdown .weh-au-umenu::before { display: none; }
.elementor-nav-menu--dropdown .weh-au-umenu a { font-size: 15px !important; }

/* Avviso «Bentornata» dopo l'accesso */
.weh-au-toast {
	position: fixed; top: 96px; left: 50%; z-index: 100001; display: flex; flex-direction: column; gap: 2px; max-width: min(92vw, 380px);
	padding: 12px 18px 12px 52px; color: #fff; background: #2A4840; border-radius: 16px; box-shadow: 0 20px 40px -18px rgba(42, 72, 64, .6);
	opacity: 0; transform: translate(-50%, -10px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.weh-au-toast::before {
	content: "✓"; position: absolute; top: 50%; left: 14px; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px;
	font-size: 14px; font-weight: 800; color: #2A4840; background: #DCE35B; border-radius: 50%;
}
.weh-au-toast strong { font-size: 15.5px; }
.weh-au-toast span { font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.weh-au-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.weh-au-user-btn, .weh-au-umenu a { text-transform: none !important; letter-spacing: normal !important; }

/* ── 1.0.10 · Pillola compatta e più creativa, sulla stessa riga del menu ──────────────
   Con «Ciao Nome» la pillola (155 px) non ci stava (756 + 155 > 872 px) e andava a capo.
   Ora è un avatar: anello sfumato magenta → rosa → lime, iniziali, puntino verde «sei dentro»
   e una piccola freccia magenta. Il saluto resta nella card che si apre. */
@media (min-width: 1025px) {
	.elementor-location-header .elementor-nav-menu--main .weh-au-user { margin-left: 10px; }
	.elementor-location-header .elementor-nav-menu--main .weh-au-user-btn {
		position: relative; gap: 0; width: 46px; height: 46px; padding: 0 !important; justify-content: center;
		background: conic-gradient(from 200deg, #B8146F, #FF69B4, #DCE35B, #B8146F) !important; box-shadow: 0 8px 18px -8px rgba(184, 20, 111, .55) !important;
		transition: transform .25s, box-shadow .25s;
	}
	.elementor-location-header .elementor-nav-menu--main .weh-au-user-btn:hover,
	.elementor-location-header .elementor-nav-menu--main .weh-au-user.is-open .weh-au-user-btn { background: conic-gradient(from 20deg, #B8146F, #FF69B4, #DCE35B, #B8146F) !important; box-shadow: 0 10px 22px -8px rgba(184, 20, 111, .7) !important; }
	.elementor-location-header .elementor-nav-menu--main .weh-au-user-btn .weh-au-ini {
		width: 38px; height: 38px; font-size: 13px; color: #B8146F; background: #fff; box-shadow: inset 0 0 0 2px #fff;
	}
	.elementor-location-header .elementor-nav-menu--main .weh-au-user-btn .weh-au-hi { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* resta leggibile per i lettori di schermo */
	/* Puntino «online» in alto a destra */
	.elementor-location-header .elementor-nav-menu--main .weh-au-user-btn::before {
		content: "" !important; display: block !important; position: absolute !important; top: 1px !important; right: 1px !important; bottom: auto !important; left: auto !important; width: 11px !important; height: 11px !important;
		background: #2BB673 !important; border: 2px solid #fff; border-radius: 50%; opacity: 1 !important; transform: none !important;
	}
	/* Freccia in un dischetto magenta in basso a destra */
	.elementor-location-header .elementor-nav-menu--main .weh-au-user-btn .weh-au-chev {
		position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; padding: 1px; color: #fff; background: #B8146F; border: 2px solid #fff; border-radius: 50%;
	}
	.elementor-location-header .elementor-nav-menu--main .weh-au-umenu { top: calc(100% + 14px); }
}
