@charset "UTF-8";
/* ==================================================================
   ERA Security — foglio di stile unico (porting da Angular styles.scss
   + scss dei singoli componenti). Le regole specifiche di pagina/sezione
   sono annidate sotto la classe radice della pagina per evitare le
   collisioni che in Angular erano risolte automaticamente dalla view
   encapsulation (qui non esiste più, quindi lo facciamo a mano).
   ================================================================== */
:root {
  --era-bg: #07090d;
  --era-bg-alt: #080a10;
  --era-surface: rgba(255, 255, 255, 0.022);
  --era-border: rgba(255, 255, 255, 0.08);
  --era-cyan: #00f0ff;
  --era-cyan-soft: rgba(0, 240, 255, 0.18);
  --era-red: #ff5a5a;
  --era-text: #eaeef5;
  --era-text-dim: #9aa3b2;
  --era-text-dimmer: #6a7283;
  --era-font-display: 'Space Grotesk', sans-serif;
  --era-font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --era-font-mono: 'IBM Plex Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--era-bg);
  font-family: var(--era-font-body);
  color: var(--era-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--era-bg);
}

::-webkit-scrollbar-thumb {
  background: #1b2230;
  border-radius: 6px;
  border: 3px solid var(--era-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #2a3346;
}

input::placeholder,
textarea::placeholder {
  color: #4d5666;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
.combo-toggle:focus-visible,
.dropdown-toggle:focus-visible,
.filters-toggle:focus-visible {
  outline: 2px solid var(--era-cyan);
  outline-offset: 2px;
}

@keyframes era-radar {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes era-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes era-fadeup {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes era-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
/* ---- Elementi condivisi dal sito pubblico (kicker/bottoni/azioni) ---- */
.kicker {
  font-family: var(--era-font-mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--era-cyan);
  margin-bottom: 12px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #03121a;
  background: var(--era-cyan);
  border: none;
  padding: 14px 26px;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.3);
  transition: all 0.18s;
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 0 38px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  color: #dfe4ec;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 14px 26px;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

/* ==================================================================
   NAVBAR pubblica
   ================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 16, 0.72);
  border-bottom: 1px solid var(--era-border);
}
@media (max-width: 900px) {
  .navbar {
    padding: 12px 20px;
  }
}
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  text-decoration: none;
}
.navbar .brand-logo {
  display: block;
  filter: drop-shadow(0 0 7px rgba(0, 240, 255, 0.28));
}
.navbar .brand-text {
  line-height: 1;
}
.navbar .brand-name {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 3px;
  color: #fff;
}
.navbar .brand-sub {
  font-family: var(--era-font-mono);
  font-size: 8.5px;
  letter-spacing: 3.4px;
  color: var(--era-cyan);
  margin-top: 3px;
}
.navbar .links {
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 900px) {
  .navbar .links {
    display: none;
  }
}
.navbar .links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #aeb6c4;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.navbar .links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.navbar .links a.active {
  color: var(--era-cyan);
  background: rgba(0, 240, 255, 0.14);
}
.navbar .cta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #03121a;
  background: var(--era-cyan);
  border: none;
  padding: 10px 20px;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.32);
  transition: box-shadow 0.18s, transform 0.12s;
}
.navbar .cta:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .navbar .cta {
    display: none;
  }
}
.navbar .menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  cursor: pointer;
}
.navbar .menu-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: #eaeef5;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.navbar .menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar .menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.navbar .menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 900px) {
  .navbar .menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: sticky;
  top: 65px;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 20px;
  background: rgba(8, 10, 16, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--era-border);
}
.mobile-menu a {
  font-size: 14px;
  font-weight: 500;
  color: #aeb6c4;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 8px;
}
.mobile-menu .cta {
  justify-content: center;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #03121a;
  background: var(--era-cyan);
  border: none;
  padding: 10px 20px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.mobile-menu.open {
  display: flex;
}

/* ==================================================================
   FOOTER pubblico
   ================================================================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--era-border);
  background: rgba(6, 8, 12, 0.6);
}
.footer .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 900px) {
  .footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 560px) {
  .footer .footer-grid {
    grid-template-columns: 1fr;
    padding: 40px 24px 24px;
  }
}
.footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer .brand-name {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 3px;
  color: #fff;
}
.footer .claim {
  font-size: 13px;
  line-height: 1.7;
  color: var(--era-text-dimmer);
  max-width: 280px;
  font-weight: 300;
}
.footer .col-title {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--era-cyan);
  margin-bottom: 16px;
}
.footer .col-link {
  display: block;
  font-size: 13px;
  color: var(--era-text-dim);
  text-decoration: none;
  margin-bottom: 11px;
  cursor: pointer;
  transition: color 0.15s;
}
.footer .col-link:hover {
  color: #fff;
}
.footer .contact-line {
  font-size: 13px;
  color: var(--era-text-dim);
  margin-bottom: 11px;
}
.footer .cta {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #03121a;
  background: var(--era-cyan);
  border: none;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
}
.footer .footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  color: #5a6273;
}
@media (max-width: 560px) {
  .footer .footer-bottom {
    padding: 18px 24px;
    justify-content: center;
    text-align: center;
  }
}

/* ==================================================================
   HOME
   ================================================================== */
.home {
  position: relative;
  z-index: 1;
  background: radial-gradient(1100px 620px at 78% -8%, rgba(0, 240, 255, 0.07), transparent 60%), radial-gradient(900px 700px at 8% 18%, rgba(13, 22, 52, 0.65), transparent 62%), linear-gradient(180deg, var(--era-bg) 0%, var(--era-bg-alt) 100%);
}
.home .section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px 30px;
}
@media (max-width: 640px) {
  .home .section {
    padding: 40px 20px 20px;
  }
}
.home .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 20px;
  flex-wrap: wrap;
}
.home .section-title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -1px;
  margin: 0;
  color: #fff;
}
.home .section-title.small {
  font-size: 34px;
}
.home .section-desc {
  font-size: 14px;
  color: #8a93a3;
  max-width: 320px;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}
.home .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.home .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) {
  .home .grid-3, .home .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .home .grid-3, .home .grid-4 {
    grid-template-columns: 1fr;
  }
}
.home {
  /* HERO */
}
.home .hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 92px 40px 84px;
}
@media (max-width: 900px) {
  .home .hero {
    grid-template-columns: 1fr;
    padding: 56px 24px;
  }
}
.home .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--era-font-mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--era-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.05);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.home .badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--era-cyan);
  box-shadow: 0 0 9px var(--era-cyan);
  animation: era-pulse 2s infinite;
}
.home .headline {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
  color: #fff;
}
@media (max-width: 640px) {
  .home .headline {
    font-size: 40px;
  }
}
.home .accent {
  color: var(--era-cyan);
}
.home .lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--era-text-dim);
  max-width: 480px;
  margin: 0 0 36px;
  font-weight: 300;
}
.home .stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--era-border);
}
.home .stat-value {
  font-family: var(--era-font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.home .stat-label {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--era-text-dimmer);
  margin-top: 5px;
}
.home {
  /* RADAR VISUAL */
}
.home .radar-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--era-border);
  background: linear-gradient(155deg, #0b0f1a 0%, #0a0d18 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.home .radar-dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 240, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.home .radar-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home .radar-ring, .home .radar-axis-v, .home .radar-axis-h, .home .radar-sweep, .home .radar-center, .home .radar-blip {
  position: absolute;
}
.home .radar-ring {
  left: 13%;
  right: 13%;
  top: 13%;
  bottom: 13%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.18);
}
.home .radar-ring.ring-2 {
  left: 30%;
  right: 30%;
  top: 30%;
  bottom: 30%;
  border-color: rgba(0, 240, 255, 0.16);
}
.home .radar-ring.ring-3 {
  left: 47%;
  right: 47%;
  top: 47%;
  bottom: 47%;
  border-color: rgba(0, 240, 255, 0.14);
}
.home .radar-axis-v {
  left: 50%;
  top: 13%;
  bottom: 13%;
  width: 1px;
  background: rgba(0, 240, 255, 0.1);
}
.home .radar-axis-h {
  top: 50%;
  left: 13%;
  right: 13%;
  height: 1px;
  background: rgba(0, 240, 255, 0.1);
}
.home .radar-sweep {
  left: 13%;
  right: 13%;
  top: 13%;
  bottom: 13%;
  border-radius: 50%;
  animation: era-radar 4.5s linear infinite;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(0, 240, 255, 0.28) 355deg, rgba(0, 240, 255, 0.55) 360deg);
}
.home .radar-center {
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--era-cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px var(--era-cyan);
}
.home .blip-1 {
  left: 70%;
  top: 38%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--era-red);
  box-shadow: 0 0 10px var(--era-red);
  animation: era-pulse 1.6s infinite;
}
.home .blip-2 {
  left: 32%;
  top: 64%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 9px var(--era-cyan);
}
.home .radar-label {
  position: absolute;
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(0, 240, 255, 0.75);
}
.home .radar-label.top-left {
  left: 18px;
  top: 18px;
}
.home .radar-label.top-right {
  right: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--era-red);
  font-size: 10px;
}
.home .radar-label.bottom {
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #5a6577;
}
.home .rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--era-red);
  animation: era-blink 1.2s infinite;
}
.home {
  /* SERVICE CARD */
}
.home .card {
  position: relative;
  padding: 26px;
  border-radius: 16px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  display: block;
}
.home .card:hover {
  border-color: rgba(0, 240, 255, 0.38);
  transform: translateY(-4px);
  background: rgba(0, 240, 255, 0.035);
}
.home .card:hover .card-glow {
  opacity: 1;
}
.home .card-glow {
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.home .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--era-cyan);
  margin-bottom: 20px;
}
.home .card-code {
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #5f6878;
  margin-bottom: 9px;
}
.home .card-title {
  font-family: var(--era-font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 9px;
  color: #fff;
}
.home .card-subtitle {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--era-text-dim);
  margin: 0 0 20px;
  font-weight: 300;
}
.home .card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--era-font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--era-cyan);
}
.home {
  /* COURSE CARD */
}
.home .course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(13, 18, 32, 0.7) 0%, rgba(8, 10, 16, 0.7) 100%);
  border: 1px solid var(--era-border);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.home .course-card:hover {
  border-color: rgba(0, 240, 255, 0.38);
  transform: translateY(-4px);
}
.home .course-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--era-font-display);
  font-size: 40px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
}
.home .course-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--era-cyan);
  margin-bottom: 18px;
}
.home .course-title {
  font-family: var(--era-font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.28;
  margin: 0 0 10px;
  color: #fff;
}
.home .course-subtitle {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--era-text-dim);
  margin: 0;
  font-weight: 300;
}
.home .course-spacer {
  flex: 1;
}
.home .course-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--era-cyan);
  margin-top: 16px;
}
.home {
  /* A CHI SI RIVOLGE */
}
.home .targets-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13, 22, 52, 0.5) 0%, rgba(8, 10, 16, 0.5) 100%);
  border: 1px solid var(--era-border);
}
@media (max-width: 900px) {
  .home .targets-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}
