﻿/* ===================================================
   RESET BASE
   =================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* Utility */

.red {
    color: red !important;
}

#lblEsito {
    display: block;
    margin: 10px 0;
}

.suggerito {
    border: 2px solid red !important;
    background-color: #ffe6e6;
}

.text-suggerito {
    color: #cc0000;
    font-size: 0.85rem;
}

/* ===================================================
   LAYOUT GENERALE
   =================================================== */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px; /* spazio per navbar fixed */
}

main {
    flex: 1 0 auto;
}

.footer {
    margin-top: auto;
    background-color: #212529;
    color: #ffffff;
    text-align: center;
    padding: 0 1rem;
}

    .footer img {
        max-height: 50px;
        margin: 0 auto;
    }

/* ===================================================
   ELEMENTI GENERICI
   =================================================== */

.row-missione {
    background-color: #fff3cd !important;
}

.clear-btn {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 0.25rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .clear-btn:hover {
        color: #dc3545;
    }

    .clear-btn i {
        font-size: 1rem;
    }

/* ===================================================
   HEADER / NAVBAR
   =================================================== */

.navbar-brand img {
    height: 32px;
}

.logo-header {
    max-height: 60px;
}

.navbar .text-end {
    line-height: 1.2;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
    text-align: center;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: #ffc107;
    }

.navbar .navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.25rem 0.5rem;
}

/* Navbar sempre fissa */

.navbar.fixed-top {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}

/* ===================================================
   MENU MOBILE
   =================================================== */

#navbarMobileMenu {
    position: fixed;
    top: 77px;
    left: 0;
    width: 100%;
    height: calc(100vh - 77px);
    background-color: #212529;
    z-index: 1040;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0;
}

    #navbarMobileMenu.show {
        transform: translateY(0);
        opacity: 1;
    }

    #navbarMobileMenu.collapse.show {
        display: block !important;
    }

.collapse:not(.show) {
    display: none !important;
    height: auto !important;
}

/* Animazioni menu */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   FORM / INPUT
   =================================================== */

.form-check {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

label {
    color: #8b8b8b !important;
}

input[type=checkbox] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    background-color: #007bff;
    cursor: pointer;
    position: relative;
    margin-right: 6px;
}

    input[type=checkbox]:checked::after {
        content: '✔';
        color: #fff;
        font-size: 14px;
        position: absolute;
        left: 2px;
        top: -2px;
    }

/* ===================================================
   LOGIN
   =================================================== */

.login-container {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

    .login-container .card {
        border: none;
        box-shadow: 0 0 15px rgba(0,0,0,0.1);
    }

    .login-container .card-body {
        padding: 2rem;
    }

/* ===================================================
   HOME BUTTONS
   =================================================== */

.block-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: 50vh;
    gap: 3vw;
    margin: 4vh 0;
    padding: 0 2vw;
}

.entra-user,
.esci-user {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    font-size: 6vw;
    color: #fff !important;
    border-radius: 40px;
    border: solid 20px transparent;
    background-repeat: no-repeat;
    background-size: 140px auto;
    transition: all .2s ease-in-out;
    min-width: 280px;
    height: 50vh;
    padding-bottom: 35px;
}

.entra-user {
    background-color: #216b21;
    border-color: #1a5d01;
    background-image: url('../images/click.png');
    background-position: center 80px;
}

.esci-user {
    background-color: #af0000;
    border-color: #851616;
    background-image: url('../images/click.png');
    background-position: center 80px;
}

.presenze-user {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 120px;
    font-size: 2rem;
    color: #fff !important;
    border-radius: 25px;
    border: solid 6px transparent;
    background-color: #003366;
    border-color: #002a52;
}

    .entra-user:hover,
    .esci-user:hover,
    .presenze-user:hover {
        transform: scale(1.03);
    }

/* ===================================================
   BADGE ACCESSO
   =================================================== */

.block-buttons-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.badge-user {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #dddddd;
    border-radius: 40px;
    border: solid 20px #ebebeb;
    width: 50%;
    padding: 20px;
    transition: all .25s ease-in-out;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

    .badge-user:hover {
        transform: scale(1.05);
    }

    .badge-user .badge-img {
        width: 70%;
    }

/* ===================================================
   SEZIONE STORIA
   =================================================== */

.section-storia {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

.site-header {
    text-align: center;
    padding-top: 35px;
    padding-bottom: 25px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003366;
    text-transform: uppercase;
    line-height: 1.3;
}

/* ===================================================
   COLORI PERSONALIZZATI
   =================================================== */

:root {
    --bs-orange-strong: #ff6100;
}

.bg-orange {
    background-color: var(--bs-orange-strong) !important;
    color: #fff !important;
}

.text-orange {
    color: var(--bs-orange-strong);
}

.border-orange {
    border-color: var(--bs-orange-strong);
}

.btn-purple {
    background-color: #6f42c1;
    color: #fff;
}

    .btn-purple:hover {
        background-color: #5a32a3;
    }

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width:992px) {

    .block-buttons {
        flex-direction: column;
        height: 100vh;
    }

    .entra-user,
    .esci-user,
    .presenze-user {
        width: 100%;
        font-size: 15vw;
        min-height:250px;
    }


    .block-buttons .presenze-user {
        font-size: 15vw !important;
    }

    .badge-user {
        width: 90% !important;
    }

    .rounded-

    .centered-force-logo {
        padding-left: 95px;
    }

@media (max-width:991.98px) {

    .navbar .text-end {
        display: none !important;
    }

    .centered-force-logo {
        padding-left: 0;
    }
}

@media (min-width:992px) {

    .mobile-only-link {
        display: none !important;
    }

    #navbarMobileMenu {
        display: none !important;
    }
}

/* ===================================================
   STAMPA
   =================================================== */

@media print {

    .navbar.fixed-top,
    .footer,
    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
    }

    body {
        font-size: 12px;
    }
}

/* SEZIONE STORIA */
.section-storia {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

.site-header {
    text-align: center;
    padding-top: 35px; /* 🔥 aumenta/diminuisci se serve */
    padding-bottom: 25px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003366;
    text-transform: uppercase;
    line-height: 1.3;
}
