.bonani-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bonani-skip-link {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 100000000;
    padding: 12px 16px;
    border-radius: 4px;
    color: #fff !important;
    background: #6f3b00;
    text-decoration: none !important;
}

.bonani-skip-link:focus {
    top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #9a5d00 !important;
    outline-offset: 3px;
}

/* Navegação móvel */
#Top_bar a.responsive-menu-toggle {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    text-align: center;
}

#Side_slide .extras,
#Side_slide .search-wrapper {
    display: none !important;
}

#Side_slide .close-wrapper .close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
}

#Side_slide #menu ul li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
}

body.bonani-menu-open #ht-ctc-chat {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hero: corrige especificamente o intervalo em que o Slider Revolution
   aplica a configuração de tablet aos tamanhos de celular. */
#slider-6-slide-9-layer-1 {
    min-height: 44px !important;
    box-sizing: border-box !important;
    color: #fff !important;
    background-color: #147a3b !important;
}

#slider-6-slide-9-layer-1:hover,
#slider-6-slide-9-layer-1:focus {
    color: #fff !important;
    background-color: #0b5f2e !important;
}

.bonani-tablet-hero {
    display: none;
}

@media only screen and (min-width: 480px) and (max-width: 777px) {
    #slider-6-slide-9-layer-0,
    #slider-6-slide-9-layer-1 {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .bonani-tablet-hero {
        position: absolute;
        inset: 0;
        z-index: 100;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 22px;
        box-sizing: border-box;
        padding: 0 32px 14%;
        color: #fff;
        text-align: center;
        pointer-events: none;
    }

    .bonani-tablet-hero__title {
        width: 100%;
        max-width: 680px;
        color: #fff;
        font-family: "DM Sans", Helvetica, Arial, sans-serif;
        font-size: clamp(34px, 6vw, 44px);
        font-weight: 500;
        line-height: 1.08;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
    }

    .bonani-tablet-hero__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 0 24px;
        border-radius: 4px;
        color: #fff !important;
        background: #147a3b;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
        font-family: Roboto, Arial, sans-serif;
        font-size: 17px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none !important;
        pointer-events: auto;
    }

    .bonani-tablet-hero__button .fa-whatsapp {
        display: inline-block;
        font-family: FontAwesome !important;
        font-size: 20px;
        font-style: normal;
        line-height: 1;
    }

    .bonani-tablet-hero__button .fa-whatsapp::before {
        content: "\f232";
    }

    .bonani-tablet-hero__button:hover,
    .bonani-tablet-hero__button:focus {
        color: #fff !important;
        background: #0b5f2e;
        text-decoration: none !important;
    }
}

@media only screen and (max-width: 479px) {
    #slider-6-slide-9-layer-1 {
        min-height: 44px !important;
        line-height: 44px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Galeria de trabalhos */
#trabalhos .section_video {
    overflow: hidden;
    border-radius: 5px;
    background: #151515;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

#trabalhos video {
    display: block;
    width: 100% !important;
    height: 300px !important;
    margin: 0;
    background: #151515;
    object-fit: contain;
}

@media only screen and (max-width: 767px) {
    #trabalhos .column_video {
        margin-bottom: 20px !important;
    }

    #trabalhos .column_video:last-child {
        margin-bottom: 0 !important;
    }
}

/* Serviços e equipamentos */
#servicos .trailer_box img {
    display: block;
    width: 100%;
}

#equipamentos .trailer_box img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

/* Legibilidade da seção institucional */
#sobre {
    position: relative;
    isolation: isolate;
}

#sobre::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(18, 9, 4, 0.62);
    pointer-events: none;
}

#sobre .section_wrapper {
    position: relative;
    z-index: 1;
}

#sobre h2,
#sobre h3,
#sobre .lead {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#sobre .lead {
    max-width: 860px;
}

/* Formulário */
#orcamento .wpcf7-form .column {
    margin-bottom: 14px;
}

#orcamento input[type="text"],
#orcamento input[type="email"],
#orcamento input[type="file"],
#orcamento textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #c9c9c9;
}

#orcamento input[type="text"],
#orcamento input[type="email"] {
    min-height: 46px;
}

#orcamento textarea {
    min-height: 150px;
}

#orcamento .bonani-file-help {
    display: block;
    margin-top: 5px;
    color: #595959;
    font-size: 14px;
    line-height: 1.45;
}

#orcamento .wpcf7-submit {
    min-height: 48px;
    padding: 0 34px !important;
    color: #fff !important;
    background: #8a5000 !important;
    border-color: #8a5000 !important;
}

#orcamento .wpcf7-submit:hover,
#orcamento .wpcf7-submit:focus {
    color: #fff !important;
    background: #5f3500 !important;
    border-color: #5f3500 !important;
}

#orcamento .wpcf7-not-valid-tip,
#orcamento .wpcf7-response-output {
    color: #8b0000;
    font-weight: 600;
}

/* Rodapé: contraste e estados de interação sem sublinhado. */
#Footer,
#Footer .copyright,
#Footer .textwidget,
#Footer .textwidget li {
    color: #595959;
}

#Footer a,
#Footer .footer_copy .social li a {
    color: #9a5d00 !important;
    text-decoration: none !important;
}

#Footer a:hover,
#Footer a:focus,
#Footer .footer_copy .social li a:hover,
#Footer .footer_copy .social li a:focus {
    color: #6f3b00 !important;
    text-decoration: none !important;
}

#Footer .textwidget li a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.search-results .post-meta .author {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    #sobre {
        background-position: center center !important;
    }

    #sobre .lead {
        font-size: 16px;
        line-height: 1.6;
    }

    #orcamento .wpcf7-form .column.one-second,
    #orcamento .wpcf7-form .column.one {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    #orcamento input[type="text"],
    #orcamento input[type="email"],
    #orcamento input[type="file"],
    #orcamento textarea {
        font-size: 16px;
    }

    #orcamento .wpcf7-submit {
        width: 100%;
    }

    #Footer .widgets_wrapper {
        padding-top: 50px;
        padding-bottom: 45px;
    }
}
