/* ============================================================
   CyberZec — AREA E-LEARNING (chrome header/footer dedicato)
   Caricato SOLO sulle superfici Tutor (dashboard, login, corso,
   lezione, quiz, archivio, registrazione, cart, checkout).
   Replica l'header/footer del redesign con navigazione studente.
   Satoshi è già importato da tutor-custom.css.
   ============================================================ */
:root{
  --el-dark:#161616;
  --el-foot:#101010;
  --el-orange:#E8610A;
  --el-orange-2:#ff7a26;
  --el-orange-soft:rgba(232,97,10,.12);
  --el-line:rgba(255,255,255,.14);
  --el-max:1180px;
  --el-sans:"Satoshi","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --el-ease:cubic-bezier(.16,1,.3,1);
}

/* ---------- HEADER ---------- */
header.cz-el-header{position:sticky;top:0;z-index:9990;background:var(--el-dark);border-bottom:1px solid var(--el-line);font-family:var(--el-sans)}
header.cz-el-header *{box-sizing:border-box}
header.cz-el-header .nav{max-width:var(--el-max);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:15px 24px;gap:18px}
header.cz-el-header .logo{font-weight:900;font-size:23px;letter-spacing:-.03em;color:#fff;display:flex;align-items:center;gap:9px;text-decoration:none}
header.cz-el-header .logo .dot{width:10px;height:10px;border-radius:50%;background:var(--el-orange);box-shadow:0 0 0 4px var(--el-orange-soft)}
header.cz-el-header .logo span{color:var(--el-orange)}
header.cz-el-header .menu{display:flex;gap:28px;align-items:center}
header.cz-el-header .menu a{font-size:15.5px;font-weight:500;color:#C9CDD4;text-decoration:none;transition:color .15s;position:relative}
header.cz-el-header .menu a:not(.nav-cta)::after{content:"";position:absolute;left:0;bottom:-6px;height:2px;width:0;background:var(--el-orange);transition:width .25s var(--el-ease)}
header.cz-el-header .menu a:not(.nav-cta):hover{color:#fff}
header.cz-el-header .menu a:not(.nav-cta):hover::after{width:100%}
header.cz-el-header .menu .nav-cta{background:var(--el-orange);color:#fff;font-weight:700;padding:10px 20px;border-radius:10px;transition:transform .15s var(--el-ease),box-shadow .2s}
header.cz-el-header .menu .nav-cta:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(232,97,10,.35)}
/* utente loggato: avatar + nome */
header.cz-el-header .cz-el-user{display:flex;align-items:center;gap:9px;color:#C9CDD4;font-size:15px;font-weight:600}
header.cz-el-header .cz-el-user img{width:30px;height:30px;border-radius:50%;object-fit:cover;border:1px solid var(--el-line)}
header.cz-el-header .burger{display:none;background:none;border:0;cursor:pointer;padding:4px}
header.cz-el-header .burger span{display:block;width:26px;height:2px;background:#fff;margin:5px 0;transition:.2s}

/* ---------- FOOTER ---------- */
footer.cz-el-footer{background:var(--el-foot);color:#9CA3AF;padding:56px 24px 32px;border-top:1px solid var(--el-line);font-family:var(--el-sans)}
footer.cz-el-footer .foot{max-width:var(--el-max);margin:0 auto;display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;align-items:flex-start}
footer.cz-el-footer .logo{font-weight:900;font-size:22px;letter-spacing:-.03em;color:#fff;display:flex;align-items:center;gap:9px;text-decoration:none;margin-bottom:6px}
footer.cz-el-footer .logo .dot{width:9px;height:9px;border-radius:50%;background:var(--el-orange)}
footer.cz-el-footer .logo span{color:var(--el-orange)}
footer.cz-el-footer .foot-links{display:flex;gap:26px;flex-wrap:wrap}
footer.cz-el-footer .foot-links a{font-size:15.5px;color:#C2C6CE;text-decoration:none;transition:color .15s}
footer.cz-el-footer .foot-links a:hover{color:#fff}
footer.cz-el-footer .foot-info{max-width:var(--el-max);margin:36px auto 0;padding-top:24px;border-top:1px solid var(--el-line);display:flex;flex-wrap:wrap;gap:8px 26px;font-size:13.5px;color:#8A8F9A}
footer.cz-el-footer .foot-info strong{color:#D8DCE2}
footer.cz-el-footer .foot-info a{color:#B6BAC2;text-decoration:none}
footer.cz-el-footer .foot-info a:hover{color:#fff}
footer.cz-el-footer .foot-legal{max-width:var(--el-max);margin:14px auto 0;display:flex;gap:20px;flex-wrap:wrap}
footer.cz-el-footer .foot-legal a{font-size:13.5px;color:#8A8F9A;text-decoration:none;transition:color .15s}
footer.cz-el-footer .foot-legal a:hover{color:#fff}

/* ---------- contenuto Tutor: un filo di respiro ---------- */
body.cz-elearning #wrapper{background:#fff}
body.cz-elearning .tutor-wrap,
body.cz-elearning .tutor-dashboard,
body.cz-elearning .tutor-course-archive-wrap{max-width:var(--el-max);margin-left:auto;margin-right:auto}

/* ---------- MOBILE ---------- */
@media(max-width:860px){
  header.cz-el-header .burger{display:block}
  header.cz-el-header .menu{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;gap:0;background:var(--el-dark);border-bottom:1px solid var(--el-line);padding:8px 0}
  header.cz-el-header .menu.open{display:flex}
  header.cz-el-header .nav{position:relative}
  header.cz-el-header .menu a:not(.nav-cta){padding:14px 24px;width:100%}
  header.cz-el-header .menu a:not(.nav-cta)::after{display:none}
  header.cz-el-header .menu .nav-cta{margin:10px 24px;text-align:center;justify-content:center}
  header.cz-el-header .cz-el-user{padding:12px 24px;width:100%;border-top:1px solid var(--el-line)}
  footer.cz-el-footer .foot{gap:28px}
}

/* ============================================================
   CZ — Restyle moderno DASHBOARD studente (2026-07-01)
   Solo estetica: card, sidebar, stat-icons, avatar, progress.
   La funzionalita' Tutor resta intatta.
   ============================================================ */

/* Card base: niente bordo grigio piatto, angoli morbidi + ombra + hover */
body.cz-elearning .tutor-card{
  border:1px solid #EEF0F2 !important;
  border-radius:16px !important;
  box-shadow:0 2px 12px rgba(20,20,20,.05) !important;
  background:#fff !important;
  transition:transform .18s var(--el-ease), box-shadow .22s, border-color .22s !important;
}
body.cz-elearning .tutor-frontend-dashboard-maincontent .tutor-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(232,97,10,.10) !important;
  border-color:rgba(232,97,10,.32) !important;
}

/* Stat-card: chip icona tondo pieno col gradiente brand */
body.cz-elearning .tutor-round-box{
  width:64px !important; height:64px !important;
  background:linear-gradient(135deg,var(--el-orange-2),var(--el-orange)) !important;
  box-shadow:0 8px 18px rgba(232,97,10,.28) !important;
  border:none !important;
}
body.cz-elearning .tutor-round-box i,
body.cz-elearning .tutor-round-box [class*="tutor-icon"]{ color:#fff !important; }

/* Sidebar come card, voci a pill arrotondate */
body.cz-elearning .tutor-dashboard-permalinks{
  background:#fff !important; border:1px solid #EEF0F2 !important;
  border-radius:16px !important; box-shadow:0 2px 12px rgba(20,20,20,.05) !important;
  padding:10px !important; overflow:hidden;
}
body.cz-elearning .tutor-dashboard-menu-item{ border:none !important; }
body.cz-elearning .tutor-dashboard-menu-item-link{
  border-radius:10px !important; margin:2px 0 !important; padding:11px 14px !important;
  font-weight:600 !important; border:none !important;
  transition:background .15s, color .15s;
}
body.cz-elearning .tutor-dashboard-menu-item:not(.active) .tutor-dashboard-menu-item-link:hover{
  background:rgba(232,97,10,.10) !important; color:var(--el-orange) !important;
}
body.cz-elearning .tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link{
  background:linear-gradient(135deg,var(--el-orange-2),var(--el-orange)) !important;
  color:#fff !important; box-shadow:0 6px 16px rgba(232,97,10,.30) !important;
}
body.cz-elearning .tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-icon{ color:#fff !important; }

/* Avatar saluto: gradiente coerente */
body.cz-elearning .tutor-avatar-text{
  background:linear-gradient(135deg,var(--el-orange-2),var(--el-orange)) !important;
  box-shadow:0 8px 22px rgba(232,97,10,.30) !important; font-weight:800 !important;
}

/* Progress bar arrotondata col gradiente */
body.cz-elearning .tutor-progress-bar{ border-radius:999px !important; height:9px !important; background:#F0F1F3 !important; }
body.cz-elearning .tutor-progress-value,
body.cz-elearning .tutor-progress-bar>span{ border-radius:999px !important; background:linear-gradient(90deg,var(--el-orange-2),var(--el-orange)) !important; }

/* ============================================================
   CZ — Pagina LOGIN (corsisti) + MENU MOBILE in basso (2026-07-01)
   ============================================================ */

/* --- LOGIN: form dentro una card, input curati --- */
body.cz-elearning .tutor-login-form-wrapper{
  max-width:460px; margin:32px auto; background:#fff;
  border:1px solid #EEF0F2; border-radius:18px;
  box-shadow:0 8px 30px rgba(20,20,20,.07); padding:36px 32px;
}
body.cz-elearning .tutor-login-form-wrapper .tutor-form-control{
  border:1px solid #E0E3E8 !important; border-radius:10px !important;
  padding:13px 14px !important; font-size:15px !important; background:#fff !important;
  transition:border-color .15s, box-shadow .15s;
}
body.cz-elearning .tutor-login-form-wrapper .tutor-form-control:focus{
  border-color:var(--el-orange) !important;
  box-shadow:0 0 0 3px rgba(232,97,10,.14) !important; outline:none !important;
}
/* "Password dimenticata?" (.tutor-btn-ghost) e "Registrati ora" (.tutor-btn-link):
   la regola globale .tutor-btn li dipinge arancione pieno -> li rendo link testuali */
body.cz-elearning .tutor-btn-ghost,
body.cz-elearning .tutor-btn-link{
  background:transparent !important; border:none !important; box-shadow:none !important;
  color:var(--el-orange) !important; padding:0 !important; width:auto !important;
  border-radius:0 !important; font-weight:600 !important; transform:none !important;
}
body.cz-elearning .tutor-btn-ghost:hover,
body.cz-elearning .tutor-btn-link:hover{
  color:#c4520a !important; text-decoration:underline !important; background:transparent !important;
}

/* ============================================================
   CZ — Menu dashboard su MOBILE = nel menu nero in alto (burger)
   Desktop invariato (sidebar). Su mobile: niente sidebar (Tutor la
   nasconde di default), niente bottom bar; la nav sta nel burger nero.
   ============================================================ */

/* Spegne la barra fissa in basso su TUTTE le superfici (dashboard E corso) */
#tutor-dashboard-footer-mobile{ display:none !important; }

/* I link dashboard aggiunti al menu nero (.cz-el-dash) si vedono SOLO su
   mobile (nel burger); su desktop c'e' gia' la sidebar, quindi nascosti. */
@media(min-width:861px){
  header.cz-el-header .menu .cz-el-dash{ display:none !important; }
}
/* separatore prima del gruppo dashboard nel burger mobile */
@media(max-width:860px){
  header.cz-el-header .menu .cz-el-dash:first-of-type{
    border-top:1px solid var(--el-line); margin-top:6px; padding-top:14px;
  }
}

/* ===== CZ: pagina "Attestati" (dashboard) ===== */
body.cz-elearning .cz-attestati .tutor-dashboard-content-title h2{ font-weight:800; }
body.cz-elearning .cz-att-empty{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:52px 32px; }
body.cz-elearning .cz-att-empty-icon{ width:80px; height:80px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--el-orange-2),var(--el-orange)); color:#fff; font-size:38px;
  box-shadow:0 10px 26px rgba(232,97,10,.30); margin-bottom:10px; }
body.cz-elearning .cz-att-empty h3{ font-size:22px; font-weight:800; color:#1A1A1A; margin:0; }
body.cz-elearning .cz-att-empty p{ color:#6B7280; max-width:460px; margin:4px 0 16px; line-height:1.55; }
body.cz-elearning .cz-att-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
body.cz-elearning .cz-att-card{ overflow:hidden; display:flex; flex-direction:column; padding:0; }
body.cz-elearning .cz-att-thumb{ position:relative; aspect-ratio:16/9; background:#161616 center/cover no-repeat; }
body.cz-elearning .cz-att-seal{ position:absolute; right:12px; bottom:12px; width:46px; height:46px; border-radius:50%;
  background:linear-gradient(135deg,var(--el-orange-2),var(--el-orange)); color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:22px; box-shadow:0 6px 16px rgba(232,97,10,.35); }
body.cz-elearning .cz-att-body{ padding:18px 20px 20px; }
body.cz-elearning .cz-att-title{ font-size:18px; font-weight:800; color:#1A1A1A; margin:0 0 6px; line-height:1.25; }
body.cz-elearning .cz-att-meta{ font-size:13px; color:#8A8F9A; margin:0 0 14px; }
body.cz-elearning .cz-att-actions .tutor-btn{ width:100%; justify-content:center; }

/* ===== CZ: footer minimale per studenti loggati ===== */
footer.cz-el-footer-min{ padding:22px 24px !important; }
footer.cz-el-footer-min .foot-min{ max-width:var(--el-max); margin:0 auto; display:flex; justify-content:center; align-items:center; }
footer.cz-el-footer-min .cz-lms-credit{ color:#8A8F9A; font-size:14px; font-weight:500; }
footer.cz-el-footer-min .cz-lms-credit strong{ color:var(--el-orange); font-weight:800; }

/* ===== CZ: pagina Assistenza (dashboard) ===== */
body.cz-elearning .cz-assist-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:20px; }
body.cz-elearning .cz-assist-card{ padding:26px 24px; }
body.cz-elearning .cz-assist-ico{ width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(232,97,10,.12); color:var(--el-orange); font-size:26px; margin-bottom:14px; }
body.cz-elearning .cz-assist-card h3{ font-size:19px; font-weight:800; color:#1A1A1A; margin:0 0 6px; }
body.cz-elearning .cz-assist-card p{ color:#6B7280; margin:0 0 16px; line-height:1.5; }
body.cz-elearning .cz-support-form textarea{ width:100%; border:1px solid #E0E3E8; border-radius:10px; padding:12px 14px; font:inherit; margin-bottom:12px; resize:vertical; background:#fff; }
body.cz-elearning .cz-support-form textarea:focus{ border-color:var(--el-orange); box-shadow:0 0 0 3px rgba(232,97,10,.14); outline:none; }
body.cz-elearning .cz-support-feedback{ margin-top:10px; font-size:14px; }
body.cz-elearning .cz-support-feedback.ok{ color:#2A5C3F; font-weight:700; }
body.cz-elearning .cz-support-feedback.err{ color:#c0392b; font-weight:700; }

/* ===== Menu mobile LMS: ordine + pulsanti Dashboard/Gestione azienda (solo mobile) ===== */
@media(min-width:861px){ .cz-el-header .m-gest{display:inline-block;background:#16a34a;color:#fff!important;border-radius:10px;padding:9px 16px;font-weight:800;margin-left:6px;text-align:center} .cz-el-header .m-gest:hover{background:#15803d} }
@media(max-width:860px){
  .cz-el-header .menu.open{display:flex;flex-direction:column}
  .cz-el-header .m-profilo{order:1}
  .cz-el-header .m-corsi{order:2}
  .cz-el-header .m-attestati{order:3}
  .cz-el-header .m-cronologia{order:4}
  .cz-el-header .m-assistenza{order:5}
  .cz-el-header .m-dash{order:6}
  .cz-el-header .m-gest{order:7}
  .cz-el-header .cz-el-user{order:8}
  .cz-el-header .nav-cta{order:9}
  .cz-el-header .cz-el-btn{display:block;text-align:center;border-radius:12px;padding:13px 16px;font-weight:800;margin:8px 0 0;color:#fff!important}
  .cz-el-header .cz-el-btn-dash{background:#E8610A;margin-top:16px}
  .cz-el-header .cz-el-btn-gest{background:#16a34a}
}
