/* Cabeçalho BAW: mesmas medidas do index; animação de sticky ao rolar (sem travar o main-header) */

/* Faixa superior do cabeçalho */
body.machion-baw-header .header-top .outer-container {
    padding-top: 10px;
    padding-bottom: 10px;
}
body.machion-baw-header .header-top .social-links li h5,
body.machion-baw-header .header-top .links-list li {
    font-size: 14px;
    line-height: 20px;
}
body.machion-baw-header .header-top .social-links li a {
    font-size: 16px;
}
body.machion-baw-header .header-top .social-links li:before {
    top: 10px;
}
body.machion-baw-header .header-top .links-list li a {
    white-space: nowrap;
}

/* Header inferior: esquerda (conteúdo) | centro 1fr (nav centrado nas linhas) | direita */
/* (mesmas regras no sticky ao rolar, para ficar idêntico ao header-lower) */
@media (min-width: 768px) {
    body.machion-baw-header .main-header .header-lower .outer-box,
    body.machion-baw-header .sticky-header .outer-box {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 0;
    }
    body.machion-baw-header .main-header .header-lower .menu-left-content,
    body.machion-baw-header .sticky-header .menu-left-content {
        grid-column: 1;
        justify-self: start;
        margin-right: 0;
        border-right: none;
        padding-right: 36px;
    }
    body.machion-baw-header .main-header .header-lower .menu-area,
    body.machion-baw-header .sticky-header .menu-area {
        grid-column: 2;
        justify-self: stretch;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: none !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-left: 1px solid #e2e2e2;
        border-right: 1px solid #e2e2e2;
        padding-left: 32px;
        padding-right: 32px;
    }
    body.machion-baw-header .main-header .header-lower .menu-area .main-menu,
    body.machion-baw-header .sticky-header .menu-area .main-menu {
        float: none;
        margin: 0 auto;
        flex-shrink: 0;
    }
    body.machion-baw-header .main-header .header-lower .menu-right-content,
    body.machion-baw-header .sticky-header .menu-right-content {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
        border-left: none;
        padding-left: 36px;
    }
}

body.machion-baw-header .main-header .header-lower .menu-left-content,
body.machion-baw-header .sticky-header .menu-left-content {
    padding-top: 20px;
    padding-bottom: 20px;
}
body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box,
body.machion-baw-header .sticky-header .menu-left-content .logo-box {
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 32px;
}
body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box img,
body.machion-baw-header .sticky-header .menu-left-content .logo-box img {
    max-height: 52px;
    width: auto;
    vertical-align: middle;
}
body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box:before,
body.machion-baw-header .sticky-header .menu-left-content .logo-box:before {
    height: 52px;
    right: -18px;
    top: 0;
}

body.machion-baw-header .main-header .header-lower .menu-right-content,
body.machion-baw-header .sticky-header .menu-right-content {
    padding-top: 20px;
    padding-bottom: 20px;
}
body.machion-baw-header .main-header .header-lower .menu-right-content .option-list,
body.machion-baw-header .sticky-header .menu-right-content .option-list {
    margin-right: 0;
}
body.machion-baw-header .main-header .header-lower .menu-right-content .option-list:not(:has(> li)),
body.machion-baw-header .sticky-header .menu-right-content .option-list:not(:has(> li)) {
    display: none;
}
body.machion-baw-header .main-header .header-lower .menu-right-content .option-list:not(:has(> li)):before,
body.machion-baw-header .sticky-header .menu-right-content .option-list:not(:has(> li)):before {
    display: none;
}
body.machion-baw-header .main-header .header-lower .menu-right-content .option-list:before,
body.machion-baw-header .sticky-header .menu-right-content .option-list:before {
    height: 52px;
    right: -28px;
}
body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box,
body.machion-baw-header .sticky-header .menu-right-content .btn-box {
    padding-left: 44px;
}
body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box .icon-box,
body.machion-baw-header .sticky-header .menu-right-content .btn-box .icon-box {
    width: 40px;
    height: 40px;
    line-height: 42px;
    font-size: 18px;
    top: -4px;
}
body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box a,
body.machion-baw-header .sticky-header .menu-right-content .btn-box a {
    font-size: 14px;
    line-height: 24px;
}

body.machion-baw-header .main-header .header-lower .main-menu .navigation > li,
body.machion-baw-header .sticky-header .main-menu .navigation > li {
    margin-left: 12px;
    margin-right: 12px;
}
body.machion-baw-header .main-header .header-lower .main-menu .navigation > li > a,
body.machion-baw-header .sticky-header .main-menu .navigation > li > a {
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 26px;
    font-size: 16px;
}
body.machion-baw-header .main-header .header-lower .main-menu .navigation > li > a:before,
body.machion-baw-header .sticky-header .main-menu .navigation > li > a:before {
    top: 16px;
}
body.machion-baw-header .main-header .header-lower .main-menu .navigation > li > a:after,
body.machion-baw-header .sticky-header .main-menu .navigation > li > a:after {
    top: 17px;
}

