/* ============================================================
   ACP-SG
   HOME
   CSS ESPECÍFICO DA PÁGINA
   ============================================================ */


/* ============================================================
   AÇÕES
   ============================================================ */

.home-actions {
    padding: 110px 0;
    background: var(--cor-fundo);
}

.home-actions__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.9fr);

    gap: 75px;

    align-items: center;
}

.home-actions__image {
    overflow: hidden;

    border-radius: var(--raio-medio);
}

.home-actions__image img {
    width: 100%;
    height: 540px;

    display: block;

    object-fit: cover;
}

.home-actions__content {
    max-width: 570px;
}

.home-actions__content h2 {
    margin: 12px 0 22px;

    font-size: clamp(2rem, 4vw, 3.3rem);

    line-height: 1.12;
}

.home-actions__content p {
    margin: 0 0 30px;

    font-size: 1.05rem;

    line-height: 1.8;
}


/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 1100px) {

    .home-actions__grid {
        gap: 50px;
    }

}


@media (max-width: 768px) {

    .home-actions {
        padding: 75px 0;
    }

    .home-actions__grid {
        grid-template-columns: 1fr;
    }

    .home-actions__image img {
        height: 380px;
    }

}


@media (max-width: 480px) {

    .home-actions__image img {
        height: 300px;
    }

}
/* ==========================================================
   PEQUENOS GUARDIÕES
========================================================== */

.cartilha-componente {
    width: 100%;
    padding: 60px 0;

    background: var(--cor-fundo);

    color: var(--cor-primaria);

    box-sizing: border-box;
}


/* ==========================================================
   CONTAINER
   MESMO PADRÃO DO COMPONENTE DE PROJETOS
========================================================== */

.cartilha-componente__container {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    box-sizing: border-box;
}


/* ==========================================================
   CAIXA
========================================================== */

.cartilha-componente__box {
    position: relative;

    display: flex;
    align-items: center;

    gap: 38px;

    width: 100%;

    padding: 30px 34px;

    box-sizing: border-box;

    overflow: hidden;

    border: 2px solid #d8ead8;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #f4fbf1 0%,
            #fffdf4 55%,
            #eef8fa 100%
        );

    box-shadow:
        0 12px 30px rgba(35, 80, 60, 0.08);
}


/* ==========================================================
   DETALHE DECORATIVO
========================================================== */

.cartilha-componente__box::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    bottom: -90px;

    border-radius: 50%;

    background:
        rgba(113, 180, 151, 0.12);

    pointer-events: none;
}


/* ==========================================================
   CAPA
========================================================== */

.cartilha-componente__capa {
    position: relative;
    z-index: 1;

    width: 170px;

    flex: 0 0 170px;

    transform: rotate(-2deg);

    filter:
        drop-shadow(
            0 10px 12px rgba(40, 70, 50, 0.18)
        );

    transition:
        transform .25s ease;
}


.cartilha-componente__capa:hover {
    transform:
        rotate(0deg)
        translateY(-4px);
}


.cartilha-componente__capa img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 8px;

    border: 5px solid #fff;

    box-sizing: border-box;
}


/* ==========================================================
   CONTEÚDO
========================================================== */

.cartilha-componente__content {
    position: relative;
    z-index: 1;

    flex: 1;

    min-width: 0;
}


/* ==========================================================
   ETIQUETA
========================================================== */

.cartilha-componente__label {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 7px;

    color: #39805e;

    font-size: .78rem;

    font-weight: 800;

    letter-spacing: .08em;

    line-height: 1.4;

    text-transform: uppercase;
}


.cartilha-componente__label i {
    font-size: .8rem;
}


/* ==========================================================
   TÍTULO
========================================================== */

.cartilha-componente__title {
    margin: 0 0 10px;

    color: #28705a;

    font-size: 2rem;

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -.02em;
}


/* ==========================================================
   DESCRIÇÃO
========================================================== */

