#header.header {
    min-height: 74px;
    background: rgba(9, 18, 28, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

#header .container,
#header .row {
    position: relative;
}

#header .navbar-brand.navbar-bg {
    height: 74px;
    padding: 9px 12px;
    background: rgba(0,0,0,0.34);
}

#header .navbar-brand img {
    max-height: 56px;
}

.fetac-site-nav {
    float: right;
}

.fetac-site-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.fetac-site-nav-item {
    position: relative;
    list-style: none;
}

.fetac-site-nav-link {
    width: 86px;
    height: 74px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,0.18);
    background: transparent;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.fetac-site-nav-item:first-child .fetac-site-nav-link {
    border-left: 1px solid rgba(255,255,255,0.18);
}

.fetac-site-nav-link i {
    font-size: 16px;
}

.fetac-site-nav-link .fa-angle-down {
    position: absolute;
    right: 8px;
    top: 18px;
    font-size: 12px;
}

.fetac-site-nav-link:hover,
.fetac-site-nav-link:focus,
.fetac-site-nav-link.is-active {
    color: #fff;
    background: rgba(255,255,255,0.10);
    outline: 0;
    text-decoration: none;
}

.fetac-site-nav-link.is-active::after,
.fetac-site-nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #ff1f3d;
}

.fetac-site-panel {
    position: fixed;
    top: 74px;
    min-width: 230px;
    max-width: min(320px, calc(100vw - 24px));
    display: none;
    background: rgba(10, 18, 27, 0.96);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 38px rgba(0,0,0,0.26);
    z-index: 1050;
}

.fetac-site-panel.is-open {
    display: block;
}

.fetac-site-panel-right {
    right: 12px;
}

.fetac-site-panel-level {
    display: none;
    flex-direction: column;
}

.fetac-site-panel-level.is-active {
    display: flex;
}

.fetac-site-panel a,
.fetac-site-panel button {
    min-height: 42px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    text-align: left;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.fetac-site-panel a:hover,
.fetac-site-panel button:hover,
.fetac-site-panel a:focus,
.fetac-site-panel button:focus {
    color: #fff;
    background: rgba(255,255,255,0.10);
    outline: 0;
    text-decoration: none;
}

.fetac-panel-back {
    color: #cfe5ff !important;
}

.fetac-mobile-action-nav {
    display: none;
}

@media(max-width:768px) {
    body {
        padding-top: 122px;
        padding-bottom: 92px;
    }

    #header.header {
        min-height: 122px;
        background: rgba(9, 18, 28, 0.96);
    }

    #header .navbar-brand.navbar-bg {
        height: 64px;
        padding: 8px 10px;
    }

    #header .navbar-brand img {
        max-height: 48px;
    }

    #header .navbar-toggle,
    #header .navbar-collapse,
    #header .main-nav {
        display: none !important;
    }

    .fetac-site-nav {
        display: block;
        float: none;
        position: fixed;
        left: 0;
        right: 0;
        top: 64px;
        width: 100%;
        height: 58px;
        background: rgba(9, 18, 28, 0.98);
        border-top: 1px solid rgba(255,255,255,0.14);
        border-bottom: 1px solid rgba(255,255,255,0.14);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 1101;
    }

    .fetac-site-nav::before,
    .fetac-site-nav::after,
    .fetac-mobile-action-nav::before,
    .fetac-mobile-action-nav::after {
        position: fixed;
        z-index: 1102;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(255,255,255,0.92);
        color: #111827;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: FontAwesome;
        font-size: 14px;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(0,0,0,0.22);
        pointer-events: none;
    }

    .fetac-site-nav::before {
        content: "\f104";
        left: 4px;
        top: 82px;
    }

    .fetac-site-nav::after {
        content: "\f105";
        right: 4px;
        top: 82px;
    }

    .fetac-site-nav-list {
        min-width: max-content;
        height: 56px;
        align-items: center;
    }

    .fetac-site-nav-link {
        width: 74px;
        height: 56px;
        gap: 4px;
        padding: 5px 6px;
        font-size: 10px;
        border-right: 1px solid rgba(255,255,255,0.14);
    }

    .fetac-site-nav-link i {
        font-size: 15px;
    }

    .fetac-site-nav-link .fa-angle-down {
        right: 5px;
        top: 10px;
        font-size: 10px;
    }

    .fetac-site-panel {
        top: 122px;
        max-height: calc(100vh - 214px);
        overflow-y: auto;
        z-index: 1120;
    }

    .fetac-mobile-action-nav {
        position: fixed !important;
        left: 0;
        right: 0;
        top: auto !important;
        bottom: 0 !important;
        z-index: 1110;
        display: flex;
        gap: 4px;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
        background: rgba(255,255,255,0.96);
        box-shadow: 0 -12px 28px rgba(0,0,0,0.22);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fetac-mobile-action-nav::before {
        content: "\f104";
        left: 4px;
        bottom: 36px;
        z-index: 1111;
    }

    .fetac-mobile-action-nav::after {
        content: "\f105";
        right: 4px;
        bottom: 36px;
        z-index: 1111;
    }

    .fetac-mobile-action-item {
        flex: 0 0 118px;
        min-height: 62px;
        color: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        font-size: 10px;
        line-height: 1.1;
        font-weight: 800;
        text-align: center;
        text-transform: uppercase;
        text-decoration: none;
    }

    .fetac-mobile-action-item i {
        font-size: 25px;
    }

    .fetac-mobile-action-item:hover,
    .fetac-mobile-action-item:focus {
        color: #000;
        text-decoration: none;
        filter: brightness(.96);
    }

    .action-cursos { background: #ff454d; color: #fff; }
    .action-emec { background: #40f145; }
    .action-docs { background: #4b49ff; color: #fff; }
    .action-polo { background: #fff94a; }
    .action-prof { background: #f23cf1; color: #fff; }
    .action-aluno { background: #44e2e1; }
}
