/* Página inicial (app/paginas/corpo.php) — ajustes visuais só da home. */

:root {
    --home-amarelo: #ffa600;
    --home-verde: #008f72;
    --home-verde-claro: #28bc77;
    --home-texto: #1f2937;
    --home-suave: #6b7280;
    --home-cartao: #ffffff;
    --home-raio: 1rem;
    --home-sombra: 0 2px 10px rgba(0, 0, 0, .06);
    --home-sombra-forte: 0 10px 24px rgba(0, 0, 0, .12);
}

/* ---------- títulos de seção ---------- */
.home-titulo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--home-texto);
}

.home-titulo::before {
    content: "";
    width: 6px;
    height: 1.3em;
    border-radius: 3px;
    background: var(--home-amarelo);
    flex: none;
}

.home-titulo--claro {
    color: #fff;
}

.home-titulo--pequeno {
    font-size: 1.15rem;
    margin-bottom: .75rem;
}

/* ---------- notícias ---------- */
.home-destaque {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--home-raio);
    box-shadow: var(--home-sombra);
    color: #fff;
}

.home-destaque img {
    display: block;
    width: 100%;
    transition: transform .4s ease;
}

.home-destaque:hover img {
    transform: scale(1.04);
}

.home-destaque .title {
    border-radius: 0 0 var(--home-raio) var(--home-raio);
}

.home-destaque .title p {
    color: #fff;
}

.home-noticia {
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--home-cartao);
    border-radius: var(--home-raio);
    border-bottom: 4px solid var(--home-amarelo);
    box-shadow: var(--home-sombra);
    color: var(--home-texto);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-noticia:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-sombra-forte);
    color: var(--home-texto);
}

.home-noticia__foto {
    height: 100%;
    overflow: hidden;
}

.home-noticia__foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transition: transform .4s ease;
}

.home-noticia:hover .home-noticia__foto img {
    transform: scale(1.05);
}

.home-noticia__texto {
    padding: .75rem 1rem;
}

.home-noticia__categoria {
    display: inline-block;
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--home-amarelo);
}

.home-noticia__titulo {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-vermais {
    font-weight: 700;
    padding: .45rem 1.25rem;
}

/* ---------- acesso rápido ---------- */
.home-atalho {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.25rem .75rem 1rem;
    text-align: center;
    background: var(--home-cartao);
    border-radius: var(--home-raio);
    border-bottom: 4px solid var(--home-amarelo);
    box-shadow: var(--home-sombra);
    color: var(--home-texto);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-atalho:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-sombra-forte);
    color: var(--home-texto);
}

.home-atalho img {
    height: 64px;
    width: auto;
    margin-bottom: .75rem;
}

.home-atalho__nome {
    margin-bottom: .25rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-atalho__desc {
    margin: 0;
    font-size: .8rem;
    line-height: 1.3;
    color: var(--home-suave);
}

/* ---------- prefeitura e secretarias ---------- */
.home-pessoa {
    display: block;
    height: 100%;
    padding: .5rem .5rem .75rem;
    text-align: center;
    background: var(--home-cartao);
    border-radius: var(--home-raio);
    box-shadow: var(--home-sombra);
    color: var(--home-texto);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-pessoa:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-sombra-forte);
    color: var(--home-texto);
}

.home-pessoa img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
    border-radius: calc(var(--home-raio) - .35rem);
    margin-bottom: .6rem;
}

.home-pessoa__nome {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.25;
}

.home-pessoa__cargo {
    margin: .15rem 0 0;
    font-size: .78rem;
    line-height: 1.25;
    color: var(--home-suave);
}

.swiper-secre .swiper-slide {
    height: auto;
    padding-bottom: 2rem;
}

/* ---------- TV e galeria ---------- */
.home-midia {
    background: linear-gradient(180deg, var(--home-verde-claro) 0%, var(--home-verde) 100%);
}

.home-video,
.home-album {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--home-raio);
    box-shadow: var(--home-sombra-forte);
    color: #fff;
}

.home-video img,
.home-album img {
    display: block;
    width: 100%;
    transition: transform .4s ease;
}

.home-video:hover img,
.home-album:hover img {
    transform: scale(1.05);
}

.home-video .title,
.home-album .title {
    border-radius: 0 0 var(--home-raio) var(--home-raio);
}

.home-video .title p,
.home-album .title p {
    color: #fff;
}

