/* Casco Senac 2025 — scoped to .be-casco / .be-casco-footer. Do not leak into #bemestar-container. */
.be-casco,
.be-casco-footer {
    --casco-blue: #2b6de8;
    --casco-blue-hover: #1f5ad0;
    --casco-navy: #004a8c;
    --casco-text: #5a6270;
    --casco-text-dark: #2c333f;
    --casco-border: #e6e8ee;
    --casco-footer-bg: #072f54;
    --casco-footer-copy-bg: #082036;
    --casco-footer-muted: #d0d2d9;
    --casco-footer-hover: #a0bcfe;
    --casco-max: 1270px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.5;
    color: var(--casco-text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Header only: mesma família do sp.senac.br */
.be-casco {
    font-family: Montserrat, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.be-casco-footer {
    font-family: Montserrat, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.be-casco *,
.be-casco-footer * {
    box-sizing: border-box;
}

.be-casco a,
.be-casco-footer a {
    color: inherit;
    text-decoration: none;
}

.be-casco-inner {
    width: 100%;
    max-width: var(--casco-max);
    margin: 0 auto;
    padding: 0 24px;
}

.be-casco-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #fff;
    border-bottom: 1px solid var(--casco-border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.be-casco-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.be-casco-logo img {
    display: block;
    height: 42px;
    width: auto;
}

.be-casco-meu-senac {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--casco-blue);
    color: #fff !important;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    line-height: 1.2;
}

.be-casco-meu-senac:hover,
.be-casco-meu-senac:focus {
    background: var(--casco-blue-hover);
    color: #fff !important;
}

.be-casco-meu-senac svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.be-casco-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.be-casco-login .d-none,
.be-casco-sair.d-none {
    display: none !important;
}

.be-casco-sair {
    color: var(--casco-text-dark);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.be-casco-sair:hover,
.be-casco-sair:focus {
    color: var(--casco-blue);
}

.be-casco-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
}

.be-casco-toggle span,
.be-casco-toggle span:before,
.be-casco-toggle span:after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--casco-text-dark);
    border-radius: 1px;
    position: relative;
}

.be-casco-toggle span:before,
.be-casco-toggle span:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
}

.be-casco-toggle span:before {
    top: -7px;
}

.be-casco-toggle span:after {
    top: 7px;
}

.be-casco-nav {
    display: flex;
    align-items: center;
    gap: 2px 8px;
    flex-wrap: wrap;
    padding: 0 0 14px;
}

.be-casco-item {
    position: relative;
}

.be-casco-item > a,
.be-casco-item > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    color: #082036;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
}

.be-casco-item > a:hover,
.be-casco-item > button:hover {
    color: var(--casco-blue);
}

.be-casco-item:hover > a,
.be-casco-item:hover > button,
.be-casco-item:focus-within > a,
.be-casco-item:focus-within > button {
    color: var(--casco-blue);
    border-color: var(--casco-blue);
}

.be-casco-chevron {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    transition: transform 0.15s;
}

.be-casco-item:hover .be-casco-chevron,
.be-casco-item:focus-within .be-casco-chevron {
    transform: rotate(180deg);
}

.be-casco-drop {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    min-width: 280px;
    padding: 20px 24px 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    border-radius: 0 0 10px 10px;
    border: 1px solid var(--casco-border);
    border-top: 0;
    z-index: 2001;
}

.be-casco-item:hover > .be-casco-drop,
.be-casco-item:focus-within > .be-casco-drop {
    display: block;
}

.be-casco-drop strong,
.be-casco-drop-col > strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--casco-text-dark);
    margin-bottom: 12px;
}

.be-casco-drop a {
    display: block;
    padding: 7px 0;
    color: #082036;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.20;
}

.be-casco-drop a:hover {
    color: var(--casco-blue);
}

/* Painel Cursos: Áreas | Tipos */
.be-casco-drop--cursos {
    min-width: 560px;
    padding: 24px 28px 28px;
}

.be-casco-drop-grid {
    display: flex;
    gap: 40px;
}

.be-casco-drop-col {
    flex: 1 1 0;
    min-width: 220px;
}

.be-casco-drawer {
    display: none;
}

.ssp-header-spacer.be-casco-spacer {
    height: 126px;
}

.be-casco-footer {
    background: var(--casco-footer-bg);
    color: #fff;
    margin-top: 40px;
    padding-top: 96px;
}

.be-casco-footer a {
    color: #fff;
}

.be-casco-footer-nav {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
    row-gap: 34px;
    grid-template-areas:
        "col-1 col-2 col-4 col-6"
        "col-1 col-2 col-4 col-7"
        "col-1 col-3 col-4 col-7"
        "col-1 col-3 col-5 col-7";
}

.be-casco-footer-nav ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.be-casco-footer-nav ul:nth-child(1) { grid-area: col-1; }
.be-casco-footer-nav ul:nth-child(2) { grid-area: col-2; }
.be-casco-footer-nav ul:nth-child(3) { grid-area: col-3; }
.be-casco-footer-nav ul:nth-child(4) { grid-area: col-4; }
.be-casco-footer-nav ul:nth-child(5) { grid-area: col-5; }
.be-casco-footer-nav ul:nth-child(6) { grid-area: col-6; }
.be-casco-footer-nav ul:nth-child(7) { grid-area: col-7; }

