/* ======================================================
   20 — ALINHAMENTO HORIZONTAL DA HOME
   Mantém a estrutura original e aplica uma única régua
   de largura às seções de conteúdo, sem alterar grids,
   alturas, tipografia ou distribuição dos cards.
====================================================== */

:root {
    --pba-home-content-max: 1920px;
    --pba-home-content-gutter: 50px;
}

/*
 * Todas as seções da home passam a usar exatamente o mesmo
 * recuo lateral. O fundo continua ocupando 100% da tela.
 */
.about-section,
.services-section,
.differentials-section,
.portfolio-section,
.segments-section,
.process-section,
.cta-section,
.contact-section {
    padding-left: var(--pba-home-content-gutter) !important;
    padding-right: var(--pba-home-content-gutter) !important;
    box-sizing: border-box !important;
}

/*
 * Uma única largura útil para os blocos internos.
 * Não modifica os layouts internos de cada seção.
 */
.about-section > .container,
.services-section > .container,
.differentials-section > .container,
.portfolio-section > .container,
.segments-section > .container,
.process-section > .container,
.cta-section > .container,
.contact-section > .container {
    width: 100% !important;
    max-width: var(--pba-home-content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Rodapé na mesma régua visual das seções. */
.footer-container,
.footer-bottom-inner {
    width: min(
        var(--pba-home-content-max),
        calc(100% - (var(--pba-home-content-gutter) * 2))
    ) !important;
    max-width: var(--pba-home-content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Notebook e tablet horizontal. */
@media (max-width: 1180px) {
    :root {
        --pba-home-content-gutter: 32px;
    }
}

/* Tablet vertical. */
@media (max-width: 980px) {
    :root {
        --pba-home-content-gutter: 28px;
    }
}

/* Mobile. */
@media (max-width: 768px) {
    :root {
        --pba-home-content-gutter: 22px;
    }
}

/* Mobile pequeno. */
@media (max-width: 520px) {
    :root {
        --pba-home-content-gutter: 16px;
    }
}

/* Mobile muito estreito. */
@media (max-width: 380px) {
    :root {
        --pba-home-content-gutter: 14px;
    }
}


/* ------------------------------------------------------
   Banner principal na mesma régua horizontal das seções.
   Mantém o banner em full width, mas alinha o conteúdo
   interno com a mesma largura útil da home.
------------------------------------------------------ */
.hero-section.pba-hero-slider .pba-hero-shell,
.hero-section.pba-hero-slider .pba-hero-track {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.hero-section.pba-hero-slider .pba-hero-slide,
.hero-section.pba-hero-slider .pba-hero-slide.is-active {
    padding-left: max(
        var(--pba-home-content-gutter),
        calc((100vw - var(--pba-home-content-max)) / 2)
    ) !important;
    padding-right: max(
        var(--pba-home-content-gutter),
        calc((100vw - var(--pba-home-content-max)) / 2)
    ) !important;
    box-sizing: border-box !important;
}

/* ------------------------------------------------------
   SOBRE — A IMAGEM SEGUE EXATAMENTE A ALTURA DO TEXTO
   Desktop/notebook: a imagem não participa do cálculo da
   altura da linha do grid. A coluna de texto define a altura
   e a foto preenche essa área com corte responsivo.
------------------------------------------------------ */
@media (min-width: 901px) {
    .about-section .about-container {
        align-items: stretch !important;
    }

    .about-section .about-image {
        position: relative !important;
        align-self: stretch !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        overflow: hidden !important;
    }

    .about-section .about-image img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }
}

/* ------------------------------------------------------
   SERVIÇOS EM DESTAQUE — HOME
   A página inicial apresenta somente quatro serviços.
   Os demais ficam acessíveis pelo CTA ao final da seção.
------------------------------------------------------ */
@media (min-width: 1241px) {
    .services-section .services-grid--featured {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-items: stretch !important;
    }
}

.services-section .services-grid--featured .service-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.services-section .services-grid--featured .pba-card-more {
    margin-top: auto !important;
}

.pba-services-more {
    width: 100%;
    margin-top: 34px;
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(244, 128, 52, 0.24), transparent 34%),
        linear-gradient(135deg, #1d1d1d 0%, #2b2b2b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
}

.pba-services-more-copy {
    max-width: 980px;
}

.pba-services-more-copy > span {
    display: block;
    margin-bottom: 8px;
    color: #f48034;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pba-services-more-copy > strong {
    display: block;
    color: #ffffff;
    font-size: clamp(23px, 2.1vw, 34px);
    line-height: 1.12;
}

.pba-services-more-copy > p {
    max-width: 880px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
    text-align: left !important;
}

.pba-services-more-button {
    min-height: 54px;
    padding: 0 22px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: #f48034;
    border: 1px solid #f48034;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(244, 128, 52, 0.24);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.pba-services-more-button:hover {
    color: #ffffff;
    background: #e96f22;
    border-color: #e96f22;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(244, 128, 52, 0.30);
}

.pba-services-more-button:focus-visible {
    outline: 3px solid rgba(244, 128, 52, 0.30);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .pba-services-more {
        padding: 28px;
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
    }

    .pba-services-more-button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .pba-services-more {
        margin-top: 24px;
        padding: 24px 21px;
        border-radius: 23px;
    }

    .pba-services-more-copy > strong {
        font-size: 24px;
    }

    .pba-services-more-copy > p {
        font-size: 14px;
    }
}

/* ======================================================
   2026-08-15 — CONSOLIDAÇÃO RESPONSIVA DA HOME
   Camada final para tablet/mobile. Substitui conflitos
   acumulados entre os módulos responsivos antigos sem
   alterar a composição desktop acima de 900px.
====================================================== */

@media (max-width: 900px) {
    :root {
        --pba-home-content-gutter: 22px;
        --pba-mobile-section-space: 62px;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    body {
        font-size: 16px;
    }

    main,
    main > section,
    .container,
    .about-container,
    .services-grid,
    .differentials-container,
    .portfolio-grid,
    .segments-grid,
    .process-tabs,
    .process-tabs-content,
    .contact-container,
    .footer-container,
    .footer-bottom-inner {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .about-section,
    .services-section,
    .differentials-section,
    .portfolio-section,
    .segments-section,
    .process-section,
    .contact-section {
        padding-top: var(--pba-mobile-section-space) !important;
        padding-bottom: var(--pba-mobile-section-space) !important;
    }

    .section-heading,
    .segments-section .section-heading,
    .process-section-heading {
        width: 100% !important;
        max-width: 720px !important;
        margin: 0 0 34px !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .section-heading .section-tag,
    .segments-section .section-heading .section-tag,
    .process-section-heading .section-tag {
        margin-bottom: 12px !important;
    }

    .section-heading h2,
    .segments-section .section-heading h2,
    .process-section-heading h2,
    .about-content h2,
    .differentials-text h2,
    .cta-container h2,
    .contact-content h2 {
        max-width: 100% !important;
        margin-bottom: 14px !important;
        font-size: clamp(28px, 6.6vw, 38px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.035em !important;
        text-align: left !important;
        text-wrap: balance;
        overflow-wrap: normal !important;
    }

    .section-heading p,
    .segments-section .section-heading p,
    .process-section-heading p,
    .about-section p,
    .differentials-section p,
    .portfolio-info p,
    .segment-content p,
    .process-section p,
    .cta-container p,
    .contact-section p,
    .site-footer p {
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 1.68 !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        text-align: left !important;
        text-align-last: auto !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        overflow-wrap: break-word !important;
    }

    .pba-section-action {
        margin-top: 34px !important;
        justify-content: flex-start !important;
    }

    /* HEADER — uma única régua lateral para o mobile. */
    .pba-header-container,
    .pba-mobile-panel nav {
        width: min(calc(100% - 44px), var(--pba-container)) !important;
    }

    .pba-header-container {
        min-height: 72px !important;
        height: 72px !important;
        gap: 10px !important;
    }

    .pba-logo-picture,
    .pba-logo img.pba-logo-image {
        height: 48px !important;
    }

    .pba-header-actions {
        gap: 7px !important;
    }

    .pba-menu-toggle {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
    }

    .pba-mobile-panel {
        max-height: calc(100dvh - 72px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    /* HERO — reduz altura artificial e remove ruído visual no retrato. */
    .hero-section.pba-hero-slider {
        width: 100% !important;
        max-width: 100% !important;
        margin: 72px 0 0 !important;
    }

    .hero-section.pba-hero-slider .pba-hero-slide,
    .hero-section.pba-hero-slider .pba-hero-slide.is-active {
        padding-left: var(--pba-home-content-gutter) !important;
        padding-right: var(--pba-home-content-gutter) !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content {
        width: 100% !important;
        max-width: 650px !important;
        margin: 0 !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content .section-tag {
        margin-bottom: 10px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content h1 {
        max-width: 100% !important;
        margin: 0 0 13px !important;
        font-size: clamp(31px, 7.2vw, 44px) !important;
        line-height: 1.04 !important;
        letter-spacing: -0.035em !important;
        text-wrap: balance;
    }

    .hero-section.pba-hero-slider .pba-hero-content p {
        max-width: 620px !important;
        margin: 0 0 16px !important;
        font-size: clamp(14px, 2.4vw, 16px) !important;
        line-height: 1.55 !important;
    }

    .hero-section.pba-hero-slider .pba-hero-pills {
        gap: 7px !important;
        margin: 0 0 18px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-pills span {
        min-height: 30px !important;
        padding: 6px 11px !important;
        font-size: 10px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content .hero-actions {
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content .btn-primary,
    .hero-section.pba-hero-slider .pba-hero-content .btn-secondary {
        min-height: 50px !important;
        padding: 13px 20px !important;
        font-size: 13px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content .pba-more-link {
        margin-top: 14px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .hero-section.pba-hero-slider .pba-hero-visual,
    .hero-section.pba-hero-slider .pba-floating-ticket {
        display: none !important;
    }

    .hero-section.pba-hero-slider .pba-hero-slide.pba-slide-has-bg-image::after {
        background:
            linear-gradient(90deg, rgba(3, 9, 35, .92) 0%, rgba(3, 9, 35, .78) 55%, rgba(3, 9, 35, .45) 100%) !important;
    }

    .pba-slider-controls {
        bottom: 18px !important;
    }

    /* SOBRE — elimina float e texto contornando foto. */
    .about-section .about-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
        align-items: start !important;
    }

    .about-section .about-image {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 26px !important;
        overflow: hidden !important;
    }

    .about-section .about-image img {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .about-section .about-content {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
    }

    .about-section .about-intro,
    .about-section .about-copy,
    .about-section .about-highlights,
    .about-section .pba-more-link {
        clear: none !important;
        width: 100% !important;
    }

    .about-section .about-intro > .about-lead,
    .about-section .about-copy {
        margin-bottom: 16px !important;
    }

    .about-section .about-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-top: 10px !important;
        padding-top: 0 !important;
    }

    .about-section .about-highlights > div {
        min-height: 0 !important;
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .about-section .about-content > .pba-more-link {
        width: fit-content !important;
        margin-top: 22px !important;
    }

    /* SERVIÇOS — títulos e cards na mesma régua. */
    .services-mobile-heading {
        width: 100% !important;
        max-width: 720px !important;
        margin: 0 0 30px !important;
        text-align: left !important;
    }

    .services-mobile-heading h2,
    .services-mobile-heading p {
        text-align: left !important;
    }

    .services-grid,
    .services-grid--featured {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    .services-section .service-card:not(.service-card--grafica-online) {
        width: 100% !important;
        min-height: 0 !important;
        max-width: none !important;
        border-radius: 24px !important;
    }

    .pba-services-more {
        margin-top: 22px !important;
        padding: 25px !important;
        gap: 18px !important;
        border-radius: 24px !important;
    }

    .pba-services-more-copy > strong {
        font-size: clamp(22px, 5.5vw, 28px) !important;
    }

    .pba-services-more-button {
        width: 100% !important;
        min-height: 52px !important;
        white-space: normal !important;
        text-align: center !important;
    }

    /* DIFERENCIAIS */
    .differentials-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
        height: auto !important;
    }

    .differentials-image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 26px !important;
        overflow: hidden !important;
    }

    .differentials-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .differentials-text {
        min-width: 0 !important;
    }

    .differentials-actions {
        margin-top: 22px !important;
    }

    .differentials-list {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        margin-top: 30px !important;
    }

    .differential-item {
        min-width: 0 !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 15px !important;
        padding: 22px !important;
        border-radius: 22px !important;
    }

    .differential-item > span {
        width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
    }

    .differential-item h3 {
        font-size: 19px !important;
        line-height: 1.2 !important;
    }

    /* PORTFÓLIO */
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .portfolio-card {
        min-width: 0 !important;
        border-radius: 24px !important;
        overflow: hidden !important;
    }

    .portfolio-card > img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        object-fit: cover !important;
    }

    .portfolio-info {
        padding: 23px !important;
    }

    /* SEGMENTOS */
    .segments-tabs {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 26px !important;
    }

    .segments-tab {
        min-width: 0 !important;
        min-height: 74px !important;
        padding: 12px 10px !important;
        border-radius: 16px !important;
    }

    .segments-tab strong {
        font-size: 13px !important;
    }

    .segments-tab > span {
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    .segments-grid,
    .segments-grid-profile {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    .segment-item {
        min-width: 0 !important;
        border-radius: 24px !important;
        overflow: hidden !important;
    }

    .segment-image {
        aspect-ratio: 16 / 9 !important;
    }

    .segment-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .segment-content {
        padding: 22px !important;
    }

    /* PROCESSO */
    .process-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 24px !important;
    }

    .process-tab {
        min-height: 54px !important;
        padding: 10px 12px !important;
        border-radius: 15px !important;
        font-size: 12px !important;
    }

    .process-cover {
        min-height: 0 !important;
        border-radius: 24px !important;
    }

    .process-cover::before,
    .process-cover::after {
        opacity: .5 !important;
    }

    .process-cover-content {
        width: 100% !important;
        min-height: 0 !important;
        padding: 32px 26px !important;
    }

    .process-cover-content h3,
    .process-panel-heading h3 {
        font-size: clamp(27px, 6.5vw, 36px) !important;
        line-height: 1.08 !important;
        text-wrap: balance;
    }

    .process-cover-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .process-grid,
    .process-grid-six {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .process-step {
        min-width: 0 !important;
        padding: 22px !important;
        border-radius: 21px !important;
    }

    .process-detail-callout {
        display: flex !important;
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 18px !important;
        padding: 24px !important;
        border-radius: 22px !important;
    }

    .process-detail-link {
        width: 100% !important;
        justify-content: space-between !important;
        white-space: normal !important;
    }

    /* CTA */
    .cta-section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .cta-container {
        display: flex !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .cta-container > div {
        width: 100% !important;
    }

    .cta-container .btn-primary {
        width: 100% !important;
        min-height: 52px !important;
    }

    /* RODAPÉ */
    .footer-container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 30px !important;
        padding-top: 46px !important;
        padding-bottom: 40px !important;
    }

    .footer-brand,
    .footer-links,
    .footer-account,
    .footer-contact {
        grid-column: auto !important;
        min-width: 0 !important;
    }

    .footer-brand p,
    .footer-account-note {
        max-width: 520px !important;
    }

    .footer-links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 18px !important;
    }

    .footer-contact ul {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .footer-bottom-inner {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 5px !important;
        text-align: left !important;
    }

    .whatsapp-fixed {
        width: 56px !important;
        height: 56px !important;
        right: 14px !important;
        bottom: 14px !important;
    }
}

@media (max-width: 900px) and (orientation: portrait) {
    .hero-section.pba-hero-slider {
        height: clamp(700px, calc(100svh - 72px), 770px) !important;
        min-height: clamp(700px, calc(100svh - 72px), 770px) !important;
        max-height: 770px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-slide,
    .hero-section.pba-hero-slider .pba-hero-slide.is-active {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding-top: 30px !important;
        padding-bottom: 72px !important;
    }
}

@media (max-width: 640px) {
    :root {
        --pba-home-content-gutter: 18px;
        --pba-mobile-section-space: 54px;
    }

    .pba-header-container,
    .pba-mobile-panel nav {
        width: calc(100% - 36px) !important;
    }

    .pba-header-container {
        min-height: 68px !important;
        height: 68px !important;
    }

    .pba-logo-picture,
    .pba-logo img.pba-logo-image {
        height: 46px !important;
    }

    .hero-section.pba-hero-slider {
        margin-top: 68px !important;
    }

    .section-tag,
    .services-mobile-tag {
        font-size: 10px !important;
        letter-spacing: 1.1px !important;
    }

    .section-heading,
    .segments-section .section-heading,
    .process-section-heading,
    .services-mobile-heading {
        margin-bottom: 28px !important;
    }

    .section-heading h2,
    .segments-section .section-heading h2,
    .process-section-heading h2,
    .services-mobile-heading h2,
    .about-content h2,
    .differentials-text h2,
    .cta-container h2,
    .contact-content h2 {
        font-size: clamp(27px, 8vw, 34px) !important;
    }

    .about-section .about-image,
    .differentials-image {
        aspect-ratio: 4 / 3 !important;
        border-radius: 22px !important;
    }

    .about-section .about-highlights {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .about-section .about-highlights > div {
        padding: 18px !important;
    }

    .services-section .service-card:not(.service-card--grafica-online) {
        padding: 22px 20px !important;
        grid-template-columns: 60px minmax(0, 1fr) !important;
        column-gap: 14px !important;
        border-radius: 22px !important;
    }

    .services-section .service-card:not(.service-card--grafica-online) .service-icon {
        width: 60px !important;
        height: 60px !important;
        border-radius: 18px !important;
    }

    .services-section .service-card:not(.service-card--grafica-online) .service-icon img {
        width: 36px !important;
        height: 36px !important;
    }

    .services-section .service-card:not(.service-card--grafica-online) h3 {
        font-size: clamp(20px, 5.6vw, 24px) !important;
    }

    .services-section .service-card:not(.service-card--grafica-online) p {
        margin-top: 18px !important;
        font-size: 14.5px !important;
    }

    .services-section .service-card:not(.service-card--grafica-online) .pba-card-more {
        width: 100% !important;
        margin-top: 20px !important;
        justify-content: space-between !important;
    }

    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .segments-tabs {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .segments-tab {
        min-height: 62px !important;
        padding: 11px 14px !important;
        text-align: left !important;
    }

    .segments-tab strong {
        font-size: 13px !important;
    }

    .segments-tab > span {
        font-size: 10px !important;
    }

    .process-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .process-cover-content {
        padding: 27px 21px !important;
    }

    .process-cover-items {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .process-detail-callout,
    .pba-services-more {
        padding: 22px 20px !important;
    }

    .footer-links ul {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }

    .footer-bottom-inner {
        width: calc(100% - 36px) !important;
    }
}

@media (max-width: 640px) and (orientation: portrait) {
    .hero-section.pba-hero-slider {
        height: clamp(700px, calc(100svh - 68px), 750px) !important;
        min-height: clamp(700px, calc(100svh - 68px), 750px) !important;
        max-height: 750px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-slide,
    .hero-section.pba-hero-slider .pba-hero-slide.is-active {
        padding-top: 24px !important;
        padding-bottom: 66px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content h1 {
        font-size: clamp(29px, 8.1vw, 36px) !important;
        line-height: 1.04 !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content .btn-primary,
    .hero-section.pba-hero-slider .pba-hero-content .btn-secondary {
        width: 100% !important;
    }
}

@media (max-width: 380px) {
    :root {
        --pba-home-content-gutter: 15px;
        --pba-mobile-section-space: 48px;
    }

    .pba-header-container,
    .pba-mobile-panel nav {
        width: calc(100% - 30px) !important;
    }

    .section-heading h2,
    .segments-section .section-heading h2,
    .process-section-heading h2,
    .services-mobile-heading h2,
    .about-content h2,
    .differentials-text h2,
    .cta-container h2,
    .contact-content h2 {
        font-size: 26px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content h1 {
        font-size: 28px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-pills span {
        padding-inline: 9px !important;
        font-size: 9.5px !important;
    }

    .process-tabs {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .differential-item {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        padding: 19px !important;
    }

    .differential-item > span {
        width: 42px !important;
        height: 42px !important;
    }

    .footer-bottom-inner {
        width: calc(100% - 30px) !important;
    }
}

/* O texto do Sobre não volta ao justificado por causa da camada 18. */
@media (max-width: 900px) {
    .about-section .about-content p,
    .about-section .about-intro p,
    .about-section p.about-copy {
        text-align: left !important;
        text-align-last: auto !important;
        word-spacing: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
    }
}

/* ======================================================
   2026-08-15 — DESKTOP COM VIEWPORT BAIXO
   Impede que notebook/desktop com escala do Windows ou
   janela baixa assuma a composição de "celular deitado".
====================================================== */
@media (min-width: 1241px) and (max-height: 760px) and (hover: hover) and (pointer: fine) {
    .pba-header-container {
        min-height: 88px !important;
        height: 88px !important;
    }

    .pba-nav {
        display: block !important;
    }

    .pba-menu-toggle {
        display: none !important;
    }

    .pba-budget-btn {
        display: inline-flex !important;
    }

    .hero-section.pba-hero-slider {
        height: clamp(520px, calc(100svh - 88px), 620px) !important;
        min-height: clamp(520px, calc(100svh - 88px), 620px) !important;
        max-height: 620px !important;
        margin-top: 88px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-slide,
    .hero-section.pba-hero-slider .pba-hero-slide.is-active {
        display: grid !important;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
        align-items: center !important;
        justify-content: initial !important;
        gap: clamp(24px, 3.5vw, 64px) !important;
        padding-top: 30px !important;
        padding-bottom: 72px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content {
        width: 100% !important;
        max-width: 650px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
        justify-self: start !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content h1 {
        margin-bottom: 12px !important;
        font-size: clamp(38px, 3.4vw, 52px) !important;
        line-height: 1.03 !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content p {
        margin-bottom: 16px !important;
        font-size: clamp(14px, 1.05vw, 17px) !important;
        line-height: 1.48 !important;
    }

    .hero-section.pba-hero-slider .pba-hero-pills {
        margin-bottom: 16px !important;
    }

    .hero-section.pba-hero-slider .pba-hero-content .pba-more-link {
        margin-top: 11px !important;
    }

    .hero-section.pba-hero-slider .pba-floating-ticket,
    .hero-section.pba-hero-slider .ticket-one,
    .hero-section.pba-hero-slider .ticket-two,
    .hero-section.pba-hero-slider .ticket-three {
        display: flex !important;
    }

    .pba-slider-controls {
        bottom: 18px !important;
    }
}
