/* ==========================================================================
   1. REGOLAZIONI GENERALI E SFONDO (PALETTE VERDE)
   ========================================================================== */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    /* OPZIONE 1 (Default): Verde Salvia / Menta Soft (Raffinato e riposante) */
    /*background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;*/
    /* OPZIONE 2 : Verde Smeraldo Pastello chiaro */
    /*background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%) !important; */
    /* OPZIONE 3 : Verde Acqua / Eucalyptus */
    /* background: linear-gradient(135deg, #e6f4ea 0%, #b2dfdb 100%) !important;*/
    /* OPZIONE 4 : Bianco */
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f8 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: #1e293b;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;    
}

/* Rimuove sfondi bianchi rigidi ereditati da Bootstrap */
main, .container, .container-fluid, .lista-container-trasparente {
    background-color: transparent !important;
    border: none !important;
    /*padding: 0 !important;*/
    box-shadow: none !important;
}

/* ==========================================================================
   2. CARD ARTICOLI IN GLASSMORPHISM (EFFETTO VETRO TRASPARENTE)
   ========================================================================== */
.list-group-item.item-riga {
    /* Trasparenza ottimizzata per far filtrare la sfumatura verde sottostante */
    background-color: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 1rem !important;
    margin-bottom: 0.65rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

    .list-group-item.item-riga:hover {
        background-color: rgba(255, 255, 255, 0.75) !important;
        transform: translateY(-1px);
    }

    .list-group-item.item-riga:last-child {
        margin-bottom: 0;
    }

/* Ingrandisce le icone d'azione e aumenta l'area di tocco (padding) */
.item-riga .btn-sm i.bi {
    font-size: 1.5rem !important; /* Aumenta la dimensione dell'icona (puoi mettere 1.25rem se le vuoi ancora pił grandi) */
}

.item-riga button.btn-sm {
    padding: 0.4rem 0.5rem !important; /* Allarga l'area cliccabile attorno all'icona */
}

/* ==========================================================================
   3. COMPONENTI CARD E FORM (MODALI E CONTROLLI)
   ========================================================================== */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    border-color: #dee2e6;
}

    .form-control:focus, .form-select:focus {
        box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.2); /* Focus verde soft */
        border-color: #10b981;
    }

.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ==========================================================================
   4. BOTTOM NAVIGATION BAR (STILE INSTAGRAM)
   ========================================================================== */
.nav-item-insta {
    transition: all 0.2s ease;
    border-radius: 50rem;
}

    .nav-item-insta.active-pill {
        background-color: rgba(16, 185, 129, 0.15); /* Pillola evidenziata in verde */
        color: #047857 !important;
        transform: scale(1.05);
    }

    .nav-item-insta:hover {
        background-color: rgba(255, 255, 255, 0.8);
        color: #000 !important;
    }