.home .targets-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--era-text-dim);
  margin: 0 0 26px;
  font-weight: 300;
}
.home .targets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 500px) {
  .home .targets-grid {
    grid-template-columns: 1fr;
  }
}
.home .target-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.home .target-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.18);
  color: var(--era-cyan);
}
.home .target-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #eef1f6;
  margin-bottom: 5px;
}
.home .target-tag {
  font-family: var(--era-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  color: var(--era-text-dimmer);
}
.home {
  /* CTA */
}
.home .cta-panel {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, #0a1830 0%, #08101f 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .home .cta-panel {
    padding: 32px 20px;
  }
}
.home .cta-glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 120%, rgba(0, 240, 255, 0.16), transparent 55%);
}
.home .cta-content {
  position: relative;
}
.home .cta-title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -1px;
  margin: 0 0 14px;
  color: #fff;
}
.home .cta-desc {
  font-size: 16px;
  color: var(--era-text-dim);
  max-width: 520px;
  margin: 0 auto 30px;
  font-weight: 300;
  line-height: 1.6;
}

/* ==================================================================
   DETTAGLIO
   ================================================================== */
.detail {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}
@media (max-width: 640px) {
  .detail {
    padding: 28px 20px 40px;
  }
}
.detail .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--era-font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--era-text-dimmer);
  margin-bottom: 34px;
}
.detail .breadcrumb a {
  color: #8a93a3;
  text-decoration: none;
  cursor: pointer;
}
.detail .breadcrumb a:hover {
  color: #fff;
}
.detail .breadcrumb .sep {
  color: #3a414e;
}
.detail .breadcrumb .accent {
  color: var(--era-cyan);
}
.detail .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .detail .hero-grid {
    grid-template-columns: 1fr;
  }
}
.detail .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.22);
  color: var(--era-cyan);
  margin-bottom: 26px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.12);
}
.detail .title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
  color: #fff;
}
@media (max-width: 640px) {
  .detail .title {
    font-size: 30px;
  }
}
.detail .subtitle {
  font-size: 16px;
  color: var(--era-cyan);
  margin-bottom: 22px;
  font-weight: 500;
}
.detail .description {
  font-size: 16px;
  line-height: 1.75;
  color: var(--era-text-dim);
  margin: 0 0 32px;
  font-weight: 300;
  max-width: 560px;
}
.detail .tech-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--era-border);
  background: var(--era-surface);
}
.detail .tech-visual {
  position: relative;
  aspect-ratio: 16/10;
  background: repeating-linear-gradient(135deg, #0b0f1a 0px, #0b0f1a 9px, #0c1220 9px, #0c1220 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 10px;
}
.detail .tech-caption {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #5a6577;
}
.detail .tech-sheet {
  padding: 22px;
}
.detail .tech-sheet-title {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--era-cyan);
  margin-bottom: 16px;
}
.detail .tech-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #8a93a3;
}
.detail .tech-row span:last-child {
  color: #eef1f6;
}
.detail .tech-row.last {
  border-bottom: none;
}
.detail .mono {
  font-family: var(--era-font-mono);
  font-size: 12.5px;
}
.detail .classified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--era-cyan) !important;
}
.detail .classified .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--era-cyan);
  box-shadow: 0 0 8px var(--era-cyan);
}
.detail .points-section {
  margin-bottom: 56px;
}
.detail .section-title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 0 0 26px;
  color: #fff;
}
.detail .points-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 2px;
}
@media (max-width: 700px) {
  .detail .points-grid {
    grid-template-columns: 1fr;
  }
}
.detail .point {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 17px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.detail .check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.09);
  color: var(--era-cyan);
  margin-top: 1px;
}
.detail .point-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #c3cbd8;
  font-weight: 300;
}
.detail .related-kicker {
  font-family: var(--era-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--era-text-dimmer);
  margin-bottom: 20px;
}
.detail .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .detail .related-grid {
    grid-template-columns: 1fr;
  }
}
.detail .related-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: var(--era-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.detail .related-item:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-3px);
}
.detail .related-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.18);
  color: var(--era-cyan);
}
.detail .related-title {
  font-size: 14px;
  font-weight: 600;
  color: #eef1f6;
  line-height: 1.3;
  margin-bottom: 4px;
}
.detail .related-subtitle {
  font-size: 12px;
  color: #8a93a3;
  font-weight: 300;
  line-height: 1.4;
}

