@media (max-width: 768px) {
    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    html, body {
        font-family: "Poppins";
    }

    .nav-desktop, .links {
        display: none;
      }

    #image-desktop, #swiper-desktop{
        display: none;
    }

    
    footer{
        text-align: center;
        color: gray;
        font-weight: 300;
        font-size: 9px;
        bottom: 0;
        left: 0;
        width: 100%;
    }
    
    /* PARTE SUPERIOR (NAV) */
    
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        position: relative;
        max-width: 100%;
        height: 100px;  
    }

    #logo{
        width: 200px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }


        /* BOTÃO DE MENU */
    .menu-btn {
        display: block;
        position: relative;
        top: 34px;
        left: -170px;
        background: none;
        border: none;
        font-size: 25px;
        z-index: 1000;
        transform: translate(-50%, -50%);
    }
    
    /* MENU LATERAL */
    .side-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 110%;
        background-color: #3374d7;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        z-index: 999;
        overflow-x: hidden;
        transition: none;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Cor semitransparente */
        z-index: 998; /* Fica atrás do menu lateral */
      }
    
    .side-menu.active {
        left: 0;
    }
    
    .side-menu nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

    .side-menu nav a {
        display: flex;
        padding: 10px;
        color: #FFF;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: bold;
        width: 220px;
        align-items: center;
    }

    .a{
        font-size: 30px;
    }

    .close-side-menu{
        position: absolute;
        top: 84%;
        left: 80%;
        display: flex;
        text-align: center;
        padding: 5px;
        color: #fff;
        font-size: 20px;
        background: none;
        border: 2px solid #fff;
        border-radius: 50px;
    }
    
    .links-mobile{
        display: flex;
        position: relative;
        top: 45%;
        left: 15px;
        align-items: center;
        text-align: center;
        justify-content: space-between;
        width: 180px;
    }

    .links-button-mobile{
        display: flex;
        font-size: 40px;
        text-decoration: none;
        background-color: #fff;
        border-radius: 20px;
        padding: 3px;
    }

    #insta{
        color: #ff00cc;
    }
    #face{
        color: #0047af;
    }
    #wpp{
        color: #40ea5f;
    }

    /* FORMULÁRIOS */

    .card {
        position: relative;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 450px;
        perspective: 1000px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 40%;
    }

    .card-inner {
        width: 370px;
        height: 450px;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 0.6s;
        top: 10px;
    }

    .card-front, .card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border: 2px solid #0047af;
        border-radius: 10px;
    }

    .card-back {
        transform: rotateY(180deg);
    }

    .card.flip .card-inner {
        transform: rotateY(180deg);
    }

    h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .form {
        width: 100%;
    }

    .input-box {
        position: relative;
        width: 100%;
        height: 50px;
        margin: 20px 0;
    }

    .input-box input {
        width: 100%;
        height: 100%;
        padding: 0 20px;
        border: 2px solid #2f2f2f;
        border-radius: 40px;
        background: transparent;
        color: #000;
        font-size: 16px;
        box-sizing: border-box;
    }

    .input-box i {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
    }

    .remember-forgot, .switch-link {
        width: 100%;
        font-size: 14.5px;
        margin: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        accent-color: #fff;
    }

    .remember-forgot a, .switch-link a {
        color: #0047af;
        text-decoration: none;
        font-weight: 600;
        padding: 20px;
        cursor: pointer;
    }

    .remember-forgot a:hover, .switch-link a:hover {
        text-decoration: underline;
    }

    .btn {
        width: 100%;
        height: 45px;
        background: #0047af;
        border: none;
        border-radius: 40px;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
}