﻿/* Banner 100% tela */
.banner-full {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0; /* remove scroll horizontal */
}

h1 {
    text-align: left;
}

/* Conteúdo interno */
.content-wrapper {
    text-align: justify;
}

/* Grupo de botões */
.btn-group-responsive {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

    /* Estilo base dos botões */
    .btn-group-responsive .btn {
        flex: 1 1 calc(25% - 1rem); /* padrão: até 4 botões em uma linha */
        min-width: 200px;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        /* 1 botão - ocupa toda a largura */
        .btn-group-responsive .btn:only-child {
            flex: 0 0 33.333%;
        }

    /* 2 botões - metade da linha cada um */
    .btn-group-responsive:has(.btn:nth-child(2):last-child) .btn {
        flex: 1 1 calc(50% - 1rem);
    }

    /* 3 botões - 3 partes iguais, 100% de largura total */
    .btn-group-responsive:has(.btn:nth-child(3):last-child) .btn {
        flex: 1 1 calc(33.333% - 1rem);
    }

    /* 4 botões - 4 partes iguais */
    .btn-group-responsive:has(.btn:nth-child(4):last-child) .btn {
        flex: 1 1 calc(25% - 1rem);
    }

    /* 5 botões - 3 na primeira linha e 2 na segunda */
    .btn-group-responsive:has(.btn:nth-child(5):last-child) .btn {
        flex: 1 1 calc(33.333% - 1rem);
    }

        .btn-group-responsive:has(.btn:nth-child(5):last-child) .btn:nth-child(4),
        .btn-group-responsive:has(.btn:nth-child(5):last-child) .btn:nth-child(5) {
            flex: 1 1 calc(50% - 1rem);
        }

    /* 6 botões - 3 por linha (duas linhas equilibradas) */
    .btn-group-responsive:has(.btn:nth-child(6):last-child) .btn {
        flex: 1 1 calc(33.333% - 1rem);
    }

/* Accordion tópicos */
.item-header h2 button {
    cursor: pointer;
    width: 100%;
    text-align: left;
    background-color: #028dcf;
    color: white;
    border: none;
    padding: 0.9rem 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-header h2 button i {
    font-size: 1.3rem;
    transition: transform 0.4s ease;
    float: right;
}

/* Ícone gira ao abrir */
button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Botões principais e de tópicos */
.btn-execucao {
    min-height: 60px; /* Altura mínima */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    background-color: #028dcf;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    text-align: center;
    width: 100%;
    padding: 0 1rem; /* Espaçamento horizontal */
}

.btn-execucao:hover,
.btn-execucao:focus {
    background-color: #00a859;
    color: #fff;
}

/* Remover efeito hover no collapse */
.item-header h2 button:hover,
.item-header h2 button:focus {
    background-color: #028dcf !important;
    color: white !important;
    box-shadow: none !important;
}

/* Custom collapse */
.custom-collapse {
    transition: all 0.3s ease-in-out;
    padding: 0.75rem 0;
}

/* Accordion item (fundo quando expandido) */
.item {
    margin-bottom: 1.5rem;
    background-color: rgba(211, 211, 211, 0.15); /* cinza clarinho */
    border-radius: 0.25rem;
}

/* Linha divisória ao final do bloco do collapse */
.hr-collapse {
    background: #028dcf;
    height: 8px;
    border: none;
    border-radius: 5px;
    width: 100%;
    margin: 1rem 0 0 0;
}

/* Ajustes específicos para tabelas dentro do conteúdo */
.content-wrapper table {
    border-collapse: collapse;
    margin: 1rem auto; /* centraliza */
    width: auto !important; /* respeita o tamanho definido no editor */
    max-width: 100%; /* não deixa ultrapassar o container */
}

    .content-wrapper table th,
    .content-wrapper table td {
        border: 1px solid #ccc;
        padding: 0.5rem;
        text-align: left;
    }


/* Mobile */
@media screen and (max-width: 768px) {
    .btn-group-responsive .btn {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