.state-message {
  text-align: center;
  padding: 120px 20px;
  color: var(--era-text-dim);
  font-family: var(--era-font-mono);
  font-size: 13px;
}
.state-message.error {
  color: var(--era-red);
}

/* ==================================================================
   CONTATTI
   ================================================================== */
.contatti {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 40px 84px;
}
@media (max-width: 640px) {
  .contatti {
    padding: 40px 20px 48px;
  }
}
.contatti .head {
  text-align: center;
  margin-bottom: 50px;
}
.contatti .title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -1.4px;
  margin: 0 0 18px;
  color: #fff;
}
@media (max-width: 640px) {
  .contatti .title {
    font-size: 32px;
  }
}
.contatti .lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--era-text-dim);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}
.contatti .info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 800px) {
  .contatti .info-grid {
    grid-template-columns: 1fr;
  }
}
.contatti .info-card {
  padding: 30px 26px;
  border-radius: 16px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  text-align: center;
}
.contatti .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--era-cyan);
  margin-bottom: 20px;
}
.contatti .info-label {
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--era-text-dimmer);
  margin-bottom: 10px;
}
.contatti .info-value {
  font-size: 16px;
  font-weight: 600;
  color: #eef1f6;
  margin-bottom: 8px;
}
.contatti .info-note {
  font-size: 12.5px;
  color: #8a93a3;
  font-weight: 300;
}
.contatti .lower-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .contatti .lower-grid {
    grid-template-columns: 1fr;
  }
}
.contatti .gdpr-card {
  padding: 30px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(13, 22, 52, 0.5), rgba(8, 10, 16, 0.5));
  border: 1px solid rgba(0, 240, 255, 0.18);
}
.contatti .gdpr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.contatti .gdpr-title {
  font-family: var(--era-font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.contatti .gdpr-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--era-text-dim);
  margin: 0;
  font-weight: 300;
}
.contatti .hours-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contatti .hours-title {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--era-text-dimmer);
  margin-bottom: 14px;
}
.contatti .hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  color: #c3cbd8;
}
.contatti .hours-row .value {
  color: #eef1f6;
  font-weight: 500;
}
.contatti .hours-row .dim {
  color: #8a93a3;
}
.contatti .hours-row.last {
  border-bottom: none;
}
.contatti .form-card {
  padding: 36px;
  border-radius: 18px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contatti .form-card.success {
  text-align: center;
  align-items: center;
}
.contatti .form-title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0;
  color: #fff;
}
.contatti .form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .contatti .form-row.two {
    grid-template-columns: 1fr;
  }
}
.contatti .urgency-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contatti .pill-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.contatti .pill {
  display: inline-block;
  font-family: var(--era-font-mono);
  font-size: 12.5px;
  color: #8a93a3;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.contatti .pill.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--era-cyan);
}
.contatti .pill.active.urgent {
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.5);
  color: #ff8585;
}
.contatti .consenso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--era-text-dim);
  line-height: 1.5;
  cursor: pointer;
}
.contatti .consenso input {
  margin-top: 3px;
}
.contatti .submit-error {
  font-size: 13px;
  color: var(--era-red);
  padding: 10px 14px;
  border: 1px solid rgba(255, 90, 90, 0.35);
  border-radius: 10px;
  background: rgba(255, 90, 90, 0.06);
}
.contatti .btn-submit {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 600;
  color: #03121a;
  background: var(--era-cyan);
  border: none;
  padding: 14px 30px;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.3);
  transition: all 0.18s;
}
.contatti .btn-submit:hover {
  box-shadow: 0 0 38px rgba(0, 240, 255, 0.5);
}
.contatti .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.contatti .success-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--era-text-dim);
  max-width: 480px;
  font-weight: 300;
}
.contatti .success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 4px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--era-cyan);
}
.contatti {
  /* Questionario: card per sezione (riusa .wizard/.wizard-step globali dei form
     dashboard) con dimensioni leggermente più generose per il contesto pubblico. */
}
.contatti .wizard .step-title {
  font-size: 21px;
}
.contatti .wizard-step {
  padding: 28px 30px;
}
.contatti .step-kicker {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 1.8px;
  color: var(--era-text-dimmer);
}
.contatti .form-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--era-font-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--era-text-dimmer);
  white-space: nowrap;
}
.contatti .form-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.contatti .form-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--era-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transition: width 0.25s ease;
}
.contatti {
  /* Scala di gradimento 1-4: nessun JS necessario, lo stato attivo è puro CSS
     tramite il selettore di adiacenza sull'input:checked. */
}
.contatti .scale-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.contatti .rating-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.contatti .rating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 10px;
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--era-text-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.contatti .rating-btn:hover {
  border-color: rgba(0, 240, 255, 0.3);
  color: #cfd6e0;
}
.contatti .rating-option input:checked + .rating-btn {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--era-cyan);
  color: var(--era-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}
