/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f7f8f7;
    color: #17232d;
}


/* =========================
   PAGINA
========================= */

.pagina {
    width: 96%;
    max-width: auto;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e6e9e7;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 500px;

    display: grid;
    grid-template-columns: 50% 50%;

    border-bottom: 1px solid #e5e8e6;

    overflow: hidden;
    position: relative;
}


.hero-content {
    padding: 50px 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
    z-index: 2;
}

/* tasto ritorno*/

.back-link {

    color: #258b3d6c;
    text-decoration: none;

    font-size: 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    margin: 6px 1250px 6px 12px;

}


.back-link:hover  span{
    color: #176c2b;
    text-decoration: underline;
    
}



/*fine*/


.hero h1 {
    font-size: clamp(42px, 4vw, 68px);
    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -2px;

    margin-bottom: 28px;
}


.linea-verde {
    width: 65px;
    height: 4px;

    background: #2e963f;

    margin-bottom: 28px;
}


.hero p {
    max-width: 480px;

    font-size: 22px;
    line-height: 1.55;

    color: #34414b;
}

/* ==========================
   HERO IMAGE
========================== */
.hero-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
    overflow: hidden;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent 8%,
        rgba(0,0,0,.08) 22%,
        rgba(0,0,0,.30) 34%,
        rgba(0,0,0,.70) 48%,
        #000 62%,
        #000 100%
    );

    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent 8%,
        rgba(0,0,0,.08) 22%,
        rgba(0,0,0,.30) 34%,
        rgba(0,0,0,.70) 48%,
        #000 62%,
        #000 100%
    );
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center center;
}
/* =========================
   CATEGORIE
========================= */

.categorie {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    padding: 40px 25px;

    border-bottom: 1px solid #e5e8e6;
}


.categoria {

    min-height: 170px;

    padding: 15px 35px;

    text-align: center;

    border-right: 1px solid #dfe3e1;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.categoria:last-child {
    border-right: none;
}


.categoria i {
    font-size: 48px;

    color: #2e963f;

    margin-bottom: 25px;
}


.categoria h3 {
    font-size: 19px;

    margin-bottom: 15px;

    font-weight: 700;
}


.categoria p {
    color: #59636b;

    font-size: 16px;

    line-height: 1.55;
}


/* =========================
   ROBOT
========================= */

.robot-section {

    min-height: 360px;

    display: grid;

    grid-template-columns:
        65% 35%;

    align-items: center;

    padding: 55px 60px;

    border-bottom: 1px solid #e5e8e6;
}

.robot-text{

    min-width: 90%;
}


.robot-text h2 {

    font-size: 34px;

    margin-bottom: 25px;
}


.robot-text .linea-verde {

    margin-bottom: 25px;
}


.robot-text p {

    max-width: auto;

    font-size: 17px;

    line-height: 1.7;

    color: #56616a;

    margin-bottom: 30px;
}


.btn {

    display: inline-block;

    padding: 13px 22px;

    background: #319c45;

    color: white;

    text-decoration: none;

    border-radius: 6px;

    font-weight: 600;

    transition: .2s;
}


.btn:hover {

    background: #267e36;

    transform: translateY(-2px);
}


/* ==========================
   IMMAGINE ROBOT
========================== */

.robot-image {
    width: 100px;
    height: 100px;

    overflow: hidden;
    border-radius: 50%;

    margin-left: auto;
    margin-right: 50px;

    /* BORDI SFUMATI */
    -webkit-mask-image: radial-gradient(
        circle,
        #000000a1 55%,
        rgba(0, 0, 0, 0.103) 68%,
        rgba(0,0,0,0.55) 80%,
        rgba(0,0,0,0.20) 91%,
        transparent 100%
    );

    mask-image: radial-gradient(
        circle,
        #0000008a 55%,
        rgba(0, 0, 0, 0.514) 68%,
        rgba(0,0,0,0.55) 80%,
        rgba(0,0,0,0.20) 91%,
        transparent 100%
    );

    transition: transform 0.6s ease;
}



/* IMMAGINE */

.robot-image img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;



    transition: transform 0.6s ease;
}


/* ==========================
   HOVER
========================== */

.robot-image:hover {
    transform: scale(1.40);
}

/* ==========================
   HOVER
========================== */


.robot-image:hover {
    transform: scale(1.40);

    -webkit-mask-image: radial-gradient(
        circle,
        #000 72%,
        rgba(0,0,0,0.8) 88%,
        transparent 100%
    );

    mask-image: radial-gradient(
        circle,
        #000 72%,
        rgba(0,0,0,0.8) 88%,
        transparent 100%
    );
}


/*testo collassato*/

.testo-collassato {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    min-width: 1150px;

    overflow: hidden;

    line-height: 1.6;
    margin-bottom: 25px;
}

/* Quando viene premuto Approfondisci */
.testo-collassato.aperto {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: 100%;
    overflow: visible;
}

/* Effetto puntini finale */
.testo-collassato:after {
    content: "...";
}

/* Testo completamente visibile */
.testo-collassato.aperto {
    display: block;
    overflow: visible;
}

.testo-collassato.aperto::after
 {
    content: "";
}


/* =========================
   VANTAGGI
========================= */

.vantaggi {

    padding: 45px 50px 60px;
}


.vantaggi > h2 {

    text-align: center;

    font-size: 27px;

    margin-bottom: 50px;
}


.vantaggi-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}


.vantaggio {

    text-align: center;

    padding: 10px 30px;
}


.vantaggio i {

    font-size: 40px;

    color: #2e963f;

    margin-bottom: 25px;
}


.vantaggio h3 {

    font-size: 17px;

    margin-bottom: 15px;
}


.vantaggio p {

    color: #59636b;

    line-height: 1.7;

    font-size: 15px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .hero {

        grid-template-columns: 1fr;

    }


    .hero-image {

        height: 350px;

    }


    .categorie {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .categoria:nth-child(2) {

        border-right: none;

    }


    .categoria {

        margin-bottom: 20px;

    }


    .robot-section {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .robot-image {

        order: -1;

    }


    .vantaggi-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 40px;

    }

}


@media (max-width: 600px) {

    .pagina {

        width: 100%;

        margin: 0;

        border: none;

    }


    .hero-content {

        padding: 35px 25px;

    }


    .hero h1 {

        font-size: 40px;

    }


    .hero p {

        font-size: 18px;

    }


    .categorie {

        grid-template-columns: 1fr;

        padding: 25px;

    }


    .categoria {

        border-right: none;

        border-bottom: 1px solid #e5e8e6;

        padding: 30px;

    }


    .categoria:last-child {

        border-bottom: none;

    }


    .robot-section {

        padding: 40px 25px;

    }


    .vantaggi {

        padding: 40px 25px;

    }


    .vantaggi-grid {

        grid-template-columns: 1fr;

    }

}