/*
 * DIADAO override - footer Eliseo - production footer, validated refinement 2026-10-07.
 * Loaded after the existing styles; no Gulp bundle is modified.
 * Scope every rule to the site's native identifier in this multisite.
 */

body[data-site-name="eliseo"] #footer {
    padding: 64px 0 48px;
    background: #fff;
    color: #414b61;
    font-size: 17px;
    line-height: 1.55;
}

body[data-site-name="eliseo"] #footer .footer__wrapper {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(180px, .95fr) minmax(260px, 1.15fr) minmax(290px, 1.15fr) minmax(180px, .85fr);
    grid-template-rows: auto auto auto;
    column-gap: 36px;
    row-gap: 42px;
    width: 84%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

body[data-site-name="eliseo"] #footer .footer__right,
body[data-site-name="eliseo"] #footer .footer__bottom {
    display: contents;
    font-size: inherit;
    line-height: inherit;
}

body[data-site-name="eliseo"] #footer .footer__logo--eliseo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: auto;
    margin: 0;
    padding: 16px 0 24px 28px;
    text-align: left;
}

body[data-site-name="eliseo"] #footer .footer__logo--eliseo .logo {
    display: block;
    width: 200px;
    max-width: 100%;
    margin: 0;
}

body[data-site-name="eliseo"] #footer .footer__logo--eliseo .footer__logo__img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0;
}

body[data-site-name="eliseo"] #footer .footer__col {
    grid-column: 2;
    grid-row: 2;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

body[data-site-name="eliseo"] #footer .footer__infos {
    width: auto;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

body[data-site-name="eliseo"] #footer .footer__infos > span,
body[data-site-name="eliseo"] #footer .footer__infos > a,
body[data-site-name="eliseo"] #footer .footer__links > a {
    display: block;
    font-size: inherit;
    line-height: inherit;
}

body[data-site-name="eliseo"] #footer .footer__socials {
    margin: 20px 0 0;
    font-size: inherit;
    line-height: inherit;
}

body[data-site-name="eliseo"] #footer .footer__socials__link {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

body[data-site-name="eliseo"] #footer .footer__socials__networks,
body[data-site-name="eliseo"] #footer .text-diadao {
    font-size: inherit;
    line-height: inherit;
}

body[data-site-name="eliseo"] #footer .footer__infos .phone {
    color: inherit;
}

body[data-site-name="eliseo"] #footer .footer__links {
    grid-column: 4;
    grid-row: 2;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
}

body[data-site-name="eliseo"] #footer a {
    color: inherit;
}

body[data-site-name="eliseo"] #footer a:hover,
body[data-site-name="eliseo"] #footer a:focus-visible {
    color: #bf8a24;
}

body[data-site-name="eliseo"] #footer a:focus-visible {
    outline: 2px solid #bf8a24;
    outline-offset: 4px;
}

body[data-site-name="eliseo"] #footer .footer__bottom__block {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
}

body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(2) {
    grid-column: 3;
    grid-row: 2;
}

body[data-site-name="eliseo"] #footer .footer__bottom__block > strong {
    font-size: inherit;
    line-height: inherit;
}

body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(3) {
    grid-column: 2 / 5;
    grid-row: 1;
    position: relative;
    padding-left: 32px;
}

body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(3) > strong {
    display: inline-block;
    margin-left: -32px;
}

/* Decorative clock and calendar; the existing text remains the content source. */
body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(3)::before {
    content: "";
    position: absolute;
    top: 29px;
    left: 0;
    width: 24px;
    height: 51px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='51' viewBox='0 0 24 51' fill='none' stroke='%23f2a000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 5v7l4 2'/%3E%3Crect x='3' y='30' width='18' height='18' rx='2'/%3E%3Cpath d='M7 28v5m10-5v5M3 36h18M7 39h1m3 0h1m3 0h1M7 43h1m3 0h1m3 0h1'/%3E%3C/svg%3E") no-repeat 0 0;
}

body[data-site-name="eliseo"] #footer .footer__bottom__block:first-child {
    grid-column: 1 / -1;
    grid-row: 3;
    border-top: 1px solid #a2a7b1;
    padding: 38px 0 0;
    text-align: center;
}

body[data-site-name="eliseo"] #footer .footer__bottom__block:first-child > div {
    text-align: center;
}