.contatti .rating-option input:focus-visible + .rating-btn {
  outline: 2px solid var(--era-cyan);
  outline-offset: 2px;
}
.contatti .scale-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2px;
  color: var(--era-text-dimmer);
}
.contatti {
  /* Istruttori: selezione multipla come chip invece del checkbox-grid generico */
}
.contatti .chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.contatti .chip-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.contatti .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #c3cbd8;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.contatti .chip:hover {
  border-color: rgba(0, 240, 255, 0.3);
}
.contatti .chip-checkbox input:checked + .chip {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--era-cyan);
}
.contatti .chip-checkbox input:focus-visible + .chip {
  outline: 2px solid var(--era-cyan);
  outline-offset: 2px;
}

/* ==================================================================
   LOGIN STAFF + DASHBOARD STAFF — i controlli di form nativi (button,
   input, select, textarea) non ereditano il font della pagina di
   default nel browser: qui forziamo l'eredità solo nell'area staff,
   senza toccare le regole condivise col sito pubblico.
   ================================================================== */
.login-page button, .login-page input, .login-page select, .login-page textarea,
.shell button,
.shell input,
.shell select,
.shell textarea {
  font-family: inherit;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--era-bg);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 36px;
  border-radius: 18px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-card .kicker {
  font-size: 11px;
}
.login-card .title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  color: #fff;
}
.login-card .subtitle {
  font-size: 13.5px;
  color: var(--era-text-dim);
  margin: -8px 0 0;
  font-weight: 300;
}
.login-card .submit-btn {
  font-size: 15px;
  font-weight: 600;
  color: #03121a;
  background: var(--era-cyan);
  border: none;
  padding: 13px;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.3);
  transition: all 0.18s;
}
.login-card .submit-btn:hover {
  box-shadow: 0 0 38px rgba(0, 240, 255, 0.5);
}

/* ==================================================================
   DASHBOARD STAFF — shell (sidebar + topbar)
   ================================================================== */
.shell {
  display: grid;
  grid-template-columns: 246px 1fr;
  min-height: 100vh;
  background: var(--era-bg);
}
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

.sidebar-backdrop {
  display: none;
}
@media (max-width: 960px) {
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 5, 8, 0.6);
  }
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--era-border);
  background: rgba(6, 8, 12, 0.9);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    z-index: 91;
    left: 0;
    top: 0;
    width: 246px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 22px;
  cursor: pointer;
  text-decoration: none;
}
.sidebar .brand-name {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2.5px;
  color: #fff;
}
.sidebar .brand-sub {
  font-family: var(--era-font-mono);
  font-size: 8px;
  letter-spacing: 2.6px;
  color: var(--era-cyan);
  margin-top: 3px;
}
.sidebar .nav-label {
  font-family: var(--era-font-mono);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #5a6273;
  padding: 12px 12px 8px;
}
.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar .nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #aeb6c4;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.sidebar .nav a .nav-bar {
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: transparent;
}
.sidebar .nav a .nav-icon {
  display: flex;
  color: #6a7283;
}
.sidebar .nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar .nav a.active {
  color: var(--era-cyan);
  background: rgba(0, 240, 255, 0.1);
}
.sidebar .nav a.active .nav-bar {
  background: var(--era-cyan);
}
.sidebar .nav a.active .nav-icon {
  color: var(--era-cyan);
}
.sidebar .spacer {
  flex: 1;
}
.sidebar .session-box {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.15);
}
.sidebar .session-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--era-cyan);
}
.sidebar .session-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--era-cyan);
  box-shadow: 0 0 8px var(--era-cyan);
}
.sidebar .session-text {
  font-size: 11.5px;
  color: var(--era-text-dim);
  line-height: 1.5;
  font-weight: 300;
  text-transform: capitalize;
}
.sidebar .logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--era-text-dim);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar .logout-btn:hover {
  color: #ff8585;
  border-color: rgba(255, 90, 90, 0.4);
}

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

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 34px;
  border-bottom: 1px solid var(--era-border);
  background: rgba(8, 10, 16, 0.6);
  backdrop-filter: blur(10px);
}
@media (max-width: 640px) {
  .topbar {
    padding: 14px 18px;
    gap: 10px;
  }
}
.topbar .sidebar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  cursor: pointer;
}
.topbar .sidebar-toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: #eaeef5;
  border-radius: 2px;
}
@media (max-width: 960px) {
  .topbar .sidebar-toggle {
    display: flex;
  }
}
.topbar .page-heading {
  min-width: 0;
}
.topbar .page-heading .kicker {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--era-cyan);
  margin-bottom: 5px;
}
@media (max-width: 640px) {
  .topbar .page-heading .kicker {
    display: none;
  }
}
.topbar .page-heading .title {
  font-family: var(--era-font-display);
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .topbar .page-heading .title {
    font-size: 16px;
  }
}
.topbar .spacer {
  flex: 1;
}
.topbar .topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--era-text-dimmer);
}
.topbar .topbar-search svg {
  position: absolute;
  left: 12px;
  pointer-events: none;
}
.topbar .topbar-search input {
  width: 200px;
  font-family: var(--era-font-body);
  font-size: 13px;
  color: var(--era-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 14px 9px 34px;
  transition: border-color 0.15s, width 0.18s;
}
.topbar .topbar-search input:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.5);
  width: 230px;
}
.topbar .topbar-search input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
@media (max-width: 760px) {
  .topbar .topbar-search {
    display: none;
  }
}
.topbar .user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar .user-box {
  text-align: right;
  line-height: 1.3;
}
@media (max-width: 560px) {
  .topbar .user-box {
    display: none;
  }
}
.topbar .user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #eef1f6;
}
.topbar .user-role {
  font-size: 10px;
  color: var(--era-text-dim);
  text-transform: capitalize;
}
.topbar .avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--era-cyan), #0a7d8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 13px;
  color: #03121a;
}