.cartilha-componente__description {
    max-width: 720px;

    margin: 0 0 22px;

    color: #47615a;

    font-size: 1rem;

    line-height: 1.65;
}


/* ==========================================================
   BOTÃO
========================================================== */

.cartilha-componente__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 44px;

    padding: 0 20px;

    box-sizing: border-box;

    border: 1px solid rgba(49, 91, 69, .18);

    border-radius: 10px;

    background: #3b8967;

    color: #ffffff;

    font-family: inherit;

    font-size: .86rem;

    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .07);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        color .25s ease;
}


.cartilha-componente__button:hover {
    transform: translateY(-2px);

    background: #659680;

    color: #ffffff;

    box-shadow:
        0 11px 26px rgba(0, 0, 0, .11);
}


.cartilha-componente__button:focus,
.cartilha-componente__button:active {
    color: #ffffff;
}


.cartilha-componente__button i {
    color: #ffffff;

    font-size: .9rem;
}


.cartilha-componente__button:hover i,
.cartilha-componente__button:focus i,
.cartilha-componente__button:active i {
    color: #ffffff;
}


/* ==========================================================
   TABLET
   MESMO COMPORTAMENTO DO PROJETOS
========================================================== */

@media (max-width: 850px) {

    .cartilha-componente {
        padding: 50px 0 58px;
    }

    .cartilha-componente__container {
        width: min(
            calc(100% - 32px),
            760px
        );
    }

}


/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 650px) {

    .cartilha-componente {
        padding: 45px 0 55px;
    }

    .cartilha-componente__box {
        flex-direction: column;

        align-items: center;

        text-align: center;

        gap: 22px;

        padding: 28px 22px;
    }

    .cartilha-componente__capa {
        width: 145px;

        flex: 0 0 auto;
    }

    .cartilha-componente__content {
        width: 100%;
    }

    .cartilha-componente__label {
        justify-content: center;
    }

    .cartilha-componente__title {
        font-size: 1.8rem;
    }

    .cartilha-componente__description {
        font-size: .96rem;
    }

    .cartilha-componente__button {
        width: 100%;
    }

}


/* ==========================================================
   CELULAR PEQUENO
========================================================== */

@media (max-width: 480px) {

    .cartilha-componente {
        padding: 40px 0 50px;
    }

    .cartilha-componente__container {
        width: calc(100% - 24px);
    }

    .cartilha-componente__box {
        padding: 24px 18px;
    }

    .cartilha-componente__title {
        font-size: 1.65rem;
    }

}

/* ==========================================================
   PETIÇÃO EM DESTAQUE NA HOME
   ========================================================== */

.home-peticao {
    padding: 64px 24px;
    background: #edf5ef;
}

.home-peticao__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 48px;
    padding: 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(22, 65, 43, 0.10);
}

.home-peticao__selo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #237548;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
}

.home-peticao__conteudo h2 {
    margin: 0 0 18px;
    color: #173f2a;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
}

.home-peticao__subtitulo {
    margin: 0 0 16px;
    color: #375746;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.6;
}

.home-peticao__descricao {
    margin: 0 0 26px;
    color: #53645a;
    font-size: 1rem;
    line-height: 1.8;
}

.home-peticao__botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 8px;
    background: #237548;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-peticao__botao:hover {
    background: #185b35;
    color: #ffffff;
    transform: translateY(-2px);
}

.home-peticao__apoio {
    display: block;
    margin-top: 14px;
    color: #718076;
    font-size: 0.85rem;
    line-height: 1.6;
}

.home-peticao__imagem {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.home-peticao__imagem img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .home-peticao {
        padding: 36px 16px;
    }

    .home-peticao__container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px 22px;
    }

    .home-peticao__conteudo h2 {
        font-size: 1.8rem;
    }

    .home-peticao__imagem img {
        height: 250px;
    }

    .home-peticao__botao {
        width: 100%;
    }
}