/* =============================================
   AF HEADER
   ============================================= */

.af-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.af-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
}

/* LOGO */
.af-logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* NAV */
.af-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.af-nav-item {
    position: static;
}

.af-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    height: 64px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.af-nav-link:hover,
.af-nav-item.is-active .af-nav-link {
    color: #333;
    border-bottom-color: #12a19a;
}

.af-nav-arrow {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.af-nav-item.is-open .af-nav-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN BASE */
.af-dropdown {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #12a19a;
    border-bottom: 1px solid #eee;
    padding: 24px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.af-nav-item.is-open .af-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* DROPDOWN SIMPLES (Notícias) */
.af-dropdown-simple {
    display: flex;
    gap: 28px;
    justify-content: center;
}

/* DROPDOWN COM GRUPOS (Música / Cinema) */
.af-dropdown-groups {
    display: flex;
    gap: 0;
    justify-content: center;
}

.af-dropdown-col {
    display: flex;
    flex-direction: column;
    padding-right: 40px;
    margin-right: 40px;
    border-right: 1px solid #eee;
}

.af-dropdown-col:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.af-dropdown-label {
    font-size: 9px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #aaa;
    margin-bottom: 10px;
}

.af-dropdown-link {
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    padding: 5px 0;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.af-dropdown-link:hover {
    color: #12a19a;
}

/* HEADER RIGHT */
.af-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.af-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #666;
    text-decoration: none;
    border-radius: 50%;
    transition: color 0.15s ease, background 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.af-icon-btn:hover {
    color: #12a19a;
    background: #f5f5f5;
}

.af-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* HAMBURGER */
.af-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.af-hamburger span {
    display: block;
    height: 1.5px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.af-hamburger span:nth-child(1) { width: 22px; }
.af-hamburger span:nth-child(2) { width: 16px; }
.af-hamburger span:nth-child(3) { width: 22px; }

.af-hamburger.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    width: 22px;
}
.af-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.af-hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    width: 22px;
}

/* SEARCH BAR */
.af-search-bar {
    display: none;
    padding: 0 40px 14px;
    border-bottom: 1px solid #eee;
}

.af-search-bar.is-open {
    display: block;
}

.af-search-bar form {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 24px;
    overflow: hidden;
    padding: 0 16px;
}

.af-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    padding: 10px 0;
    background: transparent;
    color: #333;
}

.af-search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    color: #666;
}

.af-search-bar button svg {
    width: 16px;
    height: 16px;
}

/* REDES SOCIAIS MOBILE — escondidas por defeito */
.af-mobile-social {
    display: none;
}

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

@media (max-width: 900px) {

    .af-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9998;
        border-top: 1px solid #eee;
    }

    .af-nav.is-open {
        transform: translateX(0);
    }

    .af-nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 24px;
    }

    .af-nav-link {
        height: auto;
        padding: 14px 20px;
        border-bottom: 1px solid #f5f5f5;
        justify-content: space-between;
        font-size: 15px;
        border-left: 3px solid transparent;
        border-right: none;
    }

    .af-nav-item.is-active .af-nav-link {
        border-left-color: #12a19a;
        border-bottom-color: #f5f5f5;
        color: #12a19a;
    }

    /* Dropdown mobile — acordeão */
    .af-dropdown {
        position: static;
        border-top: none;
        border-bottom: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #fafafa;
        box-shadow: inset 3px 0 0 #12a19a;
    }

    .af-nav-item.is-open .af-dropdown {
        max-height: 500px;
        pointer-events: all;
    }

    .af-dropdown-simple,
    .af-dropdown-groups {
        flex-direction: column;
        gap: 0;
        max-width: none;
    }

    .af-dropdown-col {
        padding: 0;
        margin: 0;
        border-right: none;
    }

    .af-dropdown-label {
        padding: 10px 20px 0 28px;
        display: block;
        font-size: 9px;
        color: #12a19a;
    }

    .af-dropdown-link {
        display: block;
        padding: 10px 20px 10px 28px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    .af-hamburger {
        display: flex;
    }

    .af-header-right .af-icon-btn:not(.af-search-btn) {
        display: none;
    }

    .af-search-bar {
        padding: 12px 20px;
    }

    /* Redes sociais no fundo do menu mobile */
    .af-mobile-social {
        display: flex;
        gap: 16px;
        padding: 20px;
        margin-top: 8px;
        list-style: none;
    }
}

/* Esconder header do Divi */
#main-header,
#et-top-navigation,
.et-fixed-header {
    display: none !important;
}

/* Remover espaço branco abaixo do header */
#page-container,
#et-main-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.et_pb_section.et_pb_section_0 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}