.content {
  flex: 1;
  padding: 28px 34px 48px;
  overflow-y: auto;
  min-width: 0;
}
@media (max-width: 640px) {
  .content {
    padding: 18px 16px 32px;
  }
}

/* ==================================================================
   DASHBOARD STAFF — classi condivise CRUD (page/table/form/wizard)
   ================================================================== */
.page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  color: #fff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropdown-toggle .caret {
  transition: transform 0.15s;
}

.dropdown.open .dropdown-toggle .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: #0c0f14;
  border: 1px solid var(--era-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.dropdown-menu a, .dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--era-font-body);
  font-size: 13.5px;
  color: var(--era-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.dropdown-menu a:hover, .dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.dropdown-menu a.danger, .dropdown-menu button.danger {
  color: var(--era-red);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Combobox custom: sostituisce i <select> nativi con un pulsante + menu a tendina
   animato e ricercabile (i <select> nativi non permettono di cercare tra le opzioni). */
.combo-select {
  position: relative;
  display: inline-block;
}

.combo-select select.combo-native-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  border: none;
  padding: 0;
}

.combo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--era-font-body);
  font-size: 13.5px;
  color: var(--era-text);
  background: rgba(255, 255, 255, 0.03);
  background-color: #12161d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}
.combo-toggle .combo-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-toggle .caret {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.combo-toggle:focus, .combo-toggle:focus-visible {
  outline: none;
  border-color: rgba(0, 240, 255, 0.5);
}

.combo-select.open .combo-toggle {
  border-color: rgba(0, 240, 255, 0.5);
}

.combo-select.open .combo-toggle .caret {
  transform: rotate(180deg);
}

.combo-select.disabled .combo-toggle {
  opacity: 0.5;
  cursor: not-allowed;
}

.combo-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 220px;
  background: #0c0f14;
  border: 1px solid var(--era-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.combo-select.open .combo-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.combo-search {
  font-family: var(--era-font-body);
  font-size: 13px;
  color: var(--era-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
}
.combo-search:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.5);
}

.combo-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
}

.combo-option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--era-font-body);
  font-size: 13.5px;
  color: var(--era-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 8px;
}
.combo-option:hover, .combo-option.active {
  background: rgba(255, 255, 255, 0.06);
}
.combo-option.selected {
  color: var(--era-cyan);
  font-weight: 600;
}

.combo-empty {
  padding: 10px;
  font-size: 13px;
  color: var(--era-text-dimmer);
  text-align: center;
}

.multi-combo .combo-menu {
  min-width: 100%;
}

.multi-combo .combo-menu .checkbox-grid {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.multi-combo .combo-menu .checkbox-item:hover {
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.search-input, .filter-select {
  font-family: var(--era-font-body);
  font-size: 13.5px;
  color: var(--era-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  max-width: 320px;
}
.search-input:focus, .filter-select:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.5);
}

/* I <select> nativi aprono il menu a tendina in un layer separato dove uno sfondo
   traslucido viene renderizzato come bianco pieno dal browser: serve un colore pieno. */
select {
  background-color: #12161d;
  color-scheme: dark;
}
select option {
  background-color: #12161d;
  color: var(--era-text);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--era-border);
  border-radius: 12px;
}
@media (max-width: 640px) {
  .table-scroll {
    position: relative;
  }
  .table-scroll::before {
    content: "↔ scorri per vedere altri dati";
    position: sticky;
    left: 0;
    display: inline-block;
    font-family: var(--era-font-mono);
    font-size: 10px;
    letter-spacing: 0.4px;
    color: var(--era-text-dimmer);
    background: rgba(0, 240, 255, 0.06);
    border-bottom: 1px solid var(--era-border);
    padding: 6px 10px;
    white-space: nowrap;
  }
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background-color: #0b0d12;
  background-image: linear-gradient(to right, #0b0d12 30%, rgba(11, 13, 18, 0)), linear-gradient(to left, #0b0d12 30%, rgba(11, 13, 18, 0)), radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  background-repeat: no-repeat;
  background-position: left top, right top, left top, right top;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.data-table th {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--era-text-dimmer);
  text-transform: uppercase;
  font-weight: 500;
}
.data-table td {
  color: #c3cbd8;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table .empty {
  text-align: center;
  color: var(--era-text-dimmer);
  padding: 28px;
}
.data-table th:last-child, .data-table td:last-child {
  position: sticky;
  right: 0;
  background-color: #0b0d12;
  box-shadow: -10px 0 12px -10px rgba(0, 0, 0, 0.45);
}
.data-table .actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}
.data-table .actions a, .data-table .actions button {
  font-size: 12.5px;
  color: var(--era-cyan);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-family: inherit;
}
.data-table .actions a.danger, .data-table .actions button.danger {
  color: var(--era-red);
}
.data-table .actions a:hover, .data-table .actions button:hover {
  text-decoration: underline;
}

