/* ============================================================
   SUSTENTABILIDADE: PROGRAMA SETORIAL DE SUSTENTABILIDADE
   ============================================================ */

/* ---- HERO ---- */
#pss-hero-section {
    position: relative;
    padding: 40px 0 48px;
}

.pss-paint-left {
    position: absolute;
    left: -74px;
    top: 60px;
    width: 250px;
    pointer-events: none;
    z-index: 0;
    transform: rotate(180deg) scaleY(-1);
}
.pss-paint-left img { width: 100%; display: block; }

.pss-hero {
    position: relative;
    z-index: 1;
    background: #66589e;
    border-radius: 24px;
    padding: 64px;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    overflow: hidden;
}

.pss-hero-text {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pss-hero-kicker {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #b2c3dd;
}

.pss-hero-titulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

.pss-hero-texto,
.pss-hero-texto p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
}
.pss-hero-texto p { margin: 0 0 1em; }
.pss-hero-texto p:last-child { margin-bottom: 0; }

.pss-hero-img-col {
    flex: 0 0 450px;
    max-width: 450px;
}

.pss-hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* ---- CITAÇÃO + BOTÕES ---- */
#pss-citacao-section {
    padding: 40px 0;
}

.pss-citacao {
    background: #fff;
    border-radius: 16px;
    padding: 36px 0;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.pss-citacao-bar {
    flex-shrink: 0;
    width: 4px;
    align-self: stretch;
    background: #66589e;
    border-radius: 2px;
}

.pss-citacao-texto,
.pss-citacao-texto p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #58536f;
    margin: 0;
}

.pss-btns-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.pss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 999px;
    background: #66589e;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.26px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.pss-btn:hover {
    background: #58536f;
    color: #fff;
}

/* ---- TÍTULO DE SEÇÃO ---- */
.pss-section-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 12px;
}

.pss-section-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #5a738d;
    flex-shrink: 0;
    position: relative;
    top: -3px;
}

.pss-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #5a738d;
    letter-spacing: -0.32px;
    margin: 0;
}

/* ---- O SISTEMA EM NÚMEROS ---- */
#pss-numeros-section {
    position: relative;
    padding: 40px 0 10px;
}

.pss-numeros-texto,
.pss-numeros-texto p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #58536f;
    margin: 0 0 50px;
}

/* ---- PAINEL FABRICANTES / FORNECEDORES ---- */
.pss-painel {
    background: #fff;
    border: 1px solid #b2c3dd;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 480px;
    margin-bottom: 40px;
}

.pss-painel-content {
    flex: 1 1 0;
    min-width: 0;
}

.pss-painel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.pss-painel-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.pss-painel-titulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #58536f;
    margin: 0;
}

.pss-painel-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.pss-painel-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pss-stat-valor {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #66589e;
}

.pss-painel--fornecedores .pss-stat-valor {
    color: #5a738d;
}

.pss-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.3;
    color: #707070;
}

.pss-painel-texto,
.pss-painel-texto p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #58536f;
    margin: 0 0 1em;
}
.pss-painel-texto p:last-child { margin-bottom: 0; }

.pss-painel-img-col {
    flex: 0 0 484px;
    max-width: 484px;
}

.pss-painel-img-frame {
    position: relative;
    background: #fff;
    border: 10px solid rgba(128,128,128,0.08);
    border-radius: 12px;
}

.pss-painel-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: zoom-in;
}

.pss-zoom-btn {
    position: absolute;
    top: 14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #66589e;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 7px rgba(0,0,0,0.15);
}

/* ---- METAS DOS FABRICANTES ---- */
#pss-metas-section {
    background: #66589e;
    padding: 72px 0;
}

.pss-metas-titulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #fff;
    text-align: center;
    margin: 0 0 32px;
}

.pss-metas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.pss-meta-card {
    flex: 1 1 0;
    min-width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 7px rgba(0,0,0,0.15);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pss-meta-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.pss-meta-titulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #58536f;
    margin: 0;
}

