/* ====== Alup ====== */
.alup {
    padding: 20vh 0 0;
    background-color: var(--cor-branco-fundo);
}

.alup__intro {
    grid-column: 2 / span 10;
    
}

.alup__intro h1,
.alup__intro p {
    text-align: left;
}

.alup__grid {
    grid-column: 2 / span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: start;
}

.alup__item {
    overflow: hidden;
}

.alup__item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
    cursor: pointer;
}

.alup__linha--celular {
    grid-column: 1 / span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.continental__linha--celular {
    grid-column: 1 / span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: start;
    width: 100%;
    height: 100%;
}

.alup__item--left,
.continental__item--left {
    grid-column: 1 / span 8;
    align-self: center;
    height: 100%;
    width: 100%;
    padding-left: 0;
    display: flex;
}

.alup__item--left img {
    max-height: 1000px;
    object-fit: contain;
    object-position: center;
    width: 100%;
    padding: 0;
    display: block;
    align-items: center;
    margin-left: 0;
}

.continental__item--left img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
    align-items: center;
    margin-left: 0;
}

.alup__item--right {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alup__item--right img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.continental__item--right {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: start;
    width: auto;
    padding: 0;
}

.continental__item--right img {
    flex: 1;
    object-fit: cover;
    object-position: center;
    width: auto;
    height: 100%;
    cursor: pointer;
}

.alup__item--full {
    grid-column: 1 / -1;
}

.alup__item--half {
    grid-column: span 6;
    max-height: 500px;
}

.embalagem--half {
    grid-column: span 6;
    max-height: 1000px;
}

.docol__item--terco,
.embalagem__item--terco {
    grid-column: span 4;
    height: 400px;
}

.docol__item--terco img {
    object-fit: cover;
    width: auto;
    height: 100%;
}

.prontofood__item--half {
    grid-column: span 6;
    max-height: 800px;
}

.alup__linha--dupla {
    grid-column: 1 / span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.alup__item--70 {
    grid-column: span 7;
    display: flex;
}

.alup__item--30 {
    grid-column: span 5;
    display: flex;
}

.alup__item--70 img,
.alup__item--30 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-height: 500px;
}

.alup__texto {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--cor-preto-texto);
    margin: 0;
    margin-top: auto;
}

.text-box {
    display: flex;
    justify-content: right;
    align-items: center;
    height: 300px;
}

.text-box-expocacer {
    display: flex;
    justify-content: right;
    align-items: center;
    height: 330px;
}

.alup__texto--right {
    text-align: right;
    justify-self: end;
    width: 80%;
}

.alup__texto--left {
    text-align: left;
    justify-self: normal;
    width: 70%;
}

.expocacer__texto--left {
    text-align: left;
    justify-self: normal;
    width: 100%;
}

.alup__lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.alup__lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.alup__lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