.btn-primary:disabled, .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.inline-form, .wizard-step {
  padding: 22px;
  border-radius: 14px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-title {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  color: #fff;
}

.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 12.5px;
  color: var(--era-text-dim);
  font-weight: 500;
}

.field input, .field select, .field textarea {
  font-family: var(--era-font-body);
  font-size: 14px;
  color: var(--era-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.5);
}

.field select {
  background-color: #12161d;
}

.field-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--era-text-dim);
}

.error-box, .save-message {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
}

.error-box {
  color: var(--era-red);
  border: 1px solid rgba(255, 90, 90, 0.35);
  background: rgba(255, 90, 90, 0.06);
}

.save-message {
  color: var(--era-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.06);
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--era-red);
  margin-top: 5px;
}

.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: rgba(255, 90, 90, 0.5);
}

@keyframes era-toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--era-text);
  background: #12161d;
  border: 1px solid var(--era-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: era-toast-in 0.25s ease-out;
}

.toast-success {
  border-color: rgba(0, 240, 255, 0.35);
}

.toast-success::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--era-cyan);
  flex-shrink: 0;
}

.toast-error {
  border-color: rgba(255, 90, 90, 0.4);
}

.toast-error::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--era-red);
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--era-text-dimmer);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.toast-close:hover {
  color: var(--era-text);
}

@keyframes era-spin {
  to {
    transform: rotate(360deg);
  }
}
.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.is-loading::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  vertical-align: -2px;
  animation: era-spin 0.6s linear infinite;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--era-text-dimmer);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--era-text-dim);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--era-cyan);
}

.breadcrumb .sep {
  color: var(--era-text-dimmer);
}

.breadcrumb .current {
  color: var(--era-text-dim);
}

.step-title {
  font-family: var(--era-font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: #fff;
}

.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .fields-row {
    grid-template-columns: 1fr;
  }
}

.hint {
  font-size: 13px;
  color: var(--era-text-dimmer);
  margin: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c3cbd8;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wizard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.caricatore-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.fasi-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: fase;
}

.fase-row {
  counter-increment: fase;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px 12px;
  align-items: end;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 900px) {
  .fase-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .fase-row {
    grid-template-columns: 1fr;
  }
}

.fase-row::before {
  content: "Fase " counter(fase);
  grid-column: 1/-1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--era-text-dimmer);
}

.fase-row .field {
  margin: 0;
}

.fase-remove {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.3);
  color: var(--era-red);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.fase-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.giornata-esercizi-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.giornata-esercizio-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: end;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.giornata-esercizio-row .field {
  margin: 0;
}

.reorder-toggle.active {
  color: var(--era-cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.drag-handle-col {
  width: 34px;
}

.drag-handle-cell {
  color: var(--era-text-dimmer);
}

.drag-handle {
  cursor: grab;
  font-size: 16px;
  user-select: none;
  display: inline-block;
}

.data-table.reorder-active tbody tr {
  cursor: grab;
}

.data-table tbody tr.dragging {
  opacity: 0.4;
}

/* Stat card (Giornate) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px;
  border-radius: 15px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--era-cyan);
  margin-bottom: 16px;
}

.stat-grid .stat-value {
  font-family: var(--era-font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-grid .stat-label {
  font-size: 12px;
  color: var(--era-text-dim);
  margin-top: 6px;
  font-weight: 300;
}

.valuta-btn {
  font-family: var(--era-font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--era-cyan);
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.valuta-btn:hover {
  background: rgba(0, 240, 255, 0.14);
}

/* Card grid (Esercizi / Clienti) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.entity-card {
  padding: 22px;
  border-radius: 15px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.entity-card .actions {
  display: flex;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.entity-card .actions a, .entity-card .actions button {
  font-size: 12.5px;
  color: var(--era-cyan);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-family: inherit;
}
.entity-card .actions a.danger, .entity-card .actions button.danger {
  color: var(--era-red);
}
.entity-card .actions a:hover, .entity-card .actions button:hover {
  text-decoration: underline;
}

/* Esercizi */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ex-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-family: var(--era-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--era-cyan);
}

.ex-max {
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--era-text-dimmer);
  text-align: right;
}
.ex-max span {
  font-size: 15px;
  color: #eef1f6;
}