.pss-meta-texto,
.pss-meta-texto p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    color: #707070;
    margin: 0;
}

/* ---- PAINEL FORNECEDORES (section) ---- */
#pss-fornecedores-section {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.pss-paint-right {
    position: absolute;
    right: -100px;
    top: 40px;
    width: 286px;
    pointer-events: none;
    z-index: 0;
    transform: rotate(180deg);
}
.pss-paint-right img { width: 100%; display: block; }

/* ---- EMPRESAS PARTICIPANTES ---- */
#pss-participantes-section {
    padding: 40px 0;
}

.pss-participantes-subtitulo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #58536f;
    margin: 24px 0 20px;
}
.pss-participantes-subtitulo {
    margin-top: 50px;
}

/* Linhas cheias ocupam 100% do container; a última linha, se incompleta,
   fica centralizada (no grid ela ficava presa à esquerda). O nº de colunas
   acompanha a largura do .container em cada breakpoint do Bootstrap. */
.pss-logos-grid {
    --pss-cols: 9;
    --pss-gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--pss-gap);
    margin-bottom: 8px;
}

.pss-logo-tile {
    flex: 0 0 calc((100% - (var(--pss-cols) - 1) * var(--pss-gap)) / var(--pss-cols));
    min-width: 0;
    height: 102px;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    padding: 8px;
}

.pss-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* ---- FAIXA DE FECHAMENTO ---- */
#pss-fechamento-section {
    padding: 40px 0 90px;
}

.pss-fechamento-texto,
.pss-fechamento-texto p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #707070;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* ---- LIGHTBOX ---- */
.pss-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.pss-lightbox.is-open {
    display: flex;
}
.pss-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}
.pss-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #66589e;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 7px rgba(0,0,0,0.15);
}

/* ---- RESPONSIVO ---- */
@media (max-width: 1399.98px) {
    .pss-logos-grid { --pss-cols: 7; }
}

@media (max-width: 1199.98px) {
    .pss-logos-grid { --pss-cols: 6; }
}

@media (max-width: 991.98px) {
    .pss-logos-grid { --pss-cols: 4; }
}

@media (max-width: 767.98px) {
    .pss-logos-grid { --pss-cols: 3; }
}

@media (max-width: 992px) {
    .pss-hero { padding: 40px; }
    .pss-hero-img-col { flex-basis: 100%; max-width: 100%; }
    .pss-painel { flex-direction: column; }
    .pss-painel-img-col { flex-basis: 100%; max-width: 100%; }
    .pss-zoom-btn { right: 14px; }
    .pss-meta-card { min-width: 45%; }
}

@media (max-width: 768px) {
    .pss-hero { padding: 24px; }
    .pss-hero-titulo { font-size: 22px; }
    .pss-hero-texto, .pss-hero-texto p { font-size: 15px; }
    .pss-citacao { flex-direction: column; padding: 24px 20px; }
    .pss-section-title { font-size: 22px; }
    .pss-painel { padding: 24px; }
    .pss-meta-card { min-width: 100%; }
    .pss-btn { width: 100%; }
}

@media (max-width: 576px) {
    .pss-logos-grid {
        --pss-gap: 12px;
    }
    .pss-logo-tile { height: 84px; }
}

/* Espaçamento entre seções reduzido pela metade em notebook (1366x768) e
   telas médias (1024px–1280px). */
@media screen and (max-width: 1366px) and (max-height: 768px),
       screen and (min-width: 1024px) and (max-width: 1280px) {
    #pss-hero-section {
        padding: 20px 0 24px;
    }

    #pss-citacao-section {
        padding: 20px 0;
    }

    #pss-numeros-section {
        padding: 20px 0 5px;
    }

    #pss-metas-section {
        padding: 36px 0;
    }

    #pss-fornecedores-section {
        padding: 20px 0;
    }

    #pss-participantes-section {
        padding: 20px 0;
    }

    #pss-fechamento-section {
        padding: 20px 0 45px;
    }
}
