
@media only screen and (max-width: 290px) {

    #card-1 {
        min-width: 240px !important;
    }
}

@media only screen and (max-width: 600px) {

    #card-1 {
        margin-right: 7%;
    }

        #card-1 h3 {
            font-size: 1.6em !important;
        }

        #card-1 div {
            font-size: 12px !important;
        }

    .rettangoli {
        right: 5% !important;
        display:none;
    }

    .sm_rettangoli {
        display: inline !important;
    }
}

@media only screen and (min-width: 601px) {

    .rettangoli {
        display: flex;
        flex-direction: column;
    }

    #card-1 {
        margin-right: 15%;
    }
}


/* sezione hero */
.sezione-hero {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-height: 570px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#card-1 {
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    min-width: 290px;
    height: 370px;
    padding: 3% 3% 3% 3%;
    margin-left: auto;
    margin-top: 30px;
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    #card-1 h3 {
        font-size: 2.2em;
        font-weight: bold;
        margin-bottom: 4%;
    }

    #card-1 div {
        /* font-size: 1.2em; */
        font-size: 17px;
        font-weight: 400;
        /*margin-bottom: 4%;*/
        /*padding-bottom: 4%;*/
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: justify;
        display: block; /* Fallback for non-webkit */
        display: -webkit-box;
        /*-webkit-line-clamp: 7;*/
        -webkit-box-orient: vertical;
        /*  height: 10.4em;
    line-height: 1.3em;*/
    }

        #card-1 div a {
            color: black;
        }

    #card-1 button {
        margin-top: auto;
        width: 7em;
        height: 3em;
        outline: none;
        border: none;
        background-color: #00783D;
        color: #FFFFFF;
        font-size: 1.2em;
        font-weight: 500;
        transition: all 200ms cubic-bezier(0.390, 0.500, 0.150, 1.360);
    }

        #card-1 button:hover {
            background-color: #5d9d66;
        }

.rettangoli {
    position: relative;
    right: 13%;
    width: 10px;
    height: 370px;
    justify-content: space-between;
    margin-top: 30px;
}

    .rettangoli button {
        border: none;
    }

#rect1, #rect2, #rect3, #rect4, #rect5, #rect6, #rect7, #rect8, #rect9 {
    width: 10px;
    cursor: pointer;
}

.sm_rettangoli {
    display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 110px;
    padding: 0px 15%;
    justify-content: center;
}
    
.sm_rettangoli button {
        border: none;
    }

#sm_rect1, #sm_rect2, #sm_rect3, #sm_rect4, #sm_rect5, #sm_rect6, #sm_rect7, #sm_rect8, #sm_rect9 {
    height: 10px;
    cursor: pointer;
}