header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo span {
    color: #2563eb; 
    font-weight: 800;
}




@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}


body {
  animation: fadeInPage 0.8s ease-out forwards;
}




.card-shadow { box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.card-shadow:hover { transform: translateY(-5px); }
.stat-value { font-family: 'Courier New', Courier, monospace; font-weight: bold; }



.cursor-edit {
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.cursor-edit:hover {
    background-color: #e2e8f0; /* Un grigio leggero al passaggio del mouse */
}

.cursor-edit:focus {
    background-color: #fff;
    outline: 2px solid #3b82f6; /* Bordino blu quando scrivi */
    color: #000;
}
/* La card deve essere relative per contenere il timbro */
#container-soggetti > div {
    position: relative;
    transition: all 0.7s ease;
}

/* L'animazione di caduta */
.bancarotta-card {
    filter: grayscale(1) !important;
    transform: rotate(-10deg) translateY(30px) !important; /* Questo inclina! */
    opacity: 0.6;
    pointer-events: none; /* Blocca i click */
}

/* Il timbro rosso sopra la card */
.bancarotta-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: #ef4444;
    font-size: 3rem;
    font-weight: 900;
    border: 8px double #ef4444;
    padding: 10px;
    background: rgba(255,255,255,0.9);
    z-index: 100;
}