
.debug {
    outline: 1px dashed red;
}
#sidebar {
  min-width: 250px;
  max-width: 250px;
  background: #494ca2;
  color: #fff;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  position: relative;
    
}
  #sidebar .h6 {
    color: #fff; 
      
  }
  #sidebar.active {
    margin-left: -250px; 
      
  }
    #sidebar.active .custom-menu {
      margin-right: -50px; 
        
    }
  #sidebar h1 {
    margin-bottom: 20px;
    font-weight: 700; 
      
  }
    #sidebar h1 .logo {
      color: #fff; 
        
    }
  #sidebar ul.components {
    padding: 0; 
      
  }
  #sidebar ul li {
    font-size: 16px; 
      
  }
    #sidebar ul li > ul {
      margin-left: 10px; 
        
    }
      #sidebar ul li > ul li {
        font-size: 14px; 
          
      }
    #sidebar ul li a {
      padding: 10px 0;
      display: block;
      color: rgba(255, 255, 255, 0.6); }
      #sidebar ul li a:hover {
        color: #fff; 
          
      }
    #sidebar ul li.active > a {
      background: transparent;
      color: #fff; 
        
    }
  @media (max-width: 991.98px) {
    #sidebar {
      margin-left: -250px; 
        
    }
      #sidebar.active {
        margin-left: 0; 
          
      }
      #sidebar .custom-menu {
        margin-right: -60px !important;
        top: 10px !important; 
          
      } 
      
  }
  #sidebar .custom-menu {
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 0;
    margin-right: -25px;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s; }
    @media (prefers-reduced-motion: reduce) {
      #sidebar .custom-menu {
        -webkit-transition: none;
        -o-transition: none;
        transition: none; } }
    #sidebar .custom-menu .btn {
      border-radius: 50%; }
      #sidebar .custom-menu .btn.btn-primary {
        background: #393c7f;
        border-color: #393c7f; }
        #sidebar .custom-menu .btn.btn-primary:hover, #sidebar .custom-menu .btn.btn-primary:focus {
          background: #393c7f !important;
          border-color: #393c7f !important;
            
        }

a[data-toggle="collapse"] {
  position: relative;
    
}

.dropdown-toggle::after {
  display: block;
  position: absolute;
  top: 50%;
  right: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
    
}

@media (max-width: 991.98px) {
  #sidebarCollapse span {
    display: none; }
    
}

#content {
  width: 100%;
  padding: 0;
  min-height: 100vh;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
}
.donut::after {
    content: "";
    position: absolute;
    inset: 25px;
    background: #0A0F1C;
    border-radius: 50%;
}

.orbit {
    display: none;
    position: absolute;
    inset: 0;
    animation: rotate 4s linear infinite;
}

.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #66DEFB;
    border-radius: 50%;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-92px);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sticky-footer {
    width: 100%;
    background-color: #111D30;
    border-top: 1px solid #31384F;
    padding-top: 200px;
}

@media (min-width: 770px) { 
    .cyber-risk {
        border-right: 1px solid #0D4F66;
    }
}

.custom-tabs {
    border-bottom: 1px solid #0D4F66;
}

.custom-tabs .nav-link {
    border-radius: 0px !important;
    color: #FFFFFF;
    font-weight: 500;
    border: none;           
    border-bottom: 1px solid transparent;
}

.custom-tabs .nav-link:hover {
    color: #FFFFFF;
    border-bottom: 1px solid transparent;
}

.custom-tabs .nav-link.active {
    border-bottom: 3px solid #66DEFB;  
    color: #FFFFFF;
}

.loading-card {
  background-color: #0b1220;
  background-image: 
    radial-gradient(circle at center, rgba(0, 200, 255, 0.25) 0%, transparent 15%),
    radial-gradient(circle at center, rgba(0, 200, 255, 0.18) 0%, transparent 30%),
    radial-gradient(circle at center, rgba(0, 200, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at center, rgba(0, 200, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at center, rgba(0, 200, 255, 0.05) 0%, transparent 75%);
  background-repeat: no-repeat;
    border: 1px solid #0D4F66;
    border-radius: 16px;
}

.legend-container {
    position: relative;
}

.legend {
    position: absolute;
    top: 50%; /* centra verticalmente rispetto all'icona */
    left: 100%; /* subito dopo l'icona */
    transform: translate(5px, -50%); /* piccolo offset orizzontale e centratura verticale */
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #ffffff;
    border-radius: 8px;
    background-color: #333; /* se vuoi sfondo visibile */
    white-space: nowrap; /* impedisce aleggenda di andare a capo */
    z-index: 10; /* sopra gli altri elementi */
}

#loading {
    width: 100%;
    height: 100%;
    background: #00000080;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading .spinner {
    border: 8px solid #D4DCE9; /* colore esterno */
    border-top: 8px solid #408DA0; /* colore della parte che gira */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.accordion-button:focus {
    border-color: #0D4F66 !important;
}


















