@charset "UTF-8";

@import url('_hamburger.css');

/* ========================================
   HEADER
   ======================================== */
header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: var(--min-w);
    max-width: var(--max-w);
    height: 110px;
    margin: auto;
    padding: 20px;
}
.logo {
    display: flex;
    background: var(--c_blue2);
    padding: 11px 50px;
    border-radius: 10px;
    flex-shrink: 0;
}
header > nav {
    background-color: var(--c_blue2);
    color: var(--c_white);
    max-width: 840px;
    height: 80px;
    margin: 0px auto;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    padding: 0px;
    border-radius: 10px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
nav > a {
    color: var(--c_white);
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
}
nav > a:hover {
    /*background: var(--c_blue1); linear-gradient(0deg, var(--c_blue1) 0%, var(--c_blue2) 100%);*/
    color: var(--c_yellow);
    transform: translateY(-2px);
}
nav > a.active {
    color: var(--c_yellow);
    /*background: var(--c_blue1); linear-gradient(0deg, var(--c_blue1) 0%, var(--c_blue2) 100%);*/
    font-weight: 600;
}
nav > a.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ========================================
   SELETOR DE IDIOMA
   ======================================== */
.language-selector {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 53px;
    background-color: var(--c_red);
    color: var(--c_white);
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}
.language-selector:hover {
    height: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.current-lang {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 53px;
    font-size: 0.95em;
    font-weight: 700;
    background-color: var(--c_red);
    transition: background-color 0.3s ease;
}
.current-lang i {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.7em;
    opacity: 0.8;
}
.language-selector:hover .current-lang {
    background-color: #c72d10;
}
.lang-options {
    display: none;
}
.language-selector:hover .lang-options {
    display: block;
}
.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 53px;
    font-size: 0.95em;
    font-weight: 700;
    background-color: var(--c_red);
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.lang-option:hover {
    background-color: #c72d10;
}
.lang-option.active {
    background-color: #a82610;
    border-left: 3px solid var(--c_yellow);
}
/* ========================================
   HEADER - RESPONSIVIDADE 1250px
   ======================================== */
@media only screen and (max-width: 1250px) {
    .language-selector {
        top: 0;
        right: 0;
        width: 55px;
        height: 45px;
    }
    .current-lang {
        height: 45px;
        font-size: 0.9em;
    }
    .lang-option {
        height: 45px;
        font-size: 0.9em;
    }
}
/* ========================================
   HEADER - RESPONSIVIDADE 1100px
   ======================================== */
@media only screen and (max-width: 1100px) {
    header > nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        padding: 5px;
    }
}
/* ========================================
   HEADER - RESPONSIVIDADE 900px
   ======================================== */
@media only screen and (max-width: 900px) {
    header > nav {
        display: flex;
    }
}

/* ========================================
   HEADER - MENU HAMBÚRGUER < 800px
   ======================================== */
@media only screen and (max-width: 800px) {
    header {
        height: 80px;
        padding: 15px 20px;
        justify-content: center;
    }
    
    .logo {
        margin: 0 auto;
    }
    
    header > nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--c_blue2);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px;
        margin: 0;
        border-radius: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    header > nav.active {
        right: 0;
    }
    
    nav > a {
        width: 100%;
        padding: 15px 20px;
        margin: 5px 0;
        text-align: left;
        border-left: 3px solid transparent;
    }
    
    nav > a:hover {
        border-left-color: var(--c_yellow);
        transform: translateX(5px);
    }
    
    nav > a.active {
        border-left-color: var(--c_yellow);
    }
    
    .logo {
        padding: 11px 30px;
    }
    
    .language-selector {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* ========================================
   HEADER - RESPONSIVIDADE 720px
   ======================================== */
@media only screen and (max-width: 720px) {
    header {
        height: 70px;
        padding: 10px 15px;
        justify-content: center;
    }
    
    .logo {
        padding: 8px 20px;
        margin: 0 auto;
    }
    
    .logo img {
        width: 120px;
        height: auto;
    }
    
    .language-selector {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    header > nav {
        width: 260px;
        padding: 70px 15px 15px;
    }
}

/* ========================================
   HEADER - RESPONSIVIDADE 600px
   ======================================== */
@media only screen and (max-width: 600px) {
    header {
        height: 65px;
        padding: 10px;
        justify-content: center;
    }
    
    .logo {
        padding: 8px 15px;
        margin: 0 auto;
    }
    
    .logo img {
        width: 100px;
        height: auto;
    }
    
    .language-selector {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    header > nav {
        width: 240px;
    }
    
    nav > a {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}