/* Versione 2026-11-27b: cambio il contenuto per cambiare il nome del file pubblicato e superare la cache dei browser */
/* =========================================================
   LifeStyle – stili globali
   ========================================================= */
:root {
    --ls-green: #2f6a30;
    --ls-green-dark: #255626;
    --ls-green-soft: #e1f2d9;
    --ls-text: #1f2328;
    --ls-muted: #7b8088;
    --ls-bg: #f3f4f5;
    --ls-sidebar: #f6f7f7;
    --ls-card: #ffffff;
    --ls-border: #eceef0;
    --ls-disabled: #e3e3e3;
    --ls-radius: 4px;
}

html, body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--ls-text);
    background: var(--ls-bg);
    font-size: 14px;
}

body { border-top: 4px solid #2b2f36; }
a { color: inherit; text-decoration: none; }
h1:focus { outline: none; }
.muted { color: var(--ls-muted); }
.ico { flex-shrink: 0; }

/* ---------- Shell ---------- */
.app-shell { display: flex; min-height: calc(100vh - 4px); }

.sidebar {
    width: 197px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 4px);
    color: #e9f3e5;
    /* stesso verde del pannello della pagina di accesso */
    background:
        radial-gradient(circle at 100% 0%, rgba(176, 222, 150, .18), transparent 45%),
        linear-gradient(180deg, #2f6a30 0%, #1f4d21 65%, #173a19 100%);
}

.sidebar-inner { display: flex; flex-direction: column; height: 100%; }

.brand {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 22px 0 20px; height: 108px; align-items: flex-start;
}
.brand-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 26px; letter-spacing: -1px; color: #fff; }
.brand-logo:hover { color: #fff; }
.brand-chevron { color: rgba(233, 243, 229, .6); margin-top: 10px; }

.side-nav { display: flex; flex-direction: column; margin-top: 30px; }

.side-link {
    display: flex; align-items: center; gap: 12px;
    height: 48px; padding: 0 14px 0 18px; text-overflow: ellipsis;
    color: rgba(233, 243, 229, .85); font-weight: 500; font-size: 14px;
    border-right: 4px solid transparent;
    white-space: nowrap; overflow: hidden;
    transition: background .15s, color .15s;
}
.side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-link.active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; border-right-color: #b6e39f; }

.side-icon {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid rgba(233, 243, 229, .45); color: rgba(233, 243, 229, .85);
    display: inline-flex; align-items: center; justify-content: center;
}
.side-link:hover .side-icon { border-color: rgba(255, 255, 255, .7); color: #fff; }
.side-link.active .side-icon { background: #fff; color: #2f6a30; border-color: #fff; }

.side-help { margin-top: auto; padding: 0 0 18px; text-align: center; color: rgba(233, 243, 229, .75); font-size: 13px; }
.side-help p { margin-bottom: 10px; }
.side-help-icons { display: flex; justify-content: center; gap: 12px; }
.side-help-icons a, .side-help-icons button {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid rgba(233, 243, 229, .6); background: transparent; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.side-help-icons a:hover, .side-help-icons button:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Topbar ---------- */
.topbar { display: flex; justify-content: flex-end; gap: 12px; padding: 30px 22px 0 28px; }

.topbar-search {
    display: flex; align-items: center; gap: 8px;
    width: 232px; height: 36px; padding: 0 12px;
    background: #fff; border: 1px solid #e3e5e8; border-radius: 2px; color: #555;
    margin: 0;
}
.topbar-search input { border: 0; outline: 0; width: 100%; font-size: 14px; background: transparent; }
.topbar-search input::placeholder { color: #9aa0a6; }

.topbar-lang {
    position: relative; display: flex; align-items: center;
    width: 146px; height: 36px; background: #fff; border: 1px solid #e3e5e8; border-radius: 2px;
}
.topbar-lang select {
    appearance: none; border: 0; outline: 0; background: transparent;
    width: 100%; height: 100%; padding: 0 30px 0 44px; font-size: 14px; color: #222; cursor: pointer;
}
.flag-it {
    position: absolute; left: 12px; width: 22px; height: 15px; pointer-events: none;
    background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%);
}
.lang-chevron { position: absolute; right: 10px; pointer-events: none; color: #333; }

/* ---------- Contenuto ---------- */
.content { padding: 4px 22px 0 28px; flex: 1; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.page-head h1 { font-size: 42px; font-weight: 600; letter-spacing: -1px; margin: 12px 0 6px; }
.page-subtitle { color: #444; font-size: 15px; margin: 0; }

.user-box { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.user-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.user-name { color: #333; font-size: 14px; }
.user-actions { display: flex; align-items: center; gap: 8px; }

.pill-scan {
    background: var(--ls-green-soft); color: var(--ls-green);
    font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 4px;
}

.btn-ls {
    display: inline-flex; align-items: center; justify-content: center;
    height: 28px; padding: 0 22px; border-radius: 3px;
    font-size: 13px; font-weight: 600; color: #fff; border: 0;
}
.btn-ls-dark { background: #1e2329; }
.btn-ls-dark:hover { background: #000; color: #fff; }
.btn-ls-green { background: var(--ls-green); }
a.btn-ls-green:hover { background: var(--ls-green-dark); color: #fff; }
.btn-ls-lg { height: 50px; padding: 0 20px; font-size: 13px; }

.avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: #a9c3cd; color: #fff; font-weight: 600; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 4px #e6eef1;
}
.badge-leaf {
    width: 50px; height: 50px; border-radius: 50%;
    border: 2.5px solid var(--ls-green); color: var(--ls-green);
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Griglia dashboard ---------- */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.93fr) minmax(0, 1fr);
    grid-template-areas:
        "scan  notif"
        "fasi  notif"
        "stats cal"
        "web   cal";
    gap: 14px 14px;
}
.area-scan { grid-area: scan; }
.area-fasi { grid-area: fasi; }
.area-notif { grid-area: notif; }
.area-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.area-web { grid-area: web; }
.area-cal { grid-area: cal; }

.card {
    background: var(--ls-card);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius);
    padding: 14px 14px 14px;
    display: flex; flex-direction: column;
    min-height: 264px;
}
.card-muted { background: var(--ls-disabled); border-color: #dcdcdc; }
.card h2 { font-size: 14px; font-weight: 600; margin: 0; }
.card p { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; min-height: 18px; }

.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.card-foot-end { justify-content: flex-end; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ls-green); font-weight: 600; font-size: 14px; }
.card-link:hover { color: var(--ls-green-dark); text-decoration: underline; }
.card-link-muted { color: #a3a3a3; }

.icon-btn { border: 0; background: transparent; padding: 2px; color: #333; cursor: pointer; }

/* Scan */
.scan-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; padding-top: 28px; }
.scan-info p:first-child { margin-bottom: 44px; }
.gauge { text-align: center; width: 296px; }
.gauge-value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.gauge-level { font-size: 14px; font-weight: 500; margin: 6px 0 14px; min-height: 18px; }
.gauge-bar { position: relative; display: flex; gap: 3px; height: 9px; }
.gauge-bar span { flex: 1; border-radius: 2px; }
.gauge-marker {
    position: absolute; top: -9px; width: 5px; height: 28px; margin-left: -2px;
    background: #c9cbcf; border-radius: 3px; box-shadow: 0 0 0 1px #fff;
}
.gauge-caption { margin-top: 22px; color: #444; }

/* Fasi */
.fasi-head { display: grid; grid-template-columns: 1fr 1fr; }
.fasi-head p { margin-top: 12px; }
.fasi-time { text-align: left; padding-left: 3%; }
.fasi-time p:first-child { margin-top: 0; }
.fasi-progress { display: flex; align-items: center; gap: 30px; margin-top: 26px; padding-left: 0; }
.fasi-pct { width: 220px; text-align: center; font-size: 24px; font-weight: 600; }
.progress-track { position: relative; flex: 1; height: 12px; background: #e9ebee; border-radius: 6px; }
.progress-fill { height: 100%; background: var(--ls-green); border-radius: 6px; }
.progress-knob {
    position: absolute; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
    background: #bdbfc3; border-radius: 50%; box-shadow: 0 0 0 2px #fff;
}
.fasi-pos { margin-top: 26px !important; }

/* Notifiche */
.notif-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.notif {
    background: #f1f2f3; border-radius: 3px; padding: 16px 14px;
    display: flex; flex-direction: column; gap: 4px; min-height: 74px; justify-content: center;
}
.notif strong { font-size: 14px; font-weight: 600; }
a.notif:hover { background: #e9ecee; }
a.notif-off:hover { background: var(--ls-disabled); }
.notif span { color: var(--ls-muted); }
.notif b { color: var(--ls-green); }
.notif-off { background: var(--ls-disabled); }
.notif-off strong, .notif-off span, .notif-off b { color: #aaa; font-weight: 500; }
.notif-off b { font-weight: 700; }

/* Contatori */
.stat-card { align-items: center; padding-top: 20px; }
.stat-card h3 { font-size: 14px; font-weight: 600; margin: 0; }
.stat-main { display: flex; align-items: center; gap: 16px; margin: auto 0 0; padding-top: 30px; color: #5a6068; }
.stat-num { font-size: 26px; font-weight: 600; color: var(--ls-text); }
.stat-delta { margin: 44px 0 auto !important; color: var(--ls-muted); }
.stat-delta b { color: var(--ls-text); }

/* Pagine web */
.web-body { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-top: 60px; padding-right: 15%; }
.web-desc { margin-top: 60px !important; }
.web-icon { color: #555; }

/* Calendario */
.cal-select {
    width: 168px; height: 32px; border: 1px solid #e3e5e8; border-radius: 2px;
    padding: 0 10px; font-size: 13px; background: #fff;
}
.cal-date { font-weight: 600; margin-top: 18px !important; }
.cal-events { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cal-event {
    background: var(--ls-green); color: #fff; border-radius: 3px;
    padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px;
}
.cal-event strong { font-size: 14px; }

/* Footer */
.app-footer { text-align: center; color: #555; font-size: 12px; padding: 22px 0 60px; }
.app-footer span { margin: 0 3px; }
.app-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .dash-grid { grid-template-columns: 1fr; grid-template-areas: "scan" "fasi" "notif" "stats" "web" "cal"; }
    .area-notif, .area-cal { min-height: 0; }
}
@media (max-width: 800px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .brand { height: auto; padding: 16px 20px; }
    .side-nav { flex-direction: row; overflow-x: auto; margin-top: 0; }
    .side-link { border-right: 0; border-bottom: 3px solid transparent; }
    .side-link.active { border-bottom-color: #b6e39f; }
    .side-help { display: none; }
    .page-head { flex-direction: column; gap: 16px; }
    .user-box { align-self: stretch; justify-content: flex-end; }
    .user-actions { flex-wrap: wrap; justify-content: flex-end; }
    .area-stats { grid-template-columns: 1fr; }
    .scan-body { grid-template-columns: 1fr; }
    .gauge { width: 100%; }
    .fasi-pct { width: auto; }
    .topbar { padding: 16px; }
    .content { padding: 4px 16px 0; }
}

/* ---------- Blazor ---------- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* =========================================================
   Login
   ========================================================= */
.login-page { max-width: 1290px; margin: 0 auto; padding: 16px 40px 60px; }
.login-top { display: flex; justify-content: space-between; align-items: flex-start; margin-left: 43px; }
.login-logo { font-weight: 800; font-size: 44px; letter-spacing: -2px; color: #111; line-height: 1; margin-top: 2px; }
.login-top .topbar-lang { margin-top: 2px; }

.login-grid { display: grid; grid-template-columns: 512px minmax(0, 1fr); gap: 73px; margin-left: 43px; }

.login-left h1 { font-size: 29px; font-weight: 700; line-height: 1.17; letter-spacing: -.3px; color: #25292e; margin: 48px 0 30px; }
.login-lead { font-size: 18px; line-height: 1.6; color: #2b2f34; margin-bottom: 28px; }

.login-card { background: #fff; border: 1px solid #e3e5e8; border-radius: 3px; padding: 27px 42px 26px; }

.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.login-tab { margin: 0; cursor: pointer; }
.login-tab input { position: absolute; opacity: 0; pointer-events: none; }
.login-tab span {
    display: block; text-align: center; font-size: 14px; font-weight: 500; color: #222;
    border: 1px solid #e3e5e8; border-radius: 3px; padding: 1px 0; background: #fff;
}
.login-tab input:checked + span { background: var(--ls-green-soft); border-color: var(--ls-green); }
.login-tab input:focus-visible + span { outline: 2px solid var(--ls-green); outline-offset: 2px; }

.login-label { display: block; font-size: 14px; color: #222; margin: 0 0 12px; }
.login-input {
    width: 100%; height: 49px; border: 1px solid #e3e5e8; border-radius: 3px;
    padding: 0 14px; font-size: 14px; color: #222; outline: none; margin-bottom: 14px; background: #fff;
}
.login-input::placeholder { color: #9aa0a6; }
.login-input:focus { border-color: var(--ls-green); box-shadow: 0 0 0 3px rgba(47,106,48,.12); }
.login-input.invalid { outline: none; border-color: #d33; }

.login-pwd { position: relative; }
.login-pwd .login-input { padding-right: 52px; }
.login-pwd-toggle {
    position: absolute; right: 12px; top: 12px; border: 0; background: transparent; padding: 0; color: #444; cursor: pointer;
}
.login-pwd-toggle.open { color: var(--ls-green); }

.login-field-error { color: #c0392b; font-size: 12px; margin: -8px 0 10px; }
.login-recover { text-align: right; font-size: 14px; margin: 6px 0 18px; }
.login-recover a, .login-links a { color: var(--ls-green); font-weight: 500; }
.login-recover a:hover, .login-links a:hover, .login-register a:hover { text-decoration: underline; }

.login-error {
    background: #fdecea; color: #a12a1e; border: 1px solid #f5c2bc; border-radius: 3px;
    padding: 8px 12px; font-size: 13px; margin: 0 0 14px;
}

.login-submit {
    display: block; width: 336px; max-width: 100%; height: 42px; margin: 0 auto;
    background: var(--ls-green); color: #fff; border: 0; border-radius: 3px;
    font-size: 16px; font-weight: 500; cursor: pointer;
}
.login-submit:hover { background: var(--ls-green-dark); }

.login-proof { text-align: center; color: #6b7076; font-size: 13.5px; line-height: 1.55; margin: 20px -20px 0; }
.login-register { display: flex; justify-content: center; gap: 42px; font-size: 16px; margin: 34px 0 30px; }
.login-register span { color: #2b2f34; }
.login-register a { color: var(--ls-green); font-weight: 600; }
.login-links { display: flex; justify-content: center; gap: 28px; font-size: 14px; margin-bottom: 30px; }
.login-links:last-child { margin-bottom: 0; }

.login-right { padding-top: 0; margin-top: -55px; }
.login-video { display: block; width: 648px; max-width: 100%; aspect-ratio: 648 / 365; background: #000; object-fit: contain; }
.login-video-caption { text-align: center; width: 648px; max-width: 100%; color: #2b2f34; font-size: 14px; line-height: 1.4; margin: 16px 0 44px; }

.login-benefits { list-style: none; padding: 0 0 0 14px; margin: 0; }
.login-benefits li { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.login-benefits p { margin: 0; font-size: 16.5px; line-height: 1.48; color: #2b2f34; }
.login-benefits .check { width: 29px; height: 29px; flex-shrink: 0; color: #2f6a30; }
.login-benefits .check svg { width: 100%; height: 100%; display: block; }

.login-claim { text-align: center; width: 648px; max-width: 100%; font-size: 16.5px; font-weight: 700; color: #1f2328; line-height: 1.45; margin-top: 46px; }

@media (max-width: 1150px) {
    .login-grid { grid-template-columns: 1fr; gap: 40px; margin-left: 0; }
    .login-top { margin-left: 0; }
    .login-right { margin-top: 0; }
    .login-left { max-width: 560px; }
}
@media (max-width: 600px) {
    .login-page { padding: 16px 16px 40px; }
    .login-logo { font-size: 32px; }
    .login-left h1 { font-size: 24px; margin-top: 30px; }
    .login-lead { font-size: 16px; }
    .login-card { padding: 22px 18px; }
    .login-register { gap: 12px; flex-wrap: wrap; }
    .login-benefits { padding-left: 0; }
}

/* =========================================================
   Controlli comuni
   ========================================================= */
.ls-input, .ls-select {
    height: 36px; border: 1px solid #e3e5e8; border-radius: 3px; background: #fff;
    padding: 0 12px; font-size: 13px; color: #222; outline: none; width: 100%;
}
.ls-select { appearance: none; padding-right: 30px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 10px center/14px; }
.ls-select:disabled { background-color: #f3f4f5; color: #999; }
.ls-input:focus, .ls-select:focus { border-color: var(--ls-green); box-shadow: 0 0 0 3px rgba(47,106,48,.12); }
.ls-textarea { height: 90px; padding: 8px 12px; resize: vertical; }
.ls-check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; font-size: 13.5px; cursor: pointer; }
.ls-check input { width: 18px; height: 18px; accent-color: var(--ls-green); margin-top: 1px; flex-shrink: 0; }

.btn-out {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 38px; padding: 0 20px; background: #fff; border: 1px solid #e3e5e8; border-radius: 3px;
    font-size: 13.5px; font-weight: 600; color: #1f2328; cursor: pointer;
}
.btn-out:hover { border-color: #c9cdd2; }
.btn-out:disabled { opacity: .5; cursor: default; }
.btn-out-danger { color: #c0392b; background: #fdf0ef; border-color: #f6d3cf; }
.btn-ls-lg2 { height: 38px; padding: 0 22px; font-size: 13.5px; cursor: pointer; }
.btn-ls:disabled { opacity: .6; }
.btn-link-green { border: 0; background: none; color: var(--ls-green); font-weight: 600; font-size: 13.5px; padding: 0 6px; cursor: pointer; }
.field-error, .validation-message { color: #c0392b; font-size: 12px; margin-top: 4px; }
.small { font-size: 12px; }
.section-title { font-size: 19px; font-weight: 700; margin: 26px 0 16px; }

/* =========================================================
   Nuova valutazione
   ========================================================= */
.scan-intro { background: #e3f5dc; border: 1px solid #cde9c2; border-radius: 3px; padding: 14px 18px; }
.scan-intro h2 { color: var(--ls-green); font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.scan-intro p { font-size: 13.5px; line-height: 1.5; margin: 0 0 8px; color: #1f2328; font-weight: 500; }
.scan-intro p:last-child { margin: 0; }

.val-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; }
.val-col, .val-col-wide { display: flex; flex-direction: column; gap: 14px; }
.val-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.val-card { min-height: 0; padding: 18px 16px; }
.val-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.val-card-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.val-ico { color: var(--ls-green); }
.val-q { font-size: 13.5px; margin-bottom: 8px !important; }
.val-row { display: grid; grid-template-columns: 1fr 168px; align-items: center; gap: 12px; margin-top: 14px; }
.val-row label { font-size: 13.5px; margin: 0; }

.pasti { display: flex; justify-content: space-between; margin-bottom: 16px; }
.pasto { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #e3e5e8; background: #fff; font-size: 14px; cursor: pointer; }
.pasto:hover { border-color: var(--ls-green); }
.pasto.on { background: var(--ls-green); border-color: var(--ls-green); color: #fff; font-weight: 600; }

.editor-box { border: 1px solid #e3e5e8; border-radius: 3px; }
.editor-toolbar { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid #e3e5e8; }
.editor-toolbar button { min-width: 28px; height: 28px; border: 1px solid #e3e5e8; background: #fff; border-radius: 2px; font-size: 12px; font-weight: 600; padding: 0 8px; cursor: pointer; }
.editor-toolbar button:hover { background: #f1f2f3; }
.ls-editor { min-height: 220px; max-height: 420px; overflow-y: auto; padding: 12px; font-size: 13.5px; outline: none; }
.ls-editor:empty::before { content: attr(data-placeholder); color: #a0a5ab; }
.editor-count { text-align: right; font-size: 11.5px; color: #6b7076; margin-top: 4px; }

.problemi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.problema { height: 42px; border: 1px solid #e3e5e8; border-radius: 22px; background: #fff; font-size: 12.5px; cursor: pointer; padding: 0 8px; }
.problema:hover { border-color: var(--ls-green); }
.problema.on { background: var(--ls-green); border-color: var(--ls-green); color: #fff; font-weight: 600; }

.antro { display: grid; grid-template-columns: 1fr 1fr 230px; gap: 0 30px; }
.antro-fields { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 10px 12px; align-content: start; }
.antro-fields label { font-size: 12.5px; margin: 0; }
.antro-misure { border-left: 1px solid #e3e5e8; padding-left: 16px; }
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit span { font-size: 12px; width: 22px; }
.info-tip { color: var(--ls-green); cursor: help; display: inline-flex; }
.antro-figure svg { width: 100%; height: auto; max-height: 360px; }

.upload-box {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
    border: 1px solid #e3e5e8; border-radius: 3px; padding: 14px; margin: 20px 0 10px; cursor: pointer; text-align: center;
}
.upload-box:hover { border-color: var(--ls-green); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-title { display: inline-flex; align-items: center; gap: 8px; color: #8a8f96; font-weight: 700; font-size: 12.5px; }
.upload-sub { font-size: 11.5px; color: #6b7076; }

.val-actions { display: flex; align-items: center; gap: 10px; }
.val-note { flex: 1; display: flex; align-items: center; gap: 8px; background: #e3f5dc; color: #1f2328; font-size: 11.5px; border-radius: 3px; padding: 10px 12px; margin: 0 !important; }
.val-note .ico { color: var(--ls-green); }
.val-errors { background: #fdecea; border: 1px solid #f5c2bc; color: #a12a1e; border-radius: 3px; padding: 8px 12px 8px 28px; font-size: 13px; margin: 0 0 10px; }
.val-ok { background: #e3f5dc; color: var(--ls-green); border-radius: 3px; padding: 8px 12px; font-size: 13px; margin: 0 0 10px !important; }

/* =========================================================
   Calendario mensile
   ========================================================= */
.calm-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-right: 200px; }
.calm-nav { display: flex; align-items: center; gap: 10px; }
.calm-nav h2 { font-size: 19px; font-weight: 700; margin: 0; min-width: 150px; text-align: center; }
.calm-arrow { width: 30px; height: 30px; border: 1px solid #e3e5e8; background: #fff; border-radius: 3px; color: var(--ls-green); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

.calm { position: relative; max-height: calc(100vh - 260px); min-height: 400px; overflow-y: auto; background: #fff; border: 1px solid var(--ls-border); }
.calm-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(7, 1fr); background: #f7f8f9; border-bottom: 1px solid var(--ls-border); }
.calm-head div { text-align: center; font-weight: 600; font-size: 13px; padding: 10px 0; }
.calm-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.calm-cell { min-height: 86px; padding: 8px; }
.calm-cell:nth-child(even) { background: #eef0f2; }
.calm-cell.oggi { background: #f1f8ee; }
.calm-days .calm-cell { min-height: 0; background: #e3e6ea; text-align: right; font-weight: 600; font-size: 12.5px; padding: 12px 12px; }
.calm-days .calm-cell.fuori { color: #9aa0a6; font-weight: 500; }
.calm-days .calm-cell.oggi { background: #e3f3dc; }
.calm-days .calm-cell.oggi span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ls-green); color: #fff; }

.cal-ev { display: flex; flex-direction: column; gap: 1px; border-left: 3px solid var(--ls-green); border-radius: 3px; padding: 7px 10px; font-size: 11.5px; margin-bottom: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cal-ev-ora { font-weight: 700; }
.cal-ev-tit { font-weight: 800; font-size: 12.5px; }
.cal-ev-futuro { background: #fff; color: #1f2328; }
.cal-ev-oggi { background: var(--ls-green); color: #fff; border-left-color: var(--ls-green-dark); }
.cal-ev-oggi a { color: #fff; }
.cal-ev-passato { background: #e3e3e3; color: #a3a3a3; }
.cal-ev a.cal-ev-tit:hover { text-decoration: underline; }

/* =========================================================
   Contatti / Clienti
   ========================================================= */
.ana-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.btn-tb { height: 34px; padding: 0 16px; font-size: 13px; cursor: pointer; }
.btn-out.btn-tb { color: var(--ls-green); }
.btn-out.on { border-color: var(--ls-green); background: var(--ls-green-soft); }
.ana-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: #fff; border: 1px solid #e3e5e8; border-radius: 3px; margin: 0; color: #666; }
.ana-search input { border: 0; outline: 0; width: 100%; font-size: 14px; }

.ana-filtri { display: flex; gap: 16px; align-items: flex-end; background: #fff; border: 1px solid var(--ls-border); border-radius: 3px; padding: 12px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.ana-filtri label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; width: 190px; margin: 0; }

.ana-avviso { display: flex; justify-content: space-between; align-items: center; background: #e3f5dc; color: var(--ls-green); border-radius: 3px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
.ana-avviso.err { background: #fdecea; color: #a12a1e; }
.ana-avviso button { border: 0; background: none; color: inherit; cursor: pointer; }

.ana-cartelle { position: relative; min-height: 280px; justify-content: center; }
.ana-view { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: #666; cursor: pointer; }
.cartelle { display: flex; gap: 40px; flex-wrap: wrap; padding: 0 26px; }
.cartella-wrap { position: relative; }
.cartella { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--ls-green); cursor: pointer; padding: 6px; border-radius: 4px; min-width: 110px; }
.cartella span { color: #333; font-size: 12px; font-weight: 600; }
.cartella small { color: #888; font-size: 11px; }
.cartella.on { background: var(--ls-green-soft); }
.cartella:hover { background: #f3f6f2; }
.cartella-del { position: absolute; top: 2px; right: 6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #e9ebec; color: #555; display: none; align-items: center; justify-content: center; cursor: pointer; }
.cartella-wrap:hover .cartella-del { display: inline-flex; }

.ana-body { display: grid; grid-template-columns: minmax(0, 1fr) 474px; gap: 18px; margin-top: 16px; align-items: start; }
.ana-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ana-all { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin: 0 auto 0 4px; }
.ana-all input { width: 16px; height: 16px; accent-color: var(--ls-green); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chips-wrap { justify-content: flex-start; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #d9dde1; background: #fff; color: var(--ls-green); border-radius: 12px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; cursor: pointer; text-transform: uppercase; }
.chip.on { background: var(--ls-green); color: #fff; border-color: var(--ls-green); }
.chip-sm { cursor: default; background: #e9f5e4; border-color: #e9f5e4; }
.chip-folder { background: var(--ls-green-soft); }
.chip-x { border: 0; background: none; color: inherit; padding: 0 0 0 2px; display: inline-flex; cursor: pointer; }

.ana-empty { padding: 30px 6px; }
.ana-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ana-cards.lista { grid-template-columns: 1fr; }
.ana-card { background: #fff; border: 1px solid var(--ls-border); border-radius: 3px; padding: 12px 14px 10px; }
.ana-card-top { display: flex; justify-content: space-between; align-items: center; }
.ana-date { font-size: 11.5px; color: #444; }
.ana-actions { display: flex; align-items: center; gap: 10px; }
.ana-actions input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--ls-green); }
.ana-scan { font-weight: 900; font-size: 15px; letter-spacing: .5px; color: #111; cursor: help; }
.ana-trash { color: var(--ls-green); }
.ana-confirm { font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.ana-confirm button { border: 1px solid #e3e5e8; background: #fff; border-radius: 3px; font-size: 11.5px; padding: 2px 8px; cursor: pointer; }
.ana-confirm button:first-of-type { background: #c0392b; color: #fff; border-color: #c0392b; }

.ana-menu-wrap { position: relative; }
.ana-menu { position: absolute; right: 0; top: 26px; z-index: 5; min-width: 200px; background: #fff; border: 1px solid #e3e5e8; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.1); padding: 4px 0; display: flex; flex-direction: column; }
.ana-menu button { border: 0; background: none; text-align: left; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.ana-menu button:hover { background: #f3f6f2; }
.ana-menu button.sub { padding-left: 26px; }
.ana-menu-sep { font-size: 11px; color: #888; padding: 6px 14px 2px; border-top: 1px solid #eee; margin-top: 4px; }

.ana-card-body { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: end; margin-top: 4px; }
.ana-avatar { display: flex; flex-direction: column; align-items: center; gap: 4px; align-self: start; }
.ana-photo { position: relative; width: 58px; height: 58px; border-radius: 50%; background: #e7e9ec; color: #6d7278; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
.ana-photo b { position: absolute; right: -2px; bottom: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ls-green); color: #fff; font-size: 10.5px; display: flex; align-items: center; justify-content: center; }
.ana-stato { background: var(--ls-green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 12px; border-radius: 3px; }
.ana-stato.off { background: #9aa0a6; }
.ana-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #444; min-width: 0; }
.ana-info span { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ana-info .ico { color: #6d7278; }
.ana-name { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 14px; color: #111; cursor: pointer; margin-bottom: 2px; }
.ana-name:hover { color: var(--ls-green); text-decoration: underline; }
.ana-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.ana-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; font-size: 13px; }
.ana-pager .btn-out { height: 30px; padding: 0 10px; }

.ana-help { min-height: 600px; justify-content: flex-start; padding: 16px; }
.ana-help-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.ana-help-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.ana-help-ico { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d33; color: #d33; font-weight: 700; font-family: Georgia, serif; display: inline-flex; align-items: center; justify-content: center; }
.ana-help h4 { font-size: 12.5px; font-weight: 700; margin: 14px 0 6px; }
.ana-help p { font-size: 12px; color: #555; line-height: 1.4; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.ana-help p:last-child { border: 0; }

/* Finestre modali */
.modal-bg { position: fixed; inset: 0; background: rgba(20,24,28,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; }
.modal-box { background: #fff; border-radius: 6px; width: 720px; max-width: 100%; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.modal-sm { width: 460px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h3 { font-size: 17px; font-weight: 700; margin: 0; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.modal-box label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; margin: 0; }
.modal-box label.ls-check { flex-direction: row; font-weight: 500; margin-top: 14px; }
.modal-label { font-size: 12.5px; font-weight: 600; margin: 14px 0 6px !important; }
.modal-full { margin-top: 4px !important; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-inline { display: flex; gap: 10px; margin-bottom: 8px; }

/* =========================================================
   Tutorial
   ========================================================= */
.tut-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.tut-search { width: calc(46% - 8px); display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; background: #fff; border: 1px solid #e3e5e8; border-radius: 3px; margin: 0; color: #666; }
.tut-search input { border: 0; outline: 0; width: 100%; font-size: 13.5px; font-weight: 600; }
.tut-search input::placeholder { color: #222; }
.tut-paese { width: 160px; height: 40px; }
.tut-grid { display: grid; grid-template-columns: 46% 1fr; gap: 18px; align-items: stretch; }
.tut-list { padding: 18px; min-height: 1160px; justify-content: flex-start; }
.tut-list h2 { font-size: 15px; font-weight: 700; }
.tut-hint { font-size: 12.5px; margin: 4px 0 12px !important; }
.tut-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid #edeff1; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; cursor: pointer; min-height: 76px; }
.tut-item:hover { border-color: #cfe3c7; }
.tut-item.on { border-color: var(--ls-green); background: #f2f9ef; }
.tut-play { width: 54px; height: 54px; border-radius: 50%; background: #eef0f2; color: #333; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tut-text { display: flex; flex-direction: column; gap: 4px; }
.tut-text strong { font-size: 13.5px; font-weight: 700; }
.tut-text small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.tut-right { display: flex; flex-direction: column; gap: 14px; }
.tut-player { padding: 18px; min-height: 0; }
.tut-player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: block; }
.tut-empty { aspect-ratio: 16 / 9; background: #111; color: #aaa; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.tut-desc { flex: 1; padding: 18px; justify-content: flex-start; }
.tut-desc h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.tut-desc p { font-size: 13.5px; line-height: 1.7; }

/* Responsive nuove pagine */
@media (max-width: 1300px) {
    .val-grid, .val-top { grid-template-columns: 1fr; }
    .ana-body { grid-template-columns: 1fr; }
    .antro { grid-template-columns: 1fr 1fr; }
    .antro-figure { display: none; }
    .tut-grid { grid-template-columns: 1fr; }
    .tut-list { min-height: 0; }
    .tut-search { width: auto; flex: 1; }
}
@media (max-width: 800px) {
    .ana-cards { grid-template-columns: 1fr; }
    .antro { grid-template-columns: 1fr; gap: 14px; }
    .antro-misure { border: 0; padding: 0; }
    .problemi { grid-template-columns: 1fr 1fr; }
    .val-actions { flex-wrap: wrap; }
    .modal-grid { grid-template-columns: 1fr; }
    .calm-toolbar { padding-right: 0; }
    .calm-cell { padding: 4px; }
    .cal-ev { font-size: 10px; padding: 4px; }
}

.ana-super { display: inline-block; margin-left: 6px; background: #1e2329; color: #fff; font-size: 10px; font-weight: 700; border-radius: 3px; padding: 1px 6px; vertical-align: middle; }

/* =========================================================
   Avanzamento per fasi
   ========================================================= */
.fasi-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 12px; }
.kpi { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--ls-border); border-radius: 3px; padding: 14px 16px; }
.kpi-ico { width: 52px; height: 52px; border-radius: 50%; background: #e7f4e1; color: var(--ls-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi small { display: block; font-size: 11.5px; font-weight: 600; }
.kpi strong { font-size: 18px; font-weight: 700; }
.kpi strong.scaduta { color: #c0392b; }

.fasi-tabs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 14px; }
.fasi-tab { height: 38px; border: 1px solid #e3e5e8; background: #eef0f2; color: #8a8f96; font-weight: 600; font-size: 14px; border-radius: 3px; cursor: pointer; }
.fasi-tab.on { background: #fff; color: var(--ls-green); border: 2px solid var(--ls-green); border-bottom-width: 3px; }
.fasi-tab:not(.lock):not(.on) { color: #333; }

.fase-box { min-height: 0; padding: 18px 20px; margin-bottom: 14px; }
.fase-title { display: flex; align-items: center; gap: 10px; }
.fase-title h2 { font-size: 19px; }
.fase-desc { font-size: 13.5px; font-weight: 500; margin: 12px 0 !important; }
.fase-progress { display: flex; align-items: center; gap: 18px; font-size: 13.5px; font-weight: 600; }
.fase-progress .progress-track { height: 8px; }

.badge-stato { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 8px; border: 1px solid; }
.badge-stato.in-corso { color: #a35a00; background: #fff6e0; border-color: #f2d9a6; }
.badge-stato.completata { color: var(--ls-green); background: #e7f4e1; border-color: #cfe7c4; }
.badge-stato.bloccato { color: #444; background: #eceef0; border-color: #eceef0; }

.fasi-layout { display: grid; grid-template-columns: minmax(0, 2.85fr) minmax(0, 1fr); gap: 14px; }
.caselle-box { padding: 18px 16px; min-height: 0; }
.caselle-box h2, .percorso h2 { font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.caselle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 880px; overflow-y: auto; padding-right: 8px; }
.casella { display: flex; align-items: center; gap: 16px; text-align: left; background: #fafbfb; border: 1px solid #e9ebee; border-radius: 3px; padding: 14px 14px; min-height: 92px; cursor: pointer; }
.casella:disabled { cursor: not-allowed; }
.casella.in-corso { background: #eef8ea; border-color: #9fd18c; }
.casella.completata { background: #fff; }
.casella-num { width: 52px; height: 52px; border-radius: 50%; background: #eceef0; display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700; flex-shrink: 0; }
.casella.in-corso .casella-num { background: #dff0d6; color: var(--ls-green); }
.casella.completata .casella-num { background: var(--ls-green); color: #fff; }
.casella-text { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.casella-text strong { font-size: 13.5px; font-weight: 700; }
.casella-text > span { font-size: 13px; color: #333; }
.casella-contenuto { font-size: 13.5px; line-height: 1.5; margin: 12px 0 !important; }

.percorso { padding: 18px 16px; min-height: 0; justify-content: flex-start; }
.percorso-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.percorso-head .cal-select { width: 120px; }
.percorso-item { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-bottom: 1px solid #eef0f2; padding: 30px 4px; cursor: pointer; text-align: left; }
.percorso-item:last-child { border-bottom: 0; }
.percorso-item strong { flex: 1; font-size: 13.5px; }
.percorso-dot { width: 10px; height: 10px; border-radius: 50%; }
.percorso-dot.in-corso { background: #a3480f; }
.percorso-dot.completata { background: var(--ls-green); }
.percorso-lock { color: #888; }
.percorso-stato { font-size: 12px; font-weight: 700; }
.percorso-stato.in-corso { color: #a3480f; }
.percorso-stato.completata { color: var(--ls-green); }

/* =========================================================
   Strumenti
   ========================================================= */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff; border: 1px solid var(--ls-border); border-radius: 3px; padding: 28px 40px 26px; min-height: 258px; color: #1f2328;
}
a.tool:hover { border-color: #b9dcab; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.tool-ico { width: 78px; height: 78px; border-radius: 10px; background: #e9f3e5; color: var(--ls-green); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.tool strong { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.tool p { font-size: 13.5px; line-height: 1.5; margin: 0; max-width: 260px; }
.tool-tag { margin-top: auto; padding-top: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #777; }
.tool-lock { background: #e5e5e5; border-color: #dcdcdc; color: #8a8f96; }
.tool-lock .tool-ico { background: #d9d9d9; color: #6d7278; }
.tool-wip { background: #f9e7a2; border-color: #efd77d; cursor: default; overflow: hidden; }
.tool-wip::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 11px;
    background: repeating-linear-gradient(-55deg, #1f2328 0 10px, #f9e7a2 10px 22px); }
.tool-wip .tool-ico { background: #ecd88f; color: #1f2328; }
.tool-wip .tool-tag { color: #6e5a10; }

@media (max-width: 1300px) {
    .fasi-kpi { grid-template-columns: repeat(2, 1fr); }
    .fasi-tabs { grid-template-columns: repeat(4, 1fr); }
    .fasi-layout { grid-template-columns: 1fr; }
    .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .fasi-kpi, .caselle, .tools { grid-template-columns: 1fr; }
}

/* =========================================================
   Menu lingue con bandiere
   ========================================================= */
.lang-picker { position: relative; width: 146px; z-index: 30; }
.lang-picker summary {
    list-style: none; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 30px 0 12px;
    background: #fff; border: 1px solid #e3e5e8; border-radius: 2px; cursor: pointer; font-size: 14px; color: #222; user-select: none;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary:focus-visible { outline: 2px solid var(--ls-green); outline-offset: 1px; }
.lang-picker .lang-chevron { position: absolute; right: 10px; transition: transform .15s; }
.lang-picker[open] .lang-chevron { transform: rotate(180deg); }
.lang-picker ul {
    position: absolute; top: 40px; right: 0; width: 100%; min-width: 170px; margin: 0; padding: 4px 0; list-style: none;
    background: #fff; border: 1px solid #e3e5e8; border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.lang-picker li a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; color: #222; }
.lang-picker li a:hover { background: #f3f6f2; }
.lang-picker li a.on { font-weight: 600; color: var(--ls-green); }
.flag { flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.login-top .lang-picker { margin-top: 2px; }

/* =========================================================
   Risultati della valutazione
   ========================================================= */
.res-empty { min-height: 0; align-items: flex-start; gap: 14px; padding: 20px; }
.res-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.res-main { min-height: 0; padding: 18px; }
.res-main h2 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.res-gauge { width: 100%; }
.res-gauge .gauge-value { font-size: 32px; }
.bmi-bar span { flex: none; }
.gauge-scale { display: flex; justify-content: space-between; font-size: 11px; color: #777; margin-top: 6px; padding: 0 22% 0 44%; }
.res-delta { margin-top: 14px !important; font-size: 13px; text-align: center; }
.res-delta b.meglio { color: var(--ls-green); }
.res-delta b.peggio { color: #c0392b; }
.res-comp-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: #d6d9dd; margin-bottom: 16px; }
.res-comp-bar span.grassa, .res-comp ul i.grassa { background: #e8964f; }
.res-comp-bar span.muscoli, .res-comp ul i.muscoli { background: #9b7fd1; }
.res-comp-bar span.ossa { flex: 1; background: #d6d9dd; }
.res-comp ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.res-comp li { display: flex; align-items: center; gap: 8px; }
.res-comp li b { margin-left: auto; }
.res-comp ul i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.res-comp ul i.magra { background: var(--ls-green); }
.res-comp ul i.visc { background: #ecc948; }

.res-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.res-kpi .kpi { align-items: flex-start; }
.res-kpi .kpi strong { font-size: 17px; display: block; }
.res-kpi .kpi em { font-style: normal; font-size: 11.5px; color: #6b7076; }

.res-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.res-ecc, .res-riep { min-height: 0; padding: 18px; justify-content: flex-start; }
.res-ecc h2, .res-riep h2 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.ecc { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 4px; margin-bottom: 8px; }
.ecc strong { font-size: 13.5px; }
.ecc p { font-size: 13px; margin: 2px 0 0 !important; }
.ecc-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; border-radius: 10px; padding: 2px 8px; flex-shrink: 0; margin-top: 2px; }
.ecc-eccesso { background: #fdf0ef; }
.ecc-eccesso .ecc-tag { background: #c0392b; color: #fff; }
.ecc-carenza { background: #fff6e0; }
.ecc-carenza .ecc-tag { background: #a35a00; color: #fff; }
.res-riep dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; margin: 0; }
.res-riep dt { font-weight: 600; }
.res-riep dd { margin: 0; color: #333; }
.res-note { margin: 14px 0 !important; }
.res-actions { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 10px; }

/* =========================================================
   Storico valutazioni
   ========================================================= */
.sto-title { margin-top: 0; }
.sto-kpi { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border: 1px solid var(--ls-border); border-radius: 4px; margin-bottom: 24px; }
.sto-k { display: flex; align-items: center; gap: 14px; padding: 22px 16px; border-right: 1px solid var(--ls-border); }
.sto-k:last-child { border-right: 0; }
.sto-k small { display: block; font-size: 11.5px; font-weight: 700; }
.sto-k strong { display: block; font-size: 18px; font-weight: 700; }
.sto-k em { display: block; font-style: normal; font-size: 11px; color: #6b7076; font-weight: 600; }
.sto-ico { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sto-ico.sm { width: 32px; height: 32px; }
.sto-ico.verde { background: #d7f3cf; color: var(--ls-green); }
.sto-ico.grigio { background: #eceef0; color: #222; }
.sto-ico.arancio { background: #fcd5bd; color: #c4621d; }
.sto-ico.viola { background: #e7d8fa; color: #7a4fc2; }
.sto-ico.giallo { background: #fbe9a6; color: #a07800; }
.sto-ico.azzurro { background: #d4ecfb; color: #2b7bb5; }

.sto-tabs { display: flex; gap: 18px; border-bottom: 1px solid #dfe2e5; margin-bottom: 14px; }
.sto-tabs button { border: 0; background: none; padding: 8px 2px; font-size: 13px; font-weight: 700; color: #b0b4b9; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.sto-tabs button.on { color: var(--ls-green); border-bottom-color: var(--ls-green); }

.sto-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sto-toolbar .btn-tb { height: 38px; }
.sto-spacer { flex: 1; }
.sto-select { display: flex; align-items: center; gap: 10px; height: 38px; background: #fff; border: 1px solid #e3e5e8; border-radius: 3px; padding: 0 10px 0 12px; margin: 0; font-size: 12.5px; font-weight: 700; }
.sto-select select { border: 0; outline: 0; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 90px; }

.sto-list { display: flex; flex-direction: column; gap: 12px; }
.sto-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; background: #fff; border: 1px solid var(--ls-border); border-radius: 4px; padding: 14px 18px; }
.sto-row.ultima { background: #f0faec; border-color: #d1ebc6; }
.sto-date { display: flex; flex-direction: column; align-items: center; border-right: 1px solid #dfe2e5; padding-right: 14px; align-self: stretch; justify-content: center; }
.sto-date strong { font-size: 22px; line-height: 1; }
.sto-date span { font-size: 12px; font-weight: 800; }
.sto-date em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--ls-green); }
.sto-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 20px; padding: 0 20px; }
.sto-m { display: flex; align-items: flex-start; gap: 8px; }
.sto-m small { display: block; font-size: 11.5px; font-weight: 700; }
.sto-m strong { display: block; font-size: 13px; }
.sto-m em { display: block; font-style: normal; font-size: 11px; color: #6b7076; font-weight: 600; padding-left: 4px; }
.sto-actions { display: flex; gap: 8px; align-items: center; }
.sto-act { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e3e5e8; background: #fff; color: #444; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sto-act:hover:not(:disabled) { border-color: var(--ls-green); color: var(--ls-green); }
.sto-act:disabled { color: #c9ccd0; cursor: not-allowed; }

/* Vista a schede: metriche su due colonne (misure corporee a destra), azioni in verticale */
.sto-list.schede { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); align-items: start; }
.sto-list.schede .sto-row { grid-template-columns: 70px 1fr auto; align-items: stretch; }
.sto-list.schede .sto-date { justify-content: flex-start; }
.sto-list.schede .sto-metrics { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; padding: 0 14px; gap: 14px 12px; }
.sto-list.schede .sto-actions { flex-direction: column; justify-content: center; border-left: 1px solid #dfe2e5; padding-left: 12px; }

.sto-chart { min-height: 0; padding: 16px 18px; margin-bottom: 14px; }
.sto-svg { width: 100%; height: auto; max-height: 260px; background: #fafbfb; border-radius: 4px; }
.sto-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 8px !important; }
.sto-legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; margin-left: 10px; }

.sto-foto { min-height: 0; padding: 16px 18px; margin-bottom: 12px; }
.sto-foto h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sto-foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sto-foto-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; border: 1px solid #e3e5e8; }

@media (max-width: 1300px) {
    .res-top, .res-bottom { grid-template-columns: 1fr; }
    .res-kpi { grid-template-columns: repeat(2, 1fr); }
    .sto-kpi { grid-template-columns: repeat(3, 1fr); }
    .sto-k:nth-child(3n) { border-right: 0; }
    .sto-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .res-kpi, .sto-kpi { grid-template-columns: 1fr; }
    .sto-row, .sto-list.schede .sto-row { grid-template-columns: 1fr; gap: 12px; }
    .sto-date { border: 0; flex-direction: row; gap: 6px; }
    .sto-list.schede { grid-template-columns: 1fr; }
    .sto-list.schede .sto-actions { flex-direction: row; border: 0; padding: 0; }
}

@media print {
    .sidebar, .topbar, .app-footer, .res-actions, .user-box { display: none !important; }
    body { background: #fff; border: 0; }
}


/* =========================================================
   Scheda contatto/cliente/distributore e menu dei tre puntini
   ========================================================= */
.ana-card { border-radius: 6px; padding: 12px 16px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ana-date { font-size: 12px; color: #555; }
.ana-actions { gap: 8px; }
.ana-scan { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #d9dde1; background: #fff; color: #1f2328; display: inline-flex; align-items: center; justify-content: center; font-size: 0; }
.ana-actions input[type=checkbox] { width: 16px; height: 16px; }
.ana-card-body { grid-template-columns: 76px 1fr auto; gap: 14px; align-items: end; margin-top: 2px; }
.ana-avatar { gap: 6px; }
.ana-photo { width: 62px; height: 62px; background: #e9eaec; color: #6b6f75; overflow: visible; }
.ana-photo-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.ana-photo-in .ico { margin-bottom: -8px; }
.ana-photo b { right: -3px; bottom: -1px; width: 21px; height: 21px; font-size: 11.5px; border: 2px solid #fff; }
.ana-stato { font-size: 11.5px; padding: 2px 14px; border-radius: 3px; }
.ana-info { gap: 3px; font-size: 13px; color: #555; }
.ana-info span { gap: 6px; }
.ana-info .ico { color: #6b6f75; }
.ana-name { font-size: 16px; margin-bottom: 1px; }

.ana-menu-back { position: fixed; inset: 0; z-index: 4; }
.ana-menu { top: 28px; min-width: 240px; max-height: 70vh; overflow-y: auto; padding: 6px 0; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.ana-menu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #5d6268; font-weight: 600; padding: 7px 14px; }
.ana-menu button.on span { color: var(--ls-green); }
.ana-menu button em, .ana-menu-tag em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #9aa0a6; letter-spacing: .2px; white-space: nowrap; }
.ana-menu-tag em.si, .ana-menu button.on em { color: var(--ls-green); }
.ana-menu-title { font-size: 13px; font-weight: 700; color: #1f2328; padding: 8px 14px 4px; }
.ana-menu-title.sep { border-top: 1px solid #eceef0; margin-top: 6px; padding-top: 12px; }
.ana-menu-empty { font-size: 13px; font-weight: 600; color: #8a8f96; padding: 4px 14px 8px; cursor: default; }

.ana-fase { display: flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 700; color: #1f2328; white-space: nowrap; margin-bottom: 6px; }
.ana-fase b { font-weight: 700; }
.ana-fase strong { color: var(--ls-green); font-size: 12.5px; }
.ana-tags { flex-direction: column; align-items: flex-end; gap: 6px; }
.ana-tags-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ana-menu-2r { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 0 !important; }
.ana-menu-2r small { font-size: 11px; font-weight: 600; color: #5d6268; }
span.ana-menu-2r { color: #b0b4b9; }
.modal-grid-3 { grid-template-columns: repeat(3, 1fr); }

.ana-menu-link { display: block; padding: 7px 14px; font-size: 13px; font-weight: 600; color: #5d6268; }
.ana-menu-link:hover { background: #f3f6f2; color: var(--ls-green); }
a.ana-scan:hover { border-color: var(--ls-green); color: var(--ls-green); }
.val-soggetto { margin-bottom: 14px; font-weight: 600; }


/* =========================================================
   Il mio profilo
   ========================================================= */
a.avatar { color: #fff; text-decoration: none; cursor: pointer; transition: box-shadow .15s; }
a.avatar:hover { box-shadow: 0 0 0 4px #cfe7c4; color: #fff; }
.pro-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pro-card { padding: 20px 20px; min-height: 0; justify-content: flex-start; }
.pro-card h2 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.pro-card label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; margin: 0; }
.pro-card .ls-input, .pro-card .ls-select { background-color: #f6f7f8; }
.pro-base { display: grid; grid-template-columns: 148px repeat(4, minmax(0, 1fr)); gap: 10px 10px; align-items: start; }
.pro-base .c2 { grid-column: span 2; }
.pro-base .c4 { grid-column: span 4; }
.pro-avatar { grid-row: span 2; width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; background: #e9eaec; color: #6b6f75; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.pro-avatar .ico { margin-bottom: -14px; }
.pro-social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 22px; }
.pro-social label { flex-direction: row; align-items: center; gap: 0; position: relative; }
.pro-social .ls-input { padding-left: 36px; }
.soc { position: absolute; left: 10px; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-transform: lowercase; }
.soc-fb { background: #1877f2; } .soc-in { background: #0a66c2; border-radius: 3px; } .soc-ig { background: #e1306c; border-radius: 5px; }
.soc-wa { background: #25d366; } .soc-tt { background: #111; border-radius: 3px; } .soc-tg { background: #229ed9; }
.pro-pin { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: end; margin-top: 20px; }
.pro-pin .badge-leaf { width: 54px; height: 54px; }
.pro-msg { margin-top: 12px !important; }
.pro-sep { border-top: 1px solid #eceef0; margin-top: 22px; padding-top: 18px; }
.pro-desc { font-size: 13px; margin-bottom: 12px !important; }
.pro-pwd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pro-pwd-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.pro-side { display: flex; flex-direction: column; }
.pro-fatture { flex: 1; min-height: 200px; }
.pro-fattura { display: flex; justify-content: space-between; align-items: center; border: 1px solid #e3e5e8; border-radius: 3px; padding: 10px 12px; margin-bottom: 8px; background: #fafbfb; }
.pro-fattura strong { display: block; font-size: 12.5px; }
.pro-fattura span { font-size: 12.5px; }
.pro-side-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-ls-red { background: #a3201e; cursor: pointer; }
.btn-ls-red:hover:not(:disabled) { background: #861816; color: #fff; }
.btn-ls:disabled { opacity: .55; cursor: not-allowed; }
.pro-canc { font-size: 12.5px; font-weight: 600; color: #a3201e; }
@media (max-width: 1200px) { .pro-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
    .pro-base { grid-template-columns: 1fr 1fr; }
    .pro-base .c2, .pro-base .c4 { grid-column: span 2; }
    .pro-avatar { grid-row: auto; grid-column: span 2; }
    .pro-social, .pro-pwd, .pro-pin { grid-template-columns: 1fr; }
}


/* =========================================================
   Finestra nuovo/modifica contatto, cliente, distributore
   ========================================================= */
.modal-ana { width: 790px; padding: 26px 30px 24px; }
.modal-ana .modal-head h3 { font-size: 19px; }
.modal-ana .ls-input, .modal-ana .ls-select { background-color: #f6f7f8; }
.modal-ana .pro-base { grid-template-columns: 136px repeat(4, minmax(0, 1fr)); }
.ana-ref { margin-top: 12px; position: relative; }
.ana-ref-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.ana-ref-row { display: flex; gap: 8px; }
.ana-ref-row .btn-ls { min-width: 80px; }
.ana-ref-val { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.ana-ref-search { position: absolute; left: 0; right: 0; top: 64px; z-index: 6; background: #fff; border: 1px solid #e3e5e8; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 10px; }
.ana-ref-list { max-height: 220px; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; }
.ana-ref-list button { display: flex; justify-content: space-between; border: 0; background: none; padding: 7px 8px; text-align: left; font-size: 13px; border-radius: 3px; cursor: pointer; }
.ana-ref-list button:hover { background: #f3f6f2; }
.ana-ref-list em { font-style: normal; font-size: 11px; color: #8a8f96; text-transform: uppercase; font-weight: 700; }
.modal-ana .pro-social { margin-top: 14px; }
.ana-class-title { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.ana-class { display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px; align-items: end; }
.ana-class-ico { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #5d6268; color: #5d6268; display: flex; align-items: center; justify-content: center; }
.ana-altro { margin-top: 14px; font-size: 13px; }
.ana-altro summary { cursor: pointer; font-weight: 600; color: var(--ls-green); }
.ana-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.ana-privacy { margin: 0 !important; font-size: 12.5px; }
.ana-privacy a { color: var(--ls-green); font-weight: 700; text-decoration: underline; }
.ana-submit { min-width: 175px; }
@media (max-width: 800px) {
    .modal-ana .pro-base { grid-template-columns: 1fr 1fr; }
    .ana-class { grid-template-columns: 1fr; }
    .ana-foot { flex-direction: column; align-items: stretch; }
}


/* =========================================================
   Profilo di un contatto / cliente / distributore
   ========================================================= */
a.ana-name { display: inline-block; }
.ana-class.con-azione { grid-template-columns: auto 1fr 1fr auto; }
.btn-sm { height: 30px; padding: 0 14px; font-size: 12.5px; }
.sch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sch-info .pro-base { grid-template-columns: 128px repeat(4, minmax(0, 1fr)); }
.sch-oss { display: flex; flex-direction: column; }
.sch-editor { flex: 1; display: flex; flex-direction: column; }
.sch-editor .ls-editor { flex: 1; min-height: 360px; max-height: none; background: #f6f7f8; }
.sch-oss-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.sch-oss-foot .editor-count { margin: 0; font-weight: 700; color: #333; }
.sch-oss-msg { flex: 1; font-size: 12.5px; color: var(--ls-green); font-weight: 600; }
.sch-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sch-tile { min-height: 0; padding: 18px 18px; justify-content: flex-start; }
.sch-tile h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.sch-tile p { font-size: 12.5px; color: #444; margin-bottom: 14px !important; }
.sch-tile-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.sch-tile .btn-ls { height: 30px; padding: 0 14px; font-size: 12.5px; }
.sch-tile-off { background: #fafafa; }
.sch-tile-off h3, .sch-tile-off p { color: #a3a7ac; }
.sch-ref-list { list-style: none; padding: 0; margin: 0 0 10px; max-height: 220px; overflow-y: auto; }
.sch-ref-list li { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 1px solid #eef0f2; font-size: 13.5px; }
.sch-ref-list a { color: var(--ls-green); font-weight: 600; }
.sch-ref-list em { font-style: normal; font-size: 11px; color: #8a8f96; text-transform: uppercase; font-weight: 700; }
@media (max-width: 1300px) { .sch-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .sch-tiles, .ana-class.con-azione { grid-template-columns: 1fr; } .sch-info .pro-base { grid-template-columns: 1fr 1fr; } }


/* Figura uomo/donna accanto ai dati antropometrici */
.antro-figure { position: relative; align-self: start; max-width: 260px; }
.antro-figure img { display: block; width: 100%; height: auto; }
.fig-label { position: absolute; left: 2%; font-size: 11px; font-weight: 700; color: #2f6a30; line-height: 1; }


/* =========================================================
   Registrazione
   ========================================================= */
.reg-page { max-width: 1290px; margin: 0 auto; padding: 16px 40px 60px; }
.reg-top { margin-left: 0; }
.reg-title { font-size: 34px; font-weight: 700; letter-spacing: -.5px; color: #25292e; margin: 30px 0 22px; }
.reg-card { padding: 34px 48px 34px; min-height: 0; }
.reg-intro { font-size: 14px; color: #6b7076; line-height: 1.55; margin-bottom: 12px !important; }
.reg-green { background-color: #e3f5dc !important; border-color: #cde9c2 !important; }
.reg-card > form > .reg-green { height: 42px; }
.reg-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px 14px; margin-top: 16px; }
.reg-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; margin: 0; }
.reg-grid .ls-input, .reg-grid .ls-select { height: 42px; background-color: #f6f7f8; font-size: 14px; }
.reg-grid .c1 { grid-column: span 1; } .reg-grid .c2 { grid-column: span 2; } .reg-grid .c3 { grid-column: span 3; }
.reg-grid .c4 { grid-column: span 4; } .reg-grid .c6 { grid-column: span 6; } .reg-grid .c8 { grid-column: span 8; }
.reg-grid .login-pwd .ls-input { padding-right: 44px; }
.reg-grid .login-pwd-toggle { top: 9px; color: #8a8f96; }
.reg-grid .validation-message { font-size: 12px; font-weight: 400; }
.reg-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 22px; }
.reg-checks { display: flex; flex-direction: column; gap: 8px; }
.reg-checks .ls-check { margin: 0; font-size: 13.5px; }
.reg-checks a { color: var(--ls-green); font-weight: 700; text-decoration: underline; }
.reg-submit { width: 280px; margin: 0; }
.reg-error { margin-top: 16px !important; }
.reg-sub { font-size: 20px; font-weight: 700; color: #25292e; margin: 30px 0 14px; }
.reg-piani { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.reg-piano { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 18px; border: 2px solid #e4e6e9; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; margin: 0; }
.reg-piano:hover { border-color: #b9d8b0; }
.reg-piano:has(input:checked) { border-color: var(--ls-green); box-shadow: 0 0 0 3px rgba(47,106,48,.12); background: #f7fbf5; }
.reg-piano > input { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; accent-color: var(--ls-green); }
.reg-piano-tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--ls-green); border-radius: 20px; padding: 3px 10px; }
.reg-piano-nome { font-size: 18px; font-weight: 700; color: #25292e; }
.reg-piano-prezzo { font-size: 28px; font-weight: 700; color: var(--ls-green); }
.reg-piano-prezzo small { font-size: 14px; font-weight: 500; color: #6b7076; margin-left: 2px; }
.reg-piano-desc { font-size: 13.5px; color: #6b7076; line-height: 1.45; }
.reg-piano ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.reg-piano li { padding-left: 20px; position: relative; }
.reg-piano li::before { content: "✓"; position: absolute; left: 0; color: var(--ls-green); font-weight: 700; }
.reg-login { text-align: center; margin-top: 18px !important; font-size: 14px; }
.reg-login a { color: var(--ls-green); font-weight: 700; }
@media (max-width: 900px) {
    .reg-page { padding: 16px; }
    .reg-card { padding: 22px 18px; }
    .reg-grid { grid-template-columns: 1fr 1fr; }
    .reg-grid > label { grid-column: span 2 !important; }
    .reg-foot { flex-direction: column; align-items: stretch; }
    .reg-submit { width: 100%; }
}

/* ---------- Pulsante tema chiaro/scuro (colori del tema scuro in tema-scuro.css) ---------- */
.tema-sole { display: none; }
html[data-theme="dark"] .tema-sole { display: inline-block; }
html[data-theme="dark"] .tema-luna { display: none; }

/* ---------- Avviso a tutta pagina dopo l'accesso ---------- */
.avviso-bg { position: fixed; inset: 0; z-index: 100; background: rgba(20,24,28,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; }
.avviso-box { position: relative; background: #fff; border-radius: 6px; padding: 40px 28px 16px; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.avviso-box img { display: block; max-width: 100%; max-height: calc(94vh - 100px); width: auto; height: auto; margin: 0 auto; border-radius: 4px; border: 1px solid #e3e5e8; object-fit: contain; }
.avviso-chiudi { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: #1f2328; padding: 4px; cursor: pointer; line-height: 0; }
.avviso-chiudi:hover { color: var(--ls-green); }
.avviso-nascondi { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #6b7076; margin: 10px 0 0; cursor: pointer; align-self: flex-start; }
.avviso-nascondi input { accent-color: var(--ls-green); }
@media (max-width: 800px) { .avviso-box { padding: 36px 10px 10px; } }

/* ---------- Invito all'area personale (scheda) ---------- */
.email-riga { display: flex; gap: 6px; align-items: stretch; }
.email-riga .ls-input { flex: 1; min-width: 0; }
.email-invito { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 12px; font-size: 12.5px; cursor: pointer; border: 0; }
.email-invito:disabled { opacity: .6; cursor: default; }
.email-stato { display: block; font-size: 12px; font-weight: 400; color: #6b7076; line-height: 1.45; margin-top: 2px; }
.email-stato .ok { color: var(--ls-green); font-weight: 600; }
.email-msg { display: block; font-size: 12px; font-weight: 600; color: var(--ls-green); margin-top: 2px; }
.email-msg.err { color: #c0392b; }
.link-btn { border: 0; background: none; padding: 0; margin-left: 6px; color: #c0392b; font-size: 12px; text-decoration: underline; cursor: pointer; }
.link-btn:disabled { opacity: .5; cursor: default; }
.invito-link { width: 100%; font-size: 12.5px; margin: 10px 0 6px; }

/* ---------- Pagina "scegli la password" (invito) ---------- */
.att-page { max-width: 620px; }
.att-top { margin-left: 0; margin-bottom: 40px; }
.att-card h1 { font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.att-intro { font-size: 15px; line-height: 1.55; color: #3a3f45; margin-bottom: 22px !important; }
.att-hint { font-size: 12.5px; color: #6b7076; margin: -4px 0 14px !important; }
.att-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- Area personale di contatti, clienti e distributori ---------- */
.ap-page { padding-top: 10px; }
.ap-shell { min-height: calc(100vh - 4px); display: flex; flex-direction: column; }
.ap-bar { display: flex; align-items: center; gap: 28px; padding: 18px 28px; background: var(--ls-card); border-bottom: 1px solid var(--ls-border); position: sticky; top: 0; z-index: 20; }
.ap-logo { font-weight: 800; font-size: 30px; letter-spacing: -1.5px; color: #111; line-height: 1; }
.ap-nav { display: flex; gap: 4px; flex: 1; }
.ap-nav a { padding: 8px 14px; border-radius: 20px; font-size: 14px; font-weight: 500; color: #3a3f45; }
.ap-nav a:hover { background: var(--ls-green-soft); }
.ap-nav a.active { background: var(--ls-green); color: #fff; }
.ap-content { max-width: 1340px; width: 100%; margin: 0 auto; padding: 22px 28px 0; }
.ap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.ap-head-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.ap-head-actions .btn-out, .ap-btn-start { display: inline-flex; align-items: center; height: 38px; }
.ap-btn-start { align-self: flex-start; margin-top: 6px; }
.ap-link { color: var(--ls-green); font-weight: 600; text-decoration: underline; }
.ap-top-right { display: flex; align-items: center; gap: 12px; }
.ap-top-right .btn-out { display: inline-flex; align-items: center; gap: 6px; }
.ap-icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #b0b4b9; background: transparent; color: #3a3f45; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ap-title { font-size: 34px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 6px; }
.ap-sub { font-size: 15px; color: #6b7076; margin-bottom: 22px !important; }
.ap-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.ap-kpi .kpi strong { display: block; font-size: 22px; }
.ap-delta { display: block; font-style: normal; font-size: 12px; color: #6b7076; margin-top: 2px; }
.ap-note { font-size: 12.5px; color: #6b7076; margin: 8px 0 16px !important; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; margin-top: 12px; }
.ap-side { display: flex; flex-direction: column; gap: 14px; }
.ap-card { padding: 20px; min-height: 0; justify-content: flex-start; align-items: stretch; gap: 10px; }
.ap-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ap-card a { color: var(--ls-green); font-weight: 600; }
.ap-cons-nome { font-weight: 700; font-size: 15px; }
.ap-table-wrap { overflow-x: auto; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ap-table th { text-align: left; font-size: 12px; font-weight: 600; color: #6b7076; padding: 8px 10px; border-bottom: 1px solid #e3e5e8; white-space: nowrap; }
.ap-table td { padding: 10px; border-bottom: 1px solid #eceef0; white-space: nowrap; }
.ap-table td em { display: block; font-style: normal; font-size: 11.5px; color: #6b7076; }
.ap-dati { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13.5px; }
.ap-dati dt { font-weight: 600; color: #6b7076; }
.ap-dati dd { margin: 0; word-break: break-word; }
@media (max-width: 1000px) {
    .ap-bar { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .ap-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
    .ap-content { padding: 16px 16px 0; }
    .ap-grid { grid-template-columns: 1fr; }
    .ap-kpi { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Risultati completi della valutazione (RisultatiValutazione.razor)
   ========================================================= */
.rc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.rc-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin: 0; }
.rc-sub { font-size: 13px; color: #3a3f45; margin: 2px 0 0 !important; }
.rc-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--ls-card); border: 1px solid #d9dde1; border-radius: 4px; font-size: 12px; font-weight: 600; }
.rc-unita label { font-weight: 600; margin: 0; }
.rc-unita select { border: 0; background: transparent; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.rc-btn { height: 34px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 12.5px; font-weight: 700; border-radius: 4px; }

.rc-info { position: absolute; top: 12px; right: 12px; color: #6b7076; cursor: help; line-height: 0; }

/* Cinque schede principali */
.rc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rc-kpi { position: relative; min-height: 0; padding: 18px 16px 14px; gap: 0; justify-content: flex-start; }
.rc-kpi-top { display: flex; align-items: center; gap: 12px; min-height: 92px; }
.rc-kpi-ico { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rc-verde { background: #dff3d6; color: #4b8a3c; }
.rc-arancio { background: #fbe0cc; color: #d9773a; }
.rc-viola { background: #ece0f7; color: #8a5cc0; }
.rc-giallo { background: #fdf1c6; color: #c99b12; }
.rc-azzurro { background: #d8eefa; color: #3c8fc0; }
.rc-kpi-txt { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.rc-kpi-txt h3 { font-size: 12.5px; font-weight: 700; margin: 0 0 2px; }
.rc-kpi-txt strong { font-size: 22px; font-weight: 800; line-height: 1.15; }
.rc-kpi-txt small { font-size: 10.5px; color: #6b7076; margin-top: 2px; }
.rc-giudizio { font-size: 12px; font-weight: 800; letter-spacing: .3px; margin-top: 4px; }
.rc-g-ok { color: var(--ls-green); }
.rc-g-warn { color: #d9773a; }
.rc-g-ko { color: #c0392b; }
.rc-bar { margin: 26px 0 30px; height: 6px; }
.rc-bar .gauge-marker { top: -8px; height: 22px; }
.rc-range { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.rc-range small { font-size: 10.5px; font-weight: 600; color: #6b7076; }

/* Schede (tab) senza JavaScript: radio + :checked */
.rc-radio { position: absolute; opacity: 0; pointer-events: none; }
.rc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.rc-tabs label { display: flex; align-items: center; justify-content: center; height: 34px; border: 1px solid #d9dde1; border-radius: 4px; background: var(--ls-card); font-size: 12.5px; font-weight: 700; color: #6b7076; cursor: pointer; margin: 0; }
.rc-tabs label:hover { border-color: var(--ls-green); }
.rc-tabs label.disabled { background: var(--ls-bg); color: #b9bcc0; cursor: not-allowed; border-color: var(--ls-border); }
#rc-t1:checked ~ .rc-tabs label[for=rc-t1],
#rc-t2:checked ~ .rc-tabs label[for=rc-t2],
#rc-t3:checked ~ .rc-tabs label[for=rc-t3],
#rc-t4:checked ~ .rc-tabs label[for=rc-t4] { background: #e3f6dc; border-color: var(--ls-green); color: #1f2328; }
.rc-panel { display: none; }
#rc-t1:checked ~ .rc-p1, #rc-t2:checked ~ .rc-p2, #rc-t3:checked ~ .rc-p3, #rc-t4:checked ~ .rc-p4 { display: block; }

/* Riepilogo */
.rc-riep { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.rc-sec { font-size: 13px; font-weight: 800; margin: 4px 0 10px; }
.rc-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rc-mini { position: relative; min-height: 96px; padding: 14px 12px; flex-direction: row; align-items: center; gap: 10px; justify-content: flex-start; }
.rc-mini-ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rc-mini small { display: block; font-size: 10.5px; font-weight: 700; }
.rc-mini strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.rc-mini em { display: block; font-style: normal; font-size: 10.5px; color: #6b7076; margin-top: 2px; }
.rc-box { position: relative; min-height: 0; padding: 16px; justify-content: flex-start; gap: 12px; }
.rc-box h3 { font-size: 13px; font-weight: 800; margin: 0; padding-right: 26px; }
.rc-donut-row { display: flex; align-items: center; gap: 18px; flex: 1; }
.rc-donut { width: 120px; height: 120px; flex: 0 0 120px; }
.rc-donut-val { font-size: 22px; font-weight: 800; fill: var(--ls-text); }
.rc-donut-um { font-size: 8.5px; font-weight: 700; fill: var(--ls-text); }
.rc-legend { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 12px; font-size: 11.5px; }
.rc-legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; }
.rc-legend i { width: 9px; height: 9px; border-radius: 50%; }
.rc-legend span { font-weight: 700; }
.rc-legend b { font-weight: 700; white-space: nowrap; }
.rc-legend em { font-style: normal; font-weight: 500; color: #6b7076; }
.rc-icc-txt { flex: 1; font-size: 12px; font-weight: 600; text-align: center; }
.rc-msg { background: #eef7ea; color: var(--ls-green); border-radius: 4px; padding: 10px 12px; font-size: 11.5px; font-weight: 700; text-align: center; margin-top: auto !important; }

/* Tendenze */
.rc-trends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.rc-trend { min-height: 0; padding: 14px 12px; justify-content: flex-start; gap: 0; }
.rc-trend h3 { font-size: 13px; font-weight: 800; margin: 0; }
.rc-trend-sub { font-size: 10.5px; color: #6b7076; margin: 1px 0 6px !important; }
.rc-trend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rc-bubble { flex: 0 0 80px; height: 80px; border-radius: 50%; background: #e3f6dc; color: var(--ls-green); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rc-bubble small { font-size: 10px; font-weight: 700; }
.rc-bubble b { font-size: 12.5px; font-weight: 800; }
.rc-trend-chart { flex: 1; min-width: 0; height: 80px; overflow: visible; }
.rc-trend-target { stroke: var(--ls-green); stroke-width: 1.5; stroke-dasharray: 5 4; }
.rc-trend-line { fill: none; stroke: var(--ls-green); stroke-width: 2; }
.rc-trend-dot { fill: var(--ls-green); stroke: #fff; stroke-width: 1.5; }
.rc-trend-lbl { font-size: 8.5px; font-weight: 800; fill: var(--ls-text); }
.rc-trend-date { font-size: 7px; fill: #6b7076; }
.rc-trends-2 .rc-trend { gap: 4px; }
.rc-chart-big { height: 110px; width: 100%; }
.rc-trend-range { display: flex; justify-content: space-between; font-size: 11px; color: #6b7076; }
.rc-row-cur td { font-weight: 700; background: #f2faee; }
.rc-ecc { margin-bottom: 12px; }
.rc-foto { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rc-foto img { width: 100%; border-radius: 6px; display: block; }

@media (max-width: 1300px) {
    .rc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rc-riep { grid-template-columns: 1fr 1fr; }
    .rc-riep > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
    .rc-kpis, .rc-trends, .rc-riep, .rc-tabs { grid-template-columns: 1fr; }
    .rc-mini-grid { grid-template-columns: 1fr 1fr; }
}
@media print {
    .rc-tabs, .rc-head-actions .rc-btn, .rc-unita { display: none !important; }
    .rc-panel.rc-p1, .rc-panel.rc-p2, .rc-panel.rc-p4 { display: block !important; }
    .rc-kpis { grid-template-columns: repeat(5, 1fr); }
    .card { break-inside: avoid; }
}

/* =========================================================
   Pagina di accesso (Login.razor) - a due pannelli
   ========================================================= */
.lg-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; }

/* Pannello del marchio */
.lg-brand {
    position: relative; overflow: hidden; color: #f2f8ef; padding: 40px 56px 28px;
    display: flex; flex-direction: column;
    background:
        radial-gradient(circle at 85% 10%, rgba(176, 222, 150, .22), transparent 42%),
        radial-gradient(circle at 10% 95%, rgba(0, 0, 0, .25), transparent 50%),
        linear-gradient(160deg, #2f6a30 0%, #1f4d21 60%, #173a19 100%);
}
.lg-brand::after {
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .05); pointer-events: none;
}
.lg-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 34px; letter-spacing: -1.5px; color: inherit; line-height: 1; }
.lg-logo:hover { color: inherit; }
.lg-brand-body { margin: auto 0; max-width: 560px; position: relative; z-index: 1; padding: 40px 0; }
.lg-brand h1 { font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.6px; color: #fff; margin: 0 0 18px; }
.lg-lead { font-size: 16.5px; line-height: 1.6; color: rgba(242, 248, 239, .85); margin: 0 0 30px; }
.lg-benefits { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 18px; }
.lg-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.lg-benefits p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(242, 248, 239, .85); }
.lg-benefits b { color: #fff; font-weight: 700; }
.lg-check { flex: 0 0 24px; width: 24px; height: 24px; color: #b6e39f; margin-top: 1px; }
.lg-check svg { display: block; width: 100%; height: 100%; }
.lg-video-btn {
    display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 14px 18px; color: #fff;
    transition: background .15s;
}
.lg-video-btn:hover { background: rgba(255, 255, 255, .14); }
.lg-play { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #2f6a30; display: inline-flex; align-items: center; justify-content: center; }
.lg-play svg { width: 26px; height: 26px; }
.lg-video-btn b { display: block; font-size: 15px; }
.lg-video-btn small { display: block; font-size: 12.5px; color: rgba(242, 248, 239, .75); line-height: 1.4; margin-top: 2px; }
.lg-claim { position: relative; z-index: 1; font-size: 13.5px; line-height: 1.5; color: rgba(242, 248, 239, .8); margin: 0 0 10px; max-width: 560px; }
.lg-claim b { color: #fff; }
.lg-copy { position: relative; z-index: 1; font-size: 12px; color: rgba(242, 248, 239, .55); margin: 0; }

/* Pannello di accesso */
.lg-main { display: flex; flex-direction: column; padding: 24px 32px; background: var(--ls-bg); }
.lg-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.lg-form-wrap { width: 100%; max-width: 440px; margin: auto; padding: 32px 0; }
.lg-logo-small { display: none; color: var(--ls-green); font-size: 28px; margin-bottom: 24px; }
.lg-form-wrap h2 { font-size: 30px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 6px; }
.lg-sub { font-size: 15px; color: #6b7076; margin: 0 0 26px; }

.lg-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #e6e9ec; border-radius: 12px; margin-bottom: 22px; }
.lg-switch label { margin: 0; cursor: pointer; }
.lg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lg-switch span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #5b6067; transition: background .15s, color .15s; }
.lg-switch input:checked + span { background: var(--ls-card); color: var(--ls-green); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.lg-switch input:focus-visible + span { outline: 2px solid var(--ls-green); outline-offset: 2px; }

.lg-label { display: block; font-size: 13.5px; font-weight: 600; color: #3a3f45; margin: 0 0 8px; }
.lg-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.lg-label-row a { font-size: 13px; font-weight: 600; color: var(--ls-green); }
.lg-label-row a:hover { text-decoration: underline; }
.lg-field { position: relative; margin-bottom: 8px; }
.lg-field-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a8f96; pointer-events: none; }
.lg-input {
    box-sizing: border-box; width: 100%; height: 50px; border: 1.5px solid #d7dadf; border-radius: 12px; background: var(--ls-card);
    padding: 0 46px 0 44px; font-size: 15px; color: var(--ls-text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.lg-input::placeholder { color: #a3a8ae; }
.lg-input:focus { border-color: var(--ls-green); box-shadow: 0 0 0 4px rgba(47, 106, 48, .12); }
.lg-input.invalid { border-color: #d33; }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #8a8f96; width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lg-eye:hover { background: rgba(0, 0, 0, .05); color: var(--ls-green); }
.lg-eye .lg-eye-off, .lg-eye.open .lg-eye-on { display: none; }
.lg-eye.open .lg-eye-off { display: inline-block; }

.lg-form .login-error { margin: 14px 0 0; }
.lg-submit {
    width: 100%; height: 52px; margin-top: 22px; border: 0; border-radius: 12px; background: var(--ls-green); color: #fff;
    font-size: 15.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    box-shadow: 0 6px 16px rgba(47, 106, 48, .25); transition: background .15s, transform .1s;
}
.lg-submit:hover { background: var(--ls-green-dark); }
.lg-submit:active { transform: translateY(1px); }

.lg-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #6b7076; line-height: 1.45; margin: 16px 0 0; }
.lg-hint .ico { flex-shrink: 0; margin-top: 1px; }
.lg-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; font-size: 13px; color: #6b7076; }
.lg-divider::before, .lg-divider::after { content: ""; flex: 1; height: 1px; background: #d7dadf; }
.lg-register {
    display: flex; align-items: center; justify-content: center; height: 48px; border: 1.5px solid var(--ls-green); border-radius: 12px;
    color: var(--ls-green); font-weight: 700; font-size: 15px; transition: background .15s;
}
.lg-register:hover { background: var(--ls-green-soft); color: var(--ls-green); }
.lg-proof { text-align: center; font-size: 12.5px; color: #6b7076; line-height: 1.5; margin: 18px 0 0; }
.lg-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-size: 12.5px; }
.lg-links a { color: #6b7076; }
.lg-links a:hover { color: var(--ls-green); text-decoration: underline; }

/* Finestra del video */
.lg-dialog { border: 0; padding: 0; background: #000; border-radius: 12px; width: min(960px, 92vw); overflow: visible; }
.lg-dialog::backdrop { background: rgba(10, 20, 10, .7); backdrop-filter: blur(3px); }
.lg-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; }
.lg-dialog-close { position: absolute; top: -44px; right: 0; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 1000px) {
    .lg-page { grid-template-columns: 1fr; }
    .lg-brand { order: 2; padding: 32px 24px 24px; }
    .lg-brand > .lg-logo { display: none; }
    .lg-brand-body { padding: 0 0 24px; }
    .lg-brand h1 { font-size: 26px; }
    .lg-main { min-height: 100vh; padding: 16px; }
    .lg-logo-small { display: inline-flex; }
}

/* ---------- Home: pulsante "Link di invito" ---------- */
.home-val-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-invito { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.invito-azioni { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0 12px; }
.invito-azioni .btn-ls, .invito-azioni .btn-out { display: inline-flex; align-items: center; gap: 6px; height: 38px; }
.invito-azioni + .muted .link-btn { color: var(--ls-green); margin-left: 0; display: block; margin-top: 6px; }

/* =========================================================
   Autovalutazione pubblica dal link di invito (ValutazioneGratuita.razor)
   ========================================================= */
.vg-page { min-height: 100vh; background: #f8f9f8; display: flex; flex-direction: column; }
.vg-hero { color: #fff; background: linear-gradient(160deg, #2f6a30 0%, #1f4d21 70%, #173a19 100%); padding: 22px 32px 30px; }
.vg-hero-in { max-width: 1060px; margin: 0 auto; }
.vg-hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.vg-hero .lg-logo { font-size: 28px; }
.vg-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 6px; }
.vg-hero p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.vg-hero .vg-invitante { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: rgba(255, 255, 255, .12); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #fff; }
.vg-form { max-width: 1060px; width: 100%; margin: 28px auto 0; padding: 0 16px; }
.vg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.vg-box { background: var(--ls-card); border: 1px solid #e3e5e8; border-radius: 4px; padding: 30px 18px 22px; margin: 0; min-width: 0; position: relative; }
.vg-box legend { position: absolute; top: -11px; left: 12px; background: #f8f9f8; padding: 0 6px; font-size: 14px; font-weight: 800; width: auto; float: none; margin: 0; line-height: 1.4; }
.vg-l { display: block; font-size: 12px; color: #2b2f34; margin: 14px 0 8px; line-height: 1.5; }
.vg-l .ls-input, .vg-l .ls-select { margin-top: 8px; width: 100%; height: 38px; }
.vg-box .validation-message { font-size: 11.5px; color: #c0392b; margin: 4px 0 0; }
.vg-tel { display: grid; grid-template-columns: 70px 1fr; gap: 6px; }
.vg-tel .ls-input { height: 38px; }
.vg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.vg-note { background: #f3f4f5; border: 1px solid #e3e5e8; border-radius: 4px; padding: 12px; font-size: 11.5px; color: #4a4f55; line-height: 1.55; margin: 18px 0 16px !important; }
.vg-check { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; margin: 0; }
.vg-check input { width: 15px; height: 15px; accent-color: var(--ls-green); }
.vg-check a { color: var(--ls-green); font-weight: 700; }
.vg-cost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vg-cost label { margin: 0; cursor: pointer; }
.vg-cost input { position: absolute; opacity: 0; pointer-events: none; }
.vg-cost span { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; border: 1.5px solid #e3e5e8; border-radius: 4px; padding: 10px 6px; background: #fafafa; text-align: center; }
.vg-cost svg { width: 70px; height: 56px; }
.vg-cost small { font-size: 10.5px; color: #4a4f55; line-height: 1.35; }
.vg-cost input:checked + span { border-color: var(--ls-green); background: #eef7ea; box-shadow: 0 0 0 3px rgba(47, 106, 48, .12); }
.vg-cost input:focus-visible + span { outline: 2px solid var(--ls-green); outline-offset: 2px; }
.vg-polso { fill: #f1d3bd; stroke: #c99a7a; stroke-width: 1.5; }
.vg-dita { fill: none; stroke: #b07a55; stroke-width: 5; stroke-linecap: round; }
.vg-disclaimer { font-size: 10.5px; color: #6b7076; margin: 18px 0 14px !important; }
.vg-submit { width: 100%; height: 44px; border: 0; border-radius: 4px; background: var(--ls-green); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.vg-submit:hover { background: var(--ls-green-dark); }
.vg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vg-msg { max-width: 640px; margin: 40px auto 0; min-height: 0; padding: 32px; align-items: center; text-align: center; gap: 12px; }
.vg-msg h2 { font-size: 24px !important; font-weight: 800 !important; }
.vg-ok { width: 72px; height: 72px; border-radius: 50%; background: #e3f6dc; color: var(--ls-green); display: inline-flex; align-items: center; justify-content: center; }
.vg-foot { text-align: center; font-size: 12px; color: #6b7076; padding: 28px 16px; margin-top: auto; }
.vg-foot a { color: var(--ls-green); }
@media (max-width: 900px) {
    .vg-cols { grid-template-columns: 1fr; }
    .vg-hero { padding: 18px 16px 24px; }
    .vg-hero h1 { font-size: 24px; }
}

/* Registrazione completata (account in attesa di attivazione) */
.reg-fatto { align-items: center; text-align: center; gap: 14px; padding: 40px 32px; }
.reg-fatto h2 { font-size: 24px; font-weight: 800; margin: 0; }
.reg-fatto p { max-width: 560px; font-size: 15px; line-height: 1.55; color: #3a3f45; margin: 0; }

/* ---------- Logo Hervolving (tondo) ---------- */
.logo-badge { display: block; flex-shrink: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.brand { justify-content: center; align-items: center; height: auto; padding: 22px 16px 6px; }
.brand-logo { display: block; line-height: 0; }
.brand-logo .logo-badge { width: 96px; height: 96px; }
.lg-logo .logo-badge { width: 92px; height: 92px; }
.lg-logo-small .logo-badge, .vg-hero .lg-logo .logo-badge { width: 56px; height: 56px; }
.ap-logo { display: inline-flex; align-items: center; gap: 10px; }
.ap-logo .logo-badge { width: 46px; height: 46px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.logo-con-badge { display: inline-flex; align-items: center; gap: 12px; }
.logo-con-badge .logo-badge { width: 56px; height: 56px; }
@media (max-width: 1000px) {
    .brand { padding: 12px 16px; }
    .brand-logo .logo-badge { width: 52px; height: 52px; }
}