body.machion-baw-header .header-top .links-list li a .numerodtel {
    display: inline;
}

/* About (home): quebra após a 1.ª frase; 1.ª linha nowrap mas escala à largura real da coluna */
.about-section .row.clearfix {
    min-width: 0;
}
.about-section .content-column,
.about-section .content-box {
    min-width: 0;
    max-width: 100%;
}
.about-section .content-box .sec-title {
    container-type: inline-size;
    container-name: about-sec-title;
}
.about-section .content-box .sec-title h2 {
    max-width: 100%;
    overflow-x: clip;
    line-height: 1.15;
    hyphens: none;
    font-size: clamp(12px, 2.95vw + 0.5rem, 54px);
}
@supports (width: 1cqw) {
    .about-section .content-box .sec-title h2 {
        font-size: clamp(12px, 6.5cqw, 54px);
    }
}
.about-section .content-box .sec-title h2 .baw-about-title-line1 {
    white-space: nowrap;
}
@media only screen and (min-width: 992px) {
    .about-section .content-box .inner-box.baw-about-cert-row {
        margin-top: 1.25rem; /* abaixo do “Por que escolher…” (antes -26px) */
    }
}
.about-section .content-box .text + .single-box {
    margin-top: -14px;
}
.about-section .content-box .single-box:has(+ .inner-box.baw-about-cert-row) {
    margin-bottom: 22px;
}

.about-section .content-box .inner-box .baw-about-cert-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}
.about-section .content-box .inner-box .baw-about-cert-text h4,
.about-section .content-box .inner-box .baw-about-cert-text p {
    max-width: 100%;
}
.about-section .content-box .inner-box .baw-about-cert-text button {
    max-width: 100%;
    box-sizing: border-box;
}
@media only screen and (max-width: 991px) {
    .about-section .content-box .sec-title + .text {
        text-align: center;
    }
    .about-section .content-box .single-box:has(+ .inner-box.baw-about-cert-row) p {
        text-align: center;
    }
    .about-section .content-box .inner-box.baw-about-cert-row {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        box-sizing: border-box;
        margin-top: clamp(10px, 2.5vw, 22px);
        min-width: 0;
        max-width: 100%;
        /* Encosta na largura útil da coluna; 5vw só se couber separação (~selo + texto) */
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
        padding-inline: min(5vw, max(0px, calc((100vw - 300px) / 2)));
        gap: 0;
    }
    .about-section .content-box .inner-box.baw-about-cert-row .curve-text {
        margin-left: 0;
        flex-shrink: 0;
        width: clamp(100px, 26vw, 120px);
        height: clamp(100px, 26vw, 120px);
    }
    .about-section .content-box .inner-box.baw-about-cert-row .curve-text .curved-circle {
        width: clamp(100px, 26vw, 120px);
        font-size: clamp(8px, 2.1vw, 10px);
        line-height: clamp(16px, 4vw, 20px);
        transform: translate(calc(-50% - 11px), -50%) rotate(-90deg);
    }
    .about-section .content-box .inner-box.baw-about-cert-row .curve-text .icon-box {
        width: clamp(40px, 10.5vw, 48px);
        height: clamp(40px, 10.5vw, 48px);
        margin: 0 0 0 clamp(34px, 9vw, 48px);
        font-size: clamp(28px, 7.5vw, 36px);
    }
    .about-section .content-box .inner-box.baw-about-cert-row .baw-about-cert-text {
        text-align: right;
        flex: 0 0 auto;
        width: fit-content;
        max-width: calc(100% - clamp(104px, 30vw, 132px));
        margin-left: auto;
        min-width: 0;
        padding-left: clamp(4px, 2vw, 10px);
    }
    .about-section .content-box .inner-box.baw-about-cert-row .baw-about-cert-text h4 {
        font-size: clamp(16px, 3.9vw, 19px);
        line-height: 1.3;
        margin-bottom: 4px;
    }
    .about-section .content-box .inner-box.baw-about-cert-row .baw-about-cert-text p {
        font-size: clamp(12px, 3.1vw, 14px);
        line-height: 1.45;
    }
}

