/* Estilo automático para a página: convenios-de-reciprocidade */
main {
    margin-top: 190px;
}

section.topo {
    margin-top: 74px;

    img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .section-title {
        margin-bottom: 40px;
    }
}

.tab-wrapper {
    display: flex;
    flex-direction: row;
    gap: 80px;
    position: relative;
}

.tab-access {
    flex: 1 1 calc(35% - 40px);
    border-radius: 10px;
    position: sticky;
    top: 192px;
    height: fit-content;

    .tab {
        border: 1px solid #E3E3E3;
        padding: 24px;

        p {
            margin: 0;
        }

        &:first-child {
            border-radius: 10px 10px 0px 0px;
            border-bottom: none;
        }

        &:last-child {
            border-radius: 0px 0px 10px 10px;
            border-top: none;
        }
    }
}

.tab-content {
    flex: 1 1 calc(65% - 40px);
}

.tab-pan-inner {
    /* display: none; */
    opacity: 0;
    pointer-events: none;
    transition: 300ms all ease-in-out;
}

.tab-pan-wrapper {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms ease;

    &.active {
        display: block;
        max-height: 100%;

        .tab-pan-inner {
            opacity: 1;
            pointer-events: auto;
        }
    }
}

.tab-access {
    .tab {
        cursor: pointer;

        h3 {
            font-weight: 500;
            font-size: 18px;
            line-height: 100%;
            color: #5A5A5A;
        }

        p {
            font-weight: 400;
            font-size: 13px;
            line-height: 100%;
            color: #5A5A5A;
        }
    }
}

.tab-content {
    h2 {
        color: #5A5A5A;
        font-weight: 400;
        font-size: 24px;
        line-height: 100%;
        margin: 30px 0;
    }

    p {
        font-size: 16px;
        font-weight: 400;
        line-height: 160%;
        color: #5A5A5A;
    }
}

.tab-access .tab.active {
    border-left: 4px solid #E54344;
    background-color: #F8F8F8;
}

.setor {
    border: 1px solid #E3E3E3;
    border-radius: 10px;
    margin-bottom: 30px;

    .setor-title {
        padding: 36px 32px;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;

        h3 {
            font-weight: 500;
            font-size: 18px;
            line-height: 100%;
            color: #5A5A5A;
            margin: 0;
        }

        .seta {
            svg {
                transition: 300ms all ease-in-out;
            }
        }
    }

    .setor-body {
        display: flex;
        align-items: flex-start;
        gap: 40px;
        opacity: 0;
        height: 0;
        transition: 300ms all ease-in-out;

        .setor-conteudo {
            column-count: 2;
            column-gap: 60px;
            column-fill: auto;
            height: 680px;
            overflow: hidden;
            padding: 32px;
            opacity: 0;
            height: 0;
            transition: 300ms all ease-in-out;

            .item {
                break-inside: avoid;
                margin-bottom: 20px;
            }

            h4 {
                margin: 0 0 4px;
                font-size: 16px;
                font-weight: 500;
                color: #5A5A5A;
            }

            strong {
                display: block;
                margin-bottom: 4px;
                font-size: 14px;
                color: #555;
            }

            p {
                margin: 0;
                font-size: 16px;
                line-height: 1.5;
                color: #5A5A5A;
                font-weight: 400;
            }
        }
    }

    &.open {
        .setor-title {
            border-bottom: 1px solid #E3E3E3;

            .seta {
                svg {
                    transform: rotate(180deg);
                }
            }
        }

        .setor-body {
            height: 100%;
            opacity: 1;

            .setor-conteudo {
                height: 100%;
                opacity: 1;
                display: flex;
                flex-direction: column;
            }
        }
    }
}