.be-casco-footer-title {
    color: var(--casco-footer-muted);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.be-casco-footer-nav a {
    width: fit-content;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.be-casco-footer-nav a:hover {
    opacity: 0.7;
    color: var(--casco-footer-hover);
    text-decoration: none;
}

.be-casco-footer-nav a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 1.625rem;
    height: 1.625rem;
    flex: 0 0 1.15rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M10.5 1.5h-3v1.2h1.45L4.7 6.95l.85.85 4.25-4.25V4.5H11V1.5h-.5zM2.5 2.5H6V1.3H2.2A1.2 1.2 0 0 0 1 2.5v7.3A1.2 1.2 0 0 0 2.2 11h7.3A1.2 1.2 0 0 0 10.7 9.8V6H9.5v3.8h-7V2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M10.5 1.5h-3v1.2h1.45L4.7 6.95l.85.85 4.25-4.25V4.5H11V1.5h-.5zM2.5 2.5H6V1.3H2.2A1.2 1.2 0 0 0 1 2.5v7.3A1.2 1.2 0 0 0 2.2 11h7.3A1.2 1.2 0 0 0 10.7 9.8V6H9.5v3.8h-7V2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.be-casco-footer-brand {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 82px 0;
}

.be-casco-footer-brand-left {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.be-casco-footer-logos {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.be-casco-footer-wordmark {
    display: block;
    width: 106px;
    height: 62px;
}

.be-casco-footer-80 {
    display: block;
    width: 38px;
    height: 40px;
}

.be-casco-footer-legal {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    color: var(--casco-footer-muted);
    font-size: 1.4rem;
    font-weight: 500;
}

.be-casco-footer-legal span:last-child {
    font-size: 1.1rem;
}

.be-casco-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #fff;
}

.be-casco-footer-social a {
    color: #fff;
    display: flex;
    transition: 0.3s;
}

.be-casco-footer-social a:hover {
    opacity: 0.7;
}

.be-casco-footer-social svg {
    width: 24px;
    height: 24px;
    display: block;
}

.be-casco-footer-copy {
    background: var(--casco-footer-copy-bg);
    padding: 24px 0;
}

.be-casco-footer-copy-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.be-casco-footer-copy-inner span {
    color: var(--casco-footer-muted);
}

.be-casco-footer #armored_website {
    width: 123px;
    min-height: 32px;
    background: #fff;
    padding: 4px;
    border-radius: 5px;
    flex: 0 0 auto;
}

@media (max-width: 991px) {
    .be-casco-toggle {
        display: block;
        order: -1;
    }

    .be-casco-nav {
        display: none;
    }

    .be-casco-top .be-casco-meu-senac,
    .be-casco-top .be-casco-login {
        display: none;
    }

    .be-casco-logo {
        margin: 0 auto;
    }

    .ssp-header-spacer.be-casco-spacer {
        height: 72px;
    }

    .be-casco-drawer {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        overflow-y: auto;
        z-index: 1999;
        padding: 12px 20px 40px;
        border-top: 1px solid var(--casco-border);
    }

    .be-casco.is-open .be-casco-drawer {
        display: block;
    }

    .be-casco-drawer .be-casco-meu-senac {
        display: inline-flex;
        margin: 8px 0 16px;
    }

    .be-casco-drawer .be-casco-sair {
        display: inline-flex;
        margin: 0 0 16px 12px;
        vertical-align: middle;
    }

    .be-casco-acc {
        border-bottom: 1px solid var(--casco-border);
    }

    .be-casco-acc > summary {
        list-style: none;
        cursor: pointer;
        padding: 14px 0;
        font-weight: 600;
        font-size: 15px;
        color: var(--casco-text-dark);
    }

    .be-casco-acc > summary::-webkit-details-marker {
        display: none;
    }

    .be-casco-acc a {
        display: block;
        padding: 7px 0 7px 8px;
        color: var(--casco-text);
        font-size: 15px;
    }

    .be-casco-acc-group {
        margin: 4px 0 10px;
        padding-left: 4px;
    }

    .be-casco-acc-group > strong {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: var(--casco-text);
        margin: 8px 0 4px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .be-casco-drawer-link {
        display: block;
        padding: 14px 0;
        font-weight: 600;
        font-size: 15px;
        border-bottom: 1px solid var(--casco-border);
        color: var(--casco-text-dark);
    }
}

@media (max-width: 1024px) {
    .be-casco-footer {
        padding-top: 56px;
    }

    .be-casco-footer-nav {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "col-1 col-2"
            "col-1 col-3"
            "col-4 col-6"
            "col-4 col-7"
            "col-5 col-7";
    }

    .be-casco-footer-nav a {
        font-size: 0.9rem;
    }

    .be-casco-footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 56px 0 32px;
        text-align: center;
    }

    .be-casco-footer-brand-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .be-casco-footer-copy-inner {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
}

@media (max-width: 550px) {
    .be-casco-footer {
        padding-top: 0;
    }

    .be-casco-footer-nav {
        display: flex;
        flex-direction: column;
        row-gap: 34px;
        padding: 56px 5px;
    }

    .be-casco-footer-nav ul {
        grid-area: auto;
    }

    .be-casco-footer-nav a {
        font-size: 0.75rem;
    }

    .be-casco-footer-brand {
        padding: 0 8px 32px;
    }
}