.ex-title {
  font-family: var(--era-font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.ex-stats {
  display: flex;
  gap: 22px;
}

.ex-stat-value {
  font-family: var(--era-font-display);
  font-size: 20px;
  font-weight: 700;
  color: #eef1f6;
}

.ex-stat-label {
  font-family: var(--era-font-mono);
  font-size: 9.5px;
  color: var(--era-text-dimmer);
}

.ex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ex-tag {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: #9fb0c4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 7px;
}

.note-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Clienti (card) */
.cliente-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cliente-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(10, 125, 138, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.25);
  font-family: var(--era-font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--era-cyan);
}

.cliente-name {
  font-family: var(--era-font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.cliente-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #c3cbd8;
}

/* Avatar iniziali (tabelle allievi/utenti) */
.avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-family: var(--era-font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--era-cyan);
  flex-shrink: 0;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.role-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
}

.modulo-pill {
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 7px;
  color: var(--era-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.tipo-crea {
  color: #46c68a;
  background: rgba(70, 198, 138, 0.12);
}

.tipo-modifica {
  color: #ffc85a;
  background: rgba(255, 200, 90, 0.12);
}

.tipo-elimina, .tipo-accesso_fallito {
  color: var(--era-red);
  background: rgba(255, 90, 90, 0.12);
}

.tipo-esporta {
  color: #8e93f5;
  background: rgba(142, 147, 245, 0.12);
}

.tipo-accesso {
  color: var(--era-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.role-developer {
  color: #ff8585;
  background: rgba(255, 90, 90, 0.12);
}

.role-amministratore {
  color: #ffc85a;
  background: rgba(255, 200, 90, 0.12);
}

.role-istruttore {
  color: var(--era-cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* ==================================================================
   OVERVIEW — KPI, trend, prossime giornate, classifica
   ================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  transition: border-color 0.2s, transform 0.2s;
}
.kpi-card:hover {
  border-color: rgba(0, 240, 255, 0.28);
  transform: translateY(-3px);
}

.kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--era-cyan);
}

.kpi-delta {
  font-family: var(--era-font-mono);
  font-size: 11px;
  font-weight: 500;
}
.kpi-delta.up {
  color: #46c68a;
}
.kpi-delta.down {
  color: var(--era-red);
}
.kpi-delta.neutral {
  color: var(--era-text-dimmer);
}

.kpi-value {
  font-family: var(--era-font-display);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.kpi-label {
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--era-text-dimmer);
  margin-top: 8px;
}

.overview-grid-2 {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .overview-grid-2 {
    grid-template-columns: 1fr;
  }
}

.overview-grid-alt {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .overview-grid-alt {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 22px;
  border-radius: 16px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.panel-title {
  font-family: var(--era-font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--era-text-dim);
  font-weight: 300;
  margin-top: 2px;
}

.panel-legend {
  display: flex;
  gap: 14px;
  font-family: var(--era-font-mono);
  font-size: 10px;
  color: var(--era-text-dimmer);
}
.panel-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-legend .dash {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  display: inline-block;
}
.panel-legend .dash.media {
  background: var(--era-cyan);
}
.panel-legend .dash.migliore {
  background: #8e93f5;
}

.trend-chart {
  width: 100%;
  height: 200px;
  margin-top: 12px;
}

.trend-empty {
  text-align: center;
  color: var(--era-text-dimmer);
  font-size: 13px;
  padding: 40px 0;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s;
}
.upcoming-item:hover {
  border-color: rgba(0, 240, 255, 0.25);
}

.upcoming-date {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.upcoming-date span:first-child {
  font-family: var(--era-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--era-cyan);
}
.upcoming-date span:last-child {
  font-family: var(--era-font-mono);
  font-size: 8px;
  color: var(--era-text-dimmer);
  margin-top: 2px;
}

.upcoming-info {
  min-width: 0;
  flex: 1;
}

.upcoming-title {
  font-size: 13px;
  font-weight: 600;
  color: #e6eaf1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-sub {
  font-size: 11.5px;
  color: var(--era-text-dim);
  font-weight: 300;
  margin-top: 2px;
}

.upcoming-count {
  font-family: var(--era-font-mono);
  font-size: 10px;
  color: var(--era-cyan);
  white-space: nowrap;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ranking-pos {
  font-family: var(--era-font-mono);
  font-size: 11px;
  color: var(--era-text-dimmer);
  width: 14px;
}

.ranking-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--era-font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--era-cyan);
}

.ranking-body {
  flex: 1;
  min-width: 0;
}

.ranking-name {
  font-size: 13px;
  color: #dfe4ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-bar-track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 5px;
  overflow: hidden;
}

.ranking-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--era-cyan);
}

.ranking-score {
  font-family: var(--era-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* Distribuzione risposte 1-4 del questionario di gradimento (una barra segmentata per domanda) */
.likert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--era-border);
}
@media (max-width: 480px) {
  .likert-row {
    flex-wrap: wrap;
  }
}

.likert-row:last-child {
  border-bottom: none;
}

.likert-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #dfe4ec;
}
@media (max-width: 480px) {
  .likert-label {
    flex-basis: 100%;
  }
}

.likert-media {
  font-family: var(--era-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--era-cyan);
  width: 42px;
  text-align: right;
}

.likert-bar {
  display: flex;
  width: 200px;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 480px) {
  .likert-bar {
    flex: 1;
    width: auto;
    min-width: 40px;
  }
}

.likert-bar span {
  display: block;
  height: 100%;
}

.likert-bar span:nth-child(1) {
  background: rgba(166, 84, 76, 0.7);
}

.likert-bar span:nth-child(2) {
  background: rgba(176, 122, 60, 0.7);
}

.likert-bar span:nth-child(3) {
  background: rgba(53, 88, 109, 0.85);
}

.likert-bar span:nth-child(4) {
  background: var(--era-cyan);
}

/* Toolbar ricerca generica + pannello filtri avanzati (pagine elenco) */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.list-toolbar .search-input {
  flex: 1;
  max-width: 420px;
}

.filters-toggle {
  position: relative;
}
.filters-toggle.active::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--era-cyan);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.8);
}

.filters-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--era-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.filters-panel.open {
  display: flex;
}
.filters-panel .fields-row {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.filters-panel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.filters-clear {
  font-family: var(--era-font-body);
  font-size: 13px;
  color: var(--era-text-dim);
  text-decoration: none;
}
.filters-clear:hover {
  color: #fff;
}

/* Status chip stato corso (derivato dalle date, non colonna DB) */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--era-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  padding: 5px 11px;
  border-radius: 7px;
  white-space: nowrap;
}
.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}
.status-chip.stato-programmato {
  color: #9fb0c4;
  background: rgba(255, 255, 255, 0.06);
}
.status-chip.stato-in-corso {
  color: var(--era-cyan);
  background: rgba(0, 240, 255, 0.1);
}
.status-chip.stato-completato {
  color: var(--era-text-dimmer);
  background: rgba(255, 255, 255, 0.04);
}

/* Progress bar (avanzamento corso) */
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--era-font-mono);
  font-size: 9.5px;
  color: var(--era-text-dimmer);
  margin-bottom: 6px;
}

.progress-track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--era-cyan);
}

