.block__list-faq {
    position: relative;

    &:has(.list-faq__bg) {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .list-faq__bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        > img {
            position: absolute;
            top: 0;
            left: 0;
            object-fit: cover;
            object-position: center;
            width: 100%;
            height: 100%;
            filter: brightness(0.4) contrast(1.2);
            -webkit-filter: brightness(0.4) contrast(1.2);
            -moz-filter: brightness(0.4) contrast(1.2);
            -ms-filter: brightness(0.4) contrast(1.2);
            -o-filter: brightness(0.4) contrast(1.2);
        }

        &::before {
            content: '';
            height: 100%;
            width: 100%;
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            background: rgba(0, 0, 0, 0.6);
            pointer-events: none;
        }

        + .list-faq__items .list-faq__questions .list-faq__item__question:not(:last-child) {
            border-bottom: none;
        }
    }

    .list-faq__text {
        margin-bottom: 60px;
        position: relative;
        z-index: 5;

        h2 {
            margin-bottom: 30px;
        }

        h2, .h2, h3, .h3 {
            color: var(--color__main);
        }
    }

    .list-faq__questions {

        .list-faq__item__question {
            padding: 15px 0;
            transition: var(--transition);
            position: relative;
            cursor: pointer;

            &:not(:last-child) {
                border-bottom: 2px solid var(--color__main);
            }

            &::before,
			&::after {
				content: '';
				display: block;
				position: absolute;
				top: 50%;
				opacity: 0;
                right: 0;
				transition: var(--transition);
                pointer-events: none;
			}

			&::before {
				border-radius: 2px;
				background: var(--color__main);
				width: 90px;
				height: 4px;
				transform: translate(-30px,-50%);
			}

			&::after {
				border-bottom: 4px solid var(--color__main);
                border-right: 4px solid var(--color__main);
                right: 0;
                transform: translate(-30px,-50%) rotate(-45deg);
				height: 15px;
				width: 15px;
			}

            ul li {
                color: var(--color__main);
                margin-bottom: 0;
                padding-bottom: 30px;
            }

            &:hover,
            &.list-faq__item__question--active {

                color: var(--color__main);
                font-weight: bold;

                &::before,
                &::after {
                    opacity: 1;
                }

                &::before {
                    transform: translate(0,-50%);
                }

                &::after {
                    transform: translate(0,-50%) rotate(-45deg);
                }
            }
        }

    }

    .list-faq__answers {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-column: 8 / -1;
        position: relative;
        list-style: none;

        .list-faq__item__answer {
            grid-column: 1 / -1;
            grid-row: 1 / -1;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
            position: relative;
            z-index: 1;
        }

        .list-faq__item__answer--active {
            opacity: 1;
            pointer-events: auto;
            z-index: 2;
        }
    }

    .list-faq__button {
        grid-column: 8 / -1;
        text-align: right;
    }

    + .block__text-image.img-pos__bg{
        padding-top: 360px;
        margin-top: -180px;
        z-index: -1;
    }
}



/* Média Query */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .block__list-faq {
        padding: 60px 0 75px;

        .list-faq__text {
            margin-bottom: 50px;

            h2 {
                margin-bottom: 25px;
            }
        }

        .list-faq__questions {
            grid-column: 1 / 6;

            .list-faq__item__question {
                padding: 12px 0;

                &::before {
                    width: 70px;
                    transform: translate(-25px,-50%);
                }

                &::after {
                    transform: translate(-25px,-50%) rotate(-45deg);
                }

                &:hover,
                &.list-faq__item__question--active {
                    &::before {
                        transform: translate(0,-50%);
                    }

                    &::after {
                        transform: translate(0,-50%) rotate(-45deg);
                    }
                }
            }
        }

        .list-faq__answers {
            grid-column: 7 / -1;
        }

        .list-faq__button {
            grid-column: 7 / -1;
            margin-top: 25px;
        }
    }
}

/* Mobile Landscape */
@media screen and (max-width: 768px) {
    .block__list-faq {
        padding: 50px 0 60px;

        .list-faq__text {
            margin-bottom: 40px;
            text-align: center;

            h2 {
                margin-bottom: 20px;
                font-size: 1.8rem;
            }
        }

        .list-faq__items {
            display: block;
        }

        .list-faq__questions {
            margin-bottom: 30px;

            .list-faq__item__question {
                padding: 18px 0;
                font-size: 1.1rem;

                &::before {
                    display: none;
                }

                &::after {
                    transform: translate(-20px,-50%) rotate(-45deg);
                    height: 12px;
                    width: 12px;
                }

                &:hover,
                &.list-faq__item__question--active {
                    &::before {
                        transform: translate(0,-50%);
                    }

                    &::after {
                        transform: translate(0,-50%) rotate(-45deg);
                    }
                }
            }
        }

        .list-faq__answers {
            margin-bottom: 30px;
            min-height: 200px;

            .list-faq__item__answer {
                font-size: 0.95rem;
                line-height: 1.6;
            }
        }

        + .block__text-image.img-pos__bg {
            padding-top: 250px;
            margin-top: -125px;
        }

        .list-faq__button, p:last-child {
                margin-bottom: 30px;
                text-align: center;
            }
    }
}

/* Mobile Portrait */
@media screen and (max-width: 480px) {
    .block__list-faq {
        padding: 40px 0 50px;

        .list-faq__text {
            margin-bottom: 35px;

            h2 {
                font-size: 1.5rem;
                margin-bottom: 15px;
            }

            h3 {
                font-size: 1.2rem;
            }
        }

        .list-faq__questions {
            margin-bottom: 25px;

            .list-faq__item__question {
                padding: 15px 0;
                font-size: 1rem;

                &::before {
                    width: 50px;
                    height: 3px;
                    transform: translate(-15px,-50%);
                }

                &::after {
                    transform: translate(-15px,-50%) rotate(-45deg);
                    height: 10px;
                    width: 10px;
                    border-width: 3px;
                }

                &:hover,
                &.list-faq__item__question--active {
                    &::before {
                        transform: translate(0,-50%);
                    }

                    &::after {
                        transform: translate(0,-50%) rotate(-45deg);
                    }
                }
            }
        }

        .list-faq__answers {
            margin-bottom: 25px;
            min-height: 150px;

            .list-faq__item__answer {
                font-size: 0.9rem;
                line-height: 1.5;
                padding: 0 10px;
            }
        }

        + .block__text-image.img-pos__bg {
            padding-top: 200px;
            margin-top: -100px;
        }
    }
}

/* Small Mobile */
@media screen and (max-width: 360px) {
    .block__list-faq {
        padding: 35px 0 45px;

        .list-faq__text {
            margin-bottom: 30px;

            h2 {
                font-size: 1.3rem;
            }

            h3 {
                font-size: 1.1rem;
            }
        }

        .list-faq__questions {
            .list-faq__item__question {
                padding: 12px 0;
                font-size: 0.95rem;

                &::before {
                    width: 40px;
                }

                &::after {
                    height: 8px;
                    width: 8px;
                }
            }
        }
    }
}


