﻿ /* Font Roboto globale */
body, .navbar, .dropdown-menu {
    font-family: 'Roboto', sans-serif;
}

    /* Navbar trasparente con blur e sticky */
    .navbar.bg-primary {
        background-color: rgba(42, 157, 143, 0.85) !important;
        backdrop-filter: blur(8px);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    /* Effetto box shadow navbar sticky */
    .navbar.sticky-top {
        box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
    }

/* Navbar sticky scrolled (quando scroll > 30px) */
body.scrolled .navbar.sticky-top {
    background-color: rgba(42, 157, 143, 0.95) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Colore link navbar */
.navbar .nav-link {
    color: #f4a261 !important; /* arancio chiaro */
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

    /* Hover link */
    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        color: #e76f51 !important; /* arancio acceso */
        text-decoration: none;
        transform: scale(1.05);
    }

    /* Link attivo */
    .navbar .nav-link.active {
        color: #e63946 !important; /* rosso acceso */
    }

/* Dropdown menu personalizzato */
.dropdown-menu {
    background-color: #264653;
    border: none;
    min-width: 10rem;
}

    .dropdown-menu .dropdown-item {
        color: #f1faee;
        transition: background-color 0.3s ease;
    }

        .dropdown-menu .dropdown-item:hover,
        .dropdown-menu .dropdown-item:focus {
            background-color: #2a9d8f;
            color: white;
        }

/* Navbar icone */
.navbar .bi {
    margin-right: 0.3rem;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Tema scuro */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

    body.dark-theme .navbar.bg-primary {
        background-color: rgba(31, 31, 31, 0.85) !important;
    }

    body.dark-theme .navbar .nav-link {
        color: #f1f1f1 !important;
    }

        body.dark-theme .navbar .nav-link:hover,
        body.dark-theme .navbar .nav-link:focus {
            color: #ff6f61 !important;
        }

    body.dark-theme .dropdown-menu {
        background-color: #1f1f1f;
    }

        body.dark-theme .dropdown-menu .dropdown-item {
            color: #bbb;
        }

            body.dark-theme .dropdown-menu .dropdown-item:hover,
            body.dark-theme .dropdown-menu .dropdown-item:focus {
                background-color: #444;
                color: white;
            }

/* Pulsante toggle tema */
#btnThemeToggle {
    cursor: pointer;
    border: none;
    background: transparent;
}

/* Footer scuro */
body.dark-theme footer {
    background-color: #1f1f1f;
    color: #bbb;
}

/* Animazione "pulse" al click */
.animated-button:active {
    transform: scale(0.96);
    box-shadow: 0 0 0.5rem rgba(0,0,0,0.2);
}

/* Adattamento a tema scuro */
body.dark-mode .btn-success {
    background-color: #157347;
    border-color: #157347;
}

body.dark-mode .btn-danger {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
}

/* Transizione morbida */
.animated-button {
    transition: all 0.1s ease-in-out;
}

/* Tema chiaro (default) */
body[data-theme="light"] {
    background-color: #fff;
    color: #000;
}

/* Tema scuro */
body[data-theme="dark"] {
    background-color: #121212;
    color: #eee;
}

    /* Puoi aggiungere ulteriori regole specifiche per il tema scuro */
    body[data-theme="dark"] a {
        color: #80cbc4;
    }

/*Nel tuo file CSS (es. site.css), puoi aggiungere le regole:*/
/*GestioneThemeTimbrature*/
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --primary-color: #0d6efd;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --primary-color: #0d6efd; /* puoi variare */
}

/* Applica alle sezioni */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Esempio di adattamento componente Bootstrap */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.approvata {
    background-color: #d4edda !important;
    color: #155724;
}