/* About: estilo da marca (traço oblíquo, halo, reflexo em faixa) — animação própria, não é o preloader */
@keyframes baw-about-brand-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes baw-about-brand-halo {
    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.82;
        transform: translate(-50%, -50%) scale(1.07);
    }
}
@keyframes baw-about-brand-drift {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}
@keyframes baw-about-brand-accent-pulse {
    0%,
    100% {
        opacity: 0.35;
        transform: rotate(-14deg) scaleX(0.94);
    }
    50% {
        opacity: 0.75;
        transform: rotate(-14deg) scaleX(1);
    }
}
@keyframes baw-about-brand-glint {
    0%,
    48% {
        transform: translateX(-115%) skewX(-16deg);
        opacity: 0;
    }
    52% {
        opacity: 1;
    }
    58% {
        transform: translateX(115%) skewX(-16deg);
        opacity: 0.75;
    }
    64%,
    100% {
        opacity: 0;
        transform: translateX(115%) skewX(-16deg);
    }
}
/* Pontos que sobem e apagam — referência vagalumes, tons laranja / âmbar / castanho */
@keyframes baw-about-brand-firefly {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0;
    }
    14% {
        opacity: var(--f-glow, 0.92);
    }
    38% {
        transform: translate3d(var(--f-drift-mid, 0px), var(--f-y-mid, -36px), 0) scale(0.92);
        opacity: 0.78;
    }
    62% {
        transform: translate3d(var(--f-drift, 0px), var(--f-y-late, -72px), 0) scale(0.72);
        opacity: 0.35;
    }
    82% {
        transform: translate3d(calc(var(--f-drift, 0px) * 0.85), var(--f-y-end, -108px), 0) scale(0.45);
        opacity: 0;
    }
    100% {
        transform: translate3d(var(--f-drift, 0px), var(--f-y-end, -108px), 0) scale(0.35);
        opacity: 0;
    }
}
.about-section .image-box:has(figure.baw-about-logo-figure),
.about-section .image-box.baw-about-logo-box {
    overflow: visible;
}
/* Respiro após o banner; em ≥992px preenche área útil da viewport (altura da secção) */
.about-section:has(figure.baw-about-logo-figure),
.about-section.baw-about-has-logo {
    overflow-x: visible;
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
@media (min-width: 992px) {
    body.site-desktop-fixed-header .about-section:has(figure.baw-about-logo-figure),
    body.site-desktop-fixed-header .about-section.baw-about-has-logo {
        min-height: calc(100svh - 102px);
    }
    body:not(.site-desktop-fixed-header) .about-section:has(figure.baw-about-logo-figure),
    body:not(.site-desktop-fixed-header) .about-section.baw-about-has-logo {
        min-height: 65vh;
    }
}
.about-section:has(figure.baw-about-logo-figure) > .auto-container,
.about-section.baw-about-has-logo > .auto-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}
.about-section:has(figure.baw-about-logo-figure) .row.clearfix,
.about-section.baw-about-has-logo .row.clearfix {
    flex: 1 1 auto;
    align-content: stretch;
    min-height: 0;
}
.about-section:has(figure.baw-about-logo-figure) .image-column,
.about-section.baw-about-has-logo .image-column {
    display: flex;
    flex-direction: column;
}
.about-section:has(figure.baw-about-logo-figure) .image-box,
.about-section.baw-about-has-logo .image-box {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 0;
    padding-bottom: 0;
}
.about-section .image-box:has(figure.baw-about-logo-figure) figure.image.baw-about-logo-figure,
.about-section .image-box.baw-about-logo-box figure.image.baw-about-logo-figure {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
}
.about-section .image-box figure.baw-about-logo-figure + .text {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    z-index: 4;
    margin: 0;
    text-align: right;
    padding: 0 0 clamp(0.55rem, 2vw, 1.75rem) 0;
    transform: translateX(6px);
    pointer-events: none;
}
.about-section .image-box figure.baw-about-logo-figure + .text h5 {
    pointer-events: auto;
    color: #000;
    font-weight: 1000;
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.85),
        0 2px 6px rgba(0, 0, 0, 0.18),
        0 4px 14px rgba(0, 0, 0, 0.12),
        0 0 12px rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 0;
}
.about-section .image-box figure.baw-about-logo-figure + .text h5::before {
    content: none;
    display: none;
}
.about-section .image-box figure.baw-about-logo-figure + .text h5::after {
    content: '';
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e4492e;
}
/* Topo do cartão alinhado ao limite inferior do banner; cantos superiores retos em desktop */
.about-section .image-box figure.image.baw-about-logo-figure {
    position: relative;
    flex: 1 1 auto;
    width: 50vw;
    max-width: calc(100vw - 30px);
    margin-top: 0;
    margin-bottom: 23px;
    margin-right: auto;
    margin-left: calc(-1 * (30px + max(0px, (100vw - 1200px) / 2)));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(260px, 28vh, 440px);
    padding: 0;
    background: radial-gradient(ellipse 85% 65% at 50% 42%, #181818 0%, #0a0a0a 55%, #050505 100%);

    border-radius: 0 6px 6px 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media only screen and (max-width: 991px) {
    .about-section:has(figure.baw-about-logo-figure):before,
    .about-section.baw-about-has-logo:before {
        display: none;
    }
    .about-section:has(figure.baw-about-logo-figure) > .auto-container,
    .about-section.baw-about-has-logo > .auto-container {
        padding-left: 0;
        padding-right: 0;
    }
    .about-section:has(figure.baw-about-logo-figure) .image-column,
    .about-section.baw-about-has-logo .image-column {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        order: -1;
    }
    .about-section:has(figure.baw-about-logo-figure) .image-box,
    .about-section.baw-about-has-logo .image-box {
        margin-right: 0;
        margin-left: 0;
        padding-bottom: 0;
    }
    .about-section .image-box figure.image.baw-about-logo-figure {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        margin-top: calc(-1 * clamp(1.5rem, 3.5vh, 3rem));
        border-radius: 0;
        border-left: none;
        border-right: none;
        min-height: clamp(240px, 42svh, 400px);
        align-self: stretch;
    }
    .about-section:has(figure.baw-about-logo-figure) .content-column,
    .about-section.baw-about-has-logo .content-column {
        padding-left: 15px;
        padding-right: 15px;
    }
    .about-section:has(figure.baw-about-logo-figure) .content-box,
    .about-section.baw-about-has-logo .content-box {
        margin-left: 0;
        margin-right: 0;
        padding-top: clamp(1.25rem, 4vw, 2rem);
    }
    .about-section .image-box figure.baw-about-logo-figure + .text {
        transform: translateX(-10px);
        padding-right: clamp(0.35rem, 1.5vw, 0.65rem);
    }
    .about-section .image-box figure.baw-about-logo-figure + .text h5 {
        gap: 5px;
    }
}
.about-section .baw-about-brand-motion {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: baw-about-brand-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.about-section:has(figure.baw-about-logo-figure) .baw-about-brand-motion,
.about-section.baw-about-has-logo .baw-about-brand-motion {
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}
.about-section .baw-about-brand-motion__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: min(300px, 100%);
    min-height: min(220px, 42vw);
    margin-inline: auto;
    width: 100%;
    max-width: 100%;
}
.about-section:has(figure.baw-about-logo-figure) .baw-about-brand-motion__stage,
.about-section.baw-about-has-logo .baw-about-brand-motion__stage {
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
}
.about-section .baw-about-brand-motion__fireflies {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.about-section .baw-about-brand-motion__firefly {
    position: absolute;
    left: var(--f-left, 50%);
    bottom: var(--f-bottom, 8%);
    width: var(--f-size, 4px);
    height: var(--f-size, 4px);
    margin-left: calc(var(--f-size, 4px) / -2);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffe0c2 0%, #f4a04a 35%, #d85a28 65%, #6b3418 100%);
    box-shadow:
        0 0 5px 1px rgba(255, 190, 120, 0.65),
        0 0 12px 3px rgba(232, 90, 40, 0.4),
        0 0 20px 5px rgba(107, 52, 24, 0.2);
    opacity: 0;
    animation: baw-about-brand-firefly var(--f-dur, 4.2s) ease-out var(--f-delay, 0s) infinite;
    will-change: transform, opacity;
}
.about-section .baw-about-brand-motion__halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(320px, 88vw);
    height: min(320px, 88vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(228, 73, 46, 0.2) 0%, rgba(228, 73, 46, 0.06) 40%, transparent 68%);
    animation: baw-about-brand-halo 5.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.about-section .baw-about-brand-motion__accent {
    position: absolute;
    left: 10%;
    bottom: 18%;
    width: min(52%, 210px);
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(244, 130, 66, 0.2),
        rgba(244, 130, 66, 0.95),
        rgba(255, 200, 170, 0.45),
        transparent
    );
    transform-origin: left center;
    animation: baw-about-brand-accent-pulse 3.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.about-section .baw-about-brand-motion__logo-wrap {
    position: relative;
    z-index: 2;
    display: block;
    margin-inline: auto;
    line-height: 0;
    overflow: hidden;
    padding: 6px 4px;
    animation: baw-about-brand-drift 4.6s ease-in-out infinite;
}
.about-section .baw-about-brand-motion__logo {
    display: block;
    width: auto;
    max-width: min(100%, 480px);
    max-height: clamp(100px, 28vw, 176px);
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 22px rgba(228, 73, 46, 0.18));
}
.about-section .baw-about-brand-motion__glint {
    position: absolute;
    inset: -20% -30%;
    background: linear-gradient(
        102deg,
        transparent 42%,
        rgba(255, 255, 255, 0) 46%,
        rgba(255, 255, 255, 0.5) 49.8%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0.45) 50.2%,
        rgba(255, 255, 255, 0) 54%,
        transparent 58%
    );
    animation: baw-about-brand-glint 5s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}
.about-section .baw-about-static-media {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}
.about-section .baw-about-static-media__image {
    width: 100%;
    height: 100%;
    min-height: clamp(240px, 38vh, 420px);
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .about-section .baw-about-brand-motion,
    .about-section .baw-about-brand-motion__halo,
    .about-section .baw-about-brand-motion__accent,
    .about-section .baw-about-brand-motion__logo-wrap,
    .about-section .baw-about-brand-motion__glint,
    .about-section .baw-about-brand-motion__firefly {
        animation: none !important;
        opacity: 1 !important;
    }
}
/* Home banner: zoom Ken Burns mais discreto (tema base: scale 1.25 no slide ativo) */
.banner-section .banner-carousel .slide-item .image-layer {
    -webkit-transition:
        -webkit-transform 6s linear,
        background-position 6s linear;
    transition:
        transform 6s linear,
        background-position 6s linear;
}
.banner-section .banner-carousel .active .slide-item .image-layer {
    -webkit-transform: scale(1.06);
    -ms-transform: scale(1.06);
    transform: scale(1.06);
}

/* Slide sem texto: sem escurecimento (::before do tema) */
.banner-section .banner-carousel .slide-item.slide-item--no-overlay::before {
    content: none;
    display: none;
    opacity: 0;
}

/* Banner só mídia: slide inteiro clicável quando houver link do botão */
.banner-carousel .slide-item--media-only .baw-banner-slide-full-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    cursor: pointer;
}