.mt__linha--left {
    grid-column: 1 / span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.mt__item--left {
    grid-column: 1 / span 6;
    align-self: center;
    height: 100%;
    padding-left: 0;
    display: flex;
}

.mt__item--right {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mt__img-coluna {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Novarejo */
.nova-secao {
    background-color: var(--cor-branco-fundo);
}

.nova-secao__linha {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    width: 100%;
}

.nova-secao__item--left {
    grid-column: 1 / span 7;
    overflow: hidden;
}

.nova-secao__item--left-2 {
    grid-column: 1 / span 5;
    overflow: hidden;
}

.nova-secao__item--right {
    grid-column: 8 / span 5;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.novarejo__item--half {
    grid-column: span 6;
    height: 500px;
    align-self: stretch;
}

.novarejo__item--half img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.nova-secao__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nova-secao__right-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nova-secao__right-bottom-left {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.nova-secao__right-bottom-right {
    overflow: hidden;
}

/* Pincbar */
.projeto-pincbar .alup__item--70,
.projeto-pincbar .alup__item--30 {
    align-self: stretch;
}

/* Sallustro */
.sallustro__item--terco {
    grid-column: span 4;
}

.projeto-sallustro .sallustro__item--terco {
    align-self: stretch;
}

.projeto-sallustro .sallustro__item--terco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Liber */
.liber__texto,
.embalagem__texto {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--cor-preto-texto);
    margin: 0;
    margin-top: auto;
}

.embalagem__texto {
    margin-top: 70px;
    margin-right: 20px;
}

.liber__texto--left {
    text-align: left;
    width: 70%;
}

.liber-text-box {
    display: flex;
    justify-content: center;
    max-height: 500px;
}

/* Matos */
.matos__item--70 {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.matos__item--70 img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; 
}

.matos__item--half {
    grid-column: span 6;
    max-height: 1000px;
}

.matos__item--half img {
    height: 700px;
    object-fit: contain;
}

.text-box-matos {
    display: flex;
    justify-content: right;
    align-items: center;
    height: 600px;
}

.matos__texto--left {
    text-align: left;
    width: 100%;
}

/* Josy */
.josy__item--right {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.josy__item--right img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.josy__item--70 {
    grid-column: span 7;
    display: flex;
}

.josy__item--70 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block; 
}

/* Navegação */
.projeto__navegacao {
    display: grid;
    align-items: center;
    padding: 0 0 2rem;
}

.projeto__nav {
    font-weight: 400;
    font-family: Inter;
    font-size: 1.5rem;
}

.projeto__nav--anterior {
    grid-column: 2 / span 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1px;
}

.projeto__nav--proximo {
    grid-column: 8 / span 6;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.nav--none {
    display: none;
}


/* Compartilhar */
.projeto__compartilhar {
    padding: 2rem 0;
    background-color: var(--cor-branco-fundo);
}

.projeto__compartilhar__box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background-color: #f8f8f8;
    margin-bottom: 2rem;
    margin-left: 1px;
}

.projeto__compartilhar__texto {
    font-size: 1.3rem;
    margin: 0;
    color: var(--cor-preto-texto);
}

.projeto__compartilhar__icones {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.projeto__compartilhar__icones a {
    font-size: 1.5rem;
    color: var(--cor-preto-texto);
    transition: color 0.3s ease;
}

.projeto__compartilhar__icones a:hover {
    color: var(--cor-vermelho-destaque);
}

/* Responsivo */
@media (max-width: 768px) {
    .projeto__compartilhar__box {
        flex-direction: column;
        align-items: flex-start;
    }

    .projeto__compartilhar__icones {
        justify-content: flex-start;
    }
}

/* Responsivo Novarejo */
@media (max-width: 768px) {
    .nova-secao__linha {
        grid-template-columns: 1fr;
    }

    /* Garante que cada item ocupe a linha inteira */
    .nova-secao__item--left,
    .nova-secao__item--right {
        grid-column: 1 / -1;
    }

    .novarejo__item--half {
        grid-column: 1 / -1;
    }
}

/* Responsivo Matos */
@media (max-width: 768px) {
    .matos__item--half {
        grid-column: span 12;
    }
}

/* Responsivo Liber */
@media (max-width: 1400px) {
    .liber__texto,
    .embalagem__texto {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .liber-text-box {
        max-height: 800px;
    }

    .liber__texto--left {
        width: 90%;
        padding: 1rem;
    }
}

/* Responsivo Docol */
@media (max-width: 768px) {
    .docol__item--terco,
    .embalagem__item--terco {
        grid-column: span 12;
    }

    .embalagem__item--terco {
        height: 280px;
        margin-top: 20px;
    }
}

/* Responsivo */
@media (max-width: 1000px) {
    .alup {
        padding: 0;
    }

    .alup__intro {
        grid-column: 2 / span 12;
        margin-bottom: 0;
    }

    .alup__intro h1 {
        font-size: 2.5rem;
    }

    .alup__intro p {
        font-size: 1.3rem;
    }

    .alup__item--half {
        grid-column: 1 / -1;
    }

    .alup__item--70 {
        grid-column: 1 / -1;
    }

    .alup__item--30 {
        grid-column: 1 / -1;
    }

    .alup__texto {
        font-size: 1.3rem;
    }

    .text-box {
        justify-content: left;
    }

    .alup__texto--right {
        text-align: left;
        width: 100%;
        margin-top: 0;
    }

    .alup__texto--left {
        text-align: left;
        width: 100%;
        margin-top: 0;
    }

    .text-box-expocacer {
        height: 400px;
    }

    .embalagem__texto {
        padding: 0;
        margin: 0;
    }
}

@media (min-width: 1001px) and (max-width: 1800px) {
    .alup__item--70,
    .alup__item--30,
    .alup__item--half {
        height: 400px;
    }

    .alup__item--70 img,
    .alup__item--30 img,
    .alup__item--half img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }
}