:root {
    --background-green: #33423d;
    --text-color-green: #33423d;
    --background-green-light: #519d34;
    --background-white: #ffffff;
    --text-color-black: #262626;
    --text-color-black-secondary: #474747;
    --background-black-25: #0000000e;
    --background-black-80: #00000080;
    --shadow-primary: -3.3154067993164062px 5.525677680969238px 3.3154067993164062px -1.105135440826416px rgba(0, 0, 0, 0.25);
}

.header {
    width: 100%;
    height: 65vh;
    margin-bottom: 50px;
    line-height: 1.4rem;

    #navDesktop>a {
        height: 56.13px;
    }
}

.header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px 0px 0px 20px;
}

.header-pontos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.header-events {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.header-page-info h1 {
    font-size: 19.2px;
    color: var(--text-color-green);
    font-weight: 700;
    margin-bottom: 24px;
}

.content-image-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

.content-image-header {
    height: 100%;
}

.nav-bar {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 20px;
    background-color: var(--background-white);
    width: 100%;
    height: 79px;
    max-height: 79px;
    border-radius: 0;
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--background-black-25);
    z-index: 9997;
    position: sticky;
    top: 0;

    .links-nav {
        display: flex;
        align-items: center;
        gap: 8px;

        a {
            text-decoration: none;
            color: var(--text-color-black-secondary);
            padding: 8px 16px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            height: 55px;
            font-size: 16px;
            transition: 0.2s linear;

            &:hover,
            &:focus {
                background-color: var(--background-black-25);
            }
        }

        .nav-bar-items {
            position: relative;

            &:has(label input[type="checkbox"]:checked) .nav-bar-item-list {
                display: block;
            }

            &:has(label input[type="checkbox"]:checked) label .button-nav-item {
                background-color: var(--background-black-25);
            }

            input[type="checkbox"] {
                all: initial;
                display: none;

                &:not(:checked)~span>i {
                    transform: rotate(-180deg);
                }

                &:checked~span>i {
                    transform: rotate(0);
                }
            }

            .button-nav-item {
                text-decoration: none;
                color: var(--text-color-black-secondary);
                padding: 8px 16px;
                border-radius: 10px;
                display: flex;
                align-items: center;
                gap: 8px;
                height: 55px;
                font-size: 16px;
                transition: 0.2s linear;

                &:hover,
                &:focus {
                    background-color: var(--background-black-25);
                }

                i {
                    transition: transform 0.3s ease-in-out;
                }
            }

            .nav-bar-item-list {
                display: none;
                list-style: none;
                position: absolute;
                border-radius: 10px;
                top: 62px;
                left: 0px;
                margin-top: 8px;
                background-color: var(--background-white);
                box-shadow: 0px 4px 4px 2px rgba(0, 0, 0, 0.25);

                animation: navShowItem ease-out 0.5s forwards;

                li {
                    width: 100%;

                    a {
                        text-decoration: none;
                        color: var(--text-color-black-secondary);
                        padding: 8px 16px;
                        border-radius: 10px;
                        white-space: nowrap;
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        height: 55px;
                        font-size: 16px;
                        transition: 0.2s linear;


                        &:hover,
                        &:focus {
                            background-color: var(--background-black-25);
                        }

                        span {
                            display: block;
                            font-size: 16px;
                        }
                    }

                }
            }
        }
    }

    a svg {
        fill: var(--text-color-black-secondary);
        width: 50px;
        padding: 0 !important;
    }
}