/* Banner: proporção 16:9 (ex.: banner-baw4.png 1024×576) — menos altura, imagem alinhada ao “quadro” */
.baw-machion-banner-16x9 .banner-carousel .slide-item {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100%;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-sizing: border-box;
}
/* Banners 1–3: pan + zoom bem lento (último slide não usa) */
@keyframes baw-machion-banner-pan-slowzoom {
    0% {
        background-position: 50% 48%;
        -webkit-transform: scale(1) translateZ(0);
        transform: scale(1) translateZ(0);
    }
    100% {
        background-position: 46% 56%;
        -webkit-transform: scale(1.04) translateZ(0);
        transform: scale(1.04) translateZ(0);
    }
}
/* Último banner (identidade): pan + zoom (sem filter — evita escurecer a imagem) */
@keyframes baw-machion-banner-identity-hero {
    0% {
        background-position: 64% 30%;
        -webkit-transform: scale(1) translateZ(0);
        transform: scale(1) translateZ(0);
    }
    35% {
        background-position: 50% 46%;
        -webkit-transform: scale(1.02) translateZ(0);
        transform: scale(1.02) translateZ(0);
    }
    100% {
        background-position: 26% 70%;
        -webkit-transform: scale(1.05) translateZ(0);
        transform: scale(1.05) translateZ(0);
    }
}
@keyframes baw-machion-identity-sheen {
    0% {
        -webkit-transform: translateX(110%) skewX(-10deg);
        transform: translateX(110%) skewX(-10deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    45% {
        -webkit-transform: translateX(0) skewX(-10deg);
        transform: translateX(0) skewX(-10deg);
        opacity: 0.32;
    }
    100% {
        -webkit-transform: translateX(-110%) skewX(-10deg);
        transform: translateX(-110%) skewX(-10deg);
        opacity: 0;
    }
}
@keyframes baw-machion-identity-content-in {
    0% {
        opacity: 0;
        -webkit-transform: translateY(36px);
        transform: translateY(36px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
.baw-machion-banner-16x9 .banner-carousel .slide-item .image-layer {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-size: cover !important;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    -webkit-transform: scale(1) translateZ(0);
    transform: scale(1) translateZ(0);
    -webkit-filter: none;
    filter: none;
    -webkit-transition:
        background-position 0.45s ease-out,
        -webkit-filter 0.45s ease-out,
        -webkit-transform 0.45s ease-out;
    transition:
        background-position 0.45s ease-out,
        filter 0.45s ease-out,
        transform 0.45s ease-out;
    animation: none;
}
.baw-machion-banner-16x9 .banner-carousel .active .slide-item:not(.baw-banner-slide--identity) .image-layer {
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
    -webkit-animation: baw-machion-banner-pan-slowzoom 12s ease-out forwards;
    animation: baw-machion-banner-pan-slowzoom 12s ease-out forwards;
    will-change: transform, background-position;
}
.baw-machion-banner-16x9 .banner-carousel .active .slide-item.baw-banner-slide--identity .image-layer {
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
    -webkit-animation: baw-machion-banner-identity-hero 6.5s ease-in-out forwards;
    animation: baw-machion-banner-identity-hero 6.5s ease-in-out forwards;
    will-change: transform, background-position;
}
/* Faixa de luz (só no último slide); overflow para cortar a faixa fora do quadro */
.baw-machion-banner-16x9 .slide-item.baw-banner-slide--identity .image-layer {
    overflow: hidden;
}
.baw-machion-banner-16x9 .banner-carousel .active .slide-item.baw-banner-slide--identity .image-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 70%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 42%,
        rgba(255, 235, 220, 0.12) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    -webkit-animation: baw-machion-identity-sheen 4.2s ease-in-out 0.25s 1;
    animation: baw-machion-identity-sheen 4.2s ease-in-out 0.25s 1;
}
.baw-machion-banner-16x9 .banner-carousel .active .slide-item.baw-banner-slide--identity .baw-banner-content--identity {
    -webkit-animation: baw-machion-identity-content-in 1.1s cubic-bezier(0.2, 0.9, 0.25, 1) 0.08s both;
    animation: baw-machion-identity-content-in 1.1s cubic-bezier(0.2, 0.9, 0.25, 1) 0.08s both;
}
@media (prefers-reduced-motion: reduce) {
    .baw-machion-banner-16x9 .banner-carousel .active .slide-item .image-layer {
        -webkit-animation: none;
        animation: none;
    }
    .baw-machion-banner-16x9 .banner-carousel .slide-item .image-layer {
        background-position: 50% 50% !important;
        -webkit-transform: scale(1) translateZ(0) !important;
        transform: scale(1) translateZ(0) !important;
        -webkit-filter: none !important;
        filter: none !important;
    }
    .baw-machion-banner-16x9 .banner-carousel .active .slide-item.baw-banner-slide--identity .image-layer::after {
        display: none;
    }
    .baw-machion-banner-16x9
        .banner-carousel
        .active
        .slide-item.baw-banner-slide--identity
        .baw-banner-content--identity {
        -webkit-animation: none;
        animation: none;
    }
}
.baw-machion-banner-16x9 .banner-carousel .slide-item .auto-container {
    position: relative;
    z-index: 2;
    min-height: 100% !important;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: clamp(24px, 5vw, 80px) !important;
    padding-right: clamp(16px, 3vw, 40px) !important;
    padding-top: clamp(20px, 3vh, 48px) !important;
    padding-bottom: clamp(20px, 3vh, 48px) !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}
.baw-machion-banner-16x9 .banner-carousel .content-box {
    margin-left: 0 !important;
    margin-right: 0;
    max-width: min(38rem, 90%);
}
.baw-machion-banner-16x9 .banner-carousel .content-box .special-text {
    min-height: 0 !important;
    font-size: clamp(64px, 11vw, 140px) !important;
    line-height: 0.85 !important;
    margin-bottom: clamp(0.5rem, 1.5vh, 1.5rem) !important;
}
.baw-machion-banner-16x9 .banner-carousel .content-box h2 {
    font-size: clamp(1.9rem, 4vw, 3.1rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 0.75rem !important;
}
.baw-machion-banner-16x9 .banner-carousel .content-box p {
    font-size: clamp(0.95rem, 1.35vw, 1.15rem) !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
}
/* Banner: setas + numeração compacta na parte inferior (como original), alinhadas à direita */
.banner-section .banner-carousel {
    position: relative;
}
/* Esconde numeração na posição antiga (lateral esquerda) até ir para dentro do .owl-nav */
.banner-section .banner-carousel > .owl-dots {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.banner-section .banner-carousel .owl-nav {
    position: absolute;
    top: auto;
    bottom: clamp(28px, 5vh, 50px);
    left: 0;
    right: 0;
    transform: none;
    max-width: 704px;
    width: 100%;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 2vw, 20px);
    z-index: 20;
    pointer-events: auto;
    text-align: right;
}
.banner-section .banner-carousel .owl-nav button.owl-prev,
.banner-section .banner-carousel .owl-nav button.owl-next {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    line-height: 1;
    font-size: 16px;
}
.banner-section .banner-carousel .owl-nav .owl-dots {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    counter-reset: slides-num;
    margin: 0;
    padding: 0 4px;
    font-family: 'Monda', sans-serif;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    pointer-events: none;
}
.banner-section .banner-carousel .owl-nav .owl-dots button span {
    display: none !important;
}
.banner-section .banner-carousel .owl-nav .owl-dots button {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 0 !important;
    line-height: 0 !important;
    counter-increment: slides-num;
    pointer-events: none;
}
.banner-section .banner-carousel .owl-nav .owl-dots button.active {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible;
    clip: auto;
    white-space: normal;
    order: 1;
    pointer-events: auto;
}
.banner-section .banner-carousel .owl-nav .owl-dots button.active::before {
    position: static !important;
    content: counter(slides-num, decimal-leading-zero);
    font-size: 14px !important;
    line-height: 1 !important;
    color: #fff;
}
.banner-section .banner-carousel .owl-nav .owl-dots button.active::after {
    display: none !important;
    content: none !important;
}
.banner-section .banner-carousel .owl-nav .owl-dots::before {
    order: 2;
    position: static !important;
    content: '/';
    width: auto !important;
    height: auto !important;
    background: none !important;
    opacity: 0.55;
    font-size: 13px;
    line-height: 1;
    margin: 0 5px;
    top: auto !important;
    right: auto !important;
}
.banner-section .banner-carousel .owl-nav .owl-dots::after {
    order: 3;
    position: static !important;
    top: auto !important;
    right: auto !important;
    content: counter(slides-num, decimal-leading-zero);
    font-size: 14px;
    line-height: 1;
    color: #fff;
    opacity: 0.85;
}
@media only screen and (max-width: 1200px) {
    .banner-section .banner-carousel .owl-nav {
        display: flex !important;
    }
}
@media only screen and (max-width: 991px) {
    .banner-section .banner-carousel .owl-nav .owl-dots {
        display: inline-flex !important;
    }
}
@media only screen and (max-width: 767px) {
    .banner-section .banner-carousel .owl-nav {
        bottom: 24px;
        max-width: calc(100% - 32px);
        gap: 10px;
    }
    .banner-section .banner-carousel .owl-nav button.owl-prev,
    .banner-section .banner-carousel .owl-nav button.owl-next {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }
    .banner-section .banner-carousel .owl-nav .owl-dots::before {
        margin: 0 4px;
        font-size: 12px;
    }
    .banner-section .banner-carousel .owl-nav .owl-dots button.active::before,
    .banner-section .banner-carousel .owl-nav .owl-dots::after {
        font-size: 12px;
    }
}
/* Slide identidade: centralizar texto + logo na mesma “janela” 16:9 */
.baw-machion-banner-16x9 .slide-item.baw-banner-slide--identity .auto-container {
    justify-content: center;
    text-align: center;
}
.baw-machion-banner-16x9 .content-box.baw-banner-content--identity {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(48rem, 92vw) !important;
    text-align: center;
    width: 100%;
}
.baw-machion-banner-16x9 .baw-banner-content--identity h2.baw-banner-title--identity {
    font-size: clamp(1.85rem, 5.2vw, 3.75rem) !important;
    line-height: 1.12 !important;
    margin-bottom: 1rem !important;
    color: #fff;
    text-transform: none;
    font-weight: 800;
    letter-spacing: 0.04em;
}
/* remove linha laranja do tema (.color.css: h2 span:before { border-bottom }) */
.baw-machion-banner-16x9 .content-box.baw-banner-content--identity h2 span:before {
    display: none !important;
    content: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}
.baw-machion-banner-16x9 .baw-banner-content--identity h2 .baw-banner-line--identity-glow {
    display: block;
    color: #fff;
    text-shadow:
        0 0 18px rgba(243, 129, 8, 0.6),
        0 0 40px rgba(231, 98, 41, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.85);
}
.baw-machion-banner-16x9 .baw-banner-content--identity h2 .baw-banner-line--identity-gradient {
    display: block;
    margin-top: 0.15em;
    background: linear-gradient(92deg, #ffffff 0%, #ffd4a8 28%, #f38108 55%, #e76229 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.baw-machion-banner-16x9 .baw-banner-content--identity .baw-banner-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.baw-machion-banner-16x9 .baw-banner-content--identity .baw-banner-logo-wrap img {
    max-width: min(260px, 55vw) !important;
    width: auto !important;
    height: auto !important;
    display: block;
}
/* Linha de progresso do autoplay do banner (0–100% até o próximo slide) */
.baw-machion-banner-16x9 .baw-banner-autoplay-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    z-index: 12;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12);
}
.baw-machion-banner-16x9 .baw-banner-autoplay-track__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c12e0a 0%, #e4492e 35%, #ff5c0a 100%);
    box-shadow:
        0 0 10px rgba(228, 73, 46, 0.9),
        0 0 20px rgba(255, 92, 10, 0.45),
        inset 0 1px 0 rgba(255, 200, 160, 0.35);
    will-change: width;
}

@media (min-width: 768px) {
    .service-section .service-block.baw-service-row-2 {
        margin-top: clamp(2.25rem, 5vw, 4rem);
    }
}

/* Working tabs: 8 itens em uma única linha */
.working-section .tab-btns {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}
.working-section .tab-btns li {
    flex: 0 0 12.5%;
    max-width: 12.5%;
    width: 12.5%;
}

/* News tabs: centralizar mais os filtros */
.news-section .tab-btn-box {
    display: flex;
    justify-content: center;
}
.news-section .tab-btn-box .tab-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0 auto;
}
.news-section .tab-btn-box .tab-btns li {
    float: none;
    margin-right: 0;
}
/* Chooseus: colunas com altura própria — a forma segue só a altura da .title-column */
.chooseus-section > .auto-container > .row.clearfix {
    align-items: flex-start;
}
.chooseus-section .row .right-column.baw-chooseus-right--flow {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
}
.chooseus-section .content-box .static-content {
    align-items: center;
}
.chooseus-section .content-box .static-content .count-text {
    flex: 0 0 56px;
    align-self: center;
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    aspect-ratio: 1;
}
.chooseus-section .content-box .overlay-content .icon-box {
    flex-shrink: 0;
    align-self: center;
}
@media only screen and (min-width: 1201px) {
    .chooseus-section .row .title-column .sec-title {
        padding: 114px 30px 50px 0 !important;
        margin-right: 0 !important;
    }
}
.chooseus-section {
    padding-bottom: 0;
}
.chooseus-section + section.industry-section {
    margin-top: 0;
}

/* Forma: só no bloco .sec-title (fundo alinhado ao título+texto+botão) */
.chooseus-section {
    position: relative;
}
.chooseus-section .title-column .sec-title {
    position: relative;
}
.chooseus-section .title-column .sec-title > *:not(.baw-chooseus-pattern) {
    position: relative;
    z-index: 1;
}
.chooseus-section .sec-title .baw-chooseus-pattern {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    width: min(100%, 520px);
    height: 100%;
    pointer-events: none;
    line-height: 0;
}
.chooseus-section .sec-title .baw-chooseus-pattern img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left bottom;
}

/* Clients: faixa ocupando largura total da viewport */
.clients-section.baw-clients-full .auto-container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.clients-section.baw-clients-full .clients-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.clients-section.baw-clients-full .clients-logo img {
    filter: grayscale(100%) saturate(0%) brightness(0.85) contrast(1.05);
    opacity: 0.82;
    transition:
        filter 0.45s ease,
        opacity 0.45s ease,
        transform 0.45s ease;
}
.clients-section.baw-clients-full .clients-logo:hover img,
.clients-section.baw-clients-full .clients-logo:focus-within img {
    filter: grayscale(0%) saturate(100%) brightness(1) contrast(1);
    opacity: 1;
    transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
    .clients-section.baw-clients-full .clients-logo img {
        transition: none;
    }
}

/* Chooseus: primeira faixa rola para a direita */
.chooseus-section .scroll-text .text-list.baw-loop-text.baw-loop-text-right {
    -moz-animation-direction: reverse;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

/* Case section: itens com mesma altura (Owl usa float: os cartões não esticavam) */
.case-section .case-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}
.case-section .case-carousel .owl-item {
    float: none;
    display: flex;
    align-items: stretch;
}
.case-section .case-block-one {
    display: flex;
    width: 100%;
    flex: 1 1 auto;
    min-height: 100%;
}
/* Mesma reserva de linhas para títulos (1 ou 2 linhas) = imagem e botão na mesma cota */
.case-section .case-block-one .inner-box .upper-content {
    flex-shrink: 0;
    min-height: 3.5rem; /* 2 × 28px line-height do h5 */
}
.case-section .case-block-one .inner-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}
/* Case section: imagens retangulares na vertical (mais altura) */
.case-section .case-block-one .inner-box .image-box {
    flex-shrink: 0;
}
.case-section .case-block-one .inner-box .image-box .image {
    aspect-ratio: 1;
}
.case-section .case-block-one .inner-box .image-box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Texto cresce; "Saiba mais" alinhado ao fundo, ao mesmo nível em todos os slides */
.case-section .case-block-one .inner-box .baw-case-lower {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.case-section .case-block-one .inner-box .baw-case-lower p {
    flex: 1 1 auto;
    margin-top: 0;
    margin-bottom: 0;
}
.case-section .case-block-one .inner-box .baw-case-lower .btn-box {
    margin-top: auto;
    padding-top: 16px;
    flex-shrink: 0;
}

/* Industry: metade do ecrã (50vw) em desktop; altura maior (700px) */
.industry-section .image-column figure.image {
    display: block;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 700px;
    overflow: hidden;
}
.industry-section .image-column figure.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (min-width: 992px) {
    .industry-section,
    .industry-section .auto-container,
    .industry-section .p-tabs-content,
    .industry-section .p-tab,
    .industry-section .content-inner,
    .industry-section .content-inner > .row.clearfix,
    .industry-section .row.clearfix,
    .industry-section .image-column {
        overflow-x: visible;
    }
    .industry-section .image-column figure.image {
        width: 50vw;
        max-width: 50vw;
        height: 700px;
        transform: translateX(clamp(-23px, -2.2vw, -12px));
    }
    /* Working tabs: faixa ocupa metade da tela (50vw) */
    .working-section .btn-column,
    .working-section .tab-btn-box {
        overflow: visible;
    }
    .working-section .tab-btn-box {
        width: 50vw;
        max-width: 50vw;
        margin-left: 0;
        transform: translateX(clamp(-50px, 1.2vw, -30px));
    }
    .working-section .tab-btns {
        width: 100%;
    }
}

/* Planos de benefícios: fundo da foto mais escuro, texto claro */
.video-section.baw-index-video .bg-layer::before {
    opacity: 0.5;
}
.video-section.baw-index-video .lower-box p {
    color: #fff;
    font-weight: 600;
}
