.nav-container-holofote {
    position: relative;
    width: 100%;
    background-color: #023236;
    padding: 16px 0;
    text-align: center;
}

.main_holofote{
    padding-top: 0px;
}

.top-border {
    top: 0;
}

.bottom-border {
    bottom: 0;
}

.holofote-title{
    position: absolute;
    left: 20px;
    color: #FC7D5C;
    font-size: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    top: 50%;
    transform: translateY(-50%);
}

.oqe {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.oqe:hover {
    color: #AFF0ED;
    text-decoration: underline;
}

a {
    cursor: pointer;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; 
    padding: 0 20px; 
    max-width: 1142px;
    margin: auto; 
    position: relative;
    min-height: 50px;
}

.nav-link-holofote {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
    padding: 8px 12px;
    white-space: nowrap;
    border-radius: 4px;
}

.nav-link-holofote:hover {
    color: #AFF0ED;
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 5px solid white;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #0B3342;
}

.nav-links-center {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: white;
    flex-wrap: wrap;
}

/* Marcador de página atual */
.nav-link-holofote.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: white;
    border-radius: 3px;
}

.logo img {
    height: 100%;
    max-height: 50px;
    width: auto;
}

.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Media Queries para Responsividade Melhorada */

/* Tablets grandes e desktops pequenos */
@media screen and (max-width: 1024px) {
    .nav-menu {
        gap: 30px;
        padding: 0 15px;
    }
    
    .holofote-title {
        font-size: 16px;
        left: 15px;
    }
    
    .oqe {
        font-size: 13px;
        margin-left: 10px;
    }
}

/* Tablets */
@media screen and (max-width: 768px) {
    .nav-container-holofote {
        padding: 15px 0;
    }
    
    .nav-menu {
        gap: 20px;
        padding: 0 15px;
        flex-direction: column;
        min-height: auto;
    }

    .main_holofote {
        padding-top: 20px;
    }
    
    .holofote-title {
        position: static;
        transform: none;
        font-size: 16px;
        margin-bottom: 15px;
        justify-content: center;
        text-align: center;
        left: auto;
    }
    
    .nav-links-center {
        gap: 15px;
        justify-content: center;
    }
    
    .nav-link-holofote {
        font-size: 15px;
        letter-spacing: 0.3px;
        padding: 8px 15px;
    }
    
    .dropdown-menu {
        min-width: 180px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Smartphones grandes */
@media screen and (max-width: 600px) {
    .nav-container-holofote {
        padding: 12px 10px;
        margin-top: 110px;
    }
    
    .nav-menu {
        gap: 15px;
        padding: 0 10px;
    }
    
    .holofote-title {
        font-size: 15px;
        margin-bottom: 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .oqe {
        margin-left: 0;
        font-size: 13px;
    }
    
    .nav-links-center {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link-holofote {
        font-size: 14px;
        letter-spacing: 0.2px;
        padding: 8px 12px;
        min-width: fit-content;
    }
    
    .dropdown-menu {
        min-width: 160px;
        font-size: 13px;
        right: 0;
        left: auto;
        transform: none;
    }
    
    .dropdown-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .dropdown-icon {
        border-top: 4px solid white;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        margin-left: 4px;
    }
}

/* Smartphones */
@media screen and (max-width: 480px) {
    .nav-container-holofote {
        padding: 10px 8px;
    }
    
    .nav-menu {
        gap: 10px;
        padding: 0 8px;
    }
    
    .holofote-title {
        font-size: 14px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .oqe {
        font-size: 12px;
    }
    
    .nav-links-center {
        gap: 8px;
        justify-content: center;
    }
    
    .nav-link-holofote {
        font-size: 13px;
        letter-spacing: 0.1px;
        padding: 6px 10px;
        margin: 2px;
    }
    
    .dropdown-menu {
        min-width: 140px;
        font-size: 12px;
    }
    
    .dropdown-menu a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .dropdown-icon {
        border-top: 3px solid white;
        border-right: 3px solid transparent;
        border-left: 3px solid transparent;
        margin-left: 3px;
    }
    
    /* Ajuste das posições dos cantos */
    .top-left, .top-right {
        top: -1px;
    }
    
    .bottom-left, .bottom-right {
        bottom: -1px;
    }
    
    .top-left, .bottom-left {
        left: -1px;
    }
    
    .top-right, .bottom-right {
        right: -1px;
    }
}

/* Telas muito pequenas */
@media screen and (max-width: 360px) {
    .nav-container-holofote {
        padding: 8px 5px;
    }
    
    .nav-menu {
        gap: 8px;
        padding: 0 5px;
    }
    
    .holofote-title {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .oqe {
        font-size: 11px;
    }
    
    .nav-links-center {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .nav-link-holofote {
        font-size: 12px;
        padding: 5px 8px;
        margin: 1px;
        letter-spacing: 0px;
    }
    
    .dropdown-menu {
        position: fixed;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 120px;
        max-width: 90vw;
        font-size: 11px;
        z-index: 1001;
    }
    
    .dropdown-menu a {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .dropdown-icon {
        border-top: 3px solid white;
        border-right: 3px solid transparent;
        border-left: 3px solid transparent;
        margin-left: 2px;
    }
}

/* Modo paisagem para smartphones */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .nav-container-holofote {
        padding: 8px 0;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .holofote-title {
        position: static;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .nav-links-center {
        gap: 12px;
    }
    
    .nav-link-holofote {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* Melhorias de acessibilidade e UX */
@media (hover: none) and (pointer: coarse) {
    /* Para dispositivos touch */
    .nav-link-holofote {
        padding: 12px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Para telas de alta densidade (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-link-holofote.active::after {
        height: 1px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background-color: #2a2a2a;
        border: 1px solid #444;
    }
    
    .dropdown-menu a {
        color: #fff;
    }
    
    .dropdown-menu a:hover {
        background-color: #444;
        color: #fff;
    }
}