/* Elastique Record / saut-elastique.net – footer grid and persistent actions. */
.er-net-has-actions { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
.er-net-has-actions #edgtf-back-to-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
.er-net-actions, .er-net-actions *, .er-net-explore, .er-net-explore * { box-sizing: border-box; }
.er-net-actions {
    position: fixed; z-index: 9900; left: 0; right: 0; bottom: 0;
    background: #fff; border-top: 1px solid #dedbd6;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -3px 20px rgba(0,0,0,.09);
}
.er-net-actions .er-net-actions-inner {
    max-width: 620px; margin: 0 auto; display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px;
}
.er-net-actions a, .er-net-actions a:visited {
    display: flex; min-height: 48px; align-items: center; justify-content: center;
    gap: 8px; padding: 8px 10px; border-radius: 5px; text-align: center;
    text-decoration: none; font: 700 15px/1.25 Arial, sans-serif;
}
.er-net-actions .er-net-call { color: #191919; border: 1px solid #222; background: #fff; }
.er-net-actions .er-net-book { color: #17120e; border: 1px solid #fc7e08; background: #fc7e08; }
.er-net-actions .er-net-call:hover { background: #f2f2f2; }
.er-net-actions .er-net-book:hover { background: #ff982e; color: #17120e; }
.er-net-actions svg { flex: 0 0 18px; }
.er-net-actions a:focus-visible, .er-net-explore a:focus-visible { outline: 3px solid #fc7e08; outline-offset: -3px; }
.er-net-explore { background: #ad571f; padding: 0; width: 100%; clear: both; }
.er-net-explore #er-net-explore-title {
    color: #fff; text-align: center; margin: 0;
    padding: 38px 16px; font-size: clamp(24px, 3vw, 44px); line-height: 1.15;
    text-transform: uppercase; overflow-wrap: anywhere;
}
.er-net-explore .er-net-explore-grid {
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 2px; background: #fff; width: 100%;
}
.er-net-explore .er-net-explore-card {
    isolation: isolate; display: flex; position: relative; min-width: 0;
    min-height: 155px; aspect-ratio: 1.3; align-items: flex-end; overflow: hidden;
    background: #633a26; color: #fff; text-decoration: none;
}
.er-net-explore .er-net-explore-card img {
    position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
    max-width: none; object-fit: cover; object-position: center; display: block;
    opacity: 1; visibility: visible;
}
.er-net-explore .er-net-explore-card::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.06) 10%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.88) 100%);
}
.er-net-explore .er-net-explore-content {
    position: relative; z-index: 2; display: flex; width: 100%; min-width: 0; align-items: flex-end;
    gap: 8px; justify-content: space-between; padding: 14px 15px;
}
.er-net-explore .er-net-explore-content h3 {
    font-size: clamp(17px, 1.7vw, 26px); color: #fff; line-height: 1.18;
    margin: 0; min-width: 0; overflow-wrap: anywhere; text-transform: uppercase;
}
.er-net-explore .er-net-explore-arrow {
    display: inline-flex; flex: 0 0 26px; width: 26px; height: 26px;
    align-items: center; justify-content: center; background: #fc7e08;
    color: #17120e; font: 700 18px/1 Arial, sans-serif; border-radius: 50%;
}
.er-net-explore .er-net-explore-card:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.88)); }
@media (max-width: 1100px) {
    .er-net-explore .er-net-explore-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .er-net-explore .er-net-explore-card { aspect-ratio: 1.55; }
    .er-net-explore .er-net-explore-content h3 { font-size: clamp(16px, 2.25vw, 24px); }
}
@media (max-width: 600px) {
    .er-net-explore #er-net-explore-title { padding: 22px 12px; }
    .er-net-explore .er-net-explore-card { min-height: 132px; aspect-ratio: 1.45; }
    .er-net-explore .er-net-explore-content { padding: 10px 9px; gap: 5px; }
    .er-net-explore .er-net-explore-content h3 { font-size: clamp(14px, 3.4vw, 18px); }
    .er-net-explore .er-net-explore-arrow { width: 21px; height: 21px; flex-basis: 21px; font-size: 14px; }
    .er-net-actions { padding-left: 8px; padding-right: 8px; }
    .er-net-actions a { font-size: 13px; gap: 5px; padding: 7px 5px; }
    .er-net-actions svg { flex-basis: 15px; width: 15px; }
}

