@media (max-width: 1400px) {
    * {
        --font-size-a: 0.99em;
        --font-size-span: 1.17em;
        --font-size-p2: 1.5em;
        --font-size-p: 1.55em;
        --font-size-h2: 2.07em;
        --font-size-h1: 4.14em;
        --font-size-h0: 5.13em;
        --font-size-item-header: 1.55em;
        --margin-10: 7px;
        --margin-20: 14px;
        --margin-30: 21px;
        --margin-50: 35px;
    }

    #banner figure {
        height: 768px;
    }

    #banner figure:after {
        height: 768px;
    }

    #landing img {
        top: 103px
    }
}

@media (max-width: 1300px) {
    * {
        --margin-10: 8px;
        --margin-20: 16px;
        --margin-30: 24px;
        --margin-50: 40px;
    }

    #landing img {
        top: 125px
    }
}

@media (max-width: 1200px) {
    * {
        --font-size-h1: 3.68em;
    }

    #infos2 article:last-child {
        margin-left: 26.33333333% !important;
    }

    #infos article, #infos2 article {
        height: 300px;
    }

    .container {
        width: 992px;
    }

    #landing img {
        top: 172px
    }
}

@media (max-width: 1120px) {
    * {
        --font-size-item-header: 1.4em;
    }
}

@media (max-width: 1065px) {
    #login li {
        min-width: 100px;
    }
}

@media (max-width: 1000px) {
    .container {
        width: 898px;
    }

    #landing img {
        top: 214px
    }
}

@media (max-width: 991px) {
    * {
        --margin-10: 3px;
        --margin-20: 6px;
        --margin-30: 9px;
        --margin-50: 15px;
    }

    .container {
        width: 850px !important;
    }

    #banner {
        height: auto;
    }

    #landing img {
        top: 127px
    }

    .text-notitle {
        margin-top: 30px;
    }

    .ml-sm-0 {
        margin-left: 0 !important;
    }

    .mr-sm-20 {
        margin-right: 20px !important;
    }

    #login {
        right: 45px;
    }
}

@media (max-width: 934px) {
    * {
        --font-size-item-header: 1.25em;
    }
}

@media (max-width: 880px) {
    .container {
        width: 750px !important;
    }

    #menu .navbar-header {
        width: 27%;
    }

    #landing img {
        top: 230px
    }
}

@media (max-width: 860px) {
    * {
        --font-size-h1: 3.5em;
        --font-size-p: 1.4em;
    }

    #menu .navbar-brand {
        max-width: 200px;
    }

    #menu .navbar-header {
        width: 20%;
    }

    #landing img {
        top: 156px
    }
}

@media (max-width: 771px) {
    #login li {
        min-width: 80px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .owl-prev {
        left: 0;
    }

    .owl-next {
        right: 0;
    }

    .nav-pills li a {
        font-size: 18px;
    }

    #prova-box .col-md-12 .btn-primary {
        float: right;
    }

    .content-contact.col-md-6 {
        border: none !important;
    }

    footer img {
        margin-top: 8px;
        margin-bottom: 10px;
    }

    footer .col-md-5.col-xs-12 h4 {
        margin-top: 40px;
    }
}

@media (max-width: 802px) {
    #banner figure, #auth figure, .breadcrumb {
        background-image: url('../images/banners/edirigir-ead-tablet.webp')
    }

    #banner-footer {
        background-image: url('../images/banners/imagem-dispositivos-tablet.webp');
    }
}