body[data-site-name="eliseo"] #footer .footer__bottom__block:first-child img {
    max-width: calc(100% - 20px);
    object-fit: contain;
}

@media (max-width: 1199px) {
    body[data-site-name="eliseo"] #footer {
        font-size: 15px;
    }

    body[data-site-name="eliseo"] #footer .footer__wrapper {
        grid-template-columns: 170px minmax(220px, 1fr) minmax(240px, 1fr);
        column-gap: 28px;
        width: 90%;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(3) {
        grid-column: 2 / 4;
    }

    body[data-site-name="eliseo"] #footer .footer__links {
        grid-column: 2 / 4;
        grid-row: 3;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 24px;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:first-child {
        grid-row: 4;
    }
}

@media (max-width: 899px) {
    body[data-site-name="eliseo"] #footer {
        padding: 40px 0 80px;
        font-size: 15px;
    }

    body[data-site-name="eliseo"] #footer .footer__wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px 28px;
        width: calc(100% - 48px);
    }

    body[data-site-name="eliseo"] #footer .footer__logo--eliseo {
        grid-column: 1 / -1;
        grid-row: 1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 48px;
        padding: 0;
    }

    body[data-site-name="eliseo"] #footer .footer__logo--eliseo .logo {
        width: 150px;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-left: 0;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(3) > strong {
        margin-left: 0;
    }

    /* Raw CMS lines wrap here; decorative markers cannot follow each paragraph. */
    body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(3)::before {
        display: none;
    }

    body[data-site-name="eliseo"] #footer .footer__col {
        grid-column: 1;
        grid-row: 3;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(2) {
        grid-column: 2;
        grid-row: 3;
    }

    body[data-site-name="eliseo"] #footer .footer__links {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:first-child {
        grid-row: 5;
        padding-top: 24px;
    }
}

@media (max-width: 599px) {
    body[data-site-name="eliseo"] #footer .footer__wrapper {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 40px);
        row-gap: 28px;
    }

    body[data-site-name="eliseo"] #footer .footer__logo--eliseo {
        gap: 24px;
        justify-content: space-between;
    }

    body[data-site-name="eliseo"] #footer .footer__logo--eliseo .logo {
        width: calc((100% - 24px) / 2);
        max-width: 150px;
    }

    body[data-site-name="eliseo"] #footer .footer__col,
    body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(2),
    body[data-site-name="eliseo"] #footer .footer__links {
        grid-column: 1;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:nth-child(2) {
        grid-row: 3;
    }

    body[data-site-name="eliseo"] #footer .footer__col {
        grid-row: 4;
    }

    body[data-site-name="eliseo"] #footer .footer__links {
        grid-row: 5;
        display: block;
    }

    body[data-site-name="eliseo"] #footer .footer__links > a {
        padding: 5px 0;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:first-child {
        grid-row: 6;
    }

    body[data-site-name="eliseo"] #footer .footer__bottom__block:first-child img {
        height: auto !important; /* Override the legacy inline height on the funding logos. */
        max-width: calc(100% - 20px);
        max-height: 60px;
    }

    body[data-site-name="eliseo"] #footer .footer__infos .mail {
        overflow-wrap: anywhere;
    }
}

/* Other locale copies have no bottom snippets yet: do not reserve empty columns. */
@supports selector(:has(*)) {
    body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) {
        grid-template-columns: minmax(180px, .95fr) minmax(260px, 1.65fr) minmax(180px, .85fr);
        grid-template-rows: auto;
    }

    body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) .footer__logo--eliseo {
        grid-row: 1;
        justify-content: flex-start;
        gap: 32px;
    }

    body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) .footer__col {
        grid-column: 2;
        grid-row: 1;
    }

    body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) .footer__links {
        grid-column: 3;
        grid-row: 1;
        display: block;
    }

    @media (max-width: 899px) {
        body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        }

        body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) .footer__col {
            grid-column: 1;
            grid-row: 2;
        }

        body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) .footer__links {
            grid-column: 2;
            grid-row: 2;
        }
    }

    @media (max-width: 599px) {
        body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) {
            grid-template-columns: minmax(0, 1fr);
        }

        body[data-site-name="eliseo"] #footer .footer__wrapper:not(:has(.footer__bottom__block)) .footer__links {
            grid-column: 1;
            grid-row: 3;
        }
    }
}

