
/* =========================================================
   CHAMPIONSHIP WEB MANAGER
   GLOBAL NAVIGATION
   ========================================================= */

.global-manager-nav,
.global-manager-nav * {
    box-sizing: border-box;
}

.global-manager-nav {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: #f5f5f5;
    color: #15151b;

    border-bottom: 1px solid #d7d7d9;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


.global-manager-nav-inner {
    width:
        min(
            1500px,
            calc(100vw - 64px)
        );

    min-height: 78px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


/* BRAND */

.global-manager-brand {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    color: #15151b;
    text-decoration: none;
}


.global-manager-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    background: #e10600;
    color: #ffffff;

    border-radius: 7px;

    font-size: 1.05rem;
    font-weight: 900;
}


.global-manager-brand-name {
    display: flex;
    flex-direction: column;

    line-height: 1;
}


.global-manager-brand-name strong {
    color: #15151b;

    font-size: 0.76rem;
    font-weight: 900;

    letter-spacing: 0.055em;
}


.global-manager-brand-name small {
    margin-top: 5px;

    color: #686970;

    font-size: 0.56rem;
    font-weight: 800;

    letter-spacing: 0.13em;
}


/* ACTIONS */

.global-manager-actions {
    display: flex;
    align-items: center;

    gap: 9px;
}


.global-nav-button {
    height: 36px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 0;
    border-radius: 5px;

    background: transparent;
    color: #15151b;

    font: inherit;

    font-size: 0.67rem;
    font-weight: 900;

    letter-spacing: 0.08em;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.global-nav-button:hover {
    background: #e8e8ea;
    color: #e10600;
}


.global-nav-button:active {
    transform: translateY(1px);
}


.global-nav-icon {
    color: #e10600;

    font-size: 0.95rem;
    font-weight: 900;
}


/* HOME */

.global-nav-home {
    min-width: 84px;

    background: #e10600;
    color: #ffffff;
}


.global-nav-home .global-nav-icon {
    color: #ffffff;
}


.global-nav-home:hover {
    background: #c90500;
    color: #ffffff;
}


/* MOBILE */

@media (max-width: 760px) {

    .global-manager-nav-inner {
        width: calc(100vw - 28px);
        min-height: 68px;
    }

    .global-manager-brand-name {
        display: none;
    }

    .global-manager-actions {
        gap: 3px;
    }

    .global-nav-button {
        padding-left: 10px;
        padding-right: 10px;
    }

}



/* =========================================================
   GLOBAL NAV - FINAL MANAGER VERSION
   ========================================================= */

.global-manager-right {
    display: flex;
    align-items: center;
    gap: 34px;
}


.global-user-area {
    position: relative;

    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 28px;

    border-left: 1px solid #dedee1;
}


.global-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    color: #e10600;

    font-size: 1.25rem;
    line-height: 1;
}


.global-user-info {
    display: flex;
    flex-direction: column;

    min-width: 100px;
}


.global-user-info strong {
    color: #15151b;

    font-size: 0.82rem;
    font-weight: 900;

    line-height: 1.1;
}


.global-user-links {
    display: flex;
    align-items: center;

    gap: 17px;

    margin-top: 5px;
}


.global-user-links a {
    color: #e10600;

    font-size: 0.67rem;
    font-weight: 800;

    text-decoration: none;

    transition: color 0.15s ease;
}


.global-user-links a:hover {
    color: #a90400;
}


@media (max-width: 820px) {

    .global-manager-right {
        gap: 10px;
    }

    .global-user-area {
        padding-left: 10px;
    }

    .global-user-icon,
    .global-user-info strong {
        display: none;
    }

    .global-user-links {
        margin: 0;
        gap: 9px;
    }
}


@media (max-width: 560px) {

    .global-user-links a:first-child {
        display: none;
    }

}



/* =========================================================
   GLOBAL NAV - HOME MODE
   ========================================================= */

.global-home-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}


.global-home-login {
    color: #15151b;

    font-size: 0.68rem;
    font-weight: 900;

    letter-spacing: 0.08em;

    text-decoration: none;
}


.global-home-login:hover {
    color: #e10600;
}


.global-home-new {
    height: 38px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    background: #e10600;
    color: #ffffff;

    border-radius: 5px;

    font-size: 0.66rem;
    font-weight: 900;

    letter-spacing: 0.06em;

    text-decoration: none;
}


.global-home-new:hover {
    background: #c90500;
}


.global-home-new span {
    font-size: 1rem;
    line-height: 1;
}


.global-user-area-home {
    border-left: 0;
    padding-left: 0;
}


@media (max-width: 560px) {

    .global-home-actions {
        gap: 8px;
    }

    .global-home-new {
        padding-left: 11px;
        padding-right: 11px;
    }

}



/* =========================================================
   HOME PLATFORM LABEL
   ========================================================= */