.home-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 166, 0, .92);
    color: #1f2937;
    font-size: 2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    transition: transform .2s ease;
}

.home-video:hover .home-video__play {
    transform: scale(1.1);
}

/* ---------- celular ---------- */
@media (max-width: 575.98px) {
    .home-titulo {
        font-size: 1.3rem;
    }

    .home-noticia__texto {
        padding: .5rem .75rem;
    }

    .home-noticia__titulo {
        font-size: .9rem;
    }

    .home-noticia__foto img {
        aspect-ratio: 4 / 3;
    }

    .home-atalho {
        padding: 1rem .5rem .75rem;
    }

    .home-atalho img {
        height: 52px;
    }

    .home-atalho__nome {
        font-size: .95rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-destaque img,
    .home-noticia,
    .home-noticia__foto img,
    .home-atalho,
    .home-pessoa,
    .home-video img,
    .home-album img,
    .home-video__play {
        transition: none;
    }
}

/* ---------- destaque em carrossel (facelift 2) ---------- */
.home-hero {
    padding: 1.5rem 0 2rem;
}

.home-destaque-swiper {
    position: relative;
    border-radius: var(--home-raio);
    overflow: hidden;
    box-shadow: var(--home-sombra-forte);
}

.home-destaque-swiper .home-destaque {
    border-radius: 0;
    box-shadow: none;
}

.home-destaque-swiper .home-destaque img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.home-destaque__texto {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4rem 1.75rem 2.6rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .88) 100%);
    color: #fff;
}

.home-destaque__titulo {
    margin: .6rem 0 .5rem;
    font-size: clamp(1.25rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.home-destaque__data {
    font-size: .85rem;
    color: rgba(255, 255, 255, .85);
}

.home-destaque-paginas.swiper-pagination {
    bottom: .9rem !important;
    left: auto !important;
    right: 1.5rem;
    width: auto !important;
}

.home-destaque-paginas .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: .6;
}

.home-destaque-paginas .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 5px;
    background: var(--home-amarelo);
    opacity: 1;
}

.home-destaque-seta {
    position: absolute;
    top: 42%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--home-texto);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    opacity: 0;
    transition: opacity .2s;
}

.home-destaque-anterior {
    left: 1rem;
}

.home-destaque-proxima {
    right: 1rem;
}

.home-destaque-swiper:hover .home-destaque-seta,
.home-destaque-seta:focus-visible {
    opacity: 1;
}

/* lista ao lado do destaque */
.home-lista {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.home-lista__item {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .5rem;
    background: var(--home-cartao);
    border-radius: .85rem;
    box-shadow: var(--home-sombra);
    color: var(--home-texto);
    transition: transform .2s, box-shadow .2s;
}

.home-lista__item:hover {
    transform: translateX(4px);
    box-shadow: var(--home-sombra-forte);
    color: var(--home-texto);
}

.home-lista__item img {
    flex: none;
    width: 104px;
    height: 78px;
    object-fit: cover;
    border-radius: .6rem;
}

.home-lista__titulo {
    margin: 0 0 .15rem;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-lista__data {
    font-size: .75rem;
    color: var(--home-suave);
}

/* ---------- faixa de serviços ---------- */
.home-servicos {
    padding: 2.5rem 0 2.25rem;
    background: linear-gradient(135deg, var(--home-verde) 0%, #0b5e4a 100%);
}

.home-servico {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-align: center;
    color: #fff;
}

.home-servico:hover {
    color: #fff;
}

.home-servico__icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    color: var(--home-verde);
    font-size: 2rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transition: transform .2s, background .2s, color .2s;
}

.home-servico:hover .home-servico__icone {
    transform: translateY(-4px);
    background: var(--home-amarelo);
    color: #1f2937;
}

.home-servico__nome {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    .home-destaque__texto {
        padding: 3rem 1rem 2.2rem;
    }

    .home-destaque-swiper .home-destaque img {
        aspect-ratio: 4 / 3;
    }

    .home-servicos {
        padding: 2rem 0 1.75rem;
    }

    .home-servico__icone {
        width: 56px;
        height: 56px;
        font-size: 1.45rem;
    }

    .home-servico__nome {
        font-size: .75rem;
    }

    .home-lista__item img {
        width: 88px;
        height: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-lista__item,
    .home-servico__icone,
    .home-destaque-seta {
        transition: none;
    }
}
