﻿/* =========================================================
   UNO NAVBAR 
   ========================================================= */


.row.uno-navbar.uno-navbar-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    column-gap: 8px !important;
    width: 100% !important;
}

    .row.uno-navbar.uno-navbar-grid > .uno-navbar-leftcol,
    .row.uno-navbar.uno-navbar-grid > .uno-navbar-rightcol {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
    }

.uno-navbar-leftcol {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.uno-brand-cell {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
}

.uno-brand-logo {
    width: 55px !important;
    height: auto !important;
    vertical-align: middle !important;
}

.uno-brand-link {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    color: #ffffff !important;
    opacity: 0.8 !important;
}

.uno-navbar-title {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* 4) Destra: SEMPRE affiancati e vicini */
.uno-navbar-rightcol {
    min-width: 0 !important;
}

.uno-navbar-rightwrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

/* bottone lingua */
.uno-lang-btn {
    background: #ffffff !important;
    white-space: nowrap !important;
    padding: 6px 10px !important;
}

/* menu lingua */
.uno-lang-menu {
    width: 100px !important;
}

/* logo a destra */
.uno-org-logo {
    display: inline-block !important;
    vertical-align: middle !important;
    flex: 0 0 auto !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

/* =========================================================
   BREAKPOINTS (px)
   ========================================================= */

/* PHONE <= 750 */
@media (max-width: 750px) {
    .row.uno-navbar.uno-navbar-grid {
        column-gap: 6px !important;
    }

    .uno-navbar-rightwrap {
        gap: 6px !important;
    }

    .uno-lang-btn {
        padding: 4px 6px !important;
    }

    .uno-org-logo {
        max-width: 80px !important;
        max-height: 80px !important;
    }

    /* su phone nascondo SOLO la label (resta nel DOM, non “cancello” nulla)
     perché è la causa #1 di wrap su Android */
    .uno-lang-label {
        display: none !important;
    }
}

/* TABLET 751-1024 */
@media (min-width: 751px) and (max-width: 1024px) {
    .uno-org-logo {
        max-width: 110px !important;
        max-height: 110px !important;
    }

    /* spesso su tablet Android la label fa overflow: la nascondo fino a 1024 */
    .uno-lang-label {
        display: none !important;
    }
}

/* PC 1025-1366 */
@media (min-width: 1025px) and (max-width: 1366px) {
    .uno-org-logo {
        max-width: 150px !important;
        max-height: 150px !important;
    }

    .uno-lang-label {
        display: inline !important;
    }
}

/* MONITOR >= 1367 */
@media (min-width: 1367px) {
    .uno-org-logo {
        max-width: 150px !important;
        max-height: 150px !important;
    }

    .uno-lang-label {
        display: inline !important;
    }
}