.global-platform-label {
    flex: 1 1 auto;

    display: flex;
    align-items: center;

    gap: 9px;

    margin-left: clamp(35px, 5vw, 90px);

    color: #15151b;

    font-size: .68rem;
    font-weight: 900;

    letter-spacing: .13em;

    white-space: nowrap;
}


.global-platform-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #e10600;
}


@media (max-width: 980px) {

    .global-platform-label {
        display: none;
    }

}



/* ==========================================================
   CHAMPIONSHIP WEB MANAGER
   Sticky global navigation
   ========================================================== */

.global-nav,
.site-header,
.manager-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
}

/*
 * Evita che contenuti o ombre passino sopra alla navbar.
 */
.global-nav::after,
.site-header::after,
.manager-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: rgba(0, 0, 0, .08);
}


/* ==========================================================
   Manager breadcrumb
   ========================================================== */

.manager-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    max-width: 100%;
    margin: 22px 26px 0;
    padding: 0;

    min-height: 28px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.manager-breadcrumb a {
    color: #e10600;
    text-decoration: none;
}

.manager-breadcrumb a:hover {
    text-decoration: underline;
}

.manager-breadcrumb-separator {
    color: #9a9a9a;
    font-weight: 500;
}

.manager-breadcrumb-context {
    color: #555;
}

.manager-breadcrumb-home {
    font-size: 15px;
}


/* mobile */
@media (max-width: 800px) {

    .manager-breadcrumb {
        margin:
            16px
            18px
            0;
        gap: 7px;
        font-size: 13px;
    }

}


/* ==========================================================
   MANAGER BREADCRUMB V2
   ========================================================== */

.manager-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0;

    width: calc(100% - 52px);
    max-width: 1500px;

    margin:
        16px
        auto
        0;

    padding:
        10px
        14px;

    min-height: 38px;

    background: #ffffff;

    border:
        1px solid
        #e10600;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.manager-breadcrumb a,
.manager-breadcrumb-current {
    display: inline-flex;
    align-items: center;

    min-height: 20px;

    white-space: nowrap;
}

.manager-breadcrumb a {
    color: #e10600;

    text-decoration: none;

    transition:
        color .15s ease,
        background .15s ease;
}

.manager-breadcrumb a:hover {
    color: #111111;
}

.manager-breadcrumb-current {
    color: #777777;

    font-weight: 600;
}

.manager-breadcrumb-separator {
    display: inline-flex;

    margin:
        0
        12px;

    color: #777777;

    font-weight: 500;
}

.manager-breadcrumb-home {
    gap: 5px;
}

.manager-breadcrumb-home-icon {
    position: relative;
    top: -1px;

    color: #e10600;

    font-size: 16px;
    line-height: 1;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 800px) {

    .manager-breadcrumb {
        width: calc(100% - 28px);

        margin-top: 10px;

        padding:
            9px
            11px;

        font-size: 12px;

        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .manager-breadcrumb-separator {
        margin:
            0
            8px;
    }

}


/* ==========================================================
   GLOBAL NAV - FIXED HEADER FINAL
   Questa regola è intenzionalmente in fondo al file.
   ========================================================== */

.global-manager-nav {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;

    z-index: 10000 !important;

    width: 100%;

    background: #f5f5f5;

    isolation: isolate;
}


/*
 * Sticky richiede che gli ancestor non abbiano overflow che
 * crei un contenitore di scrolling separato.
 */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
}


/* ombra leggera per separare la barra dal contenuto in scroll */
.global-manager-nav::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 1px;

    background: rgba(0, 0, 0, .08);

    pointer-events: none;
}


/* breadcrumb resta nel normale flusso della pagina */
.manager-breadcrumb {
    position: relative;
    z-index: 10;
}


/* ============================================================
   USER AVATAR
   ============================================================ */

.global-nav-user-identity {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.global-nav-user-avatar {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    object-fit: cover;
    object-position: center;

    border: 1px solid #d4d4d4;
    background: #ffffff;
}

.global-nav-user-avatar-fallback {
    background: #e10600;
    border-color: #e10600;

    color: #ffffff;

    font-size: 12px;
    font-weight: 900;
}


/* ============================================================
   NAV ACCOUNT AVATAR FINAL
   ============================================================ */

.global-user-area .global-nav-user-identity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
}

.global-user-area .global-nav-user-avatar {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;

    display: inline-flex !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: 2px solid #ffffff !important;
    outline: 1px solid #d2d2d2;

    background: #eeeeee;

    overflow: hidden;
}

.global-user-area .global-nav-user-avatar-fallback {
    align-items: center;
    justify-content: center;

    background: #e10600 !important;

    color: #ffffff !important;

    font-size: 12px;
    font-weight: 900;
}


/* ==========================================================
   UI LANGUAGE SWITCHER
   ========================================================== */

.global-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
    white-space: nowrap;
}

.global-language-option {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 3px 2px;
    margin: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    color: #777;
    cursor: pointer;
    transition:
        color .15s ease,
        opacity .15s ease;
}

