@media (max-width: 399px) {
    #progress-text {
        padding: 15px;
        font-size: 120px;
        line-height: 70%;
    }

    .item-menu {
        font-size: 50px;
        line-height: 45px;
        text-wrap: wrap;
    }

    .number-menu {
        font-size: 20px;
    }

    .full-width-text div {
        font-size: 19vw;
    }

    .full-width-text span {
        font-size: 25px;
        line-height: 5%;
    }

    .project-section {
        padding: 0px;
        font-size: 12px;
    }

    .project-section #description {
        max-width: none
    }

    .synopsis-header #synopsis-p {
        font-size: 16px;
    }

    #participants-name #person {
        font-size: 28px;
        line-height: 80%;
    }

    #funcion {
        font-size: 15px;
        line-height: 133.4%;
    }

    .contact {
        margin-top: -320px;
        height: 280px;
        width: 110%;
        justify-content: start;
    }

    .contact #contact-text {
        font-size: 30vw;
        line-height: 80%;
    }

    .contact #contact-header {
        display: none;
    }
}

@media (min-width: 400px) and (max-width: 480px) {

    #progress-text {
        padding: 15px;
        font-size: 130px;
        line-height: 70%;
    }
    
    .item-menu {
        font-size: 60px;
        line-height: 55px;
        text-wrap: wrap;
    }

    .number-menu {
        font-size: 20px;
    }

    .full-width-text div {
        font-size: 19vw;
    }

    .full-width-text span {
        font-size: 30px;
        line-height: 10%;
    }

    .project-section {
        padding: 0px;
        font-size: 13px;
    }

    .project-section #description {
        flex: 1 1 100%;
    }

    .synopsis-header #synopsis-p {
        font-size: 18px;
    }

    #participants-name #person {
        font-size: 28px;
        line-height: 80%;
    }

    #funcion {
        font-size: 15px;
        line-height: 133.4%;
    }

    .participants {
        height: 650px;
    }

    .contact {
        margin-top: -200px;
        width: 110%;
    }

    .contact #contact-text {
        font-size: 130px;
        line-height: 80%;
    }

    .contact #contact-header {
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .item-menu {
        font-size: 70px;
        line-height: 90%;
        text-wrap: wrap;
    }

    .number-menu {
        font-size: 20px;
    }

    .full-width-text div {
        font-size: 20vw;
    }

    .full-width-text span {
        font-size: 40px;
    }

    .contact {
        height: 280px;
    }

    .contact {
        margin-top: -180px;
        width: 110%;
    }
}

@media (max-width: 768px) {
    .menu {
        width: 100%;
        height: 65vh;
        justify-content: flex-end;
        align-items: flex-start;
        padding: 20px 20px 5px 8px;
    }

    .email {
        display: none;
    }

    .section-synopsis {
        display: flex;
        flex-direction: column;
        gap: 100px;
        padding: 10px 10px 50px 10px;
    }
    
    /* Carrossel para dispositivos móveis */
    .painel {
        flex: 0 0 100vw;
        height: 100vh;
    }

    .contact {
        justify-content: start;
    }

    .contact #contact-header {
        display: none;
    }

    footer {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        padding: 50px 25px;
        gap: 45px;
    }

    .footer-logo-button {
        align-items: center;
        gap: 25px;
    }

    .footer-button {
        width: 170px;
        font-size: 16px;
    }

    .group-emails {
        gap: 20px;
    }

    #group-email {
        align-items: center;
    }

    #footer-group {
        display: none;
    }
}

/* Carrossel para telas maiores (desktop) */
@media (min-width: 769px) {
    .painel {
        flex: 0 0 90vw;
        height: 100vh;
    }
}

@media (max-width: 1024px) {

    .project-section {
        display: flex;
        text-align: center;
        justify-content: center;
    }

    .project-section .column {
        display: none;
    }

    .project-section #description {
        display: block;
        flex: 1 1 100%;
        max-width: 80%;
    }

    .video-wrapper {
        margin-top: 30px;
    }

    .synopsis-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
    }

    .synopsis-header {
        display: flex;
        flex-direction: column-reverse;
        align-items: start;
        justify-content: start;
        gap: 8px;
    }

    .synopsis-header #synopsis-p {
        max-width: none;
    }

    .synopsis-gallery {
        grid-template-columns: 1fr;
        margin-top: 70px;
        gap: 10px;
    }

    .painel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 60%;
        pointer-events: none;

    }

    .white {
        background-color: #0c0c0d;
    }

    .section-story-board {
        display: none;
    }

    .participants-contact {
        z-index: 1;
        display: flex;
        flex-direction: column;
        margin-top: 0%;
        align-items: end;
    }

    #participants-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px 20px;
    }

    #participants-name #person {
        line-height: 90%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .item-menu {
        font-size: 90px !important;
        line-height: 80px;
    }

    #contact-email {
        font-size: 22px;
        line-height: 28px;
    }

    #type {
        font-size: 13px;
    }

    .full-width-text div {
        font-size: 20vw;
    }

    .full-width-text span {
        font-size: 45px;
    }

    .project-section {
        padding: 0px;
        font-size: 30px;
    }

    .contact {
        margin-top: -180px;
        height: 250px;
    }

    .contact #contact-text {
        font-size: 11vw;
        line-height: 80%;
    }

    footer {
        display: flex;
        gap: 45px;
    }

    .footer-logo-button {
        gap: 25px;
    }

    .footer-button {
        width: 170px;
        font-size: 18px;
    }

    .group-emails {
        gap: 20px;
    }

    #footer-group {
        display: none;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .item-menu {
        font-size: 95px !important;
        line-height: 90%;
    }

    #contact-email {
        font-size: 22px;
        line-height: 28px;
    }

    #type {
        font-size: 13px;
    }
    footer {
        margin-top: -1.5%;
    }
}

@media (min-width: 1921px) {
    .participants-contact {
        margin-top: -3%;
    }

    .participants {
        height: 1000px;
    }

    .contact {
        margin-top: -530px;
        height: 450px;
    }
}