﻿/* Schermi grandi o ad alta risoluzione */
@media screen and (min-width: 1690px) {

    .content-main {
        display: flex;
        align-self: center;
        justify-self: center;
        gap: 0.8rem;
        grid-area: carrousel;
        width: 70rem;
    }

    .content {
        display: grid;
        grid-template-rows: 26rem 3rem;
        height: 29rem;
        width: 100%;
        gap: 0.5rem;
        overflow: hidden;        
        align-self: center;
        justify-self: center;
    }

        .content-head {
            display: grid;
            grid-template-columns: 3rem auto 3rem;
            gap: 0.6rem;
        }

        .content-head > div {
            display: flex;
            align-self: center;
            justify-self: center;           
        }

    .images {
        display: flex;
        align-self: center;
        justify-self: center;
    }

        .images img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .btm-slides {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .btm-slides span {
            height: 1.2rem;
            width: 1.2rem;
            border: none;
            background-color: var(--colorSlider);
            margin: 0 0.5rem;
            cursor: pointer;
            
        }

    .sliders {
        width: 3rem;
        height: 3rem;
        cursor: pointer;
        border: none;
        background-color: var(--colorSlider);
        z-index: 10;
        border-radius: 50% 50%;
    }

    .right {
        background-image: url(../svg/arrow-next.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }

    .left {
        background-image: url(../svg/arrow-prev.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }
   
}

/* Schermi Desktop o Portatili */
@media screen and (min-width: 1280px) and (max-width: 1689px) {
    .content-main {
        display: flex;
        align-self: center;
        justify-self: center;
        gap: 0.8rem;
        grid-area: carrousel;
        width: 70rem;
    }

    .content {
        display: grid;
        grid-template-rows: 26rem 3rem;
        height: 29rem;
        width: 100%;
        gap: 0.5rem;
        overflow: hidden;
        align-self: center;
        justify-self: center;
    }

    .content-head {
        display: grid;
        grid-template-columns: 3rem auto 3rem;
        gap: 0.6rem;
    }

        .content-head > div {
            display: flex;
            align-self: center;
            justify-self: center;
        }

    .images {
        display: flex;
        align-self: center;
        justify-self: center;
    }

        .images img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .btm-slides {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .btm-slides span {
            height: 1.2rem;
            width: 1.2rem;
            border: none;
            background-color: var(--colorSlider);
            margin: 0 0.5rem;
            cursor: pointer;
        }

    .sliders {
        width: 3rem;
        height: 3rem;
        cursor: pointer;
        border: none;
        background-color: var(--colorSlider);
        z-index: 10;
        border-radius: 50% 50%;
    }

    .right {
        background-image: url(../svg/arrow-next.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }

    .left {
        background-image: url(../svg/arrow-prev.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }

    
}

/* Tablet in modalità verticale */
@media screen and (min-width: 737px) and (max-width: 1279px) {
    .content-main {
        display: flex;
        align-self: center;
        justify-self: center;
        gap: 0.8rem;
        grid-area: carrousel;
        width: 24rem;
        height: 23rem;
    }

    .content {
        display: grid;
        grid-template-rows: 18rem 4rem;
        height: 21rem;
        width: 100%;
        gap: 0.5rem;
        overflow: hidden;
        margin: 0 auto;
    }

    .content-head {
        display: grid;
        grid-template-columns: 2rem 15rem 2rem;
        gap: 0.6rem;
        align-self: center;
        justify-self: center;
    }

        .content-head > div {
            display: flex;
            align-self: center;
            justify-self: center;
        }

    .images {
        display: flex;
        align-self: center;
        justify-self: center;
        height: 19rem;
        width: 100%;
    }

        .images img {
            display: inline;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .btm-slides {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .btm-slides span {
            height: 1.2rem;
            width: 1.2rem;
            border: none;
            background-color: var(--colorSlider);
            margin: 0 0.5rem;
            cursor: pointer;
        }

    .sliders {
        width: 2rem;
        height: 2rem;
        cursor: pointer;
        border: none;
        background-color: var(--colorSlider);
        z-index: 1;
        border-radius: 50% 50%;
    }

    .right {
        background-image: url(../svg/arrow-next.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }

    .left {
        background-image: url(../svg/arrow-prev.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }

   
}

/* Tablet in modalità horizontal */
@media screen and (min-width: 481px) and (max-width: 736px) {
    .content-main {
        display: flex;
        align-self: center;
        justify-self: center;
        gap: 0.8rem;
        grid-area: carrousel;
        width: 24rem;
        height: 23rem;
    }

    .content {
        display: grid;
        grid-template-rows: 18rem 4rem;
        height: 21rem;
        width: 100%;
        gap: 0.5rem;
        overflow: hidden;
        margin: 0 auto;
    }

    .content-head {
        display: grid;
        grid-template-columns: 2rem 15rem 2rem;
        gap: 0.6rem;
        align-self: center;
        justify-self: center;
    }

        .content-head > div {
            display: flex;
            align-self: center;
            justify-self: center;
        }

    .images {
        display: flex;
        align-self: center;
        justify-self: center;
        height: 19rem;
        width: 100%;
    }

        .images img {
            display: inline;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .btm-slides {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .btm-slides span {
            height: 1.2rem;
            width: 1.2rem;
            border: none;
            background-color: var(--colorSlider);
            margin: 0 0.5rem;
            cursor: pointer;
        }

    .sliders {
        width: 2rem;
        height: 2rem;
        cursor: pointer;
        border: none;
        background-color: var(--colorSlider);
        z-index: 1;
        border-radius: 50% 50%;
    }

    .right {
        background-image: url(../svg/arrow-next.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }

    .left {
        background-image: url(../svg/arrow-prev.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }

}

/* Smartphone o piccoli Tablet */
@media screen and (max-width: 480px) {
    .content-main {
        display: flex;
        align-self: center;
        justify-self: center;
        gap: 0.8rem;
        grid-area: carrousel;
        width: 23rem;
        height: 23rem;
    }

    .content {
        display: grid;
        grid-template-rows: 18rem 4rem;
        height: 21rem;
        width: 100%;
        gap: 0.5rem;
        overflow: hidden;
        margin: 0 auto;
    }

    .content-head {
        display: grid;
        grid-template-columns: 2rem 15rem 2rem;
        gap: 0.6rem;
        align-self: center;
        justify-self: center;
    }

        .content-head > div {
            display: flex;
            align-self: center;
            justify-self: center;
        }

    .images {
        display: flex;
        align-self: center;
        justify-self: center;
        height: 19rem;
        width: 100%;
    }

        .images img {
            display:inline;
            width: 100%;
            height: 100%;
            object-fit:cover;
        }

    .btm-slides {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .btm-slides span {
            height: 1.2rem;
            width: 1.2rem;
            border: none;
            background-color: var(--colorSlider);
            margin: 0 0.5rem;
            cursor: pointer;
        }

    .sliders {
        width: 2rem;
        height: 2rem;
        cursor: pointer;
        border: none;
        background-color: var(--colorSlider);
        z-index: 1;
        border-radius: 50% 50%;
    }

    .right {
        background-image: url(../svg/arrow-next.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }

    .left {
        background-image: url(../svg/arrow-prev.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
    }
}
