/* Global shell variants. Theme identity stays in --tema-* tokens. */
#footer.footer-shell-variant {
    --footer-shell-gap: clamp(20px, 3vw, 44px);
    --footer-shell-line: color-mix(in srgb, var(--tema-footer-text, #fff) 18%, transparent);
    --footer-shell-panel: color-mix(in srgb, var(--tema-footer-text, #fff) 7%, transparent);
    color: var(--tema-footer-text, #fff);
}

#footer.footer-shell-variant .footer-widgets-wrap > .row {
    align-items: start;
    row-gap: var(--footer-shell-gap);
}

#footer.footer-shell-variant .footer-widgets-wrap > .row > [class*="col-"] {
    padding-bottom: 0;
}

#footer.footer-shell-variant .footer-logo {
    display: block;
    width: auto;
    max-width: min(190px, 72vw);
    max-height: 82px;
    object-fit: contain;
}

#footer.footer-shell-variant .widget_links ul {
    margin-bottom: 0;
}

#footer.footer-shell-variant .widget_links li,
#footer.footer-shell-variant address,
#footer.footer-shell-variant p {
    overflow-wrap: anywhere;
}

#footer.footer-shell-variant a:focus,
#footer.footer-shell-variant a:focus-visible {
    outline: 3px solid var(--tema-footer-link-hover, var(--tema-primary, currentColor));
    outline-offset: 4px;
}

#footer.footer-shell-variant a:hover {
    color: var(--tema-footer-link-hover, var(--tema-primary, currentColor));
}

#footer.footer-centered-minimal .footer-widgets-wrap > .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#footer.footer-centered-minimal .footer-widgets-wrap > .row > [class*="col-"] {
    flex: 0 0 auto;
    width: 100%;
    max-width: 960px;
}

#footer.footer-centered-minimal .footer-logo {
    margin-inline: auto;
}

#footer.footer-centered-minimal .widget_links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
}

#footer.footer-centered-minimal .widget_links li {
    margin: 0;
}

#footer.footer-centered-minimal .widget .row {
    justify-content: center;
}

#footer.footer-centered-minimal .footer-language-selector .d-flex {
    justify-content: center;
}

#footer.footer-editorial-contact .footer-widgets-wrap > .row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
    gap: var(--footer-shell-gap);
}

#footer.footer-editorial-contact .footer-widgets-wrap > .row > [class*="col-"] {
    width: auto;
    max-width: none;
}

#footer.footer-editorial-contact .footer-widgets-wrap > .row > [class*="col-"]:first-child {
    grid-column: 1 / -1;
    padding-block-end: clamp(24px, 4vw, 52px);
    border-block-end: 1px solid var(--footer-shell-line);
}

#footer.footer-editorial-contact .footer-widgets-wrap > .row > [class*="col-"]:first-child p {
    max-width: 920px;
    font-size: clamp(1rem, 1.45vw, 1.24rem);
    line-height: 1.75;
}

#footer.footer-contact-grid .footer-widgets-wrap > .row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(220px, .75fr));
    gap: 16px;
}

#footer.footer-contact-grid .footer-widgets-wrap > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    min-height: 100%;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--footer-shell-line);
    background: rgba(255, 255, 255, .04);
    background: var(--footer-shell-panel);
}

#footer.footer-contact-grid .footer-widgets-wrap > .row > [class*="col-"] .widget {
    height: 100%;
}

#footer.footer-compact-horizontal .footer-widgets-wrap {
    padding-block: clamp(28px, 4vw, 48px);
}

#footer.footer-compact-horizontal .footer-widgets-wrap > .row {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) minmax(280px, 1fr) minmax(210px, .7fr);
    gap: 24px;
    align-items: center;
}

#footer.footer-compact-horizontal .footer-widgets-wrap > .row > [class*="col-"] {
    width: auto;
    max-width: none;
}

#footer.footer-compact-horizontal .footer-logo {
    max-height: 58px;
}

#footer.footer-compact-horizontal .widget_links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
}

#footer.footer-compact-horizontal .widget_links li {
    margin: 0;
}

#footer.footer-compact-horizontal #copyrights {
    padding-block: 18px;
}

#footer.footer-brand-social-row .footer-widgets-wrap > .row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.45fr) minmax(220px, .8fr);
    gap: var(--footer-shell-gap);
    align-items: center;
    padding-block: 18px;
    border-block: 1px solid var(--footer-shell-line);
}

#footer.footer-brand-social-row .footer-widgets-wrap > .row > [class*="col-"] {
    width: auto;
    max-width: none;
}

#footer.footer-brand-social-row .widget_links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
}

#footer.footer-brand-social-row .widget_links li {
    margin: 0;
}

html[dir="rtl"] #footer.footer-shell-variant,
html[dir="rtl"] #footer.footer-shell-variant .text-md-start,
html[dir="rtl"] #footer.footer-shell-variant .text-md-end {
    text-align: right !important;
}

@media (max-width: 991.98px) {
    #footer.footer-editorial-contact .footer-widgets-wrap > .row,
    #footer.footer-contact-grid .footer-widgets-wrap > .row,
    #footer.footer-compact-horizontal .footer-widgets-wrap > .row,
    #footer.footer-brand-social-row .footer-widgets-wrap > .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    #footer.footer-editorial-contact .footer-widgets-wrap > .row > [class*="col-"]:first-child {
        grid-column: auto;
    }

    #footer.footer-contact-grid .footer-widgets-wrap > .row > [class*="col-"] {
        min-height: 0;
    }

    #footer.footer-brand-social-row .widget_links ul,
    #footer.footer-compact-horizontal .widget_links ul {
        justify-content: flex-start;
    }

    html[dir="rtl"] #footer.footer-brand-social-row .widget_links ul,
    html[dir="rtl"] #footer.footer-compact-horizontal .widget_links ul {
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    #footer.footer-shell-variant .footer-widgets-wrap {
        padding-block: 34px;
    }

    #footer.footer-contact-grid .footer-widgets-wrap > .row > [class*="col-"] {
        padding: 20px;
    }

    #footer.footer-centered-minimal .widget_links ul,
    #footer.footer-brand-social-row .widget_links ul,
    #footer.footer-compact-horizontal .widget_links ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}