.global-language-option:hover {
    color: #111;
}

.global-language-option.is-active {
    color: #e10600;
}

.global-language-separator {
    color: #bbb;
    font-size: 11px;
    line-height: 1;
}


/* ==========================================================
   STICKY MANAGER NAV + BREADCRUMB
   ========================================================== */

:root {
    --manager-topbar-height: 78px;
}


/* TOP BAR */

.global-manager-nav {
    position: sticky !important;
    top: 0 !important;

    z-index: 10000 !important;

    width: 100%;

    background: #f5f5f5;
}


/* BREADCRUMB */

.manager-breadcrumb {
    position: sticky !important;

    top: var(
        --manager-topbar-height
    ) !important;

    z-index: 9990 !important;

    display: flex !important;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    width: 100%;

    background: #f5f5f5;

    box-shadow:
        0 5px 10px
        rgba(0,0,0,.025);
}


/* BREADCRUMB LINKS */

.manager-breadcrumb > * {
    min-width: 0;
}


/* BACK TO SEASON */

.breadcrumb-back-season {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-height: 32px;

    padding: 0 12px;

    margin-left: auto;

    border: 1px solid #d3d5d8;
    border-radius: 4px;

    background: #fff;

    color: #111 !important;

    font-size: 10px;
    font-weight: 900;

    text-decoration: none !important;

    white-space: nowrap;
}


.breadcrumb-back-season:hover {
    border-color: #e10600;

    color: #e10600 !important;
}


/* TOP BACK NON DEVE PIÙ COMPARIRE */

.global-manager-nav
.global-nav-back,

.global-manager-nav
.manager-nav-back,

.global-manager-nav
.nav-back {
    display: none !important;
}


@media (max-width: 800px) {

    :root {
        --manager-topbar-height: 72px;
    }

}


/* ==========================================================
   FIXED MANAGER BREADCRUMB - FINAL
   ========================================================== */

/*
 * Top bar già bloccata.
 * Il breadcrumb viene fissato immediatamente sotto.
 */

:root {
    --manager-topbar-height: 82px;
    --manager-breadcrumb-height: 58px;
}


/* TOP NAV */

.global-manager-nav {
    position: sticky !important;
    top: 0 !important;

    z-index: 10000 !important;

    width: 100%;

    background: #f5f5f5 !important;
}


/* BREADCRUMB */

.manager-breadcrumb {
    position: fixed !important;

    top: var(--manager-topbar-height) !important;

    left: 0 !important;
    right: 0 !important;

    z-index: 9990 !important;

    box-sizing: border-box;

    width: auto !important;

    margin: 0 30px !important;

    background: #f5f5f5 !important;

    box-shadow:
        0 5px 10px
        rgba(0, 0, 0, .035);
}


/*
 * Compensazione verticale:
 * il contenuto Manager deve partire sotto
 * topbar + breadcrumb fixed.
 */

body:has(.manager-breadcrumb) .manager-content {
    padding-top:
        calc(
            var(--manager-breadcrumb-height)
            + 28px
        ) !important;
}


/*
 * Evita che eventuali vecchie regole sticky/relative
 * prendano il sopravvento.
 */

.manager-breadcrumb {
    transform: none !important;
}


/* MOBILE */

@media (max-width: 800px) {

    :root {
        --manager-topbar-height: 76px;
        --manager-breadcrumb-height: 58px;
    }

    .manager-breadcrumb {
        margin: 0 12px !important;

        overflow-x: auto;

        white-space: nowrap;
    }

}


/* ==========================================================
   BREADCRUMB COMPACT LAYOUT
   ========================================================== */

.manager-breadcrumb {
    justify-content: flex-start !important;
    align-items: center !important;

    gap: 0 !important;

    white-space: nowrap !important;
}


/*
 * Tutti gli elementi del breadcrumb restano vicini
 * come nella versione originale.
 */

.manager-breadcrumb a,
.manager-breadcrumb span,
.manager-breadcrumb strong {
    flex: 0 0 auto !important;
}


/*
 * Evita che vecchie regole allarghino
 * singoli elementi su tutta la barra.
 */

.manager-breadcrumb > * {
    width: auto !important;
    min-width: 0 !important;

    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}


/*
 * Separatore "/"
 */

.manager-breadcrumb .breadcrumb-separator {
    margin: 0 12px !important;

    color: #777 !important;
}


/*
 * Fallback:
 * se i separatori sono semplici span senza classe.
 */

.manager-breadcrumb > span {
    margin-left: 10px !important;
    margin-right: 10px !important;
}


/*
 * I link restano compatti.
 */

.manager-breadcrumb a {
    margin: 0 !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}


/*
 * Se esiste un elemento finale non-link,
 * resta vicino agli altri.
 */

.manager-breadcrumb strong {
    margin: 0 !important;
}


/* MOBILE */

@media (max-width: 800px) {

    .manager-breadcrumb {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

}
