/* ═══════════════════════════════════════════════════════════════
   site.css — Jefferson / Croccante Pizza
   Base globale: font-size, focus ring, body margin, utilities.
   ═══════════════════════════════════════════════════════════════

   MODIFICA LEGGIBILITÀ:
   - Mobile: 11px → 15px  (+36%)
     11px era sotto la soglia confortevole per lettura prolungata.
     Tutti i valori rem dell'app ereditano questa base, quindi
     alzarla qui migliora uniformemente ogni pagina senza
     toccare i singoli selettori.
   - Desktop ≥768px: invariato a 16px (già corretto).
*/

html {
    font-size: 15px;          /* mobile: era 11px — alzato per leggibilità */
}

@media (min-width: 768px) {
    html {
        font-size: 16px;      /* desktop: invariato */
    }
}

/* Focus ring accessibile */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* ── BOTTONI ICON ─────────────────────────────────────────────── */
.btn-icon {
    background: transparent !important;
    border: none !important;
    padding: 4px 6px;
    transition: all 0.2s ease-in-out;
}

    .btn-icon:hover  { transform: scale(1.1); }
    .btn-icon:active { transform: scale(0.92); }

/* Bottone Ordinazione principale */
.btn-action-main {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
}

    .btn-action-main i {
        display: inline-block !important;
        font-size: 0.9rem;
        vertical-align: middle;
    }

/* ── NAVBAR LEGACY (classi Bootstrap) ────────────────────────── */
.nav-main {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #222 !important;
    padding: 6px 14px !important;
    transition: all 0.2s ease;
}

    .nav-main:hover {
        background-color: rgba(220,53,69,0.1);
        color: #dc3545 !important;
        transform: translateY(-1px);
    }

.navbar .nav-link.active {
    font-weight: 700;
    color: #dc3545 !important;
    border-bottom: 3px solid #dc3545;
}

/* ── BADGE ORDINE MINIMO ─────────────────────────────────────── */
.menu-box        { position: relative; }
.prenota-wrapper { position: relative; }

.minimo-badge-float {
    position: absolute;
    top: -50px;
    left: -110px;
    width: 100px;
    min-height: 40px;
    padding: 5px 18px;
    border: 1px solid #dc3545;
    border-radius: 10%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    box-shadow: 0 9px 10px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}

    .minimo-badge-float .testo-top {
        font-size: 13px;
        font-weight: bold;
        color: #dc3545;
    }

    .minimo-badge-float .importo {
        font-size: 17px;
        font-weight: bold;
        color: #dc3545;
    }

.header-wrapper { position: relative; }

/* ── ACCORDION ────────────────────────────────────────────────── */
.accordion-button {
    background-color: #e4e4e4 !important;
    color: #c82333 !important;
    font-weight: 700;
    border: none;
}

.accordion-body {
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

    .accordion-body.fade-in { opacity: 1; }

.accordion-item {
    border: 1px solid darkgrey;
    border-radius: 0.5rem;
}

/* ── HOVER MENU DISABILITATO FUORI DA ORDINE ATTIVO ─────────── */
body:not(.ordine-attivo) .menu-item-row:hover,
body.in-preparazione .menu-item-row:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: default !important;
}

.layout-ordini { overflow-x: hidden; }

/* ── FOOTER LAYOUT ────────────────────────────────────────────── */
.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
}

#btnPrenotaOrdine { min-width: 150px; }

/* Contatori ordine */
.menu-counter-danger { color: #dc3545; }
.menu-counter-ok     { color: #198754; }

/* ── MODALE MENU ──────────────────────────────────────────────── */
#modalMenu .modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

#modalMenu .menu-sotto-header { position: static; }