/* V4: keep the validated V3 desktop action capsule. */
@media (min-width: 1101px) {
    .er-net-has-actions { padding-bottom: 0; }
    .er-net-has-actions #edgtf-back-to-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
    .er-net-actions {
        left: auto; right: 22px; bottom: 20px;
        width: auto; max-width: calc(100% - 44px);
        border: 1px solid #e8e3dd; border-radius: 9px;
        padding: 5px; background: #fff;
        box-shadow: 0 4px 20px rgba(0,0,0,.12);
    }
    .er-net-actions .er-net-actions-inner {
        display: flex; align-items: center; gap: 5px; max-width: none;
    }
    .er-net-actions a, .er-net-actions a:visited {
        min-height: 36px; padding: 8px 12px; gap: 6px;
        font-size: 13px; white-space: nowrap; border-radius: 5px;
    }
    .er-net-actions .er-net-call { border-color: transparent; }
    .er-net-actions svg { width: 15px; height: 15px; flex-basis: 15px; }
}

/* V6: original desktop background and proportions, without the opaque grid layer. */
@media (min-width: 1101px) {
    .er-net-explore {
        position: relative;
        overflow: hidden;
        background: #b66a37 url("/wp-content/uploads/2020/04/fundo.jpg") center center / cover no-repeat;
    }
    .er-net-explore #er-net-explore-title {
        padding: 49px 16px;
        font-size: clamp(32px, 3vw, 45px);
        line-height: 1.2;
    }
    .er-net-explore .er-net-explore-grid {
        grid-template-columns: repeat(5,minmax(0,1fr));
        gap: 0;
        background: transparent;
    }
    .er-net-explore .er-net-explore-card {
        width: 100%;
        min-height: 0;
        aspect-ratio: 100 / 79;
        border: 1px solid #fff;
        background: transparent;
    }
    .er-net-explore .er-net-explore-card img {
        opacity: 0;
        transition: opacity .25s ease;
    }
    .er-net-explore .er-net-explore-card::after {
        background: transparent;
    }
    .er-net-explore .er-net-explore-card:hover img,
    .er-net-explore .er-net-explore-card:focus-visible img {
        opacity: 1;
    }
    .er-net-explore .er-net-explore-card:hover::after,
    .er-net-explore .er-net-explore-card:focus-visible::after {
        background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.76) 100%);
    }
    .er-net-explore .er-net-explore-content {
        padding: 16px clamp(14px, 1.6vw, 30px);
        gap: 0;
    }
    .er-net-explore .er-net-explore-content h3 {
        font-size: clamp(18px, 1.55vw, 26px);
        line-height: 1.15;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,.23);
    }
    .er-net-explore .er-net-explore-arrow { display: none; }
}
@media (min-width: 1101px) and (prefers-reduced-motion: reduce) {
    .er-net-explore .er-net-explore-card img { transition: none; }
}
/* Tablet: same mosaic as mobile; limit the height of each image. */
@media (min-width: 768px) and (max-width: 1100px) {
    .er-net-explore #er-net-explore-title { padding: 26px 16px; }
    .er-net-explore .er-net-explore-card { aspect-ratio: 1.85; }
}

/* Keep two columns from overlapping on very narrow phones. */
@media (max-width: 389px) {
    .er-net-explore .er-net-explore-card { width: 100%; }
}

/* V7: compact home-page Linked Boxes on phones and tablets only.
   The original four-column desktop layout and the V6 footer are untouched. */
@media (max-width: 1100px) {
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
        width: 100%;
        background: #fff;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item {
        display: block;
        isolation: isolate;
        width: 100%;
        height: auto;
        min-width: 0;
        min-height: 160px;
        aspect-ratio: 1.40;
        overflow: hidden;
        background: #633a26;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item-image-holder {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item-image-holder img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
        transform: none;
        transition: none;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item::after {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0,0,0,.06) 10%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.88) 100%);
        pointer-events: none;
        transition: none;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item-text {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8px;
        padding: 14px 15px;
        box-sizing: border-box;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-section-title {
        min-width: 0;
        color: #fff;
        font-size: clamp(16px, 2.25vw, 24px) !important; /* shortcode sets 45px inline */
        line-height: 1.18;
        opacity: 1;
        overflow-wrap: anywhere;
        white-space: normal;
        transition: none;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item-text::after {
        content: '\2197';
        display: inline-flex;
        flex: 0 0 26px;
        height: 26px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #fc7e08;
        color: #17120e;
        font: 700 18px/1 Arial, sans-serif;
        pointer-events: none;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item-link:focus-visible {
        outline: 3px solid #fc7e08;
        outline-offset: -3px;
    }
}
@media (max-width: 600px) {
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item {
        aspect-ratio: 1.10;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item-text {
        padding: 10px 9px;
        gap: 5px;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-section-title {
        font-size: clamp(14px, 3.4vw, 18px) !important;
    }
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item-text::after {
        flex-basis: 21px;
        height: 21px;
        font-size: 14px;
    }
}
@media (min-width: 601px) and (max-width: 767px) {
    body.home.page-id-5496 .edgtf-linked-boxes.edgtf-linked-boxes-col-4:not(.edgtf-linked-boxes-full-height) .edgtf-linked-item { aspect-ratio: 1.25; }
}