@media (max-width: 767px) {
    .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
        background: transparent;
    }

    #menu .navbar-header {
        width: 100vw;
        box-sizing: border-box;
        display: flex;
    }

    .navbar-toggle {
        width: 44px;
        height: 44px;
        margin: 12px auto;
        text-align: center;
        float: none;
    }

    #btn-login {
        min-width: 200px;
        margin-top: 15px;
    }

    #btn-matricula, #btn-matricula2, #btn-login, #btn-enviar {
        padding: 5px !important;
    }

    #nav {
        display: inline-flex;
        position: relative;
        left: calc(50% - 221px);
    }

    #bs-example-navbar-collapse-1 {
        width: 100vw;
        position: relative;
        left: -1px;
        border-bottom: 1px solid var(--back-primary);
    }

    .container {
        width: 650px !important;
    }

    #infos2 article:last-child {
        margin-left: 0 !important;
    }

    #banner {
        height: auto;
    }

    #banner h3 {
        margin-top: 0;
    }

    #banner img {
        margin-top: 10%;
    }

    #banner .content-banner select {
        margin-left: 50px;
    }

    #about-box .col-md-3 {
        width: 100%;
        border-left: none;
        border-right: none;
    }

    #about-box .col-md-3 p {
        padding-bottom: 20px;
        border-bottom: 2px solid #d9eee7 !important;
    }

    #about-box .col-md-3 p:first-child {
        padding-top: 0;
    }

    #about-box .col-md-4 {
        border-right: none !important;
        border-left: none !important;
        border-bottom: 2px solid #D9EEE7;
    }

    #about-box .col-md-4:last-child {
        border-bottom: none;
    }

    #about-box .col-md-4 .btn-primary {
        margin-bottom: 50px;
    }

    #about-box .col-md-4 h4 {
        margin-top: 50px;
    }

    #about-box .col-md-4:first-child h4 {
        margin-top: 20px;
    }

    #prova-box .col-md-12 {
        text-align: center;
    }

    #funciona-box .col-md-6 {
        padding-right: 15px;
    }

    #funciona-box .col-md-6 a {
        width: 100%;
    }

    #funciona-box .col-md-6 h2 {
        font-size: 1.5em;
    }

    #funciona-box .col-md-6:first-child {
        padding-bottom: 30px;
        border-bottom: 1px solid #D9EEE7;
    }

    #funciona-box .col-md-6:last-child {
        border-left: none;
        padding-left: 15px;
        padding-top: 20px;
    }

    #about {
        text-align: center;
    }

    #about hr {
        margin: 20px auto;
    }

    #about figure {
        padding-top: 20px;
        background-image: url(../img/scanner_baixa_mobile.webp);
        height: 700px;
    }

    #cursos-box .col-md-3 {
        height: 192px !important;
        border-bottom: 1px solid #D9EEE7;
    }

    #cursos-box .col-md-3:last-child {
        border-bottom: none;
    }

    #cursos-box .col-md-3 img {
        margin: 0 auto;
    }

    #curso h1 {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    #curso figure.col-md-3 {
        padding-bottom: 20px;
    }

    #courses h1 {
        padding: 0 15px;
    }

    #accordion a {
        width: 90%;
    }

    .mt-xs-20 {
        margin-top: 20px !important;
    }

    #landing img {
        position: relative;
        top: 30px;
    }

    #landing-contact {
        text-align: center;
    }

    #landing-contact .contact p {
        float: none !important;
    }

    #pills-legislacao li.items-3x {
        width: 50% !important;
    }

    #pills-legislacao li.items-3x.homo {
        width: 100% !important;
    }

    #pills-cursos li {
        width: 100% !important;
    }

    .owl-item h4 {
        margin: 0 25px;
    }

    .owl-item .author {
        text-align: center !important;
    }

    .owl-nav {
        bottom: 75px;
    }

    .owl-next, .owl-prev {
        right: -10px;
    }

    .owl-prev {
        left: -10px;
    }

    #contact .content-contact {
        padding-bottom: 20px;
        border-bottom: 1px solid #D9EEE7 !important;
    }

    .content-contact.col-md-6 {
        padding-left: 0;
        padding-right: 0;
        line-height: 2 !important;
    }

    .content-curso img {
        margin-top: 20px;
    }

    #contact p {
        margin: 0;
    }

    #footer {
        height: auto;
    }

    #footer span.pull-left {
        float: none !important;
    }

    #footer span {
        margin-left: 0 !important;
    }

    #footer img {
        margin-bottom: 15px;
    }

    footer h2 {
        margin-top: 20px;
    }

    footer ul {
        margin-bottom: 50px;
    }

    footer .col-xs-7 img,
    footer .col-xs-5 img {
        margin: 20px 0;
    }

    .copyright {
        display: block;
        line-height: 2;
    }
}

@media (max-width: 700px) {
    .container {
        width: 580px !important;
    }

    #btn-matricula, #btn-matricula2 {
        width: 40%;
    }

    .card-header b {
        font-size: 10px;
    }

    #accordion h5 {
        padding-right: 30px;
    }

    #auth figcaption {
        width: 450px !important;
        left: calc(50% - 225px);
    }

    #auth figcaption .login-box.text-center {
        padding: 30px 50px;
        padding-bottom: 50px !important;
    }
}

@media (max-width: 600px) {

    #courses .col-md-4 {
        width: 100% !important;
        margin: 20px 0;
        padding: 0;
    }

    #courses .col-md-4:first-child,
    #courses .col-md-4:last-child {
        margin-top: 0;
    }
}

@media (max-width: 590px) {
    .container {
        width: 550px !important;
    }
}

@media (max-width: 560px) {
    .container {
        width: 530px !important;
    }
}

@media (max-width: 540px) {
    .container {
        width: 500px !important;
    }
}

@media (max-width: 534px) {
    * {
        --font-size-p2: 1.5em;
        --font-size-p: 1.5em;
        --font-size-h2: 2em;
        --font-size-h1: 3.9em;
        --font-size-h0: 4.8em;
    }

    #btn-login {
        min-width: 150px;
        padding-top: 5px;
    }

    .container {
        width: 450px !important;
    }

    #banner-footer h1, #banner-footer h2 {
        width: 70%;
    }

    #btn-login, #btn-matricula, #btn-matricula2, #btn-enviar, .btn-secondary {
        font-size: var(--font-size-p) !important;
    }

    #btn-matricula, #btn-matricula2 {
        width: 40%;
    }
}

