/* Tecno-Aural — compact floating navigation. */

/* =========================================
   ASTRA HEADER
   ========================================= */

body.tecnoaural-floating-navigation #masthead,
body.tecnoaural-floating-navigation .site-header,
body.tecnoaural-floating-navigation .ast-mobile-header-wrap,
body.tecnoaural-floating-navigation .ast-desktop-header-wrap {
    display: none !important;
}


/* =========================================
   FLOATING NAVIGATION
   ========================================= */

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

.tecnoaural-nav {
    position: fixed;
    z-index: 999999;

    top: 16px;
    left: 16px;

    width: max-content;
    max-width: calc(100vw - 32px);

    font-family: inherit;
}


/* =========================================
   MENU BUTTON
   ========================================= */

.tecnoaural-nav-toggle {
    position: relative;
    z-index: 3;

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

    width: 44px;
    height: 44px;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 50%;

    background: transparent !important;
    box-shadow: none !important;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}


/* Visual circle: 26 × 26 px */

.tecnoaural-nav-dot {
    display: block;
    flex: 0 0 26px;

    width: 26px;
    height: 26px;

    border-radius: 50%;
    background: #EB6B33;

    transition: transform .18s ease;
}

.tecnoaural-nav-toggle:hover .tecnoaural-nav-dot {
    transform: scale(1.08);
}


/* =========================================
   INSTITUTO TECNO-AURAL
   ========================================= */

.ta-floating-brand {
    position: absolute;
    z-index: 2;

    /*
     * O botão continua exatamente na posição atual.
     * A etiqueta começa à direita da área de 44px
     * ocupada pelo botão.
     */
    top: 22px;
    left: 44px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;

    width: max-content;
    max-width: calc(100vw - 70px);

    padding: 4px 7px;

    white-space: nowrap;

    /* Mesmo acabamento visual do painel */
    background: #EB6B33;
    color: #2B3E77;

    border: 0;
    border-radius: 4px;
    box-shadow: none;

    /*
     * Body size + Oswald Medium
     */
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;

    letter-spacing: normal;
text-transform: none;

pointer-events: none;

opacity: 1;
visibility: visible;

transition:
    opacity .18s ease,
    visibility .18s ease,
    transform .18s ease;
}


/* Oculta a identidade fora do Hero */

.ta-floating-brand.is-hidden {
    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-50%)
        translateX(-6px);
}



/* =========================================
   FOCUS
   ========================================= */

.tecnoaural-nav-toggle:focus-visible,
.tecnoaural-nav-panel a:focus-visible {
    outline: 2px solid #2B3E77;
    outline-offset: 3px;
}


/* =========================================
   MENU PANEL
   ========================================= */

.tecnoaural-nav-panel {
    position: absolute;
    z-index: 1;

    top: 48px;
    left: 9px;

    width: max-content;
    min-width: 190px;
    max-width: calc(100vw - 42px);
    max-height: calc(100dvh - 78px);

    overflow: auto;

    padding: 18px 22px;

    /* Mesmo acabamento visual da etiqueta */
    background: #EB6B33;
    color: #2B3E77;

    border: 0;
    border-radius: 4px;
    box-shadow: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-5px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


/* Menu open */

.tecnoaural-nav.is-open .tecnoaural-nav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;
}


/* =========================================
   MENU ITEMS
   ========================================= */

.tecnoaural-nav-list,
.tecnoaural-nav-list ul {
    display: flex;
    flex-direction: column;

    gap: 12px;

    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.tecnoaural-nav-list li {
    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}

.tecnoaural-nav-list li::before,
.tecnoaural-nav-list li::marker {
    content: none !important;
}


/* Links */

.tecnoaural-nav-list a {
    display: block;

    padding: 0 !important;

    background: transparent !important;
    color: #2B3E77 !important;

    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;

    letter-spacing: normal;
    text-transform: none;
    text-decoration: none !important;

    overflow-wrap: anywhere;
}

.tecnoaural-nav-list a:hover,
.tecnoaural-nav-list a:focus-visible {
    color: #2B3E77 !important;
    opacity: .65;
}


/* Current page */

.tecnoaural-nav-list .current-menu-item > a,
.tecnoaural-nav-list .current_page_item > a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}


/* Submenu */

.tecnoaural-nav-list .sub-menu {
    padding-left: 14px !important;
    margin-top: 10px !important;

    gap: 10px;
}


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

@media (max-width: 767px) {

    .tecnoaural-nav {
        top: 12px;
        left: 12px;

        max-width: calc(100vw - 24px);
    }

    /*
     * Mantemos o mesmo tamanho e alinhamento
     * da identidade também no mobile.
     */
    .ta-floating-brand {
        top: 22px;
        left: 44px;

        max-width: calc(100vw - 68px);

        padding: 5px 9px;

        font-size: 16px;
    }

    .tecnoaural-nav-panel {
        top: 47px;

        max-width: calc(100vw - 42px);

        padding: 18px 20px;
    }

}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .tecnoaural-nav * {
        transition: none !important;
    }

}

/* =========================================
   POINTER-FOLLOW (solo mouse)
   Sobre un hero, la pelotita hace de cursor.
   ========================================= */

@media (hover: hover) and (pointer: fine) {

    .tecnoaural-nav {
        will-change: transform;
    }

    /* Mientras sigue al cursor no captura el mouse:
       el clic llega al hero y abre el menú. */
    .tecnoaural-nav.is-following,
    .tecnoaural-nav.is-following .tecnoaural-nav-toggle {
        pointer-events: none;
    }

    /* Oculta el cursor del sistema sobre el hero.
       Enlaces y botones conservan su cursor propio. */
    body.ta-cursor-active {
        cursor: none;
    }

}
