/**
 * Criativa Audiovisual - Página ESG
 *
 * Carregado apenas no modelo "template-esg.php" e na home (painel de impacto).
 * Namespace .esg-page / .esg-home-panel para não colidir com o style.css do tema.
 */

.esg-page,
.esg-home-panel {
    --esg-escuro: #0C1611;
    --esg-escuro-2: #14231A;
    --esg-lima: #b8f474;

    --esg-verde: #2e7d32;
    --esg-verde-forte: #1b5e20;
    --esg-verde-claro: #7cb342;

    --esg-azul: #173c7c;
    --esg-azul-forte: #12305f;

    --esg-laranja: #c2570f;
    --esg-laranja-forte: #a24409;

    --esg-titulo: #1a1a1a;
    --esg-texto: #3b4741;
    --esg-suave: #6b7a72;
    --esg-linha: #e3e6e0;

    --esg-raio: 20px;
    --esg-raio-lg: 28px;

    /* Urbane é a fonte que o tema usa nos números; Onest como reserva */
    --esg-fonte-num: "Urbane", "Onest", sans-serif;
}

.esg-page *,
.esg-home-panel * {
    box-sizing: border-box;
}

.esg-page .esg-wrap {
    width: 1475px;
    max-width: 100%;
    margin: 0 auto;
}

.esg-page p:last-child {
    margin-bottom: 0;
}

/* =====================================================================
 * 1. Banner
 * ===================================================================== */

.esg-page .esg-hero {
    position: relative;
    z-index: auto;
    padding: 124px 0 60px;
    background-color: var(--esg-escuro);
}

.esg-page .esg-hero-content {
    max-width: 980px;
    margin-bottom: 36px;
}

.esg-page .esg-hero-title {
    margin: 0 0 10px;
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
}

.esg-page .esg-hero-subtitle {
    margin: 0 0 18px;
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.esg-page .esg-hero-subtitle strong {
    font-weight: 700;
}

.esg-page .esg-hero-text p {
    margin: 0 0 8px;
    max-width: 720px;
    color: #a9bab0;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

/* Caixa verde "O que é ESG?" */

.esg-page .esg-define {
    position: relative;
    z-index: 10;
    max-width: 1340px;
    margin: 0 auto;
    padding: 26px 24px;
    border-radius: 24px;
    background-color: var(--esg-lima);
}

.esg-page .esg-define-title {
    margin: 0 0 10px;
    color: #0c1611;
    font-family: "Onest", sans-serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.esg-page .esg-define-text p {
    margin: 0;
    max-width: 100%;
    color: #0c1611;
    font-family: "Onest", "Open Sans", sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.55;
}

/* Transição para o conteúdo claro */

.esg-page .esg-body {
    position: relative;
    z-index: 2;
    margin-top: -70px;
    padding-top: 0;
    border-radius: 50% 50% 0 0 / 60px 60px 0 0;
    background-color: #fff;
}

/* =====================================================================
 * 2. Pilares (E / S / G)
 * ===================================================================== */

.esg-page .esg-pillars {
    padding: 36px 0 8px;
}

.esg-page .esg-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.esg-page .esg-pillar {
    padding: 24px;
    border-radius: var(--esg-raio);
}

.esg-page .esg-pillar-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.esg-page .esg-pillar-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-family: "Onest", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    flex: none;
}

.esg-page .esg-pillar-title {
    margin: 0;
    font-family: "Onest", sans-serif;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}

.esg-page .esg-pillar-text {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.65;
}

.esg-page .esg-pillar--e {
    background-color: var(--esg-escuro);
}

.esg-page .esg-pillar--e .esg-pillar-letter {
    background-color: var(--esg-verde-claro);
    color: #0c1611;
}

.esg-page .esg-pillar--e .esg-pillar-title {
    color: var(--esg-verde-claro);
}

.esg-page .esg-pillar--e .esg-pillar-text {
    color: #dfe8e1;
}

.esg-page .esg-pillar--s {
    background-color: #e4ebf7;
}

.esg-page .esg-pillar--s .esg-pillar-letter {
    background-color: var(--esg-azul);
    color: #fff;
}

.esg-page .esg-pillar--s .esg-pillar-title {
    color: var(--esg-azul);
}

.esg-page .esg-pillar--s .esg-pillar-text {
    color: #2c3f5e;
}

.esg-page .esg-pillar--g {
    background-color: #fbe7d8;
}

.esg-page .esg-pillar--g .esg-pillar-letter {
    background-color: var(--esg-laranja);
    color: #fff;
}

.esg-page .esg-pillar--g .esg-pillar-title {
    color: var(--esg-laranja);
}

.esg-page .esg-pillar--g .esg-pillar-text {
    color: #6b4a31;
}

/* =====================================================================
 * 3. Indicadores de impacto
 * ===================================================================== */

.esg-page .esg-indicators {
    padding: 24px 0;
}

.esg-page .esg-indicators-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--esg-linha);
    border-radius: var(--esg-raio-lg);
    background-color: #f5f6f3;
}

