@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

html{
    font-size: 16px;
}

body{
    font-size: 1rem;
    font-family: "Lato", sans-serif;
}

.container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile{
    display: none;
}

.header{
    margin: 1rem 0;
}

.logo{
    width: 350px;
    margin: 0 auto 1rem;
    & img{
        width: 100%;
    }
}

.menu{
    justify-content: center;
    background-color: #003C78;
    padding: 1rem 0;
    font-size: 1rem;
    & ul{
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
    }
    & li{
        color:#fff;
        border-right: 2px solid #fff;
        padding: 0 1.2rem;
        letter-spacing: 0.09rem;
        &:last-child{
            border:none;
        }
        & a{
            transition: 300ms;
        }
        &:hover a{
            border-bottom: 2px solid #fff;
        }
    }
    & .mobile{
        width: 40px;
        cursor: pointer;
        display: none;
        & div{
            width: 100%;
            height: 5px;
            background-color: #fff;
            margin: .5rem
        }
    }
}

.banner{
    width: max-content;
    margin: 1.3rem auto;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding: 1.3rem 0;
    & img{
        max-width: 100%;
        display: flex;

    }
}

.section--articles{
    display: grid;
    grid-template-areas: "primary secondary" "primary tertiary";
    gap: 1.7rem;
    & img{
        width: 100%;
    }
    & .box--article{
        font-weight: 300;
        line-height: 1.1;
        &:nth-child(1){
            grid-area: primary;
            & h2{
                font-size: 2.2rem;
                
                margin: 1rem 0;
            }
        }
        &:nth-child(2){
            grid-area: secondary;
            border-bottom: 2px solid #ccc;
            & a{
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
                & h2{
                    margin: 1rem 0;
                }
            }
        }
        &:nth-child(3){
            grid-area: tertiary;
            margin-top:1rem;
            & a{
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
                & h2{
                    margin: 1rem 0;
                }
            }
        }
    }
}

.title--colunistas{
    background-color: #FF0000;
    text-align: center;
    padding: .6rem 0;
    color: #fff;
    font-size: 1.5rem;
}
.box--colunistas{
    margin-top: .1rem;
    display: flex;
    justify-content: space-around;
    background: #a9bfe8;
    background: linear-gradient(90deg, #a9bfe8 0%, #ffffff 50%, #a9bfe8 100%);
    & img{
        display: flex;
        transition: 300ms;
        &:hover{
            filter: grayscale(100%);
        }
    }
}

.news{
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* gap: 1rem; */
    & .coluna{
        &:last-child{
            & .article{
                border-right: none;
            }
        }
        & .article{
            /* margin-bottom: 1rem; */
            padding-bottom: 1rem;
            border-right: solid 1px #ccc;
        }
    }
    & .article{
        padding: 1rem;
        border: 2px solid ;
        padding-bottom: 1rem;
        /* border-image: linear-gradient( to top, #ccc, rgba(0, 0, 0, 0)) 1; */
        border: none;
        /* border-bottom: solid 1px #ccc; */
        
        & h2{
            font-weight: 400;
            line-height: 1;
            margin: .7rem 0 1rem;
            padding: 0 1rem;
        }
        & img{
            width: 100%;
            border-radius: 7px
        }
        & p{
            font-size: .8rem;
            padding: 0 1rem;
        }
    }
}

.footer{
    margin-top: 1rem;
    text-align: center;
    background-color: #003C78;
    padding: 4rem 0;
    & img{
        max-width: 200px;
    }
}

.page{
    display: grid;
    grid-template-columns: 80% calc(20% - 3rem);
    gap: 3rem;
    & .text-content{
        color: #303030;
        & h2{
            font-size: 2.3rem;
            line-height: 1.2;
            font-weight: 900;
        }
        & p{
            font-size: 1.1rem;
        }
        & .date{
            font-size: .8rem;
            color: #666;
            margin-bottom: 1rem;
        }
        & .box--video {
            width: 100%;
            padding-top: 56.25%;
            position: relative;
        }
        & .box--video iframe {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }
        & .image{
            margin-bottom: 2rem;
            & img{
                width: 100%;
            }
            & figcaption{
                font-style: italic;
                color: #9b9b9b;
                font-size: .9rem;
                padding: 3px 0px;
                text-align: left;
            }
        }
        & video{
            width: 100%;
            height: 100%;
        }
    }
    & .sidebar{
        /* background-color: #ccc; */
        & .sidebar-title{
            font-size: 1.5rem;
            font-weight: 700;
            /* margin-bottom: 1rem; */
            /* border-bottom: 2px solid #ccc; */
            text-align: center;
            color: #003C78;
        }   
        & .sidebar-content{
            border-top: 2px solid #ccc;
            padding-top: 1rem;
            margin-bottom: .7rem;
            &:nth-child(2){
                border-top: 2px solid #FF0000;
            }
            & img{
                width: 100%;
            }
            & h3{
                font-size: 1rem;
                line-height: 1.2;
            }
        }   
    }
}

@media (max-width: 737px){
    .menu{
        padding: .5rem 1rem;
        & .mobile{
            display: block;
            &.active{
                & div{
                    transition: 300ms;
                    &:nth-child(1){
                        transform: translateY(13px) rotate(45deg);
                        transition: 300ms;
                    }
                    &:nth-child(2){
                        opacity: 0;
                        transition: 300ms;
                    }
                    &:nth-child(3){
                        transform: translateY(-13px) rotate(-45deg);
                        transition: 300ms;
                    }
                }
            }
        }
        & ul{
            /* display: none; */
            display: none;
            margin-top: 2rem;
            transition: 300ms;
            &.active{
                display: block;
            }
            & li{
                margin: 1rem 0;
                border: none;
            }
        }
    }
    .banner{
        padding: .3rem .5rem ;
        width: 100%;
    }
    .section--articles{
        grid-template-areas: "primary" "secondary" "tertiary";
        & .box--article{
            &:nth-child(1){
                & h2{
                    font-size: 1.5rem;
                }
            }
            &:nth-child(2){
                grid-area: secondary;
                border-bottom: 2px solid #ccc;
                & a{
                    grid-template-columns: 1fr;
                    & h2{
                        font-size: 1.5rem;
                        line-height: 1;
                        margin-bottom: 0;
                    }
                }
            }
            &:nth-child(3){
                grid-area: tertiary;
                /* margin-top:1rem; */
                & a{
                    grid-template-columns: 1fr;
                    /* gap: 1rem; */
                    & h2{
                        font-size: 1.5rem;
                        line-height: 1;
                        margin-bottom: 0;
                    }
                }
            }
        }
    }
    .colunistas{
        /* display: none; */
        & .box--colunistas{
            & a:nth-child(2){
                display: none;
            }
            & a:nth-child(3){
                display: none;
            }
        }
    }
    .mobile{
        display: block;
    }

    .news{
        grid-template-columns: 1fr ;
        & .coluna .article{
            border: none;
        }
    }

    .page{
        grid-template-columns: 1fr;
        & .text-content{
            & h2{
                font-size: 1.5rem;
            }
            & img{
                width: 100%;
            }
        }
    }
}