@media (max-width: 490px) {
    #nav {
        left: calc(60% - 236px);
    }

    #nav a {
        font-size: var(--font-size-span);
        padding: 10px;
    }

    .col-xs-3, .col-xs-6 {
        width: 100%;
    }
}

@media (max-width: 470px) {
    * {
        --font-size-p2: 1.5em;
        --font-size-p: 1.5em;
        --font-size-h2: 2em;
        --font-size-h1: 3em;
        --font-size-h0: 4em;
    }

    .container {
        width: 350px !important;
    }

    #menu .navbar-brand {
        max-width: 150px;
        margin-top: 7px;
    }

    #btn-login {
        min-width: 100px;
        margin-top: 13px;
    }

    #banner-footer h1, #banner-footer h2 {
        width: 100%;
    }

    #btn-matricula, #btn-matricula2 {
        width: 60%;
    }

    #auth figcaption {
        width: 390px !important;
        left: calc(50% - 195px);
    }

    .login-box img {
        max-width: 150px !important;
    }

    .card-header b {
        font-size: 8px;
    }
}

@media (max-width: 420px) {
    #nav a {
        padding: 7px;
    }

    #nav {
        left: calc(60% - 218px);
    }
}

@media (max-width: 390px) {
    * {
        --font-size-p2: 1.5em;
        --font-size-p: 1.5em;
        --font-size-h2: 1.8em;
        --font-size-h1: 2.8em;
        --font-size-h0: 3.8em;
    }

    #nav {
        display: block;
        position: initial;
    }

    #nav li.active a {
        border-bottom: none;
        color: var(--back-primary) !important;
    }

    #btn-login {
        min-width: 120px;
    }

    #banner figure, #auth figure, .breadcrumb {
        background-image: url('../images/banners/edirigir-ead-mobile.webp')
    }

    #banner figure:after, #banner figure {
        height: 675px;
    }

    #banner-footer {
        background-image: url('../images/banners/imagem-dispositivos-mobile.webp');
    }

    #banner-footer, #banner-footer:after {
        height: 360px;
    }

    #auth figcaption {
        width: 350px !important;
        left: calc(50% - 175px);
    }
}

@media (max-width: 370px) {
    * {
        --font-size-p2: 1.2em;
        --font-size-p: 1.2em;
        --font-size-h2: 1.5em;
        --font-size-h1: 2.5em;
        --font-size-h0: 3.5em;
    }

    .container {
        width: 320px !important;
    }

    #btn-login {
        min-width: 100px;
        margin-top: 17px;
    }

    #accordion a {
        width: 68%;
    }

    #portaria p, #resolucoes p {
        font-size: var(--font-size-p) !important;
    }
}

@media (max-width: 340px) {
    * {
        --font-size-p2: 1.2em;
        --font-size-p: 1.2em;
        --font-size-h2: 1.3em;
        --font-size-h1: 2.2em;
        --font-size-h0: 3.2em;
    }

    .container {
        width: 270px !important;
    }

    #auth figcaption {
        width: 320px !important;
        left: calc(50% - 160px);
    }
}

@media (max-width: 320px) {
    * {
        --font-size-p2: 0.8em;
        --font-size-p: 0.8em;
        --font-size-h2: 1.1em;
        --font-size-h1: 2em;
        --font-size-h0: 3em;
    }

    .container {
        width: 270px !important;
    }

    #menu .navbar-brand {
        margin-top: 20px;
        padding: 5px;
    }

    #infos article, #infos2 article {
        height: 220px;
    }

    #banner figure:after, #banner figure {
        height: 530px;
    }

    #banner-footer, #banner-footer:after {
        height: 280px;
    }

    #auth figcaption {
        width: 300px !important;
        left: calc(50% - 150px);
    }

    #auth figcaption .login-box.text-center {
        padding: 30px 40px;
    }

    .login-box img {
        max-width: 120px !important;
    }
}

@media (max-width: 290px) {
    * {
        --font-size-p2: 0.8em;
        --font-size-p: 0.8em;
        --font-size-h1: 2.3em;
        --font-size-h0: 2.5em;
    }

    .container {
        width: 240px !important;
    }

    #banner-footer, #banner-footer:after {
        height: 320px;
    }

    #btn-login {
        margin-top: 20px;
    }

    #infos article, #infos2 article {
        height: 200px;
    }

    #auth figcaption {
        width: 280px !important;
        left: calc(50% - 140px);
    }

    #auth figcaption .login-box.text-center {
        padding: 30px;
    }
}

@media (max-width: 260px) {
    * {
        --font-size-h1: 2em;
        --font-size-h0: 2em;
    }

    .container {
        width: 220px !important;
    }

    #auth figcaption {
        width: 250px !important;
        left: calc(50% - 125px);
    }

    #auth figcaption .login-box.text-center {
        padding: 20px;
    }
}