.cabecalho {
    display: flex;
    flex-direction:column ;
}

.cabecalho-container {
    display: flex;
    flex-direction:column ;
    width: 100%;
    height: 265px;
    justify-content: center;
    background-image: url("../img/header-background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.cabecalho-principal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.cabecalho-principal p  {
    color:#fff;
    font-size: 2em;
    font-style: italic;
    font-weight: 200;
    text-shadow: 0px 0px 6px rgba(255, 255, 255, 60%);
}

.cabecalho-logo {
    height: 8rem;
    border-radius: 15%;
    box-shadow: 0px 4px 5px rgba(31, 51, 106, 90%) ;
}

.cabecalho-nav {
    margin-top: 4em;
    padding: 1em 0 0 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-top: solid #fff 1px;
    background-color: rgba(255, 255, 255, 1%);
}

.cabecalho-nav a {
    font-size: 1.3rem;
    margin: 0 1rem;
    color: #fff;
    text-decoration: none;
    transition-property: color,  text-shadow;
    transition-duration: .3s;
    transition-timing-function: linear;
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 30%);
}

.cabecalho-nav a:hover {
    color: #1F336A;
    text-shadow: 0px 0px 3px rgb(31, 51, 106, 30%);
}

@media only screen and (min-width:768px) and (max-width:1023px){
    
    .cabecalho-principal {
        flex-direction: column;
    } 

    .cabecalho-principal p {
        font-size: 0px;
    } 

}

@media only screen and (max-width: 767px){

    .cabecalho-container{
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        height: auto;
        padding: 25px 0;
    }

    .cabecalho-principal {
        flex-direction: column;
    } 

    .cabecalho-principal p {
        font-size: 0px;
    } 

    .cabecalho-logo {
        height: 4rem;
    }

    .cabecalho-nav {
        width: 50%;
        margin: 0;
        padding:0;
        width: 100%;
        border:none;
        flex-direction: column;
        width: 25%;
    }

    .cabecalho-nav a {
        text-align: center;
        font-size: .8rem;
        text-size-adjust: auto;
        margin: .25em 0;
    }
}
