
@media screen and (max-width: 1024px) {
    .logo img {
        width: 15vw;
    }

    .menu-links {
        gap: 18px;
    }

    .menu-links a {
        font-size: 1rem;
        color: var(--preto-texto);
    }

    .textos-home {
        padding: 4rem 1rem 2rem 4rem;
    }

    .textos-home h1 {
        font-size: 3.2rem;
        width: 90%;
    }

    .textos-home p {
        font-size: 1.2rem;
    }

    .caixa-home {
        width: 38vw;
    }

    .sobre {
        min-height: auto;
        flex-direction: column;
        padding: 3rem 6%;
        gap: 2rem;
    }

    .textos-sobre {
        width: 100%;
        height: auto;
        padding-left: 0;
    }

    .textos-sobre p {
        font-size: 1rem;
    }

    .caixaImg-sobre {
        width: 90%;
        height: 55vh;
        margin: 0;
    }

    .cards-equipamentos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1rem 2rem;
        gap: 1.5rem;
    }

    .cabecalho-equipamentos,
    .cabecalho-lab {
        width: 75%;
    }

     .caixas-lab {
        flex-direction: column;
        width: 80%;
        gap: 1.5rem;
    }

    .foto-lab {
    flex: none;
    width: 80%;
    height: 55vh;
}

    .foto-lab img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cards-lab {
        width: 100%;
    }

    .card-lab {
        width: 100%;
    }

    .caixas {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 2rem;
    }

    .caixa-form,
    .topo-form {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .caixas-info {
        width: 80%;
        max-width: none;
    }

    .caixa-contato {
        flex-direction: column;
    }

    .formulario-contato {
        width: 100%;
    }

    .caixa-form {
        padding: 2rem;
        height: auto;
        min-height: 40vh;
    }

    .infos,
    .infos-end {
        height: auto;
        min-height: 8vh;
        padding: 1rem;
    }

    .caixa-footer {
        gap: 1rem;
    }

    /* Folder Virtual */

    .conteudo-folder {
        padding: 5rem 5%;
        gap: 4rem;
            box-sizing: border-box;
    }

    .titulo-folder,
    .folder-img {
        width: 100%;
        max-width: 100%;
    }

    .folder-img {
        height: auto;
    }

    .textos-folder h2 {
        font-size: clamp(3.8rem, 5.5vw, 4.5rem);
    }

    .textos-folder p {
        font-size: clamp(1.3rem, 1.8vw, 1.5rem);
    }

    .icon-folder {
        width: clamp(110px, 12vw, 14vh);
        height: clamp(110px, 12vw, 14vh);
    }

    .btn-folder {
        padding: 1.1rem 2.3rem;
        font-size: 1.05rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    main {
        padding-top: 0 !important;
    }

    html {
        scroll-padding-top: max(12vh, 70px);
    }

    .container {
        width: 90%;
    }

    .logo img {
        width: 25vw;
        max-width: 150px;
    }

    #opcoes-header {
        display: flex;
        align-items: center;
    }

    #btn-menu {
        display: block;
        width: 30px;
        background: none;
        border: none;
    }

    #btn-menu img {
        width: 100%;
        height: auto;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.5rem;
        position: fixed;
        top: 0;
        right: 0;
        width: min(75%, 320px);
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 1.5rem;
        background-color: var(--cinza-claro);
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        transform: translateX(100%);
        visibility: hidden;
        transition:
            transform 0.3s ease,
            visibility 0s linear 0.3s;
    }

    #opcoes-header.ativo .menu-links {
        transform: translateX(0);
        visibility: visible;
        transition:
            transform 0.3s ease,
            visibility 0s linear 0s;
    }

    #btn-fechar {
        display: block;
        align-self: flex-end;
        background: none;
        border: none;
        padding: 0.4rem;
        cursor: pointer;
    }

    #btn-fechar img {
        display: block;
        width: 25px;
        height: 25px;
        object-fit: contain;
    }

    .menu-links>a {
        font-size: 1rem;
        padding: 0.35rem 0;
    }

    .menu-links a {
        display: block;
        width: 100%;
        padding: 0.6rem 0;
        box-sizing: border-box;
    }

    .home {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 70px 5% 3rem;
        background-position: center;
    }

    .sessao1_boasVindas,
    .sessao2_boasVindas {
        height: auto;
    }

    .textos-home {
        height: auto;
        padding: 2rem 0 0;
        text-align: center;
    }

    .textos-home h1 {
        width: 100%;
        font-size: clamp(2.4rem, 7vw, 3.5rem);
    }

    .textos-home p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }

    .caixa-home {
        display: none;
    }

    .sobre {
        min-height: auto;
        flex-direction: column;
        padding: 3rem 6%;
        gap: 2rem;
    }

    .textos-sobre {
        width: 100%;
        height: auto;
        padding-left: 0;
    }

    .textos-sobre p {
        font-size: 1rem;
    }

    .caixaImg-sobre {
        width: 90%;
        height: 50vh;
        margin: 0;
    }

    .equipamentos,
    .laboratorios,
    .contato {
        min-height: auto;
        padding: 3rem 5%;
    }

    .caixa-equipamentos,
    .caixa-lab {
        min-height: auto;
    }

    .cabecalho-equipamentos,
    .cabecalho-lab {
        width: 100%;
        min-height: auto;
        padding: 1rem 0;
        margin: 0 auto;
    }

    .cabecalho-equipamentos h2,
    .cabecalho-lab h2 {
        font-size: 2.3rem;
        margin-bottom: 1rem;
    }

    .cabecalho-equipamentos p,
    .cabecalho-lab p {
        font-size: 1rem;
    }

    .cards-equipamentos {
        min-height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
        gap: 1rem;
    }

    .card-equipamento {
        padding: 1.5rem;
    }

    .card-equipamento p {
        font-size: 0.95rem;
    }

    .caixas-lab {
        flex-direction: column;
        width: 80%;
        gap: 1.5rem;
    }

    .foto-lab {
        width: 90%;
        height: 40vh;
        border-radius: 1rem;
}

    .foto-lab img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cards-lab {
        width: 100%;
    }

    .card-lab {
        width: 100%;
    }

    .folder {
        min-height: auto;
    }

    .caixa-folder {
        min-height: auto;
        padding: 2rem 6%;
    }

    .textos-folder {
        padding: 0 5%;
    }

    .textos-folder h2 {
        font-size: clamp(3rem, 6vw, 3.8rem);
    }

    .textos-folder p {
        font-size: 1.2rem;
    }

    .contato .caixa-contato {
        width: 100%;
        min-height: auto;
    }

    .textos-contato {
        padding: 0;
    }

    .textos-contato h2 {
        font-size: 2.3rem;
        margin-bottom: 1rem;
    }

    .textos-contato p {
        font-size: 1rem;
    }

    .caixas {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 2rem;
    }

    .caixas-info {
        width: 80%;
        max-width: none;
    }

    .formulario-contato {
        width: 100%;
        min-width: 0;
    }

    .infos,
    .infos-end {
        min-height: 0;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .caixa-form,
    .topo-form {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .caixa-form {
        padding: 1.5rem;
        min-height: 65vh;
    }

    .caixa-form form {
        gap: 1.2rem;
    }

    .caixa-footer {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .conteudo {
        flex: 1 1 40%;
        padding: 0.75rem;
    }

    .logo-footer img {
        width: 100px;
        max-width: 25vw;
    }

    .copyright {
        max-width: 100%;
    }

    .copyright p {
        font-size: 0.8rem;
    }

    .links {
        flex-direction: column;
        font-size: 1rem;
    }


    main:has(.conteudo-folder) {
        padding-top: 70px !important;
    }

    .conteudo-folder {
        padding: 2.5rem 5% 3rem;
        gap: 3rem;
    }

    .titulo-folder,
    .folder-img {
        width: 100%;
    }

    .titulo-folder h1 {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .folder-img {
        height: auto;
        min-height: 0;
    }

    .folder img {
        height: auto;
        object-fit: contain;
    }

    .conteudo-folder h2.titulo {
        font-size: var(--tamanho-fonte-h2);
        width: min(100%, 400px);
    }

    .main-folder {
        min-height: 40vh;
    }

    #imagem-ampliada {
        max-width: 80vw;
        max-height: 80vh;
    }

    #baixar {
        top: 1.2rem;
        right: 4.5rem;
    }

    .fechar {
        top: 1.2rem;
        right: 1.2rem;
    }

    .seta {
        padding: 0.8rem;
        font-size: 1.7rem;
    }

    .icon-folder {
        width: 110px;
        height: 110px;
    }

    .btn-folder {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .caixa-footer {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .conteudo {
        flex: 1 1 40%;
        padding: 0.75rem;
    }

    .logo-footer img {
        width: 100px;
        max-width: 25vw;
    }

    .copyright {
        max-width: 100%;
    }

    .copyright p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        width: 34vw;
        max-width: 135px;
    }

    .home {
        padding: 2.5rem 5% 2rem;
    }

    .textos-home h1 {
        font-size: 2.25rem;
    }

    .textos-home p {
        font-size: 1rem;
    }

    .btn-home,
    .btn-folder {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .caixa-home {
        padding: 1rem 0.5rem;
        border-radius: 1.25rem;
    }

    .caixa-home h2 {
        font-size: 1.1rem;
        margin-left: 3%;
    }

    .bloco {
        gap: 0.8rem;
        padding: 0.5rem 3%;
    }

    .icone {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .texto-h h3 {
        font-size: 0.95rem;
        text-align: center;
    }

    .texto-h p {
        font-size: 0.75rem;
    }

    .sobre {
        padding: 2.5rem 5%;
    }

    .textos-sobre h1 {
        font-size: 2rem;
        text-align: center;
    }

    .textos-sobre h2 {
        display: none;
    }

    .textos-sobre br {
        display: none;
    }

    .textos-sobre p {
        font-size: 0.95rem;
    }

    .lista-diferenciais li {
        gap: 0.7rem;
        font-size: 0.9rem;
        margin-bottom: 0.9rem;
    }

    .caixaImg-sobre {
        height: 30vh;
    }

    .cabecalho-equipamentos h2,
    .cabecalho-lab h2,
    .textos-contato h2 {
        font-size: 1.9rem;
    }

    .cards-equipamentos {
        grid-template-columns: 1fr;
    }

    .card-equipamento {
        padding: 1.4rem;
    }

    .icone-equipamento {
        width: 3.5rem;
        height: 3.5rem;
    }

    .cabecalho-lab h2 {
        text-align: center;
    }

    .foto-lab {
        height: 30vh;
    }

    .card-lab {
        padding: 1rem;
    }

    .card-lab h3,
    .textos-info h3,
    .textos-info p {
        font-size: 0.9rem;
    }

    .textos-folder h2 {
        font-size: 2.7rem;
    }

    .textos-folder p {
        font-size: 1.05rem;
    }

    .icon-folder {
        width: 100px;
        height: 100px;
    }

    .textos-contato p {
        font-size: 0.95rem;
    }

    .icon-info {
        width: 42px;
        height: 42px;
    }

    .caixa-form {
        padding: 1.1rem;
        height: auto;
        min-height: 50vh;
    }

    .campo-form input,
    .campo-form textarea {
        padding: 0.85rem;
    }

    .footer {
        padding: 2rem 5% 1rem;
    }

    .caixa-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .conteudo {
        width: 100%;
        flex: none;
        padding: 0.75rem 0;
    }

    .logo-footer img {
        width: 90px;
    }

    .copyright p {
        font-size: 0.75rem;
    }

    /* Folder Virtual */

    .conteudo-folder {
        padding: 2rem 5% 2.5rem;
        gap: 2.5rem;
    }

    .titulo-folder h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .folder-img,
    .folder-img img {
        border-radius: 0.7rem;
    }

    .conteudo-folder h2.titulo {
        font-size: var(--tamanho-fonte-h2);
        width: min(100%, 280px);
    }

    #imagem-ampliada {
        max-width: 80vw;
        max-height: 75vh;
    }

    #baixar {
        top: 1rem;
        right: 3.5rem;
    }

    #baixar img,
    #fechar img {
        width: 21px;
        height: 21px;
    }

    .fechar {
        top: 1rem;
        right: 1rem;
    }

    .btn-folder {
        padding: 0.9rem 1.7rem;
        font-size: 0.95rem;
    }
}