/* Corso card (card-grid) */
.corso-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.corso-card-title {
  font-family: var(--era-font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.corso-card-cliente {
  font-size: 12.5px;
  color: var(--era-text-dim);
  margin-top: 5px;
}

.corso-card-stats {
  display: flex;
  gap: 22px;
}

.corso-stat-value {
  font-family: var(--era-font-display);
  font-size: 19px;
  font-weight: 700;
  color: #eef1f6;
}

.corso-stat-value.accent {
  color: var(--era-cyan);
}

.corso-stat-label {
  font-family: var(--era-font-mono);
  font-size: 9px;
  color: var(--era-text-dimmer);
  margin-top: 2px;
}

/* ==================================================================
   VALUTAZIONE
   ================================================================== */
.valutazione-page {
  max-width: 1300px;
}
.valutazione-page .info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 22, 52, 0.5), rgba(8, 10, 16, 0.5));
  border: 1px solid var(--era-border);
}
.valutazione-page .info-kicker {
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--era-text-dimmer);
  margin-bottom: 5px;
}
.valutazione-page .info-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #eef1f6;
}
.valutazione-page .info-sub {
  font-size: 12.5px;
  color: var(--era-text-dim);
  margin-top: 3px;
}
.valutazione-page .info-sub a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.valutazione-page .info-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.valutazione-page .info-total {
  text-align: right;
}
.valutazione-page .total-value {
  font-family: var(--era-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--era-cyan);
  line-height: 1;
}
.valutazione-page .tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.valutazione-page .tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--era-text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.valutazione-page .tab:hover {
  color: #fff;
}
.valutazione-page .tab.active {
  color: var(--era-cyan);
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.35);
}
.valutazione-page .valutazione-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
@media (max-width: 420px) {
  .valutazione-page .valutazione-grid {
    grid-template-columns: 1fr;
  }
}
.valutazione-page .riga-card {
  padding: 20px;
  border-radius: 15px;
  background: var(--era-surface);
  border: 1px solid var(--era-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.valutazione-page .riga-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.valutazione-page .esercizio-kicker {
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--era-text-dimmer);
}
.valutazione-page .esercizio-num {
  font-family: var(--era-font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.valutazione-page .score-block {
  text-align: right;
}
.valutazione-page .score {
  font-family: var(--era-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--era-cyan);
  line-height: 1.1;
}
.valutazione-page .score.zero {
  color: var(--era-red);
}
.valutazione-page .score-detail {
  font-family: var(--era-font-mono);
  font-size: 9.5px;
  color: #5a6273;
}
.valutazione-page .colpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.valutazione-page .mini-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.valutazione-page .mini-field span {
  font-family: var(--era-font-display);
  font-size: 13px;
  font-weight: 700;
  color: #dfe4ec;
}
.valutazione-page .mini-field span em {
  font-style: normal;
  font-family: var(--era-font-mono);
  font-size: 9px;
  color: #5a6273;
  margin-left: 3px;
}
.valutazione-page .mini-field input {
  width: 100%;
  text-align: center;
  font-family: var(--era-font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 9px 4px;
}
.valutazione-page .mini-field input:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}
.valutazione-page .mini-field input[readonly] {
  color: var(--era-text-dim);
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
}
.valutazione-page .colpi-warning {
  margin: -6px 0 0;
  font-size: 12.5px;
  color: var(--era-red);
}
.valutazione-page .colpi-warning[hidden] {
  display: none;
}
.valutazione-page .violazioni-label {
  font-family: var(--era-font-mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--era-text-dimmer);
}
.valutazione-page .violazioni-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.valutazione-page .violazioni-row .mini-field {
  width: 84px;
}
.valutazione-page textarea {
  width: 100%;
  font-family: var(--era-font-body);
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.valutazione-page textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(3px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.confirm-overlay.open {
  display: flex;
}

.confirm-dialog {
  width: min(380px, 100vw - 48px);
  background: var(--era-bg-alt);
  border: 1px solid var(--era-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.confirm-message {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--era-text);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.confirm-danger-btn {
  background: var(--era-red);
  color: #1a0505;
  box-shadow: 0 0 26px rgba(255, 90, 90, 0.3);
}
.confirm-danger-btn:hover {
  box-shadow: 0 0 38px rgba(255, 90, 90, 0.5);
}

.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--era-border);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn, .pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: var(--era-font-mono);
  color: var(--era-text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--era-border);
  border-radius: 8px;
  padding: 7px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.pagination-btn:hover, .pagination-page:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--era-text);
}
.pagination-btn.disabled, .pagination-page.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination-page {
  min-width: 34px;
  padding: 7px 8px;
}
.pagination-page.active {
  color: #03121a;
  background: var(--era-cyan);
  border-color: var(--era-cyan);
  font-weight: 700;
}

.pagination-ellipsis {
  color: var(--era-text-dimmer);
  padding: 0 4px;
  font-family: var(--era-font-mono);
  font-size: 13px;
}

.pagination-info {
  font-size: 12px;
  color: var(--era-text-dimmer);
  margin-left: auto;
}

/* ==================================================================
   CALENDARIO
   ================================================================== */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.calendar-mese-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--era-font-display);
  font-size: 16px;
  font-weight: 600;
  color: #eef1f6;
  min-width: 200px;
  justify-content: center;
}

.calendar-oggi {
  font-family: var(--era-font-mono);
  font-size: 10px;
  color: var(--era-text-dimmer);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 9px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.calendar-oggi:hover {
  color: var(--era-cyan);
  border-color: rgba(0, 240, 255, 0.35);
}

.calendar-scroll {
  overflow-x: auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 6px;
  min-width: 840px;
}

.calendar-weekday {
  font-family: var(--era-font-mono);
  font-size: 10px;
  color: var(--era-text-dimmer);
  text-align: center;
  padding: 6px 0;
}

.calendar-day {
  min-height: 96px;
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calendar-day.fuori-mese {
  opacity: 0.35;
}
.calendar-day.oggi {
  border-color: rgba(0, 240, 255, 0.4);
}

.calendar-day-num {
  font-family: var(--era-font-mono);
  font-size: 11px;
  color: var(--era-text-dim);
}

.calendar-event {
  display: block;
  font-size: 10.5px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--era-cyan);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-event.test-usa {
  background: rgba(142, 147, 245, 0.12);
  color: #8e93f5;
}

.calendar-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-family: var(--era-font-mono);
  font-size: 10px;
  color: var(--era-text-dimmer);
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--era-cyan);
  display: inline-block;
}
.calendar-legend-dot.test-usa {
  background: #8e93f5;
}

/* ==================================================================
   RICERCA GLOBALE — MENU LIVE
   ================================================================== */
.search-live-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: #0c0f14;
  border: 1px solid var(--era-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.topbar-search.open .search-live-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.search-live-group {
  font-family: var(--era-font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--era-text-dimmer);
  padding: 8px 10px 4px;
}

.search-live-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--era-text);
}
.search-live-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-live-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #e6eaf1;
}

.search-live-sub {
  display: block;
  font-size: 11.5px;
  color: var(--era-text-dim);
  margin-top: 2px;
}

.search-live-all {
  display: block;
  padding: 10px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--era-cyan);
  font-size: 12.5px;
  text-align: center;
}
.search-live-all:hover {
  color: #fff;
}
