@import url('global.css');

/* ===================================================================
                CONTENT
=================================================================== */

.content-section {
}

    .content-section .content-top {
        display: flex;
        padding-top: 10px;
    }

        .content-section .content-top .left-div {
            flex: 0 0 70%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-right: 10px
        }

            .content-section .content-top .left-div img {
                width: 100%;
                height: auto;
                display: block;
            }

        .content-section .content-top .right-div {
            flex: 1;
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Cambiato da center a space-between */
            position: relative;
            background-color: var(--main-blue);
        }

            .content-section .content-top .right-div .right-top {
                color: var(--main-white);
                font-size: 2rem;
                font-weight: 800;
                align-self: flex-start; /* Assicura che stia in alto */
                line-height: 2rem;
            }

            .content-section .content-top .right-div .right-text {
                position: absolute;
                top: 20px;
                right: 20px;
                color: var(--main-white);
                font-size: 1.2rem;
            }


            /* Wrapper per gli elementi che vanno in basso */
            .content-section .content-top .right-div .right-bottom {
                display: flex;
                flex-direction: column;
                gap: 10px; /* Spazio tra gli elementi in basso */
            }

                .content-section .content-top .right-div .right-bottom img {
                    position: absolute;
                    bottom: 0;
                    right: 0px;
                }

                .content-section .content-top .right-div .right-bottom h2 {
                    font-size: 3.5rem;
                    font-weight: 800;
                    line-height: 3rem;
                }






.content-middle {
    display: flex;
    flex-direction: column;
}


    .content-middle .middle-text {
        margin: 60px;
    }

        .content-middle .middle-text h1 {
            max-width: 500px;
            padding: 50px 0 50px 0;
            font-weight: 300;
            line-height: 4rem;
            font-size: 3rem;
            line-height: 3.5rem;
        }

        .content-middle .middle-text h2 {
            max-width: 500px;
            padding: 50px 0 50px 0;
            font-weight: 300;
            line-height: 4rem;
        }


        .content-middle .middle-text .middle-text-desc {
            max-width: 550px;
        }

            .content-middle .middle-text .middle-text-desc p {
                font-size: 1.5rem;
                line-height: 1.7rem;
                font-weight: 300;
                padding-bottom:30px;
            }

    .content-middle .middle-img {
        padding: 50px 0 50px 0;
    }

        .content-middle .middle-img img {
            width: 100%;
        }







.content-numbers {
    background-color: var(--main-black);
    color: var(--main-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.number-title {
    text-align: center;
    padding: 2rem 4rem;
    border-bottom: 2px solid var(--main-white);
}

    .number-title p:first-child {
        font-size: 2rem;
        margin-bottom: 1rem;
        float: left;
        padding-top: 2rem;
        margin-left: 80px;
    }

    .number-title p:last-child {
        font-size: 5rem;
        font-weight: bold;
        line-height: 5rem;
        text-align: left;
        text-indent: 60px;
    }

.number-value {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.number-row {
    display: flex;
    flex: 1;
}

    .number-row:not(:last-child) {
        border-bottom: 2px solid var(--main-white);
    }

.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

    .stat-item:not(:last-child) {
        border-right: 2px solid var(--main-white);
    }

/* Prima riga - layout specifico */
.number-row-1 .crescita {
    flex: 2;
}

.number-row-1 .middle-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .number-row-1 .middle-column .stat-item {
        flex: 1;
    }

    .number-row-1 .middle-column .clienti-attivi {
        border-bottom: 2px solid var(--main-white);
    }

    .number-row-1 .middle-column .dipendenti {
        border-right: 2px solid var(--main-white);
    }

.number-row-1 .spazi-produttivi {
    flex: 1;
}

/* Seconda riga - tutti uguali */
.number-row-2 .stat-item {
    flex: 1;
}
.number-desc{
    font-size:2.5rem;
    font-weight:300;
    line-height:2.5rem;
}

.number-type-a {
    font-size: 6rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1rem;
}

.number-type-a span:first-child {
    font-size: 6rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1rem;
}

.number-type-b {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1rem;
}

.number-type-b span {
    font-size: 1rem;
}



.content-bottom {
    position:relative;
    padding-bottom:50px;
}

    .content-bottom .bottom-text {
        padding: 100px 0 100px 100px;
        max-width: 560px;
        position:relative;
    }
        .content-bottom .bottom-text img {
            right: 6px;
            position: absolute;
            bottom:10px;
        }

        .content-bottom .bottom-text p {
            font-size: 1.5rem;
            line-height: 1.7rem;
            font-weight: 300;
        }

    .content-bottom .bottom-img {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        z-index: -1;
    }



/* ===================================================================
        RESPONSIVE - TABLET E MOBILE (max-width: 1279px)
        =================================================================== */
@media (max-width: 1279px) {
    .content-middle {
        margin: 10px;
    }

    /*Contents*/

    .content-top {
        flex-direction: column;
        padding: unset !important;
    }

    .left-div {
        flex: none;
        width: 100%;
        padding-bottom: 10px;
        padding-right: unset !important;
    }

    .right-div {
        flex: none;
        width: 100%;
        padding: 20px;
    }

        .right-div img {
            width: 120px;
        }

    .content-bottom .bottom-img {
        position: relative;
        top: 0;
        right: 0;
        left: auto;
        z-index: -1;
    }
    .content-bottom .bottom-img img {
        width:100%;
    }
}


/* ===================================================================
         RESPONSIVE - MOBILE PICCOLO (max-width: 1024px)
         =================================================================== */


@media (max-width: 1024px) {
    .number-title p:first-child {
        margin-left: 0 !important;
        float: none !important;
        text-align: left;
    }

    .number-title p:last-child {
        font-size: 2rem;
        line-height: 2rem;
        text-indent: unset !important;
    }

    .number-type-a, .number-type-a span {
        font-size: 3rem !important;
    }

    .number-type-b, .number-type-b span {
        font-size: 2rem !important;
    }

    .number-desc {
        font-size: 1.5rem !important;
        line-height: 1.5rem !important;
    }
}

    /* ===================================================================
         RESPONSIVE - MOBILE PICCOLO (max-width: 768px)
         =================================================================== */


    @media (max-width: 768px) {
        .content-middle .middle-text {
            margin: 10px !important;
        }

        .number-row {
            flex-direction: column;
        }

        .number-row-1 .middle-column {
            flex-direction: row;
            border-bottom: 2px solid var(--main-white);
        }

        .stat-item:not(:last-child) {
            border-right: none;
            border-bottom: 2px solid var(--main-white);
        }

        .number-row-1 .middle-column .stat-item:not(:last-child) {
            border-right: 2px solid var(--main-white);
            border-bottom: none;
        }
    }

    @media (max-width: 480px) {
        .number-row-1 .middle-column {
            flex-direction: column;
        }

            .number-row-1 .middle-column .stat-item:not(:last-child) {
                border-right: none;
                border-bottom: 2px solid var(--main-white);
            }

        .stat-item {
            padding: 2rem 1rem;
        }

        .content-bottom .bottom-text {
            padding: 100px 0 100px 10px;
        }
    }
