/* GENERALE */
html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: white;
    color: black;
}

/* NAVBAR */
.navbar {
    background-color: #002855;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.navbar a:hover {
    color: #ffcc00;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 5px 10px;
}

.navbar img {
    height: 60px;
}

.navbar a.admin-link {
    background: #ffcc00;
    color: #000;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
}

.navbar a.admin-link:hover {
    background: #ffdd44;
}

/* HERO SECTION */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    padding-top: 30px;
}

.hero-text {
    width: 80%;
    max-width: 900px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #002855;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #333;
}

.hero-section {
    width: 100%;
    height: 500px;
    background: url('/static/img/shooting-range.jpg') no-repeat center center/cover;
}

/* MEDIA QUERY - Mobile Optimization */
@media (max-width: 768px) {
    .hero-text {
        width: 95%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-section {
        height: 250px;
    }
}

/* SEZIONI GENERALI */
.section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    text-align: center;
}

/* TABELLE */
.table th {
    background: #002855;
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #f8f9fa;
}

/* BACHECA ANNUNCI */
.bacheca-container {
    max-height: 400px;
    overflow-y: hidden;
    text-align: center;
}

.bacheca-container:hover {
    overflow-y: auto;
}


.list-group-item {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin: 5px 0;
    text-align: left;
}

/* DOVE TROVARCI */
.dove-trovarci-container {
    text-align: center;
}

/* FOOTER */
footer {
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
}

/* CONTENUTO */
.content {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* NAVBAR DROPDOWN MENU */
.dropdown-menu {
    background-color: #001f3f;
    border: none;
}

.dropdown-item {
    color: white !important;
}

.dropdown-item:hover {
    background-color: #003366;
    color: white !important;
}

:root {
    --colore-1: #ff9999;
    --colore-2: #ffcc99;
    --colore-3: #ffff99;
    --colore-4: #ccff99;
    --colore-5: #99ffcc;
    --colore-6: #99ccff;
    --colore-7: #cc99ff;
}

/* 7 colonne affiancate su desktop */
@media (min-width: 992px) {
    .col-lg-1-7 {
        flex: 0 0 auto;
        width: 14.2857%;
    }
}

.calendar-cell {
    min-height: 130px;
}

.richiesta-dima-porto-uso-sportivo {
    background-color: #9b59b6;
    /* viola o qualsiasi altro colore */
}

.richiesta-dima-porto-uso-caccia {
    background-color: #e74c3c;
    /* rosso */
}

.richiesta-dima-porto-uso-difesa-personale {
    background-color: #3498db;
    /* blu */
}

.richiesta-dima-guardie-giurate {
    background-color: #f1c40f;
    /* giallo */
}

.richiesta-dima-ente-pubblico {
    background-color: #2ecc71;
    /* verde */
}

.richiesta-patentini-guardie-giurate {
    background-color: #392b0024;
    /* verde */
}

.richiesta-patentini-ente-pubblico {
    background-color: #121413;
    /* verde */
}

.richiesta-altro {
    background-color: #552ecc;
    /* verde */
}

/* Stile per il pallino */
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 4px;
}