.navbar-mobile {
    display: none;
    width: 100%;
    top: 0;
    z-index: 9997;

    .navbar-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background-color: var(--background-white);
        box-shadow: var(--shadow-primary);
        border-bottom: 1px solid var(--background-black-25);

        input[type="checkbox"] {
            all: initial;
            display: none;

            &:not(:checked)~span>i {
                &:nth-of-type(1) {
                    display: inline-block;
                }

                &:nth-of-type(2) {
                    display: none;
                }
            }

            &:checked~span>i {
                &:nth-of-type(1) {
                    display: none;
                }

                &:nth-of-type(2) {
                    display: inline-block;
                }
            }
        }

        svg {
            width: 35px;
        }

        .button-nav {
            display: block;
            background-color: var(--background-white);
            border: 1px solid var(--background-black-25);
            color: var(--text-color-black-secondary);
            border-radius: 5px;
            padding: 5px 10px;
        }
    }

    .body-canva-container {
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 61px;
        right: 0px;
        z-index: 9997;
        background-color: var(--background-black-80);

        .body-canva-navbar {
            overflow: hidden;
            margin-left: auto;
            padding-right: 2px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            width: 50vw;
            background-color: var(--background-white);
            height: 0vh;

            >a {
                text-decoration: none;
                white-space: nowrap;
                color: var(--text-color-black-secondary);
                padding: 10px 30px;
                width: min-content;
                border-radius: 10px;

                &:nth-child(1) {
                    margin-top: 2px;
                }

                &:hover,
                &:focus {
                    background-color: var(--background-black-25);
                }

                span {
                    display: block;
                    font-size: 16px;
                }
            }

            .nav-bar-items {
                width: 100%;

                &:has(label input[type="checkbox"]:checked) .nav-bar-item-list {
                    display: block;
                }

                &:has(label input[type="checkbox"]:checked) label .button-nav-item {
                    background-color: var(--background-black-25);
                }

                input[type="checkbox"] {
                    all: initial;
                    display: none;

                    &:not(:checked)~span>i {
                        transform: rotate(-180deg);
                    }

                    &:checked~span>i {
                        transform: rotate(0);
                    }
                }

                .button-nav-item {
                    width: min-content;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 8px;

                    margin-left: auto;
                    padding: 10px 30px;
                    white-space: nowrap;
                    color: var(--text-color-black-secondary);
                    border-radius: 10px;

                    &:hover,
                    &:focus {
                        background-color: var(--background-black-25);
                    }

                    i {
                        transition: transform 0.3s ease-in-out;
                    }
                }

                .nav-bar-item-list {
                    list-style: none;
                    display: none;
                    margin-top: 8px;
                    animation: navShowItem ease-out 0.5s forwards;
                
                    li {
                        width: 100%;

                        a {
                            display: block;
                            width: min-content;
                            padding: 10px 30px;
                            margin-left: auto;
                            white-space: nowrap;
                            text-decoration: none;
                            color: var(--text-color-black-secondary);
                            border-radius: 10px;

                            &:hover,
                            &:focus {
                                background-color: var(--background-black-25);
                            }

                            span {
                                display: block;
                                font-size: 16px;
                            }
                        }

                    }
                }
            }
        }
    }

}

#navMobile:has(.navbar-mobile-header label input:checked) .body-canva-container {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;

    transition: opacity 0.1s ease-out;

    .body-canva-navbar {
        animation: navShow ease-out 0.8s forwards;

        >a>span,
        label>span {
            animation: navItemShow ease-out 0.9s forwards;

            /* se adicionar mais doq 9 itens na nav precisa adicionar mais aqui */
            &:nth-of-type(1) {
                animation-delay: 0ms;
            }

            &:nth-of-type(2) {
                animation-delay: 40ms;
            }

            &:nth-of-type(3) {
                animation-delay: 80ms;
            }

            &:nth-of-type(4) {
                animation-delay: 120ms;
            }

            &:nth-of-type(5) {
                animation-delay: 160ms;
            }

            &:nth-of-type(6) {
                animation-delay: 200ms;
            }

            &:nth-of-type(7) {
                animation-delay: 240ms;
            }

            &:nth-of-type(8) {
                animation-delay: 280ms;
            }

            &:nth-of-type(9) {
                animation-delay: 320ms;
            }

 
        }
    }
}

#navMobile:has(.navbar-mobile-header label input:not(:checked)) .body-canva-container {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;

    transition: opacity 1s ease-in 0.5s, visibility 0s ease-in 1.5s;

    .body-canva-navbar {
        animation: navHide ease-in 0.8s forwards;
    }
}

@keyframes navShowItem {
    0% {
        opacity: 0;
        top: 0px;
    }

    40% {
        opacity: 0;
        top: 30px;
    }

    to {
        opacity: 1;
        top: 62px;
    }
}

@keyframes navShow {
    from {
        height: 0vh;
    }

    to {
        height: 100vh;
    }
}

@keyframes navHide {
    from {
        height: 100vh;
    }

    to {
        height: 0vh;
    }
}

@keyframes navItemShow {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {

    .header-page-info h1 {
        text-align: center;
    }

    .content-image-header img {
        border-radius: 10px;
        margin-bottom: 16px;
        max-height: 50vh;
    }

    .header-events {
        flex-direction: column;
        gap: 16px;
    }

    .header-pontos {
        flex-direction: column;
    }

    .header video {
        border-radius: 0px 0px 0px 10px;
    }

    .nav-bar {
        display: none;
        height: auto;
        max-height: auto;
    }

    .navbar-mobile {
        position: fixed;
        display: block;
    }

}

@media(max-width: 475px) {
    .body-canva-navbar {
        width: 70vw !important;
    }

}