.esg-page .esg-indicators-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.esg-page .esg-indicators-title {
    margin: 0;
    max-width: 240px;
    color: var(--esg-titulo);
    font-family: "Onest", sans-serif;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
}

.esg-page .esg-indicators-leaf {
    display: block;
    color: #b6c9ab;
    flex: none;
}

.esg-page .esg-indicators-leaf svg {
    display: block;
    width: 74px;
    height: auto;
}

.esg-page .esg-indicators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.esg-page .esg-indicator {
    position: relative;
    padding: 18px 20px;
    border-top: 0;
    border-radius: 14px;
    background-color: #fff;
}

.esg-page .esg-indicator:nth-child(2n) {
    padding-left: 20px;
    border-left: 0;
}

.esg-page .esg-indicator-icon {
    position: absolute;
    top: 18px;
    right: 14px;
    color: var(--esg-verde-forte);
}

.esg-page .esg-indicator-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.esg-page .esg-indicator-value {
    display: block;
    margin-bottom: 2px;
    color: var(--esg-verde);
    font-family: "Onest", sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
}

.esg-page .esg-indicator-label {
    display: block;
    max-width: 150px;
    color: #2b332e;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

/* =====================================================================
 * 4. Blocos E / S / G
 * ===================================================================== */

.esg-page .esg-section {
    padding: 28px 0;
}

.esg-page .esg-section--e {
    --sec: var(--esg-verde);
    --sec-forte: var(--esg-verde-forte);
    --sec-tag: var(--esg-verde-claro);
    --sec-bg: #e8f5d9;
    --sec-borda: #d4e9bb;
    --sec-texto: #2f4a2c;
    --sec-titulo: var(--esg-titulo);
}

.esg-page .esg-section--s {
    --sec: var(--esg-azul);
    --sec-forte: var(--esg-azul-forte);
    --sec-tag: var(--esg-azul);
    --sec-bg: #e7edf8;
    --sec-borda: #d3ddf0;
    --sec-texto: #33445f;
    --sec-titulo: var(--esg-titulo);
}

.esg-page .esg-section--g {
    --sec: var(--esg-laranja);
    --sec-forte: var(--esg-laranja-forte);
    --sec-tag: var(--esg-laranja);
    --sec-bg: #fbe7d8;
    --sec-borda: #f3d5bd;
    --sec-texto: #6b4a31;
    --sec-titulo: var(--esg-laranja);
}

.esg-page .esg-section-banner {
    border-radius: var(--esg-raio);
    overflow: hidden;
    line-height: 0;
    background-color: #eef0ec;
}

.esg-page .esg-section-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.esg-page .esg-tag {
    display: inline-block;
    margin: 18px 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: var(--sec-tag);
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.esg-page .esg-section-title {
    margin: 0 0 10px;
    color: var(--sec-titulo);
    font-family: "Onest", sans-serif;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.esg-page .esg-section-text p {
    margin: 0 0 8px;
    max-width: 1080px;
    color: var(--esg-texto);
    font-family: "Open Sans", sans-serif;
    font-size: 13.5px;
    line-height: 1.7;
}

.esg-page .esg-section-text--final {
    margin-top: 20px;
}

.esg-page .esg-section-text--final p {
    margin-bottom: 12px;
}

/* Cards */

.esg-page .esg-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

.esg-page .esg-card {
    padding: 16px 18px;
    border: 1px solid var(--sec-borda);
    border-radius: 14px;
    background-color: var(--sec-bg);
}

.esg-page .esg-card-icon {
    display: inline-flex;
    color: var(--sec-forte);
    flex: none;
}

.esg-page .esg-card-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* Cards com valor em destaque (bloco E) */

.esg-page .esg-cards--valor .esg-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.esg-page .esg-card-value {
    display: block;
    margin-bottom: 1px;
    color: var(--sec-forte);
    font-family: var(--esg-fonte-num);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.esg-page .esg-cards--valor .esg-card-text {
    display: block;
    color: var(--sec-texto);
    font-family: "Open Sans", sans-serif;
    font-size: 13.5px;
    line-height: 1.45;
}

/* Cards com título (blocos S e G) */

.esg-page .esg-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.esg-page .esg-card-title {
    margin: 0;
    color: var(--sec);
    font-family: "Onest", sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.esg-page .esg-cards--titulo .esg-card-text {
    margin: 0;
    color: var(--sec-texto);
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

/* =====================================================================
 * 5. Fechamento
 * ===================================================================== */

.esg-page .esg-closing {
    padding: 28px 0 56px;
}

.esg-page .esg-closing-box {
    position: relative;
    overflow: hidden;
    padding: 40px 24px;
    border-radius: var(--esg-raio-lg);
    background-color: #eef4e9;
    text-align: center;
}

.esg-page .esg-closing-leaf {
    display: none;
    position: absolute;
    bottom: 10px;
    color: #c2d6b4;
    pointer-events: none;
}

.esg-page .esg-closing-leaf svg {
    display: block;
    width: 150px;
    height: auto;
}

.esg-page .esg-closing-leaf--left {
    left: 24px;
}

.esg-page .esg-closing-leaf--right {
    right: 24px;
    transform: scaleX(1);
}

.esg-page .esg-closing-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 14px;
    color: #1e5b2b;
    font-family: "Onest", sans-serif;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
}

.esg-page .esg-closing-title::before,
.esg-page .esg-closing-title::after {
    content: "";
    width: 48px;
    height: 1px;
    background-color: #9dbb8c;
    flex: none;
}

.esg-page .esg-closing-text p {
    margin: 0 auto 8px;
    max-width: 820px;
    color: #33473a;
    font-family: "Open Sans", sans-serif;
    font-size: 13.5px;
    line-height: 1.7;
    font-weight: 500;
}

.esg-page .esg-closing-highlight {
    margin: 20px 0 0;
    color: #1e5b2b;
    font-family: "Onest", sans-serif;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}

/* =====================================================================
 * 6. Painel de impacto na home
 *
 * Fica dentro de .depoimentos-section, que já estiliza h2/p/a.
 * Por isso tudo aqui é escopado em .esg-home-panel.
 * ===================================================================== */

.esg-home-panel {
    margin: 32px 0 8px;
    text-align: left;
}

.esg-home-panel .esg-home-box {
    position: relative;
    overflow: hidden;
    padding: 28px 22px;
    border: 1px solid #3d7a2f;
    border-radius: var(--esg-raio-lg);
    background-color: #000;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
}

.esg-home-panel .esg-home-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 0%, #000 40%, rgba(0, 0, 0, .5) 56%, rgba(0, 0, 0, 0) 68%);
}

.esg-home-panel .esg-home-inner {
    position: relative;
    z-index: 1;
}

.esg-home-panel .esg-home-head {
    position: relative;
    margin-bottom: 20px;
}

.esg-home-panel .esg-home-title {
    display: block;
    margin: 0 0 10px;
    color: #fff;
    text-align: left;
    font-family: "Onest", sans-serif;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
}

.esg-home-panel .esg-home-title-1 {
    display: block;
    color: #7cb342;
}

.esg-home-panel .esg-home-title-2 {
    display: block;
    color: #fff;
}

.esg-home-panel .esg-home-title-2 span {
    color: #7cb342;
}

.esg-home-panel .esg-home-text p {
    margin: 0 0 6px;
    max-width: 520px;
    color: #cdd8cf;
    text-align: left;
    font-family: "Open Sans", sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    font-weight: 400;
}

.esg-home-panel .esg-home-leaf {
    display: none;
    position: absolute;
    top: 0;
    left: 52%;
    color: #4c7f38;
}

.esg-home-panel .esg-home-leaf svg {
    display: block;
    width: 96px;
    height: auto;
}

.esg-home-panel .esg-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.esg-home-panel .esg-home-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #f5f6f3;
}

.esg-home-panel .esg-home-item-icon {
    display: inline-flex;
    color: var(--esg-verde-forte);
    flex: none;
}

.esg-home-panel .esg-home-item-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.esg-home-panel .esg-home-item-value {
    display: block;
    color: var(--esg-verde);
    font-family: var(--esg-fonte-num);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.esg-home-panel .esg-home-item-label {
    display: block;
    color: #2b332e;
    font-family: "Open Sans", sans-serif;
    font-size: 13.5px;
    line-height: 1.35;
}

.esg-home-panel .esg-home-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.esg-home-panel .esg-home-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93a596;
    font-family: "Open Sans", sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
}

.esg-home-panel .esg-home-note-leaf {
    display: inline-flex;
    color: #4c7f38;
    flex: none;
}

.esg-home-panel .esg-home-note-leaf svg {
    display: block;
    width: 24px;
    height: auto;
}

.esg-home-panel .esg-home-cta,
.esg-home-panel .esg-home-cta:link,
.esg-home-panel .esg-home-cta:visited {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    border: 1px solid #4c8f38;
    border-radius: 999px;
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.esg-home-panel .esg-home-cta svg {
    width: 17px;
    height: 17px;
    flex: none;
    transition: transform .2s ease;
}

.esg-home-panel .esg-home-cta:hover,
.esg-home-panel .esg-home-cta:focus {
    background-color: #4c8f38;
    border-color: #4c8f38;
    color: #fff;
}

.esg-home-panel .esg-home-cta:hover svg {
    transform: translateX(3px);
}

/* =====================================================================
 * 7. Responsivo
 * ===================================================================== */

@media (min-width: 576px) {

    .esg-page .esg-cards--valor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {

    .esg-page .esg-hero {
        padding: 140px 0 70px;
    }

    .esg-page .esg-hero-content {
        margin-bottom: 44px;
    }

    .esg-page .esg-hero-title {
        font-size: 42px;
    }

    .esg-page .esg-hero-subtitle {
        font-size: 20px;
    }

    .esg-page .esg-hero-text p {
        font-size: 15px;
    }

    .esg-page .esg-define {
        padding: 30px 36px;
        margin: 0 auto;
    }

    .esg-page .esg-define-title {
        font-size: 30px;
    }

    .esg-page .esg-define-text p {
        font-size: 15px;
    }

    .esg-page .esg-body {
        margin-top: -95px;
        border-radius: 50% 50% 0 0 / 90px 90px 0 0;
    }

    .esg-page .esg-pillars {
        padding: 44px 0 8px;
    }

    .esg-page .esg-pillars-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .esg-page .esg-indicators-box {
        padding: 32px;
    }

    .esg-page .esg-indicators-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esg-page .esg-indicator {
        padding: 18px 20px 18px 20px;
        border-left: 0;
        border-top: 0;
    }

    .esg-page .esg-indicator:nth-child(2n) {
        padding-left: 20px;
    }

    .esg-page .esg-indicator:nth-child(2n + 1) {
        padding-left: 20px;
        border-left: 0;
    }

    .esg-page .esg-indicator:not(:nth-child(-n + 2)) {
        border-top: 0;
    }

    .esg-page .esg-indicator-value {
        font-size: 23px;
    }

    .esg-page .esg-section-title {
        font-size: 28px;
    }

    .esg-page .esg-section-text p {
        font-size: 14px;
    }

    .esg-page .esg-cards--titulo {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .esg-page .esg-closing-box {
        padding: 48px 40px;
    }

    .esg-page .esg-closing-leaf {
        display: block;
    }

    .esg-page .esg-closing-title {
        font-size: 32px;
    }

    .esg-page .esg-closing-text p {
        font-size: 14px;
    }

    .esg-page .esg-closing-highlight {
        font-size: 21px;
    }

    .esg-home-panel .esg-home-box {
        padding: 34px 30px;
    }

    .esg-home-panel .esg-home-title {
        font-size: 32px;
    }

    .esg-home-panel .esg-home-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {

    .esg-page .esg-hero {
        padding: 160px 0 90px;
    }

    .esg-page .esg-hero-content {
        margin-bottom: 50px;
    }

    .esg-page .esg-hero-title {
        font-size: 48px;
    }

    .esg-page .esg-hero-subtitle {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .esg-page .esg-define {
        max-width: 1340px;
        margin: 0 auto;
        padding: 32px 42px;
    }

    .esg-page .esg-define-title {
        font-size: 32px;
    }

    .esg-page .esg-body {
        margin-top: -125px;
        border-radius: 50% 50% 0 0 / 130px 130px 0 0;
    }

    .esg-page .esg-pillars {
        padding: 50px 0 8px;
    }

    .esg-page .esg-pillars-grid {
        gap: 32px;
        max-width: 1240px;
        margin: 0 auto;
    }

    .esg-page .esg-pillar {
        padding: 30px 28px;
    }

    .esg-page .esg-indicators {
        padding: 32px 0;
    }

    .esg-page .esg-indicators-box {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 28px;
        padding: 36px 40px;
    }

    .esg-page .esg-indicators-head {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }

    .esg-page .esg-indicators-title {
        font-size: 30px;
    }

    .esg-page .esg-indicators-leaf {
        margin-top: 24px;
    }

    .esg-page .esg-section {
        padding: 32px 0;
    }

    .esg-page .esg-section-title {
        font-size: 30px;
    }

    .esg-page .esg-cards--valor {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .esg-page .esg-card {
        padding: 18px 20px;
    }

    .esg-page .esg-closing {
        padding: 40px 0 72px;
    }

    .esg-page .esg-closing-box {
        padding: 56px 180px;
    }

    .esg-home-panel {
        margin: 40px 0 8px;
    }

    .esg-home-panel .esg-home-box {
        padding: 40px;
        background-size: auto 100%;
    }

    .esg-home-panel .esg-home-leaf {
        display: block;
    }

    .esg-home-panel .esg-home-item {
        padding: 16px 18px;
    }

    .esg-home-panel .esg-home-item-value {
        font-size: 23px;
    }

    /* deixa a faixa da direita livre para a imagem */
    .esg-home-panel .esg-home-grid,
    .esg-home-panel .esg-home-foot {
        max-width: 74%;
    }

    .esg-home-panel .esg-home-text p {
        max-width: 46%;
    }
}

@media (min-width: 1200px) {

    .esg-page .esg-hero-title {
        font-size: 54px;
    }

    .esg-page .esg-hero-subtitle {
        font-size: 26px;
    }

    .esg-page .esg-define-title {
        font-size: 36px;
    }

    .esg-page .esg-indicators-title {
        font-size: 34px;
    }

    /* 4 colunas só em tela larga; abaixo disso ficam 2 */
    .esg-page .esg-indicators-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .esg-page .esg-indicator-value {
        font-size: 26px;
    }

    .esg-page .esg-section-title {
        font-size: 32px;
    }

    .esg-home-panel .esg-home-title {
        font-size: 36px;
    }
}
