.agro-destaques {
    background-color: #f5f5f5;
    grid-column: span 9;
    grid-row: span 3;
    padding: 30px 70px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.agro-destaques-wrapper {
    max-width: 1070px;
}

.agro-destaques *{
    box-sizing: border-box;
}
.agro-destaques header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
    align-items: center;
}

.agro-destaques span {
    color: #2f2f2f;
    font-family: "GiorgioSans-Regular";
    font-size: 60px;
}

.agro-destaques-menu-mobile .agro-destaques-menu-list li {
    padding: 5px 0;
    border-bottom: 1px solid #B1AAAA;
}

.agro-destaques-container {
    width: 100%;
    display: flex;
    margin-top: 20px;
    flex-direction: row;
    justify-content: space-between;
}

.agro-destaques-slide-box > h2 {
    font-size: 20px;
    line-height: 24px;
}

.agro-destaques-slide-box .numberspan-horiz {
    width: 40px;
    border-radius: 5px;
    background-color: #ff0;
    display: inline-flex;
    margin: 5px 0 0 5px;
    font-weight: 700;
    flex-direction: row;
    position: absolute;
    color: #2f2f2f;
    font-family: giorgiosans-regular;
    font-size: 45px;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}


    /* Estilos do cabeçalho (já presentes) */
    .agro-header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .btn-veja-mais-header {
        display: inline-block;
        padding: 6px 16px;
        background-color: #007bff; /* Altere para a cor do seu tema */
        color: #fff !important;
        text-decoration: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: bold;
        transition: background 0.2s ease;
    }
    .btn-veja-mais-header:hover {
        background-color: #0056b3; /* Cor de hover */
    }

    /* Garante que o slide ocupe a altura total para centralizar verticalmente também */
    .splide__slide.splide__veja-mais {
        display: flex;
        justify-content: center; /* Centraliza horizontalmente */
        align-items: center;     /* Centraliza verticalmente */
        height: 100%;            /* Altere se o box das matérias tiver altura fixa */
    }

    /* Estiliza o link para ser o container centralizado */
    .link-veja-mais {
        display: flex;
        flex-direction: column; /* Coloca ícone e texto em coluna (um sob o outro) */
        align-items: center;    /* Centraliza os itens internamente */
        justify-content: center;
        text-decoration: none;
        color: inherit; /* Ou defina uma cor específica */
        transition: transform 0.2s ease;
    }

    .link-veja-mais:hover {
        transform: scale(1.05); /* Efeito suave no hover */
    }

    /* Estilos para o círculo da seta (opcional, para ficar bonito) */
    .arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;  /* Tamanho do círculo */
        height: 60px;
        border: 2px solid currentColor; /* Cor do círculo segue a cor do texto */
        border-radius: 50%; /* Faz o círculo */
        margin-bottom: 10px; /* Espaço entre o ícone e o texto */
    }

    .arrow svg {
        width: 30px;  /* Tamanho do ícone dentro do círculo */
        height: 30px;
    }

    .veja-mais-text {
        font-weight: bold;
        font-size: 16px;
    }


/* SPLIDE */
.agro-destaques-splide{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.agro-destaques-slide-box{
    width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    align-items: center;
}
.agro-destaques-slide-box .agro-destaques-img{
    position: relative;
    margin: 0px 0px 0px 0px;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .5s;
}

.agro-destaques-slide-box .agro-destaques-img:hover {
    transform: scale(1.05);
}
.agro-destaques-slide-box h2 {
    font-family: "GuardianSans-Semibold";
    font-size: 20px;
    color: white;
    position: absolute;
    bottom: 0;
    padding: 20px;
    border-radius: 5px;
    background: linear-gradient(0deg, #000000 15%, rgba(151, 157, 171, 0) 90%);
    max-width: 282px;
    /*height: 190px;*/
    padding-top: 77px;    
}
.agro-destaques-splide .splide__slide {
    max-width: 250px;
    min-width: 250px;
    max-height: 350px;
    min-height: 350px;
}
.agro-destaques-splide .splide__list {
    display: flex;
    column-gap: 23px;
}

.agro-destaques-splide .splide__pagination {
    display: none !important;
}
.agro-destaques-splide .splide__arrow{
    top: 50%;
    background:none;
    width: 3em;
}
.agro-destaques-splide .splide__arrow--prev {
    left: -4em;
}
.agro-destaques-splide .splide__arrow--next {
    right: -4em;
}
.agro-destaques-splide .splide__arrow svg {
    fill: #2f2f2f;
    height: 6.2em;
    width: 6.2em;
}

#lightbox {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #000000c7;
    top: 0;
    left: 0;
}

@media (max-width:900px){
    .agro-destaques-category a, .agro-destaques-category button {
        cursor: pointer;
        color: white;
        padding: 5px 10px;
        white-space: nowrap;
    }
    .agro-destaques-category {
        display: none;
    }

    #agro-destaques-button-mobile {
        display: block;
        height: 36px;
    }

    .agro-destaques header > h2 {
        color: yellow;
        font-family: "GiorgioSans-Regular";
        font-size: 50px;
        padding-right: 5px;
    }
    #lightbox iframe, #lightbox video {
        width: 100vw !important;
        height: calc(100vw - 100px) !important;
    }
}
@media (max-width:700px){
    .agro-destaques {
        background-color: #f5f5f5;
        grid-column: span 2;
        grid-row: span 3;
        padding: 20px 0;
    }
        .agro-destaques-wrapper {
        max-width: 100%;
    }
    .agro-destaques header {
        display: flex;
        flex-direction: row;
        overflow: hidden;
        width: 100%;
        justify-content: flex-start;
    }
    .agro-destaques-category a, .agro-destaques-category button {
        cursor: pointer;
        color: white;
        padding: 5px;
        font-size: 10px;
    }
    .agro-destaques {
        width: 100%;
    }
    .agro-destaques header > h2{
        margin-left: 0px;
    }
    .agro-destaques-splide .splide__list {
        gap: 0;
    }

    .agro-destaques-splide .splide__arrow--next {
        right: 0;
    }
    .agro-destaques-splide .splide__arrow--prev {
        left: 0;
    }
    .agro-destaques-splide .splide__arrow svg {
        fill: #ffffff;
        height: 2.2em;
        width: 2.2em;
    }
    .agro-destaques-splide .splide__arrow{
        top: 43%;
    }
    .agro-destaques-slide-box {
        width: 100%;
    }
    .agro-destaques-splide .splide__slide {
        max-width: unset;
        min-width: unset;
        justify-content: center;
        display: flex;
        max-height: 415px;
        margin: 0 5px;
    }

    .agro-destaques-splide .splide__arrows {
        display: none;
    }

    .agro-destaques-slide-box .agro-destaques-img {
        height: 100%;
        width: 100%;
        border-radius: 5px;
    }
    .agro-destaques-category a, .agro-destaques-category button {
        cursor: pointer;
        font-size: 11px;
    }
    .agro-destaques header > h3{
        border-left: 1px solid;
        margin: 14px 0px 0px 0px;
        padding: 0px 0px 0px 10px;
        font-size: 30px;
    }
    .agro-destaques-splide .splide__slide img{
        margin: auto;
    }

    .agro-destaques-slide-box h2 {
        max-width: unset;
        width: -webkit-fill-available;
        font-size: 26px;
        line-height: 27px;
    }

    .agro-destaques-splide .splide__list a {
        width: -webkit-fill-available;
    }
}
