@import url('global.css');

/* ===================================================================
                CONTENT
                =================================================================== */

.content-section {
}

    /* =========CATALOGO=======*/
    .content-section .content-top {
        display: flex;
        padding-top: 10px;
    }

        .content-section .content-top .certification-left {
            flex: 0 0 65%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-right: 10px
        }

            .content-section .content-top .certification-left img {
                width: 100%;
                height: auto;
                display: block;
            }

        .content-section .content-top .certification-right {
            flex: 1;
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Cambiato da center a space-between */
            background-color: var(--main-red);
            position: relative;
        }

            .content-section .content-top .certification-right .certification-right-top {
                font-size: 2rem;
                align-self: flex-start; /* Assicura che stia in alto */
            }

            /* Wrapper per gli elementi che vanno in basso */
            .content-section .content-top .certification-right .certification-right-bottom {
                display: flex;
                flex-direction: column;
                gap: 10px; /* Spazio tra gli elementi in basso */
            }

                .content-section .content-top .certification-right .certification-right-bottom h1 {
                    color: var(--main-white);
                    font-size: 3rem;
                    line-height: 3rem;
                    font-weight: 800;
                }

                .content-section .content-top .certification-right .certification-right-bottom > span:nth-child(1) {
                    color: var(--main-black);
                    font-size: 3rem;
                    line-height: 3rem;
                }

                .content-section .content-top .certification-right .certification-right-bottom .vertical-right-text {
                    -webkit-transform: rotate(-90deg);
                    position: absolute;
                    top: 100px;
                    right: -30px;
                }

            .content-section .content-top .certification-right div > span:nth-child(1) {
                font-size: 1.5rem;
                font-weight: 700;
                line-height: 1.5rem;
            }

            .content-section .content-top .certification-right .certification-right-bottom div > span:nth-child(2) {
                color: var(--main-black);
                font-size: 1rem;
                line-height: 1rem;
                padding-left: 20px
            }

            .content-section .content-top .certification-right .certification-right-bottom div > img {
                margin-bottom: -3px;
                width: 19px;
                height: 19px;
            }

.content-middle {
    margin: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    .content-middle .content-certification {
        display: flex;
        flex-wrap: wrap;
    }

        .content-middle .content-certification .certification-left {
            flex: 55%;
        }
        .content-middle .content-certification .certification-right {
            flex: 44%;
        }

            .content-middle .content-certification .certification-left h2 {
                font-size: 2.5rem;
                line-height:2.5rem;
            }

            .content-middle .content-certification .certification-left h3,
            .content-middle .content-certification .certification-left p {
                padding: 10px 0 10px 0;
                max-width: 700px;
                font-weight: 300;
                font-size:1.5rem;
                line-height: 1.7rem;
            }

            .content-middle .content-certification .certification-left a {
                margin-top:50px;
            }

    .content-middle .content-other-certification {
        display: flex;
        padding-top: 100px;
        gap: 45px;
        justify-content: center;
        flex-wrap: wrap;
    }

        .content-middle .content-other-certification article {
            flex: 1;
            display: flex;
            max-width: 200px;
            flex-direction: column;
            padding-bottom: 80px;
        }



            .content-middle .content-other-certification article .read-more-label {
                display: inline-block;
                color: var(--main-blue);
                cursor: pointer;
                font-weight: 300;
                margin-bottom: 40px;
                font-size:0.8rem;
                text-decoration: none;
            }

            .content-middle .content-other-certification article .expandable-text {
                position: relative;
            }

/* Quando il checkbox è checked, espandi il testo */
.expandable-text input[type="checkbox"]:checked ~ .text-content {
    -webkit-line-clamp: unset;
    max-height: none;
}

.expandable-text input[type="checkbox"]:checked ~ .read-more-label::after {
    content: " [mostra meno]";
}

.expandable-text input[type="checkbox"]:not(:checked) ~ .read-more-label::after {
    content: " [continua a leggere]";
}

.content-middle .content-other-certification article.short-text .read-more-label::after {
    display:block;
    content:"";
    height: 18px;
}

.expandable-text input[type="checkbox"] {
    display: none;
}

            .content-middle .content-other-certification article p {
                font-weight: 300;
                line-height: 1.2rem;
                margin: 40px 0 0 0;
            }

                .content-middle .content-other-certification article .text-content {
                    display: -webkit-box;
                    -webkit-line-clamp: 4;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    transition: all 0.3s ease;
                }



            

.content-bottom .content-require-certification {
    display: flex;
    flex-direction: column;
    background-color: var(--main-lightgray);
    padding: 100px;
}

    .content-bottom .content-require-certification h2 {
        flex: 1;
        font-size: 5rem;
        font-weight: 800;
    }

    .content-bottom .content-require-certification h3 {
        flex: 1;
        font-size: 3.5rem;
        max-width: 1280px;
        line-height: 3rem;
        padding: 40px 0 40px 0;
        font-weight: 800;
    }



/* ===================================================================
        RESPONSIVE - TABLET E MOBILE (max-width: 1480px)
        =================================================================== */
@media (max-width: 1480px) {
    .content-section .content-top .certification-right .certification-right-bottom h1 {
        font-size: 2.5rem;
        line-height: 2.5rem;
        font-weight: 800;
    }
}
/* ===================================================================
        RESPONSIVE - TABLET E MOBILE (max-width: 1279px)
        =================================================================== */

@media (max-width: 1279px) {
    /*Contents*/

    .content-top {
        flex-direction: column;
        padding: unset !important;
    }

    .certification-left {
        flex: none;
        width: 100%;
        padding-bottom: 10px;
        padding-right: unset !important;
    }

    .certification-right {
        flex: none;
        width: 100%;
    }

        .certification-right h2 {
            font-size: 20px;
        }

    .content-section .content-top .certification-right .certification-right-bottom .vertical-right-text{
        right:-65px;
        top:43%;
    }
    .content-middle .content-certification .certification-left h3,
    .content-middle .content-certification .certification-left p {
        font-size: 1rem;
        line-height:1.2rem;

    }
}


/* ===================================================================
        RESPONSIVE - TABLET E MOBILE (max-width: 1120px)
        =================================================================== */

@media (max-width: 1120px) {

    
}


/* ===================================================================
         RESPONSIVE - MOBILE PICCOLO (max-width: 1024px)
         =================================================================== */

@media (max-width: 1024px) {
    .content-middle {
        margin: 60px;
    }

        .content-middle .content-certification {
            flex-direction: column;
        }

    
}

/* ===================================================================
         RESPONSIVE - MOBILE PICCOLO (max-width: 768px)
         =================================================================== */

@media (max-width: 768px) {

    .content-bottom .content-require-certification {
        text-align: center;
    }


    .content-middle .content-other-certification article p {
        padding: 20px 0 20px 0;
    }

    .content-middle .content-certification .certification-left {
        text-align: center;
    }
}
/* ===================================================================
         RESPONSIVE - MOBILE PICCOLO (max-width: 478px)
         =================================================================== */

@media (max-width: 478px) {
    .content-section .content-top .certification-right .certification-right-bottom h1 {
        font-size: 2rem;
        line-height: 2rem;
    }
}
