/* Contenitore lavagna */
#lavagna {
    width: 100%;
    min-height: 800px;
    /* più grande */
    background: repeating-linear-gradient(90deg,
            /* linee verticali */
            #f8f9fa,
            #f8f9fa 29px,
            #e9ecef 30px),
        repeating-linear-gradient(0deg,
            /* linee orizzontali */
            #f8f9fa,
            #f8f9fa 29px,
            #e9ecef 30px);
    position: relative;
    overflow: hidden;
    border: 3px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    background-size: 30px 30px;
    /* quadrettatura regolare */
}

/* Nota */
.nota {
    width: 180px;
    /* più strette */
    font-size: 0.85rem;
    /* testo più piccolo */
    cursor: move;
    position: absolute;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    /* angoli meno grandi */
    transition: all 0.2s ease-in-out;
    padding: 6px;
    /* meno spazio interno */
}

/* Hover */
/*.nota:hover {
/*    transform: scale(1.05);
/*    z-index: 20;
/*    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
/*}

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 992px) {
    #lavagna {
        min-height: 500px;
        padding: 10px;
    }
    .nota {
        width: 200px;
        font-size: 0.9rem;
    }
    .nota-data {
        font-size: 1.2rem;
    }
}

/* Smartphone */
@media (max-width: 576px) {
    #lavagna {
        min-height: auto;
        padding: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nota {
        position: relative !important; /* non più absolute */
        width: 95%;
        margin-bottom: 12px;
        left: auto !important;
        top: auto !important;
        cursor: default; /* niente drag su mobile */
    }
    .nota strong {
        font-size: 0.95rem;
    }
    .nota-data {
        font-size: 1rem;
        text-align: center;
    }
    .nota-footer .btn-edit,
    .nota-footer .btn-delete {
        font-size: 1rem;
        padding: 6px;
    }
}
/* Pulsanti responsive */
@media (max-width: 576px) {
    .btn {
        font-size: 0.9rem;
        padding: 8px;
    }

    #btn-nuovo,
    .btn-dark {
        width: 100%;
        /* pulsanti a tutta larghezza */
    }
}