/* =====================================================================
   LEZUMO — stile applicativo (Bootstrap 5.3 + token di brand)
   ===================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --lz-primary: #3157D5;
  --lz-primary-dark: #2446B5;
  --lz-primary-soft: #E8EDFC;
  --lz-secondary: #19B8A6;
  --lz-secondary-soft: #DDF5F2;
  --lz-navy: #17233C;
  --lz-navy-2: #22304D;
  --lz-bg: #F6F8FC;
  --lz-white: #FFFFFF;
  --lz-line: #E3E8F2;
  --lz-muted: #5B6680;
  --lz-warning: #D98A0B;
  --lz-warning-soft: #FDF1DC;
  --lz-danger: #D64545;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: var(--lz-bg);
  --bs-body-color: var(--lz-navy);
  --bs-primary: #3157D5;
  --bs-primary-rgb: 49, 87, 213;
  --bs-secondary-color: var(--lz-muted);
  --bs-border-color: var(--lz-line);
  --bs-link-color: #3157D5;
  --bs-link-color-rgb: 49, 87, 213;
  --bs-link-hover-color: #2446B5;
  --bs-border-radius: .625rem;
  --bs-focus-ring-color: rgba(49, 87, 213, .3);
}

body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--lz-navy); letter-spacing: -0.015em; font-weight: 700; }
.text-muted { color: var(--lz-muted) !important; }
.tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--lz-primary); outline-offset: 2px; }

/* ---------- Bottoni ---------- */
.btn { font-weight: 600; border-radius: .625rem; padding: .55rem 1rem; }
.btn-sm { padding: .35rem .7rem; border-radius: .5rem; }
.btn-primary { --bs-btn-bg: var(--lz-primary); --bs-btn-border-color: var(--lz-primary); --bs-btn-hover-bg: var(--lz-primary-dark); --bs-btn-hover-border-color: var(--lz-primary-dark); --bs-btn-active-bg: var(--lz-primary-dark); --bs-btn-disabled-bg: var(--lz-primary); --bs-btn-disabled-border-color: var(--lz-primary); }
.btn-teal { --bs-btn-color: #fff; --bs-btn-bg: var(--lz-secondary); --bs-btn-border-color: var(--lz-secondary); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #139c8c; --bs-btn-hover-border-color: #139c8c; --bs-btn-active-bg: #139c8c; --bs-btn-active-color: #fff; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--lz-line); --bs-btn-hover-bg: var(--lz-bg); --bs-btn-hover-border-color: #cfd7e6; }
.btn-soft { background: var(--lz-primary-soft); color: var(--lz-primary); border: 0; }
.btn-soft:hover { background: #dbe3fb; color: var(--lz-primary-dark); }
.btn-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: .625rem; border: 0; background: transparent; color: var(--lz-navy); font-size: 1.25rem; padding: 0; }
.btn-icon:hover { background: var(--lz-bg); }
.form-control, .form-select { border-radius: .625rem; border-color: #CFD7E6; padding: .6rem .8rem; background-color: #fff; color: var(--lz-navy); }
.form-control:disabled, .form-control[readonly] { background-color: #F1F4F9; }
.form-control::placeholder { color: #8A94AB; }
.form-control:focus, .form-select:focus { border-color: var(--lz-primary); box-shadow: 0 0 0 .2rem rgba(49,87,213,.15); }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-text { color: var(--lz-muted); }
.form-check-input:checked { background-color: var(--lz-primary); border-color: var(--lz-primary); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.brand-sm .brand-logo { height: 34px; }
.sidebar-top .brand-logo { height: 50px; max-width: 200px; }
.public-nav .brand-logo { height: 42px; }
@media (max-width: 575.98px) { .public-nav .brand-logo { height: 30px; } .public-nav { padding: .55rem 0; } .public-nav nav { gap: .25rem !important; } .public-nav .btn-sm { white-space: nowrap; padding-left: .55rem; padding-right: .55rem; } }
@media (max-width: 359.98px) { .public-nav .brand-logo { height: 24px; max-width: 96px; } .public-nav .btn-sm { font-size: .8rem; padding-left: .4rem; padding-right: .4rem; } }

/* ---------- Shell applicativa ----------
   Sidebar chiara: il logo (scritta blu notte) resta leggibile e il contrasto dei testi è AA.
   Nota: Bootstrap .offcanvas-lg forza "background-color: transparent !important" da lg in su,
   per questo lo sfondo è impostato con !important. */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { background-color: #fff !important; color: var(--lz-navy); display: flex; flex-direction: column; border-right: 1px solid var(--lz-line); }
@media (min-width: 992px) {
  .app-sidebar { width: 256px; flex: 0 0 256px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .app-sidebar.offcanvas-lg { --bs-offcanvas-width: 284px; --bs-offcanvas-bg: #fff; }
  /* Menu su telefono: altezza reale dello schermo (dvh esclude le barre del browser) e voci
     scorrevoli, così anche le ultime (Acquisti, Guida, Esci) sono sempre raggiungibili */
  .app-sidebar.offcanvas-lg { height: 100vh; height: 100dvh; max-height: 100dvh; }
  .app-sidebar .sidebar-top, .app-sidebar .sidebar-foot { flex-shrink: 0; }
  .app-sidebar .sidebar-nav { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: .75rem; }
  .app-sidebar .sidebar-top { padding-top: calc(1.1rem + env(safe-area-inset-top, 0px)); }
  .app-sidebar .sidebar-foot { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 991.98px) and (max-height: 700px) {
  .app-sidebar .sidebar-link { padding: .5rem .8rem; }
  .app-sidebar .sidebar-foot { padding-top: .6rem; }
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem 1rem; border-bottom: 1px solid var(--lz-line); margin-bottom: .75rem; }
.sidebar-nav { padding: .25rem .75rem; flex: 1; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: .6rem; color: #2B3650; text-decoration: none; font-weight: 500; font-size: .94rem; margin-bottom: 2px; cursor: pointer; transition: background-color .12s, color .12s; }
.sidebar-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; color: #56627E; }
.sidebar-link:hover { background: #EEF2FC; color: var(--lz-primary-dark); }
.sidebar-link:hover i { color: var(--lz-primary); }
.sidebar-link.active { background: var(--lz-primary); color: #fff; font-weight: 600; box-shadow: 0 6px 14px -8px rgba(49,87,213,.7); }
.sidebar-link.active i { color: #fff; }
.sidebar-sep { height: 1px; background: var(--lz-line); margin: .75rem .8rem; }
.sidebar-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--lz-line); }
.sidebar-version { font-size: .75rem; color: #5B6680; margin-top: .5rem; }
.btn-install { background: var(--lz-secondary-soft); color: #0B6B60; border: 0; }
.btn-install:hover { background: #c8efe9; color: #07524a; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; background: rgba(246,248,252,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lz-line); padding-top: max(.75rem, env(safe-area-inset-top)); }
.topbar-title { font-size: 1.15rem; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.plan-chip { font-size: .75rem; font-weight: 700; color: var(--lz-primary); background: var(--lz-primary-soft); border-radius: 999px; padding: .25rem .65rem; text-decoration: none; letter-spacing: .02em; }
@media (max-width: 575.98px) { .plan-chip { display: none; } .app-topbar { padding-left: .75rem; padding-right: .75rem; } }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--lz-navy); color: #fff; font-weight: 700; font-size: .85rem; }
.notif-dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--lz-danger); color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-menu { width: min(360px, 92vw); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block; padding: .7rem 1rem; border-bottom: 1px solid var(--lz-line); text-decoration: none; color: var(--lz-navy); font-size: .875rem; }
.notif-item:hover { background: var(--lz-bg); }
.notif-item.unread { background: #F2F5FE; }
.notif-item .t { font-weight: 600; }
.notif-item .b, .notif-item .d { color: var(--lz-muted); font-size: .8rem; }

.app-content { padding: 1.5rem; max-width: 1280px; width: 100%; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
@media (max-width: 575.98px) { .app-content { padding: 1rem .75rem; } }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }

/* ---------- Superfici ---------- */
.panel { background: #fff; border: 1px solid var(--lz-line); border-radius: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--lz-line); }
.panel-head h2, .panel-head h3 { font-size: 1rem; margin: 0; }
.panel-body { padding: 1.25rem; }
.page-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-intro p { color: var(--lz-muted); margin: 0; max-width: 60ch; }

/* Metriche dashboard */
.metric { background: #fff; border: 1px solid var(--lz-line); border-radius: 14px; padding: 1rem 1.15rem; height: 100%; }
.metric .label { font-size: .8rem; color: #4A5570; font-weight: 600; }
.metric .value { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.metric .sub { font-size: .8rem; color: var(--lz-muted); }
.metric.accent { background: var(--lz-navy); border-color: var(--lz-navy); color: #fff; }
.metric.accent .label, .metric.accent .sub { color: #C5CEE2; }
.metric.accent .value { color: #fff; }
.usage-bar { height: 6px; border-radius: 3px; background: var(--lz-line); overflow: hidden; margin-top: .5rem; }
.usage-bar > span { display: block; height: 100%; background: var(--lz-secondary); border-radius: 3px; }
.usage-bar.full > span { background: var(--lz-warning); }

/* Righe lezione: striscia colore materia (elemento distintivo, come un orario scolastico) */
.lesson-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--lz-line); position: relative; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--subject-color, var(--lz-primary)); }
.lesson-time { min-width: 76px; font-variant-numeric: tabular-nums; }
.lesson-time .h { font-weight: 700; font-size: 1rem; }
.lesson-time .d { font-size: .75rem; color: var(--lz-muted); }
.lesson-main { flex: 1; min-width: 0; }
.lesson-main .who { font-weight: 600; }
.lesson-main .what { font-size: .85rem; color: var(--lz-muted); }
.lesson-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767.98px) {
  .lesson-row { flex-wrap: wrap; }
  .lesson-actions { width: 100%; justify-content: flex-start; padding-left: calc(76px + 1rem); }
}
@media (max-width: 575.98px) { .lesson-actions { padding-left: 0; } }

.status-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.status-pending { background: var(--lz-warning-soft); color: #9A5F00; }
.status-confirmed { background: var(--lz-primary-soft); color: var(--lz-primary-dark); }
.status-completed { background: var(--lz-secondary-soft); color: #0E7C6F; }
.status-cancelled { background: #EEF0F4; color: #5B6478; }
.status-rescheduled { background: #EDE7FB; color: #5A3FB8; }
.status-active { background: var(--lz-secondary-soft); color: #0E7C6F; }
.status-inactive, .status-suspended, .status-expired { background: #EEF0F4; color: #5B6478; }
.status-blocked { background: #FBE4E4; color: #A12C2C; }

.subject-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--subject-color, var(--lz-primary)); margin-right: .4rem; vertical-align: 1px; }

.table-lz { margin: 0; }
.table-lz > :not(caption) > * > * { padding: .75rem 1rem; border-color: var(--lz-line); }
.table-lz thead th { font-size: .75rem; color: var(--lz-muted); font-weight: 600; background: #FAFBFE; }
.table-lz tbody tr:last-child td { border-bottom: 0; }
.amount-due { color: #9A5F00; font-weight: 700; }
.amount-ok { color: #0E7C6F; font-weight: 700; }
.amount-credit { color: var(--lz-primary); font-weight: 700; }

.empty-state { text-align: center; padding: 2.5rem 1.25rem; }
.empty-state i { font-size: 2rem; color: var(--lz-primary); background: var(--lz-primary-soft); width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; }
.empty-state h3 { font-size: 1.05rem; margin: 1rem 0 .35rem; }
.empty-state p { color: var(--lz-muted); max-width: 44ch; margin: 0 auto 1rem; font-size: .92rem; }

.onboarding { background: #fff; border: 1px solid var(--lz-line); border-radius: 14px; padding: 1.25rem; }
.onboarding ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.onboarding li { counter-increment: step; display: flex; align-items: center; gap: .75rem; padding: .55rem 0; }
.onboarding li::before { content: counter(step); width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; background: var(--lz-bg); color: var(--lz-muted); border: 1px solid var(--lz-line); }
.onboarding li.done::before { content: "✓"; background: var(--lz-secondary); color: #fff; border-color: var(--lz-secondary); }
.onboarding li.done span { color: var(--lz-muted); text-decoration: line-through; }

.link-box { display: flex; gap: .5rem; align-items: center; background: var(--lz-bg); border: 1px dashed #C6D0E4; border-radius: .75rem; padding: .5rem .5rem .5rem .9rem; }
.link-box code { color: var(--lz-navy); font-size: .88rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; }

/* Disponibilità: griglia settimanale */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 991.98px) { .week-grid { grid-template-columns: 1fr; } }
.day-col { background: #fff; border: 1px solid var(--lz-line); border-radius: 12px; padding: .75rem; min-height: 120px; }
.day-col h3 { font-size: .85rem; text-transform: capitalize; margin-bottom: .5rem; color: var(--lz-muted); }
.rule-chip { border-radius: 8px; padding: .45rem .55rem; margin-bottom: .4rem; font-size: .8rem; background: var(--lz-primary-soft); border-left: 3px solid var(--subject-color, var(--lz-primary)); }
.rule-chip.off { opacity: .5; }
.rule-chip .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.rule-chip .actions { display: flex; gap: .25rem; margin-top: .25rem; }
.rule-chip .actions button { font-size: .72rem; padding: 0 .3rem; }
/* Affidabilità degli studenti (v95) */
.reliability-pill { cursor: pointer; white-space: nowrap; border: 0; font: inherit; font-size: .75rem; font-weight: 600; line-height: 1.5; }
.reliability-pill:focus-visible { outline: 2px solid var(--lz-primary); outline-offset: 2px; }
.reliability-popover { max-width: 300px; font-size: .85rem; }
.reliability-pill-static { font-size: .75rem; }
.reliability-pill-static.rel-good, .reliability-pill.rel-good { background: #E3F6EE; color: #0B6B4A; }
.reliability-pill-static.rel-watch { background: #FFF3D6; color: #8A5300; }
.reliability-pill-static.rel-poor { background: #FDE5E7; color: #A3162B; }
.reliability-pill-static.rel-new { background: #EEF0F4; color: #5A6478; }
.reliability-hint { margin-top: .3rem; font-size: .8rem; line-height: 1.35; }
.reliability-hint.rel-watch { color: #8A5300; }
.reliability-hint.rel-poor { color: #A3162B; }
.lesson-main .who { display: flex; flex-wrap: wrap; align-items: center; column-gap: .4rem; row-gap: .15rem; }
.reliability-pill.rel-good { background: #E3F6EE; color: #0B6B4A; }
.reliability-pill.rel-watch { background: #FFF3D6; color: #8A5300; }
.reliability-pill.rel-poor { background: #FDE5E7; color: #A3162B; }
.reliability-pill.rel-new { background: #EEF0F4; color: #5A6478; }
.lesson-main .who .reliability-pill { font-size: .72rem; vertical-align: 1px; white-space: normal; text-align: left; max-width: 100%; border-radius: 10px; }
/* Disponibilità per data (v94) */
.avail-mode { display: flex; gap: .75rem; align-items: flex-start; width: 100%; height: 100%; padding: .85rem 1rem; border: 1.5px solid var(--lz-line); border-radius: 14px; background: #fff; color: inherit; text-align: left; }
.avail-mode:hover { border-color: #B9C6EE; background: #FAFBFF; }
.avail-mode.active { border-color: var(--lz-primary); background: var(--lz-primary-soft); cursor: default; }
.avail-mode-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #EEF2FC; color: var(--lz-primary); font-size: 1.15rem; }
.avail-mode.active .avail-mode-icon { background: var(--lz-primary); color: #fff; }
.avd-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.avd-head { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--lz-muted); text-align: center; padding-bottom: .15rem; }
.avd-day { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: .2rem; min-height: 92px; padding: .35rem; border: 1px solid var(--lz-line); border-radius: 10px; background: #fff; color: inherit; text-align: left; font-size: .8rem; overflow: hidden; }
.avd-day .n { font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.avd-day:not([disabled]):hover { border-color: #B9C6EE; background: #FAFBFF; }
.avd-day.out { background: #FAFAFC; }
.avd-day.out .n { color: var(--lz-muted); font-weight: 600; }
.avd-day.past { opacity: .45; cursor: default; }
.avd-day.today .n { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin: -.15rem 0 0 -.15rem; border-radius: 50%; background: var(--lz-primary); color: #fff; }
.avd-day.has { background: #F3FBF8; border-color: #BFE7D9; }
.avd-day.absent { background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(220,53,69,.08) 7px 14px); }
.avd-day.sel { border-color: var(--lz-primary); box-shadow: inset 0 0 0 2px var(--lz-primary); background: #EEF2FC; }
.avd-day.sel::after { content: "\f26a"; font-family: bootstrap-icons; position: absolute; top: .25rem; right: .35rem; color: var(--lz-primary); font-size: .95rem; }
.avd-day:focus-visible { outline: 3px solid rgba(49,87,213,.35); outline-offset: 1px; }
.avd-chip { display: block; padding: .1rem .3rem; border-radius: 6px; background: #fff; border-left: 3px solid var(--subject-color, var(--lz-primary)); font-size: .72rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 1px rgba(23,35,60,.06); }
.avd-more { font-size: .7rem; color: var(--lz-muted); }
.avd-dots { display: none; gap: 3px; }
.avd-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.avd-legend { display: flex; flex-wrap: wrap; gap: 1rem; }
.avd-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; border: 1px solid var(--lz-line); }
.avd-legend .lg-has { background: #F3FBF8; border-color: #BFE7D9; }
.avd-legend .lg-sel { background: #EEF2FC; border-color: var(--lz-primary); }
.avd-legend .lg-abs { background-image: repeating-linear-gradient(135deg, #fff 0 3px, rgba(220,53,69,.25) 3px 6px); }
.avd-bar { position: sticky; bottom: .75rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; padding: .6rem .8rem; border-radius: 12px; background: #17233C; color: #fff; box-shadow: 0 10px 24px rgba(23,35,60,.25); }
.avd-bar .btn-light { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.avd-bar .btn-link { color: #C9D4F5; }
.avd-list li { display: grid; grid-template-columns: 9rem 1fr; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--lz-line); }
.avd-list li.past { opacity: .55; }
.avd-list-day { font-weight: 600; font-size: .9rem; }
@media (max-width: 767.98px) {
  .avd-grid { gap: .2rem; }
  .avd-day { min-height: 54px; padding: .3rem .25rem; align-items: center; text-align: center; }
  .avd-chip, .avd-more { display: none; }
  .avd-dots { display: flex; justify-content: center; }
  .avd-day.sel::after { top: .1rem; right: .15rem; font-size: .75rem; }
  .avd-day.today .n { margin: 0; }
  .avd-list li { grid-template-columns: 1fr; gap: .35rem; }
}

/* Prenotazione: slot */
.day-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.day-tab { flex: 0 0 auto; border: 1px solid var(--lz-line); background: #fff; border-radius: 12px; padding: .5rem .8rem; text-align: center; min-width: 72px; cursor: pointer; }
.day-tab .w { font-size: .72rem; color: var(--lz-muted); text-transform: capitalize; }
.day-tab .n { font-weight: 800; font-size: 1.2rem; }
.day-tab .c { font-size: .7rem; color: var(--lz-secondary); font-weight: 700; }
.day-tab.active { border-color: var(--lz-primary); background: var(--lz-primary); color: #fff; }
.day-tab.active .w, .day-tab.active .c { color: #DCE4FF; }
.day-tab:disabled { opacity: .45; cursor: not-allowed; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.slot-btn { border: 1px solid #C9D4F3; background: #fff; color: var(--lz-primary); font-weight: 700; border-radius: 10px; padding: .6rem .4rem; font-variant-numeric: tabular-nums; }
.slot-btn:hover, .slot-btn:focus-visible { background: var(--lz-primary); color: #fff; border-color: var(--lz-primary); }

/* Calendario (FullCalendar) */
.calendar-wrap { background: #fff; border: 1px solid var(--lz-line); border-radius: 14px; padding: 1rem; }
.fc { --fc-border-color: var(--lz-line); --fc-today-bg-color: #F2F5FE; --fc-button-bg-color: #fff; --fc-button-border-color: var(--lz-line); --fc-button-text-color: var(--lz-navy); --fc-button-hover-bg-color: var(--lz-bg); --fc-button-hover-border-color: #cfd7e6; --fc-button-active-bg-color: var(--lz-primary); --fc-button-active-border-color: var(--lz-primary); --fc-event-border-color: transparent; font-size: .88rem; }
.fc .fc-button { font-weight: 600; border-radius: .5rem; text-transform: none; box-shadow: none !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: #fff; }
.fc .fc-toolbar-title { font-size: 1.15rem; font-weight: 700; text-transform: capitalize; }
.fc-event { cursor: pointer; border-radius: 6px; padding: 1px 3px; }
.fc-event.ev-pending { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); }
.fc-event.ev-cancelled, .fc-event.ev-rescheduled { opacity: .45; text-decoration: line-through; }
.fc .fc-bg-event.ev-availability { background: var(--lz-secondary); opacity: .10; }
@media (max-width: 767.98px) {
  .fc .fc-toolbar { flex-direction: column; gap: .5rem; }
  .fc .fc-toolbar-title { font-size: 1rem; }
}

/* Piani */
.plan-card { background: #fff; border: 1px solid var(--lz-line); border-radius: 16px; padding: 1.4rem; height: 100%; display: flex; flex-direction: column; }
.plan-card.current { border: 2px solid var(--lz-primary); }
.plan-card.highlight { background: var(--lz-navy); color: #fff; border-color: var(--lz-navy); }
.plan-card.highlight h3, .plan-card.highlight .price { color: #fff; }
.plan-card.highlight .text-muted, .plan-card.highlight .feat-soon { color: #AEB9D2 !important; }
.plan-card h3 { font-size: .95rem; letter-spacing: .06em; margin: 0; }
.plan-card .price { font-size: 1.9rem; font-weight: 800; margin: .5rem 0 .15rem; letter-spacing: -0.02em; }
.plan-card ul { list-style: none; padding: 0; margin: 1rem 0; flex: 1; font-size: .9rem; }
.plan-card li { padding: .28rem 0; display: flex; gap: .5rem; }
.plan-card li i { color: var(--lz-secondary); }
.feat-soon { color: var(--lz-muted); font-size: .8rem; }

/* ---------- Pagine pubbliche ---------- */
.public-nav { padding: 1rem 0; background: rgba(246,248,252,.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1020; border-bottom: 1px solid transparent; }
.public-footer { border-top: 1px solid var(--lz-line); padding: 2rem 0; margin-top: 4rem; background: #fff; }
.public-footer a { color: var(--lz-navy); text-decoration: none; }

.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; max-width: 14ch; }
.hero .lead { font-size: 1.15rem; color: #44506B; max-width: 46ch; margin: 1.25rem 0 2rem; }
.hero-claim { font-weight: 600; color: #0F766E; margin-bottom: 1rem; } /* contrasto AA sul fondo chiaro */

/* La "settimana" del docente: elemento visivo del brand */
.timetable { background: #fff; border: 1px solid var(--lz-line); border-radius: 18px; padding: 1rem; box-shadow: 0 30px 60px -30px rgba(23,35,60,.35); }
.timetable-head { display: grid; grid-template-columns: 40px repeat(5, 1fr); gap: 6px; font-size: .72rem; color: var(--lz-muted); font-weight: 600; margin-bottom: 6px; }
.timetable-head span { text-align: center; }
.timetable-body { display: grid; grid-template-columns: 40px repeat(5, 1fr); grid-template-rows: repeat(8, 34px); gap: 6px; }
.tt-hour { font-size: .68rem; color: var(--lz-muted); text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.tt-block { border-radius: 8px; padding: 4px 7px; font-size: .7rem; font-weight: 600; color: #fff; overflow: hidden; line-height: 1.25; }
.tt-block small { display: block; font-weight: 500; }
.tt-free { border: 1px dashed #BFE9E3; background: #F2FBFA; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .tt-block { animation: ttIn .5s ease-out both; }
  .tt-block:nth-child(3n) { animation-delay: .08s; } .tt-block:nth-child(3n+1) { animation-delay: .16s; }
  @keyframes ttIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
}

.section { padding: 4rem 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; }
.section h2.h4 { font-size: 1.5rem; } .section h2.h5 { font-size: 1.25rem; } .section h2.h6 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.flow-step { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--lz-line); }
.flow-step .n { font-weight: 800; color: var(--lz-primary); font-variant-numeric: tabular-nums; min-width: 2rem; }
.flow-step h3 { font-size: 1rem; margin: 0 0 .2rem; }
.flow-step p { margin: 0; color: var(--lz-muted); font-size: .92rem; }
.benefit h3 { font-size: 1rem; margin: .6rem 0 .3rem; }
.benefit p { color: var(--lz-muted); font-size: .93rem; margin: 0; }
.benefit i { font-size: 1.35rem; color: var(--lz-primary); }
.faq .accordion-button { font-weight: 600; }
.faq .accordion-button:not(.collapsed) { background: var(--lz-primary-soft); color: var(--lz-navy); box-shadow: none; }
.cta-band { background: var(--lz-navy); color: #fff; border-radius: 22px; padding: 3rem 2rem; }
.cta-band h2 { color: #fff; }

.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 2rem 0 4rem; }
.auth-card { background: #fff; border: 1px solid var(--lz-line); border-radius: 18px; padding: 2rem; max-width: 460px; width: 100%; margin: 0 auto; }
@media (max-width: 575.98px) { .auth-card { padding: 1.4rem 1.1rem; border-radius: 14px; } }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.25rem; }
.role-switch a { text-align: center; padding: .6rem; border-radius: .625rem; border: 1px solid var(--lz-line); text-decoration: none; color: var(--lz-navy); font-weight: 600; font-size: .9rem; }
.role-switch a.active { border-color: var(--lz-primary); background: var(--lz-primary-soft); color: var(--lz-primary-dark); }

.teacher-hero { background: var(--lz-navy); color: #fff; border-radius: 20px; padding: 2rem; }
.teacher-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
.teacher-avatar { width: 72px; height: 72px; border-radius: 20px; background: var(--lz-secondary); color: #fff; font-size: 1.6rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.legal { max-width: 72ch; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }

.install-steps .step { font-size: .8rem; color: var(--lz-muted); }
.install-steps .step.active { color: var(--lz-primary); font-weight: 700; }
.install-steps .step.done { color: var(--lz-secondary); }

/* ---------- Componenti aggiuntivi v1 ---------- */
.lz-pills { gap: .25rem; }
.lz-pills .nav-link { color: var(--lz-navy); font-weight: 600; font-size: .88rem; border-radius: 999px; padding: .4rem .9rem; white-space: nowrap; background: #fff; border: 1px solid var(--lz-line); }
.lz-pills .nav-link.active { background: var(--lz-navy); border-color: var(--lz-navy); color: #fff; }

.avatar-sm { width: 36px; height: 36px; border-radius: 10px; background: var(--lz-primary-soft); color: var(--lz-primary-dark); font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.avatar-lg { width: 84px; height: 84px; border-radius: 22px; background: var(--lz-secondary); color: #fff; font-weight: 800; font-size: 1.8rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

.subject-card { position: relative; display: block; height: 100%; background: #fff; border: 1px solid var(--lz-line); border-left: 4px solid var(--subject-color, var(--lz-primary)); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; transition: border-color .15s, box-shadow .15s, opacity .15s, background-color .15s; }
.subject-card:hover { border-color: var(--subject-color, var(--lz-primary)); }
/* Materia scelta (v96): bordo spesso e sfondo del colore della materia, spunta "Scelta"; le altre attenuate */
.btn-check:checked + .subject-card { border: 2px solid var(--subject-color, var(--lz-primary)); border-left-width: 7px; padding: calc(.8rem - 1px) calc(1rem - 1px); background: #F3F6FD; background: color-mix(in srgb, var(--subject-color, #3157D5) 10%, #fff); box-shadow: 0 0 0 4px rgba(49,87,213,.14); box-shadow: 0 0 0 4px color-mix(in srgb, var(--subject-color, #3157D5) 22%, transparent), 0 8px 20px rgba(23,35,60,.08); }
.btn-check:checked + .subject-card .subject-name { font-weight: 800 !important; }
.subject-check { display: none; position: absolute; top: .55rem; right: .6rem; align-items: center; gap: .2rem; padding: .1rem .5rem .1rem .35rem; border-radius: 999px; background: var(--subject-color, var(--lz-primary)); color: #fff; font-size: .75rem; font-weight: 700; }
.btn-check:checked + .subject-card .subject-check { display: inline-flex; }
.btn-check:checked + .subject-card .subject-name { padding-right: 5.2rem; }
.subject-choice.has-choice .btn-check:not(:checked) + .subject-card { opacity: .62; }
.subject-choice.has-choice .btn-check:not(:checked) + .subject-card:hover { opacity: 1; }
.limits-list { display: grid; gap: .5rem; }
.limits-row { display: grid; grid-template-columns: 1fr 11rem; gap: .75rem; align-items: center; padding: .45rem .6rem; border: 1px solid var(--lz-line); border-radius: 10px; }
.limits-subject { display: flex; align-items: center; gap: .5rem; font-weight: 600; margin: 0; min-width: 0; }
.limits-subject .subject-dot { flex-shrink: 0; }
@media (max-width: 400px) { .limits-row { grid-template-columns: 1fr; } }
.subject-limits-line { line-height: 1.3; }
.subject-limit { display: inline-block; margin-top: .35rem; font-size: .75rem; font-weight: 600; color: #5A6478; background: #EEF0F4; border-radius: 999px; padding: .1rem .55rem; }
.subject-wait { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border: 2px dashed #C9D4F3; border-radius: 14px; background: #F7F9FE; color: #2B3A66; }
.subject-wait i { font-size: 1.4rem; color: var(--lz-primary); line-height: 1; }
.subject-picked { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .55rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--lz-line); scroll-margin-top: 80px; }
.subject-picked > span:nth-child(2) { flex: 1 1 12rem; min-width: 0; }
.subject-picked-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lz-primary); flex-shrink: 0; }
#subjectStepTitle { scroll-margin-top: 80px; }
.btn-check:focus-visible + .subject-card { outline: 2px solid var(--lz-primary); outline-offset: 2px; }
.booking-summary { border-left: 4px solid var(--lz-primary); background: var(--lz-primary-soft); border-radius: 10px; padding: .8rem 1rem; }

.slot-chip { display: inline-block; font-size: .8rem; font-weight: 600; border: 1px solid #C9D4F3; color: var(--lz-primary); border-radius: 999px; padding: .25rem .7rem; font-variant-numeric: tabular-nums; }

.calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; }
.legend-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.sw-pending { background: repeating-linear-gradient(135deg, var(--lz-primary) 0 3px, #8FA5EA 3px 6px); }
.sw-confirmed { background: var(--lz-primary); }
.sw-unavailable { background: #E7E9EF; border: 1px solid #C7CCD8; }
.sw-extra { background: var(--lz-secondary-soft); border: 1px solid var(--lz-secondary); }
.fc .fc-bg-event.ev-unavailable { background: repeating-linear-gradient(135deg, #E7E9EF 0 6px, #F3F4F7 6px 12px); opacity: .9; }
.fc .fc-bg-event.ev-availability { background: var(--lz-secondary); opacity: .12; }
.teacher-hero .btn-outline-light { border-color: rgba(255,255,255,.4); }

/* Footer pubblico: riga legale */
.footer-legal { font-size: .78rem; color: #5B6680; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--lz-line); }

/* Configurazione (admin) */
.settings-nav .nav-link { color: #2B3650; font-weight: 600; border-radius: .6rem; padding: .55rem .8rem; display: flex; gap: .6rem; align-items: center; }
.settings-nav .nav-link.active { background: var(--lz-primary-soft); color: var(--lz-primary-dark); }
.brand-slot { border: 1px dashed #C9D2E6; border-radius: 12px; padding: 1rem; background: #FAFBFE; height: 100%; }
.brand-preview { height: 110px; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#EEF1F7 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 10px; margin-bottom: .75rem; }
.brand-preview img { max-height: 90px; max-width: 90%; object-fit: contain; }
.system-dl dt { font-weight: 600; color: #4A5570; }
.table-lz thead th { color: #4A5570; }

/* ---------- Landing v3 ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.public-links { gap: 1.4rem; margin-right: 1rem; }
.public-links a { color: #2B3650; text-decoration: none; font-weight: 600; font-size: .92rem; }
.public-links a:hover { color: var(--lz-primary); }
.hero h1 { max-width: 16ch; }
.hero-trust li { color: #2B3650; font-weight: 500; }
.hero-trust i { color: var(--lz-secondary); margin-right: .25rem; }
.section-tight { padding: 2.25rem 0; }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.audience li { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--lz-line); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .92rem; color: #2B3650; }
.audience i { color: var(--lz-primary); }
.audience li:has(> a) { padding: 0; }
.audience a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; color: inherit; text-decoration: none; border-radius: 999px; }
.audience a::after { content: "\F138"; font-family: "bootstrap-icons"; font-size: .8rem; color: var(--lz-primary); }
.audience a:hover, .audience a:focus-visible { background: var(--lz-primary-soft, #EEF2FF); color: var(--lz-primary); }
.compare { display: grid; gap: .75rem; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 575.98px) { .compare-row { grid-template-columns: 1fr; } }
.compare .before, .compare .after { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; font-size: .93rem; }
.compare .before { background: #FBEDED; color: #7A2E2E; }
.compare .before i { color: #C0392B; }
.compare .after { background: var(--lz-secondary-soft); color: #0B5A51; font-weight: 600; }
.compare .after i { color: #0E8C7E; }
.feature-card { background: #fff; border: 1px solid var(--lz-line); border-radius: 16px; padding: 1.25rem; height: 100%; transition: box-shadow .15s, transform .15s; }
.feature-card:hover { box-shadow: 0 16px 34px -22px rgba(23,35,60,.45); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .feature-card:hover { transform: none; } }
.feature-card h3 { font-size: 1.02rem; margin: .8rem 0 .35rem; }
.feature-card p { color: #4A5570; font-size: .92rem; margin: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--lz-primary-soft); color: var(--lz-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: 0 0 auto; }
.soon-box { border: 1px dashed #C9D2E6; border-radius: 14px; padding: 1rem 1.25rem; color: #4A5570; }
.soon-chip { display: inline-flex; gap: .4rem; align-items: center; background: #F2F5FE; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; color: #2B3650; }
.check-list li { display: flex; gap: .6rem; padding: .35rem 0; }
.check-list i { color: var(--lz-secondary); font-size: 1.15rem; line-height: 1.3; }
.phone-mock { max-width: 300px; margin: 0 auto; background: #fff; border: 1px solid var(--lz-line); border-radius: 28px; padding: 1.5rem 1.25rem; box-shadow: 0 30px 60px -30px rgba(23,35,60,.35); }
.pm-title { font-weight: 800; font-size: 1.15rem; }
.pm-sub { color: #5B6680; font-size: .85rem; margin-bottom: 1rem; }
.pm-days, .pm-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: .8rem; }
.pm-days span { border: 1px solid var(--lz-line); border-radius: 10px; text-align: center; font-size: .7rem; color: #5B6680; padding: .35rem 0; }
.pm-days b { display: block; font-size: 1rem; color: var(--lz-navy); }
.pm-days .on { background: var(--lz-primary); border-color: var(--lz-primary); color: #DCE4FF; }
.pm-days .on b { color: #fff; }
.pm-slots span { border: 1px solid #C9D4F3; border-radius: 8px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--lz-primary); padding: .4rem 0; }
.pm-slots .on { background: var(--lz-primary); color: #fff; }
.pm-btn { background: var(--lz-secondary); color: #fff; text-align: center; border-radius: 10px; padding: .6rem; font-weight: 700; }
.plan-card { position: relative; }
.plan-badge { position: absolute; top: -12px; right: 16px; background: var(--lz-secondary); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .2rem .7rem; }
.plan-card.highlight .small { color: #C5CEE2; }
/* Admin: funzionalità disattivate */
tr.feature-off td { opacity: .55; }
tr.feature-off td:last-child, tr.feature-off td:nth-last-child(2) { opacity: 1; }
.plan-card .price small { font-size: .9rem; font-weight: 600; letter-spacing: 0; margin-left: .25rem; opacity: .8; }
.plan-soon { font-size: .8rem; color: #5B6680; margin: -.25rem 0 1rem; line-height: 1.45; }
.plan-card.highlight .plan-soon { color: #C5CEE2; }
.plan-card li.fw-semibold i { color: var(--lz-primary); }
.plan-card.highlight li.fw-semibold i { color: var(--lz-secondary); }
.file-list { max-height: 220px; overflow: auto; padding-left: 1.1rem; }
.log-line { white-space: pre-wrap; word-break: break-word; color: #2B3650; font-size: .78rem; }
.pp-cred { opacity: .6; transition: opacity .15s, border-color .15s; }
.pp-cred.pp-active { opacity: 1; border-color: var(--lz-primary); border-style: solid; background: #fff; }
.btn-paypal { background: #FFC439; color: #111; border: 0; font-weight: 700; }
.btn-paypal:hover, .btn-paypal:focus { background: #F2BA36; color: #111; }

/* ---------- Ringraziamento e riepilogo acquisto ---------- */
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--lz-secondary-soft); color: #0E8C7E; display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.receipt { border: 1px solid var(--lz-line); border-radius: 14px; overflow: hidden; }
.receipt-head { display: flex; justify-content: space-between; padding: 1rem 1.25rem; background: #FAFBFE; border-bottom: 1px solid var(--lz-line); }
.receipt-table th { font-weight: 500; color: #4A5570; width: 42%; padding: .6rem 1.25rem; }
.receipt-table td { padding: .6rem 1.25rem; text-align: right; }
.receipt-total th, .receipt-total td { font-weight: 800; font-size: 1.05rem; color: var(--lz-navy); border-bottom: 0; }
@media print {
  .app-sidebar, .app-topbar, .sidebar-top, .toast-container, .d-print-none { display: none !important; }
  .app-main { margin: 0 !important; }
  body { background: #fff !important; }
  .panel { border: 0 !important; box-shadow: none !important; }
}
.form-switch-lg .form-check-input { width: 2.8em; height: 1.5em; margin-right: .5rem; }
.form-switch-lg .form-check-label { padding-top: .15rem; }
.btn-whatsapp { background: #25D366; color: #fff; font-weight: 700; border: 0; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1EBE5A; color: #fff; }
.btn-whatsapp-soft { background: #E7F9EE; color: #128C4A; border: 1px solid #BFEBD0; }
.btn-whatsapp-soft:hover { background: #25D366; color: #fff; }
.wa-templates .list-group-item { font-size: .9rem; }
.wa-templates .list-group-item.active { background: #E7F9EE; color: #0B5A31; border-color: #BFEBD0; font-weight: 600; }

/* ---------- Guide ---------- */
.guide-toc { position: sticky; top: 84px; }
.guide-toc ol li a { display: flex; gap: .5rem; align-items: center; padding: .3rem .4rem; border-radius: 8px; color: #2B3650; text-decoration: none; font-size: .9rem; }
.guide-toc ol li a:hover { background: #EEF2FC; color: var(--lz-primary); }
.guide-toc ol li a i { color: var(--lz-primary); }
.guide-toc-video { display: flex; gap: .5rem; align-items: center; padding: .45rem .6rem; margin-bottom: .6rem; border-radius: 10px; background: #FFF6E5; color: #7A4B00; font-weight: 600; font-size: .9rem; text-decoration: none; }
.guide-toc-video:hover { background: #FDEBC8; color: #5E3A00; }
/* Video tutorial (v93): pulsante, galleria della guida, finestra */
.btn-guide.btn-tutorial { color: #8A5300; }
.btn-guide.btn-tutorial:hover, .btn-guide.btn-tutorial:focus-visible { background: #FFF6E5; color: #6B4000; }
.tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tutorial-card { border: 1px solid var(--lz-line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.tutorial-card:hover .tutorial-play { transform: scale(1.08); }
.tutorial-play { transition: transform .15s; }
.tutorial-card:hover, .tutorial-card:focus-visible { box-shadow: 0 10px 26px rgba(23,35,60,.12); transform: translateY(-2px); outline: none; }
.tutorial-card:focus-visible { box-shadow: 0 0 0 3px rgba(43,84,214,.35); }
.tutorial-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #17233C, #2B54D6) center / cover no-repeat; display: flex; align-items: flex-end; padding: .7rem; }
.tutorial-thumb-title { color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.2; max-width: 75%; margin: 0 0 2.6rem; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tutorial-play { position: absolute; left: .6rem; bottom: .6rem; width: 42px; height: 42px; border-radius: 50%; background: rgba(242,165,22,.95); color: #17233C; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tutorial-play i { margin-left: 3px; }
.tutorial-dur { position: absolute; right: .5rem; bottom: .5rem; background: rgba(14,21,38,.78); color: #fff; font-size: .75rem; padding: .1rem .45rem; border-radius: 6px; }
.tutorial-body { padding: .7rem .85rem .85rem; }
.tutorial-modal .min-w-0 { min-width: 0; }
.tutorial-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
@media (min-width: 576px) { .tutorial-modal .modal-dialog { max-width: min(1140px, calc(100vw - 2rem), max(480px, calc((100vh - 13rem) * 16 / 9))); } }
@media (max-width: 575.98px) { .tutorial-modal .modal-body { display: flex; align-items: center; } }
.tutorial-keys { max-height: 220px; overflow: auto; }
.tutorial-table td:first-child { min-width: 180px; }
.guide-section { scroll-margin-top: 84px; }
.guide-section:target { box-shadow: 0 0 0 3px rgba(49,87,213,.35); }
/* Pulsante "Guida" nella barra in alto e finestra della guida contestuale */
.btn-guide { display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--lz-line); background: #fff; color: var(--lz-primary); font-weight: 600; font-size: .875rem; white-space: nowrap; }
.btn-guide:hover, .btn-guide:focus-visible { background: #EEF2FC; color: var(--lz-primary); }
.btn-guide i { font-size: 1rem; }
@media (max-width: 575.98px) { .btn-guide { width: 40px; height: 40px; padding: 0; justify-content: center; border: 0; background: transparent; } .btn-guide span { display: none; } .btn-guide i { font-size: 1.2rem; } }
.guide-modal .min-w-0 { min-width: 0; }
.guide-modal .modal-title { overflow-wrap: anywhere; }
.guide-modal-text { overflow-wrap: anywhere; }
.guide-modal-text img { max-width: 100%; height: auto; }
.guide-related { border-top: 1px solid var(--lz-line); margin-top: 1rem; padding-top: 1rem; }
.guide-section h4 { font-size: 1rem; margin: 1rem 0 .4rem; }
.guide-steps { padding-left: 1.3rem; margin-bottom: .75rem; }
.guide-steps li { margin-bottom: .45rem; line-height: 1.55; }
.guide-tip { display: flex; gap: .6rem; border-radius: 12px; padding: .75rem 1rem; margin: .5rem 0; font-size: .92rem; }
.guide-tip i { font-size: 1.1rem; line-height: 1.4; }
.guide-tip-tip { background: var(--lz-secondary-soft); color: #0B5A51; }
.guide-tip-info { background: #EEF2FC; color: #243a7a; }
.guide-formula { margin: .5rem 0; padding: .55rem .8rem; border-radius: 10px; background: #F4F6FB; border: 1px solid var(--lz-line); font-family: var(--bs-font-monospace); font-size: .85rem; overflow-wrap: anywhere; }
.guide-tip-warn { background: #FFF4DB; color: #6B4A00; }
.guide-faq dt { margin-top: .75rem; }
.guide-faq dd { color: #4A5570; margin-bottom: 0; }
@media print { .guide .col-lg-9 { width: 100%; } .guide-section { break-inside: avoid; } }
.sr-list { max-height: 240px; overflow: auto; border: 1px solid var(--lz-line); border-radius: 10px; padding: .5rem .75rem; columns: 2; column-gap: 1.5rem; }
@media (max-width: 575.98px) { .sr-list { columns: 1; } }
.sr-list li { break-inside: avoid; padding: .1rem 0; }

/* ---------- Prima / Con LEZUMO ---------- */
.before-after { display: grid; gap: .6rem; max-width: 980px; }
.ba-head, .ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ba-head > div { font-weight: 800; font-size: .95rem; padding: .35rem 1rem; }
.ba-col-before { color: #9B3434; }
.ba-col-after { color: #0E8C7E; }
.ba-before, .ba-after { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; font-size: .95rem; line-height: 1.45; }
.ba-before { background: #FBEDED; color: #7A2E2E; }
.ba-before i { color: #C0392B; margin-top: .1rem; }
.ba-after { background: var(--lz-secondary-soft); color: #0B5A51; font-weight: 600; }
.ba-after i { color: #0E8C7E; margin-top: .1rem; }
@media (max-width: 575.98px) {
  .ba-head { display: none; }
  .ba-row { grid-template-columns: 1fr; gap: .35rem; margin-bottom: .6rem; }
}
.plan-card li.plan-limit { font-weight: 700; }
.plan-card li.plan-limit i { color: var(--lz-primary); }
.plan-card.highlight li.plan-limit i { color: var(--lz-secondary); }
.ai-text { white-space: pre-wrap; font-size: .95rem; }

/* ---------- Spostamento lezioni trascinando ---------- */
.move-compare { display: flex; align-items: center; gap: 1rem; background: #F6F8FC; border: 1px solid var(--lz-line); border-radius: 12px; padding: .75rem 1rem; }
.move-compare > i { color: var(--lz-primary); font-size: 1.2rem; }
.fc .fc-event.fc-event-draggable { cursor: grab; }
.fc .fc-event-dragging { opacity: .85; box-shadow: 0 8px 24px rgba(15, 30, 70, .25); }

/* ---------- Pagine legali ---------- */
.legal { max-width: 880px; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; scroll-margin-top: 90px; }
.legal li { margin-bottom: .4rem; line-height: 1.6; }
.legal-summary { background: #EEF2FC; border-radius: 14px; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; line-height: 1.6; }
.legal-toc { border: 1px solid var(--lz-line); border-radius: 14px; padding: .75rem 1.25rem; margin-bottom: 1.5rem; }
.legal-toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.2rem; }
.legal-toc li { margin-bottom: .2rem; }
@media (max-width: 575.98px) { .legal-toc ol { columns: 1; } }
.legal-table { font-size: .9rem; }
.legal-table th { background: #F6F8FC; }
.waitlist-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; border: 1px dashed var(--lz-line); border-radius: 12px; padding: .75rem 1rem; font-size: .92rem; }

/* ---------- Report e statistiche ---------- */
.stat-card { background: #fff; border: 1px solid var(--lz-line); border-radius: 14px; padding: .85rem 1rem; }
.chart-wrap { overflow-x: auto; }
.lz-chart { width: 100%; min-width: 320px; height: auto; display: block; }
.lz-chart .lz-grid { stroke: #E6EAF3; stroke-width: 1; }
.lz-chart .lz-axis { font-size: 12px; fill: #6B7591; font-family: inherit; }
.report-card { border: 1px solid var(--lz-line); border-radius: 14px; padding: 1rem; height: 100%; }

/* ---------- Area genitori ---------- */
.acting-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; background: #EEF2FC; border: 1px solid #D5DEF7; border-radius: 12px; padding: .6rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.child-card { border: 1px solid var(--lz-line); border-radius: 16px; padding: 1.1rem; background: #fff; height: 100%; display: flex; flex-direction: column; gap: .6rem; }
.child-card .avatar-lg { width: 48px; height: 48px; border-radius: 14px; background: var(--lz-secondary-soft); color: #0E8C7E; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- Conformità ---------- */
.compliance-table th { width: 32%; font-weight: 600; background: #F6F8FC; font-size: .85rem; }
.compliance-table td { font-size: .88rem; white-space: pre-line; }

/* ---------- Calendario: fasce di disponibilità ---------- */
.fc .fc-bg-event.ev-rule { background: #FFE58A; opacity: .38; }
.sw-rule { background: #FFF1B8; border: 1px solid #F2D56B; }
.hide-rules .fc-bg-event.ev-rule { display: none !important; }
/* Pagina pubblica: materie per gli orari liberi */
.subject-pills .nav-link { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; font-size: .88rem; border: 1px solid var(--lz-line); margin: 0 .35rem .35rem 0; color: inherit; background: #fff; }
.subject-pills .nav-link.active { background: var(--lz-primary); border-color: var(--lz-primary); color: #fff; }
.subject-pills .nav-link.active .subject-dot { box-shadow: 0 0 0 2px #fff; }

/* ---------- Recensioni ---------- */
.stars { color: #F5B301; display: inline-flex; gap: .1rem; font-size: 1rem; vertical-align: -2px; }
.stars.stars-lg { font-size: 1.25rem; }
.review-card { background: #fff; border: 1px solid var(--lz-line); border-radius: 16px; padding: 1.25rem; display: flex; flex-direction: column; }
.review-card blockquote { font-size: 1rem; line-height: 1.6; flex-grow: 1; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.6rem; color: #D6DAE3; cursor: pointer; line-height: 1; padding: .1rem; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #F5B301; }
.star-input input:focus-visible + label { outline: 2px solid var(--lz-primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- Pagina "Per i genitori" ---------- */
.hero.hero-small { padding: 3.5rem 0 3rem; }
.hero.hero-small h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 860px; margin: 0 auto 1rem; }
.feature-card > .bi { font-size: 1.5rem; color: var(--lz-primary); }

/* ---------- Assistente di supporto AI ---------- */
.support-panel { --bs-offcanvas-width: 420px; }
.support-log { overflow-y: auto; background: #F6F8FC; }
.support-msg { display: flex; flex-direction: column; margin-bottom: .75rem; }
.support-msg .bubble { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.support-msg.ai .bubble { background: #fff; border: 1px solid var(--lz-line); align-self: flex-start; border-bottom-left-radius: 4px; }
.support-msg.user .bubble { background: var(--lz-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.support-msg.typing .bubble { color: var(--bs-secondary-color); font-style: italic; }
.support-fb { margin-top: .25rem; }
.support-fb .btn-link { color: var(--bs-secondary-color); }
.support-fb .btn-link.active { color: var(--lz-primary); }
.support-suggest .btn { font-size: .78rem; border-radius: 999px; }

/* ---------- Richieste di assistenza ---------- */
.ticket-thread { background: #F6F8FC; }
.ticket-msg { display: flex; flex-direction: column; margin-bottom: 1rem; }
.ticket-msg .bubble { max-width: 92%; padding: .65rem .85rem; border-radius: 14px; background: #fff; border: 1px solid var(--lz-line); font-size: .93rem; }
.ticket-msg.user { align-items: flex-end; }
.ticket-msg.user .bubble { background: var(--lz-primary); color: #fff; border-color: var(--lz-primary); }
.ticket-msg.staff { align-items: flex-start; }
.ticket-msg.system .bubble { background: transparent; border-style: dashed; color: var(--bs-secondary-color); font-size: .85rem; }
.ticket-msg.internal .bubble { background: #FFF6D6; border-color: #F2D56B; }
.ticket-img { max-width: 220px; max-height: 220px; border-radius: 10px; border: 1px solid var(--lz-line); }

/* ---------- Panoramica amministratore ---------- */
.todo-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: 12px; background: #FFF6E5; border: 1px solid #F3D9A4; color: #6B4A00; text-decoration: none; font-size: .9rem; }
.todo-chip:hover { background: #FFEFCF; color: #4E3600; }
.todo-chip strong { background: #fff; border-radius: 999px; padding: 0 .55rem; min-width: 1.6rem; text-align: center; }
.kpi-delta { font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .05rem .45rem; white-space: nowrap; }
.kpi-delta.up { color: #13795B; background: #E3F6EF; }
.kpi-delta.down { color: #B42318; background: #FDECEC; }
.kpi-delta.flat { color: #5B6478; background: #EEF1F7; }
.metric.accent .kpi-delta { background: rgba(255,255,255,.18); color: #fff; }
.mini-stat { background: #F6F8FC; border-radius: 10px; padding: .45rem .6rem; display: flex; flex-direction: column; height: 100%; }
.mini-stat span { color: var(--bs-secondary-color); font-size: .78rem; }
.mini-stat strong { font-size: 1.05rem; }
.health li { display: block; padding: .4rem 0 .4rem 1.1rem; position: relative; border-bottom: 1px dashed var(--lz-line); }
.health li > .dot { position: absolute; left: 0; top: .78rem; }
.health li:last-child { border-bottom: 0; }
.health .dot, .lz-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.lz-dot { margin-right: .4rem; }
.health .dot.ok { background: #1F9D74; } .health .dot.warn { background: #E39B20; } .health .dot.err { background: #D64545; }
.lz-donut-center { font-size: 20px; font-weight: 800; fill: #17233C; }

/* ---------- Analytics: funnel ---------- */
.funnel-step { position: relative; background: #F6F8FC; border-radius: 10px; height: 42px; overflow: hidden; }
.funnel-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3157D5, #6E8BEA); opacity: .9; border-radius: 10px; }
.funnel-label { position: relative; padding: .55rem .8rem; color: #17233C; font-size: .9rem; mix-blend-mode: normal; text-shadow: 0 0 6px #fff; }
.funnel-rate { font-size: .8rem; color: var(--bs-secondary-color); padding: .25rem 0 .25rem .8rem; }

/* Importi nelle tabelle: niente a capo tra “€” e la cifra */
.table-lz td.tabular, .table-lz th.text-end { white-space: nowrap; }

/* Notifiche push: spiegazione dell errore nella diagnostica */
.push-hint { display: inline-block; margin-top: .25rem; color: var(--bs-body-color); font-size: .875em; }

/* ===================== Blog ===================== */
.blog-hero { background: linear-gradient(180deg, #EEF2FD 0%, rgba(238,242,253,0) 100%); padding: 2rem 0 1rem; }
.blog-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.blog-crumbs a { color: var(--bs-secondary-color); text-decoration: none; }
.blog-crumbs a:hover { text-decoration: underline; }
.blog-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-cats a { padding: .35rem .85rem; border-radius: 999px; border: 1px solid #DCE3F2; background: #fff; color: var(--bs-body-color); text-decoration: none; font-weight: 600; font-size: .9rem; }
.blog-cats a.active, .blog-cats a:hover { background: #1B2440; border-color: #1B2440; color: #fff; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E5E9F2; border-radius: 16px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.blog-card:hover { box-shadow: 0 10px 30px rgba(27,36,64,.08); transform: translateY(-2px); }
.blog-card-img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.blog-card h2 a, .blog-card h3 a { color: var(--bs-body-color); text-decoration: none; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--bs-primary); }
.blog-tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-primary); text-decoration: none; }
.blog-article { max-width: 760px; }
.blog-title { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.blog-cover { margin: 0 0 2rem; }
.blog-cover img { width: 100%; height: auto; border-radius: 16px; }
.blog-content { font-size: 1.1rem; line-height: 1.75; }
.blog-content h2 { font-weight: 800; font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.blog-content h3 { font-weight: 700; font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.blog-content h4 { font-weight: 700; font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.blog-content p, .blog-content ul, .blog-content ol { margin-bottom: 1.1rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-content figure { margin: 1.6rem 0; }
.blog-content figcaption { font-size: .9rem; color: var(--bs-secondary-color); text-align: center; margin-top: .4rem; }
.blog-content blockquote { border-left: 4px solid var(--bs-primary); background: #F6F8FC; padding: .9rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.4rem 0; }
.blog-content blockquote p:last-child { margin-bottom: 0; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 1rem; display: block; overflow-x: auto; }
.blog-content th, .blog-content td { border: 1px solid #E5E9F2; padding: .5rem .75rem; text-align: left; }
.blog-content th { background: #F6F8FC; }
.blog-content pre { background: #1B2440; color: #fff; padding: 1rem; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
/* Articoli: titoli raggiungibili dall indice (sotto la barra in alto), testo e blocchi leggibili anche sul telefono */
.blog-content h2, .blog-content h3 { scroll-margin-top: 90px; }
.blog-content > :first-child { margin-top: 0; }
.blog-content a:not(.btn):not(.lz-button) { text-underline-offset: 3px; }
.blog-content hr { margin: 2.2rem auto; width: 80px; border-top: 3px solid #DCE3F2; opacity: 1; }
.blog-content details { margin: .6rem 0; }
.blog-content .row { margin-bottom: 1rem; }
.blog-content .card, .blog-content .alert { margin: 1.4rem 0; }
.blog-content .bi { line-height: 1; }
/* Riquadri pronti (menu Blocchi dell editor) */
.lz-box { position: relative; margin: 1.6rem 0; padding: 1rem 1.2rem 1rem 3.2rem; border-radius: 14px; border-left: 4px solid var(--lz-box-c, #3157D5); background: var(--lz-box-bg, #EEF2FC); font-size: 1rem; line-height: 1.65; }
.lz-box::before { font-family: "bootstrap-icons"; position: absolute; left: 1.05rem; top: 1rem; font-size: 1.35rem; line-height: 1.2; color: var(--lz-box-c, #3157D5); content: var(--lz-box-i, "\f431"); }
.lz-box > :last-child, .lz-col > :last-child { margin-bottom: 0; }
.lz-box ul, .lz-box ol { padding-left: 1.2rem; }
.lz-box-title { font-weight: 800; margin-bottom: .3rem !important; color: #1B2440; font-size: 1.02rem; }
.lz-tip { --lz-box-c: #0E8A6E; --lz-box-bg: #E8F7F2; --lz-box-i: "\f46b"; }
.lz-info { --lz-box-c: #3157D5; --lz-box-bg: #EEF2FC; --lz-box-i: "\f431"; }
.lz-warn { --lz-box-c: #B7791F; --lz-box-bg: #FFF6E0; --lz-box-i: "\f33b"; }
.lz-error { --lz-box-c: #C53030; --lz-box-bg: #FDECEC; --lz-box-i: "\f33b"; }
.lz-example { --lz-box-c: #6B46C1; --lz-box-bg: #F3EEFC; --lz-box-i: "\f262"; }
.lz-summary { --lz-box-c: #1B2440; --lz-box-bg: #F2F4F8; --lz-box-i: "\f270"; }
.lz-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .6rem; vertical-align: middle; }
.lz-dot-tip { background: #0E8A6E; } .lz-dot-info { background: #3157D5; } .lz-dot-warn { background: #B7791F; } .lz-dot-error { background: #C53030; } .lz-dot-example { background: #6B46C1; } .lz-dot-summary { background: #1B2440; }
.lz-steps { list-style: none; counter-reset: lzs; padding-left: 0 !important; margin: 1.4rem 0; }
.lz-steps > li { counter-increment: lzs; position: relative; padding: 0 0 .9rem 2.9rem; margin: 0; min-height: 2rem; }
.lz-steps > li::before { content: counter(lzs); position: absolute; left: 0; top: .05rem; width: 2rem; height: 2rem; border-radius: 50%; background: #3157D5; color: #fff; font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.lz-steps > li:not(:last-child)::after { content: ""; position: absolute; left: .97rem; top: 2.3rem; bottom: .15rem; width: 2px; background: #DCE3F2; }
.lz-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.lz-col { border-radius: 14px; padding: 1rem 1.2rem; background: #F6F8FC; border: 1px solid #E5E9F2; font-size: 1rem; }
.lz-col ul { padding-left: 1.1rem; }
.lz-col-before { background: #FDF2F2; border-color: #F6D5D5; }
.lz-col-after { background: #EAF8F3; border-color: #C9EBDD; }
.lz-faq { border: 1px solid #E5E9F2; border-radius: 12px; background: #fff; margin: .7rem 0 !important; }
.lz-faq > summary { cursor: pointer; list-style: none; padding: .85rem 2.6rem .85rem 1rem; font-weight: 700; position: relative; }
.lz-faq > summary::-webkit-details-marker { display: none; }
.lz-faq > summary::after { font-family: "bootstrap-icons"; content: "\f282"; position: absolute; right: 1rem; top: .9rem; transition: transform .15s; color: #3157D5; }
.lz-faq[open] > summary::after { transform: rotate(180deg); }
.lz-faq > :not(summary) { padding: 0 1rem; }
.lz-faq > :last-child { padding-bottom: .9rem; margin-bottom: 0; }
.lz-highlight { font-size: 1.25rem; font-weight: 700; line-height: 1.45; color: #1B2440; border-left: 4px solid #3157D5; padding: .2rem 0 .2rem 1.1rem; margin: 1.8rem 0 !important; }
.lz-cta { text-align: center; margin: 1.8rem 0 !important; }
.lz-button { display: inline-block; padding: .75rem 1.6rem; border-radius: 999px; background: #3157D5; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.lz-button:hover { background: #2446B8; }
/* Indice dell articolo e barra di lettura */
.blog-toc { margin: 0 0 1.8rem; }
.blog-toc details { border: 1px solid #E5E9F2; border-radius: 14px; background: #F6F8FC; }
.blog-toc summary { cursor: pointer; list-style: none; padding: .85rem 1.1rem; font-weight: 700; display: flex; align-items: center; }
.blog-toc summary::-webkit-details-marker { display: none; }
.blog-toc summary::after { font-family: "bootstrap-icons"; content: "\f282"; margin-left: auto; transition: transform .15s; color: #3157D5; }
.blog-toc details[open] summary::after { transform: rotate(180deg); }
.blog-toc-n { font-weight: 500; font-size: .85rem; color: var(--bs-secondary-color); margin-left: .5rem; }
.blog-toc ol { margin: 0; padding: 0 1.2rem 1rem 2.6rem; }
.blog-toc li { margin: .3rem 0; }
.blog-toc a { color: #2B3650; text-decoration: none; }
.blog-toc a:hover { color: var(--bs-primary); text-decoration: underline; }
.blog-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1030; pointer-events: none; }
.blog-progress span { display: block; height: 100%; background: #3157D5; transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 575.98px) {
  .blog-content { font-size: 1.04rem; line-height: 1.7; }
  .blog-content h2 { font-size: 1.38rem; margin-top: 1.9rem; }
  .blog-content h3 { font-size: 1.16rem; }
  .blog-content p, .blog-content ul, .blog-content ol { margin-bottom: 1rem; }
  .lz-box { padding: .9rem 1rem .9rem 2.8rem; }
  .lz-box::before { left: .85rem; top: .9rem; font-size: 1.2rem; }
  .lz-compare { grid-template-columns: 1fr; }
  .lz-highlight { font-size: 1.12rem; }
  .blog-content .p-4, .blog-content .p-5 { padding: 1rem 1.1rem !important; }
  .blog-content .gap-3, .blog-content .gap-4 { gap: .75rem !important; }
  .blog-content .fs-1 { font-size: 1.6rem !important; }
}
.blog-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.6rem 1.8rem; border-radius: 20px; background: linear-gradient(135deg, #3157D5, #1B2440); color: #fff; }
.blog-cta h2 { color: #fff; font-weight: 800; }
.blog-cta p { color: rgba(255,255,255,.85); max-width: 520px; }

/* Editor degli articoli (Admin) */
.blog-editor-bar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border: 1px solid #DCE3F2; border-bottom: 0; border-radius: 10px 10px 0 0; background: #F6F8FC; }
.blog-editor-bar button { border: 0; background: transparent; padding: .3rem .55rem; border-radius: 6px; font-weight: 600; }
.blog-editor-bar button:hover, .blog-editor-bar button.active { background: #E3E9FB; }
.blog-editor { min-height: 420px; max-height: 70vh; overflow-y: auto; border: 1px solid #DCE3F2; border-radius: 0 0 10px 10px; padding: 1rem 1.2rem; background: #fff; }
.blog-editor:focus { outline: 2px solid rgba(49,87,213,.35); }
.serp-preview { font-family: arial, sans-serif; border: 1px solid #E5E9F2; border-radius: 10px; padding: .8rem 1rem; background: #fff; }
.serp-preview .t { color: #1a0dab; font-size: 1.1rem; line-height: 1.3; }
.serp-preview .u { color: #006621; font-size: .85rem; }
.serp-preview .d { color: #545454; font-size: .9rem; }

/* Lezioni completate: stato del pagamento */
.pay-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pay-paid { background: #E3F6EC; color: #157347; }
.pay-due { background: #FDE8E8; color: #B42318; }
.pay-partial { background: #FFF1DB; color: #9A5B00; }
.pay-package { background: #E7EEFF; color: #2849B8; }
.pay-filter { padding: .25rem .8rem; border-radius: 999px; border: 1px solid #DCE3F2; color: var(--bs-body-color); text-decoration: none; font-weight: 600; background: #fff; }
.pay-filter.active, .pay-filter:hover { background: #1B2440; border-color: #1B2440; color: #fff; }

/* Blog: tag dell articolo */
.blog-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.blog-tags a { padding: .2rem .7rem; border-radius: 999px; background: #EEF2FD; color: #2849B8; text-decoration: none; font-size: .85rem; font-weight: 600; }
.blog-tags a:hover { background: #3157D5; color: #fff; }
/* Editor: controllo SEO */
.seo-check { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.seo-check li { display: flex; gap: .4rem; align-items: flex-start; padding: .15rem 0; }
.seo-check .ok { color: #157347; } .seo-check .ko { color: #B45309; }
.tag-suggest button { border: 1px solid #DCE3F2; background: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .78rem; margin: 0 .25rem .25rem 0; }
.tag-suggest button:hover { background: #EEF2FD; }
/* Admin › Social */
.min-w-0 { min-width: 0; }
.social-post .panel-head > div:first-child { flex: 1 1 220px; }
.social-preview, .social-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.social-preview { white-space: normal; }
@media (max-width: 575.98px) { .social-post .panel-head > div:last-child { text-align: left !important; } }
/* Pulsanti PayPal e carta nella pagina (SDK di PayPal) */
.pp-buttons { display: flex; flex-direction: column; gap: .5rem; min-height: 50px; }
.pp-btn { width: 100%; }
.pp-btn.pp-disabled { pointer-events: none; opacity: .5; }
.pp-status { padding: .25rem 0; }

/* ===== Pagine di settore (/per/…) ===== */
.lp-crumbs { font-size: .85rem; color: var(--lz-muted); margin-bottom: .75rem; }
.lp-crumbs a { color: inherit; }
.lp-crumbs span[aria-current] { color: #2B3650; font-weight: 600; }
.lp-hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
.lp-pains { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.lp-pains li { background: #fff; border: 1px solid var(--lz-line); border-left: 4px solid #C0392B; border-radius: 12px; padding: .9rem 1rem; color: #3A4560; line-height: 1.45; }
.lp-feature .lp-example { margin-top: .6rem !important; font-size: .88rem; color: #0B5A51 !important; background: var(--lz-secondary-soft); border-radius: 10px; padding: .5rem .7rem; }
.lp-faq { max-width: 820px; }
.lp-faq-item { border-bottom: 1px solid var(--lz-line); padding: 1.1rem 0; }
.lp-faq-item:last-child { border-bottom: 0; }
.lp-faq-item h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.lp-faq-item p { margin: 0; color: #4A5570; }
.lp-others { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.lp-others a { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--lz-line); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .92rem; color: #2B3650; text-decoration: none; }
.lp-others a:hover, .lp-others a:focus-visible { border-color: var(--lz-primary); color: var(--lz-primary); }
.lp-others i { color: var(--lz-primary); }
.lp-preview-bar { background: #FFF4D6; color: #6B4E00; text-align: center; font-size: .9rem; padding: .5rem 1rem; }
/* Editor delle pagine di settore */
.lp-rows .lp-row { border: 1px solid var(--lz-line); border-radius: 12px; padding: .75rem; background: #fff; }
.lp-rows .lp-row + .lp-row { margin-top: .6rem; }
.lp-row-tools { display: flex; gap: .25rem; justify-content: flex-end; }

/* ---------- Admin › SEO e GEO (v88) ---------- */
.seo-intro { max-width: 760px; }
.seo-ring-n { font-size: 34px; font-weight: 800; fill: #16213E; }
.seo-ring-of { font-size: 11px; fill: #5B6680; }
.seo-cat + .seo-cat { margin-top: .85rem; }
.seo-delta { display: inline-flex; align-items: center; font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; }
.seo-delta.up { color: #157347; }
.seo-delta.down { color: #B02A37; }
.seo-fix { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1.15rem; border-top: 1px solid var(--lz-line); }
.seo-fixes > .seo-fix:first-child { border-top: 0; }
.seo-gain { flex: 0 0 auto; min-width: 3.4rem; text-align: center; border-radius: 999px; padding: .2rem .5rem; font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; background: #EEF1F7; color: #3B4663; }
.seo-gain.high { background: #FBE3E5; color: #8E1E2A; }
.seo-gain.mid { background: #FFF1D6; color: #7A4E00; }
.seo-fix > .flex-grow-1 { flex: 1 1 0; }
.seo-fix-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.seo-items summary, .seo-more summary { cursor: pointer; color: var(--lz-primary, #3157D5); }
.seo-items ul { padding-left: 1.1rem; margin-top: .25rem; }
.seo-more { border-top: 1px solid var(--lz-line); }
.seo-more > summary { padding: .65rem 1.15rem; }
.seo-group { border-top: 1px solid var(--lz-line); }
.seo-group > summary { display: flex; align-items: center; gap: .5rem; padding: .8rem 1.15rem; cursor: pointer; font-weight: 600; list-style: none; }
.seo-group > summary::-webkit-details-marker { display: none; }
.seo-group > summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .8rem; color: #5B6680; transition: transform .15s; }
.seo-group[open] > summary::after { transform: rotate(180deg); }
.seo-st { width: 2.25rem; font-size: 1.15rem; }
.seo-ok { color: #198754; }
.seo-warn { color: #C98A00; }
.seo-fail { color: #DC3545; }
.seo-na { color: #8A93A8; }
.seo-hist { width: 100%; height: auto; display: block; }
.seo-hist .grid { stroke: #E6EAF2; stroke-width: 1; }
.seo-hist .ax { font-size: 11px; fill: #5B6680; }
.seo-hist .line { fill: none; stroke: #3157D5; stroke-width: 2.5; stroke-linejoin: round; }
.seo-hist .dot { fill: #fff; stroke: #3157D5; stroke-width: 2; }
.seo-pages > summary { cursor: pointer; list-style: none; }
.seo-pages > summary::-webkit-details-marker { display: none; }
@media (max-width: 575.98px) {
  .seo-fix { flex-wrap: wrap; padding: .85rem 1rem; }
  .seo-fix-actions { flex-direction: row; width: 100%; justify-content: flex-end; }
}

/* ---------- Chi siamo e contatti (v89) ---------- */
.about-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .about-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.about-text p { font-size: 1.05rem; line-height: 1.7; }
.about-facts { background: var(--lz-primary-soft); border-radius: 16px; padding: 1.4rem 1.5rem; }
.about-facts li { display: flex; gap: .7rem; align-items: flex-start; margin: .7rem 0; }
.about-facts i { color: var(--lz-primary); font-size: 1.15rem; line-height: 1.4; }
.about-avatar { flex: 0 0 auto; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--lz-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.contact-card { display: flex; gap: .85rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--lz-line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.contact-card:hover, .contact-card:focus-visible { border-color: var(--lz-primary); box-shadow: 0 4px 14px rgba(49, 87, 213, .12); }
.contact-card i { font-size: 1.35rem; color: var(--lz-primary); }
.contact-card > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.contact-card > span > span { font-size: .9rem; color: #4A5570; }
.about-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; }
.about-dl dt { font-weight: 600; color: #4A5570; }
.about-dl dd { margin: 0; overflow-wrap: anywhere; }
.hero.hero-small.about-hero h1 { margin: 0 0 1rem; max-width: none; }
/* Chi siamo / Contatti separati (v90) */
.about-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border: 1px solid var(--lz-line); border-radius: 16px; background: var(--lz-primary-soft); }
.contact-quick { display: grid; gap: .75rem; }
.contact-quick-item { background: #fff; border: 1px solid var(--lz-line); border-radius: 14px; padding: .9rem 1.1rem; }
/* Admin › Email (v91) */
.email-bar { position: relative; height: 10px; border-radius: 999px; background: #E6EAF2; overflow: visible; }
.email-bar .fill { height: 100%; border-radius: 999px; }
.email-bar .reserve { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #16213E; opacity: .55; }
.email-chips { display: flex; flex-wrap: wrap; gap: .3rem; }

/* ---------- Video di presentazione (home) ---------- */
.promo-video { max-width: 1040px; }
.promo-video-frame { position: relative; width: 100%; max-width: 100%; border-radius: 18px; overflow: hidden; background: #0E1526; box-shadow: 0 24px 60px rgba(23, 35, 60, .18), 0 0 0 1px rgba(23, 35, 60, .06); }
.promo-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0E1526; }
.promo-video-v { display: none; }
@media (max-width: 767.98px) and (orientation: portrait) {
  .promo-video-section .promo-video-h { display: none; }
  .promo-video-section .promo-video-v { display: block; width: auto; height: min(78vh, 720px); max-width: 100%; margin: 0 auto; }
}
.promo-video-section { padding-top: 2.5rem; }

/* Admin › Video */
.video-slot { border: 1px solid var(--lz-line); border-radius: 14px; padding: 1rem; background: #fff; }
.video-slot-preview video, .video-slot-preview img { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; background: #0E1526; }
.video-slot-preview.is-vertical video, .video-slot-preview.is-vertical img { width: auto; max-width: 100%; height: 360px; max-height: none; margin: 0 auto; }
.video-slot .video-file { max-width: 340px; }

/* v100 · Link brevi (Admin › Analytics) */
.sl-table .sl-code { font-size: .95rem; }
.sl-table .sl-dest { min-width: 260px; max-width: 520px; }
.sl-utm { display: inline-block; margin: 0 .5rem .15rem 0; padding: 0 .4rem; border-radius: 6px; background: #EEF2FB; color: #33415C; }
.sl-table tr.sl-new > td { background: #FFF7E0; }
.sl-table tr.sl-off > td { opacity: .65; }
.sl-prefix { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sl-code-group .input-group-text { font-size: .85rem; padding-top: 0; padding-bottom: 0; }
.sl-last-label { display: none; }
@media (max-width: 767.98px) {
  .sl-table thead { display: none; }
  .sl-table, .sl-table tbody, .sl-table tr, .sl-table td { display: block; width: 100%; }
  .sl-table tr { position: relative; padding: .8rem 1rem; border-bottom: 1px solid #E3E8F2; }
  .sl-table td { border: 0 !important; padding: .15rem 0 !important; text-align: left !important; background: transparent !important; }
  .sl-table .sl-dest { min-width: 0; max-width: none; padding-right: 0 !important; }
  .sl-table td:first-child { padding-right: 3rem !important; white-space: normal !important; word-break: break-all; }
  .sl-table td.sl-clicks, .sl-table td.sl-last { display: inline-block; width: auto; margin-right: 1rem; vertical-align: top; }
  .sl-table td.sl-clicks::before { content: "Clic: "; font-weight: 400; }
  .sl-table td.sl-last .sl-last-label { display: inline; }
  .sl-table td.sl-last div { display: inline; margin-left: .35rem; }
  .sl-table td.sl-act { position: absolute; top: .8rem; right: 1rem; width: auto; }
  .sl-table tr.sl-new { background: #FFF7E0; }
}