/* Client-approved refinement: editable reception blocks and separate notes. */
body[data-site-name="eliseo"] #footer .footer__logo--eliseo .logo {
    width: 165px;
}
body[data-site-name="eliseo"] #footer .footer__bottom__block:has(> .diadao-footer-hours) {
    display: contents;
}
body[data-site-name="eliseo"] #footer .footer__bottom__block:has(> .diadao-footer-hours)::before {
    display: none;
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours {
    grid-column: 2 / 4;
    grid-row: 1;
    min-width: 0;
    font-size: 17px;
    line-height: 1.55;
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours__title {
    display: block;
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.4;
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 36px;
    font-size: inherit;
    line-height: inherit;
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours__item {
    position: relative;
    padding-left: 48px;
    min-width: 0;
    font-size: inherit;
    line-height: inherit;
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours__item strong {
    display: block;
    margin: 0 0 4px;
    font-size: inherit;
    line-height: inherit;
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours__item p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours__item::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-size: contain;
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours__item--open::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23e69a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='16' r='14'/%3E%3Cpath d='M16 7v9l6 4'/%3E%3C/svg%3E");
}
body[data-site-name="eliseo"] #footer .diadao-footer-hours__item--winter::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23e69a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='26' height='24' rx='2'/%3E%3Cpath d='M9 2v8m14-8v8M3 14h26M9 20h2m5 0h2m5 0h1M9 25h2m5 0h2m5 0h1'/%3E%3C/svg%3E");
}
body[data-site-name="eliseo"] #footer .diadao-footer-notes {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}
body[data-site-name="eliseo"] #footer .diadao-footer-notes p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}
body[data-site-name="eliseo"] #footer .footer__bottom:has(.diadao-footer-hours) > .footer__bottom__block:first-child {
    grid-row: 4;
    padding-top: 30px;
    margin-top: -18px;
}
@media (max-width: 1199px) {
    body[data-site-name="eliseo"] #footer .diadao-footer-hours__items {
        gap: 24px 28px;
    }
    body[data-site-name="eliseo"] #footer .diadao-footer-hours__item {
        padding-left: 36px;
    }
    body[data-site-name="eliseo"] #footer .diadao-footer-hours__item::before {
        width: 25px;
        height: 25px;
    }
    body[data-site-name="eliseo"] #footer .diadao-footer-notes {
        grid-row: 4;
    }
    body[data-site-name="eliseo"] #footer .footer__bottom:has(.diadao-footer-hours) > .footer__bottom__block:first-child {
        grid-row: 5;
    }
}
@media (max-width: 899px) {
    body[data-site-name="eliseo"] #footer .diadao-footer-hours {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 16px;
    }
    body[data-site-name="eliseo"] #footer .diadao-footer-hours__title {
        font-size: 18px;
        margin-bottom: 18px;
    }
    body[data-site-name="eliseo"] #footer .diadao-footer-notes {
        grid-row: 5;
    }
    body[data-site-name="eliseo"] #footer .footer__bottom:has(.diadao-footer-hours) > .footer__bottom__block:first-child {
        grid-row: 6;
        padding-top: 24px;
        margin-top: -8px;
    }
}
@media (max-width: 599px) {
    body[data-site-name="eliseo"] #footer .footer__logo--eliseo .logo {
        width: calc((100% - 24px) / 2);
        max-width: 150px;
    }
    body[data-site-name="eliseo"] #footer .diadao-footer-hours,
    body[data-site-name="eliseo"] #footer .diadao-footer-hours * {
        text-align: left;
    }
    body[data-site-name="eliseo"] #footer .diadao-footer-hours__items {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    body[data-site-name="eliseo"] #footer .diadao-footer-notes {
        grid-row: 6;
        font-size: 12px;
    }
    body[data-site-name="eliseo"] #footer .footer__bottom:has(.diadao-footer-hours) > .footer__bottom__block:first-child {
        grid-row: 7;
    }
}

/* Use the existing 202px color original instead of enlarging the 146px footer export. */
body[data-site-name="eliseo"] #footer .footer__logo--eliseo .logo:first-child .footer__logo__img {
    content: url("/static/src/img/logos/logo-header-small@2x-eliseo.png");
}
