.col-inner > .row:has(.intensita-wrapper),
.col > :has(.prodotti_size_container) > :not(.row)
{
    padding-right: 10% !important;
}


.row_info_prodotto {
    gap: 6rem;
}

.row_info_prodotto > .col {
    flex-basis: calc((100% - 6rem)/2);
    max-width: calc((100% - 6rem)/2);
}

.ti_interessa p, .caratteristiche_row p{
    font-size: 1.6rem !important;
    line-height: 2.4rem !important;
    font-weight: 400 !important;
}


section .row .row:has(.prodotti_size_container):before {
    content: "";
    position: relative;
    top: -2.4rem;
    height: 1px;
    width: calc(90% - 30px);
    border-top: 1px solid #334D26;
    margin-left: 15px;
}



/*------------------------- NOME PRODOTTO -------------------------*/
.prodotti_nome_container h1{
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight);
    text-align: center;
}


/*------------------------- CATEGORIA -------------------------*/
.prodotti_category{
    font-size: 1.4rem !important;
    line-height: 2.1rem !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    pointer-events: none;
    margin-bottom: .8rem;
}


/*------------------------- SIZE -------------------------*/
.prodotti_size_container p {
    font-size: 1.4rem !important;
    line-height: 2.1rem !important;
    font-weight: 400 !important;
    text-transform: uppercase;
}
.prodotti_size_container {
    margin-bottom: 4.8rem;
}


/*------------------------- DESCRIZIONE -------------------------*/


.prodotti_description_container p {
    font-size: 1.6rem !important;
    line-height: 2rem !important;
    font-weight: 400 !important;
}
.prodotti_description_container {
    margin-bottom: 3.2rem;
}




/*------------------------- KEYWORDS -------------------------*/

.keywords-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10rem;
    max-width: 85rem;
}

.keywords-container .svg-icon svg{
    height: 9rem;
    aspect-ratio: 1 / 1;
}

.keywords-container .single_keyword {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 5.5rem;
}

.keywords-container .keyword {
    font-size: 3rem !important;
    line-height: 3rem !important;
    font-weight: 400 !important;
    color: #334D25;
    position: absolute;
    bottom: -5.5rem;
}

.keywords-container .svg-icon svg path[fill='#e4c3c2']{
    fill: var(--item-bg-color, #e4c3c2) !important;
}

.keywords-container .svg-icon svg path[fill='#4d2626']{
    fill: var(--item-label-color, #4d2626) !important;
}


/*------------------------- INTENSITA -------------------------*/
.intensita-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
    padding: 1rem;
    border-radius: .8rem;
}

.intensita-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0px !important;
}

.intensita-item span{
    font-size: 1.8rem !important;
    line-height: 1.7rem !important;
    font-weight: 500 !important;
    color: #2d3e1f;
    padding-left: 2rem;
}

.intensita-item svg {
    width: auto;
    height: 3.5rem;
    transition: all 0.3s ease;
}

.intensita-item.active svg path{
    fill: #2d3e1f !important;
}


/*------------------------- GRID IMMAGINI PRODOTTO -----------------------------*/

.custom-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
}

.gallery-item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Layout collage - compatto e personalizzabile */
.gallery-item {
  min-height: 16rem;
}

.gallery-item:nth-child(1) { grid-area: 1 / 1 / 3 / 3; min-height: 34rem; }
.gallery-item:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.gallery-item:nth-child(3) { grid-area: 1 / 4 / 2 / 5; }
.gallery-item:nth-child(4) { grid-area: 3 / 1 / 4 / 2; }
.gallery-item:nth-child(5) { grid-area: 3 / 2 / 4 / 3; }
.gallery-item:nth-child(6) { grid-area: 2 / 3 / 4 / 5; min-height: 34rem; }

.gallery-item:nth-child(n+7) { display: none; }


/*------------------------- SLIDER IMMAGINI PRODOTTO -------------------------*/
.banner_gallery {
    border-radius: 2.3rem;
    overflow: hidden;
}

.banner_gallery .banner-bg.fill{
    background-color: var(--item-bg-color, #E4C3C2);
}

.slider-gallery-container {
    position: relative;
    max-width: 70rem;
    height: 65rem;
    margin: auto;
    overflow: hidden;
}
.slider-gallery-container .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slider-gallery-container .slider-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}
.slider-gallery-container .slider-slide img {
    max-height: 60rem;
    object-fit: cover;
    display: block;
}
.slider-gallery-container .slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent!important;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}
.slider-gallery-container .slider-button-prev { left: 10px; }
.slider-gallery-container .slider-button-next { right: 10px; }
.slider-gallery-container .slider-pagination {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    display:none;
}
.slider-gallery-container .slider-dot {
    width: 16px;
    height: 16px;
    background: transparent;
    border: solid 1px #334D26;
    border-radius: 50%;
    cursor: pointer;
}
.slider-gallery-container .slider-dot.active {
    background: #334D26;
}


@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    .row_info_prodotto > .col {
        flex-basis: 100%;
        max-width: 100%;
    }
    .intensita-wrapper {
        justify-content: flex-start;
        padding: 1rem 0;
    }
    .keywords-container {
        display: flex;
        justify-content: space-evenly;
        margin-top: 6rem;
        max-width: 85rem;
        flex-wrap: wrap;
        gap: 4rem;
    }
    .scopri_prodotti img {
        height: 50rem;
    }
    .slider-gallery-container .slider-slide img {
        max-height: 20rem;
        min-width: 100%;
    }
    .slider-gallery-container {
        height: 20rem;
    }

    /*------------------------- GRID IMMAGINI PRODOTTO -----------------------------*/

    .custom-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important; /* resetta righe fisse */
        padding: 0;
    }

    .gallery-item {
        grid-area: auto !important;
        min-height: 9rem;
    }

    /* Pattern: 1 grande sopra, 2 piccole sotto */
    .gallery-item:nth-child(1) { grid-column: 1 / -1 !important; min-height: 18rem !important; }
    .gallery-item:nth-child(2) { grid-column: 1 / 2 !important; min-height: 9rem !important; }
    .gallery-item:nth-child(3) { grid-column: 2 / 3 !important; min-height: 9rem !important; }

    .gallery-item:nth-child(4) { grid-column: 1 / -1 !important; min-height: 18rem !important; }
    .gallery-item:nth-child(5) { grid-column: 1 / 2 !important; min-height: 9rem !important; }
    .gallery-item:nth-child(6) { grid-column: 2 / 3 !important; min-height: 9rem !important; }
    

}