
/* X WEATHER - SETORES COM FOTOGRAFIAS */

#setores .sectorgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

#setores .sector {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 245px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    background: #10252d;
    border: 1px solid rgba(130,220,220,.22);
    border-radius: 12px;
    color: #fff;
    transition: transform .3s, border-color .3s;
}

#setores .sector::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(4,18,26,.08) 0%,
        rgba(4,18,26,.45) 38%,
        rgba(4,18,26,.97) 100%
    );
}

#setores .xw-sector-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

#setores .xw-sector-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

#setores .sector:hover .xw-sector-photo img,
#setores .sector.active .xw-sector-photo img {
    transform: scale(1.08);
}

#setores .sector:hover,
#setores .sector.active {
    border-color: #52e3d2;
    transform: translateY(-3px);
}

#setores .sector .symbol {
    color: #52e3d2;
    font-size: 23px;
    margin-bottom: auto;
}

#setores .sector h3 {
    color: #fff;
    font-size: 18px;
    margin: 18px 0 7px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

#setores .sector p {
    color: #d9e7e9;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 950px) {
    #setores .sectorgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    #setores .sectorgrid {
        grid-template-columns: 1fr;
    }

    #setores .sector {
        min-height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #setores .sector,
    #setores .xw-sector-photo img {
        transition: none;
    }
}

/* =====================================================
   X WEATHER - EFEITOS CINEMATOGRAFICOS DOS SETORES
   ===================================================== */

#setores .sector {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
    transition:
        transform .45s ease,
        box-shadow .45s ease,
        border-color .45s ease;
}

/* Fotografias com movimento suave */
#setores .xw-sector-photo img {
    transform: scale(1);
    filter: saturate(.85) brightness(.88);
    transition:
        transform 1.1s cubic-bezier(.2,.7,.2,1),
        filter .8s ease;
}

/* Iluminacao sobre a fotografia */
#setores .sector::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(82,227,210,.15) 48%,
        transparent 75%
    );
    transform: translateX(-130%);
    transition: transform .9s ease;
}

/* Interacao */
@media (hover: hover) {
    #setores .sector:hover {
        transform: translateY(-8px);
        border-color: #52e3d2;
        box-shadow:
            0 18px 40px rgba(0,0,0,.4),
            0 0 22px rgba(82,227,210,.18);
    }

    #setores .sector:hover .xw-sector-photo img {
        transform: scale(1.13);
        filter: saturate(1.15) brightness(1.06);
    }

    #setores .sector:hover::after {
        transform: translateX(130%);
    }
}

/* Setor selecionado */
#setores .sector.active {
    border-color: #52e3d2;
    box-shadow:
        0 0 0 1px rgba(82,227,210,.3),
        0 12px 30px rgba(0,0,0,.25);
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    #setores .sector,
    #setores .xw-sector-photo img,
    #setores .sector::after {
        transition: none !important;
        transform: none !important;
    }
}
