﻿html, body {
    height: 100%; /* serve per ancorare il 100% */
    margin: 0;
    overflow: hidden; /* disabilita lo scroll del body */
}

.page {
    height: 100vh; /* occupa tutto il viewport */
    overflow-y: auto; /* abilita lo scroll verticale */
    overflow-x:hidden;
}

/*FUNZIONAMENTO-------------------------------------------*/
/*.law-item a.cta.learn-more {
    position: relative;
    z-index: 10;
    display: inline-flex;*/ /* evita aree strane */
/*}

.law-item a.cta.learn-more * {
    pointer-events: none;*/ /* i figli NON prendono click */
/*}

.law-item a.cta.learn-more {
    pointer-events: auto;*/ /* il link SÌ */
/*}*/
/*--------------------------------------------------------*/
/*HERO-------------------------------------------------------------------*/
.hero {
    min-height: 300px;
    background-color: white;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    padding-top: 240px;
    padding-bottom: 380px;
    position:relative;overflow:hidden;
}
.hero-copy{position:relative;}
.video-bg {
    position: absolute;
    top: 0px;
    height: 101%;
    left: 500px;
}
.video-bg video {
    height: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    clip-path: inset(1px 1px);
}

.hero-eyebrow {
    display: block;
    color: var(--ink);
    font-weight: 400;
    font-size: 5rem;
    letter-spacing: -.01em;
}

.hero-title {
    font-size: 5rem;
    color: var(--nav-color);
    font-weight: 700;
    line-height: 0.35;
    margin-bottom: 65px;
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1rem);
    color: #004F70;
    max-width: 50%;
    font-weight: 700;
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.4rem
}
/*-----------------------------------------------------------------------*/
/*SOLUTIONS--------------------------------------------------------------*/
.solutions {
    position: relative;
    padding-top: 150px;
}
.solution-container {
    display: flex;
    justify-content: center;
}
#solution-title-container {
    height: 580px;
    width: 63%;
    background: linear-gradient(145deg, #E4F0F5 0%, #EBF3F6 55%, #FFFFFF 100%);
    position: absolute;
    border-top-left-radius: 290px;
    border-bottom-right-radius: 100px;
    border-bottom-left-radius: 290px;
    top: -160px;
    right: 0px;
    padding: 100px;
    padding-left: 250px;
}

.solution-title {
    font-size: 2.60rem;
    margin-bottom: 30px;
}

.solution-title-container-text {
    width: 550px;
}

.solution-description {
    font-size: 1rem;
}

.cards {
    position: relative;
    z-index: 4;
    width: min(100% - 2rem, var(--max-w));
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: clamp(.8rem, 2vw, 1rem);
    margin-bottom: 280px;
}

.s-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e7edf5;
    padding: 80px 20px 40px 20px;
    box-shadow: 0 24px 48px rgba(0,0,0,.12);
    height: 500px;
    position:relative;
}
#show-onMobile{display:none;}
.s-card-image{display:flex;justify-content:center;height:130px;margin-bottom:55px;position:relative;}
.blue-box {
    height: 60px;
    width: 60px;
    position: absolute;
    background: linear-gradient(180deg, #3A8DB6 0%, #3A8DB6 25%, #004D71 100%);
    top: -20px;
    right: 50px;
    border-radius: 20px;
}
.s-card-image img{height:100%;position:relative;}
.s-cta-position{position:absolute;bottom:50px;}
.s-card h3 {
    font-size: 1.5rem;
    line-height: 1.8rem;
    margin-bottom: 15px;
}
.s-card p{font-size:1rem;line-height:1.375rem}
.solutions .cards .s-card:nth-child(1) {border-top-left-radius: 100px;}
.solutions .cards .s-card:nth-child(2) {border-bottom-right-radius: 100px;}
.solutions .cards .s-card:nth-child(3) {border-top-right-radius: 100px;}
.solutions .cards .s-card:nth-child(4) {border-bottom-left-radius: 100px;}
.card-text {
    margin-bottom: 30px;
    height: 140px;
    padding: 0px 10px;
}

.s-cta {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #7a7aea;
    font-weight: 700;
    font-size: .9rem;
}
.s-cta .dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg,#b59cff,#a98dff)
}
.s-cta .dot svg {
    width: 16px;
    height: 16px;
    fill: #fff
}
.learn-more {
    position: relative;
    cursor: pointer;
    outline: 0;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    width: 12rem;
    height: 3rem;
    border-radius: 1.625rem;
    display: flex;
    align-items: center;
}

.learn-more .circle {
    transition: all .45s cubic-bezier(0.65,0,.076,1);
    width: 2rem;
    height: 2rem;
    background: var(--rosaScuro);
    border-radius: 1rem;
    z-index: 1;
    pointer-events: none;
}

.learn-more .circle .icon {
    transition: all .45s cubic-bezier(0.65,0,.076,1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff
}

.learn-more .circle .icon.arrow {
    left: .625rem;
    width: 1.125rem;
    height: .125rem;
    background: none
}

.learn-more .circle .icon.arrow::before {
    content: "";
    position: absolute;
    top: -.25rem;
    right: 0.5rem;
    width: .625rem;
    height: .625rem;
    border-top: .125rem solid #fff;
    border-right: .125rem solid #fff;
    transform: rotate(45deg)
}

.learn-more .button-text {
    transition: all .45s cubic-bezier(0.65,0,.076,1);
    position: absolute;
    inset: 0;
    padding: .75rem 0;
    margin: 0 0 0 2rem;
    color: var(--rosaScuro);
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    z-index: 2;
}

.learn-more:hover .circle {
    width: 100%
}

.learn-more:hover .circle .icon.arrow {
    transform: translate(1rem,0)
}

.learn-more:hover .button-text {
    color: #fff
}

/*STRAPLINE--------------------------------------------------------------*/
.strapline {
    margin-bottom: 300px;
}
.strapline.hidden .strap-row .strap-top{opacity:0}
.strapline.hidden .strap-bottom{opacity:0}

.strapline-container {
    width: 70%;
    margin: auto;
}

.strap-top {
    display: inline-block;
    color: white;
    font-weight: 400;
    font-size: 2.625rem;
    letter-spacing: .01em;
}

.strap-bottom {
    font-weight: 600;
    font-size: 2.5rem;
    margin-top: -15px;
    color: white;
    text-align: center;
}

.strap-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.75rem, 2.5vw, 2rem)
}


/*ATOM SECTION*/
.atom {
    background: var(--brand-dark);
    color: #e6f3f8;
    /*overflow: hidden;*/
    position: relative;
}

.atom-container {
    display: flex;
    height: 520px;
    margin-bottom: 200px;
    align-items: center;
}

.atom-copy {
    height: 100%;
    padding: 80px 40px;
}

.atom-copy h2 {
    font-size: 2.625rem;
    font-weight: 400;
    line-height: 3rem;
    margin-bottom: 50px;
}

.atom h3 {
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
    color: #fff;
    margin: .2rem 0 1rem
}

.atom-first-p {
    color: #d3e7ef;
    max-width: 48ch;
    font-size: 1.25rem;
    line-height: 1.6rem;
    margin-bottom: 25px;
}

.atom .lead {
    color: #d3e7ef;
    max-width: 48ch;
    font-size: 1.25rem;
    line-height: 1.6rem;
    margin-bottom: 40px;
}

.atom-visual {width: 62%;height: 100%;}
.atom-visual .img-wrap {
    height: 100%;
    position: relative;
    width:100%;
    display:flex;
    align-items:center;
}

.atom-visual .img-wrap img {    
    object-fit: contain;
    width:95%
}


.atom-section-button {
    box-shadow: none;
}
.atom-dots {height: 680px;position: absolute;left: -120px;z-index: 1;width: 100px;top: -52px;}
.atom-dots img {
    height: 100%;
}
/*WHY------------------------------------------*/
.why {
    position: relative;
    isolation: isolate;
    background: linear-gradient(to bottom, var(--brand-dark) 0 50%, #ffffff 50% 100%);
    padding: clamp(3rem, 7vw, 5rem) 0;
}

#forma-why {
    position: absolute;
    z-index: 2;
    top: -7%;
    right: 15%;
}

.why::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(100% + var(--lines-extend, 140vh)); /* estende dentro SERVICES */
    /*background-image: url('https://www.agileidea.it/img/Linee%20sfondo.svg');*/
    background-image: url('../../../img/Linee.png');
    background-repeat: no-repeat;
    background-size: 115% auto;
    background-position: left -80px top -40px; /* allineamento coerente */
    opacity: .9;
    z-index: 0;
    pointer-events: none;
}

.why-panel {
    background: linear-gradient(145deg, #E4F0F5 0%, #EBF3F6 55%, #FFFFFF 100%);
    border-radius: 140px;
    padding: 140px 0px 80px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
    position: relative;
    z-index: 1;
}

.why-grid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.why-left {
    width: 27%;
}

.why-left h2 {
    font-size: 2.625rem;
    line-height: 2.8rem;
    margin-bottom: 50px;
}

.why-left p {
    font-size: 1.25rem;
    line-height: 1.5rem;
    margin-bottom: 50px;
}

.why-right {
    width: 58%;
}

.cards-why {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px;
}

    .cards-why > .w-card:nth-child(2),
    .cards-why > .w-card:nth-child(4) {
        transform: translateY(-60px)
    }

.w-card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    padding: 90px 29px 25px;
    min-height: 220px;
    position: relative
}

    .w-card.br-xl, .w-card.bl-xl {
        border-radius: 30px;
        border-bottom-right-radius: 90px
    }

    .w-card h3 {
        margin-bottom: 20px;
        font-weight: 700;
        color: #004F70;
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .w-card p {
        margin-bottom: 10px;
        color: #004F70;
        font-size: 1rem;
        line-height: 1.5rem;
    }

        .w-card p strong {
            font-weight: 700
        }

    .w-card .button-text {
        margin-left: 0px;
    }
/*MODULI-servizi---------------------------------------------------*/
.servizi {
    background-color: white;
    padding: 150px 0px 10px;
}

.servizi-title {
    font-size: 2.7rem;
    margin-bottom: -12px;
}

.servizi-subtitle {
    font-size: 1.45rem;
    margin-bottom: 80px;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 200px;
}

.service-card .bg {
    position: absolute;
    inset: 0;
    background-image: var(--img, none);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) contrast(1.02)
}

.service-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.06))
}

.service-card .tag-svg {
    position: absolute;
    inset: auto 0 0 0;
    width: 72%;
    height: 72%;
    margin: auto;
    pointer-events: none;
    opacity: .95;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.08))
}

    .service-card .tag-svg path {
        fill: var(--tag, #9cc7ff)
    }

.service-card .title {
    font-size: 1.2rem;
    color: #004F70;
    font-weight: 700;
    line-height: 1.4rem;
    margin-bottom: 15px;
}

.service-card .go {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--rosaScuro);
    color: #fff;
    cursor: pointer;
}

    .service-card .go svg {
        width: 18px;
        height: 18px;
        fill: #fff
    }

.service-svg-card {
    width: 100%;
}

.service-card {
    position: relative;
    height: 320px;
    margin-bottom: 50px;
    width:517px;
}

.service-card-text {
    width: 100px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3
}

.background-service-card {height: 100%;overflow: hidden;position: relative;border-radius: 30px;}
.background-service-card img {position: absolute}

.background-shape {
    height: 108%;
    position: absolute;
    z-index: 2;
    top: -13px;
}
.background-shape img {height: 100%}
/*UNIAMO-------------------------------*/
.uniamo-scroller-wrap {
    width: 530px;
    height: 310px;
    border-radius: 12px;
    position:relative;
}
.uniamo-scroller-wrap::before,
.uniamo-scroller-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    pointer-events: none;
    z-index: 2;
}

.uniamo-scroller-wrap::before {
    left: -1px;
    background: linear-gradient(to right, #EDF3F6 0%, rgba(255,255,255,0) 100%);
}

.uniamo-scroller-wrap::after {
    right: -1px;
    background: linear-gradient(to left, #EDF3F6 0%, rgba(255,255,255,0) 100%);
}

.uniamo-scroller {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
    /* nasconde scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-left:20px;
    padding-right:60px;
}

.uniamo-scroller::-webkit-scrollbar {
    display: none;
}

.uniamo-scroller.dragging {
    cursor: grabbing;
}
#forma-uniamo {
    position: absolute;
    top: -12%;
    right: 10%;
}

.uniamo {
    background-color: #EDF3F6;
    padding: 100px 0px;
    position: relative;
}

.uniamo-container {
    padding: 100px 0px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 190px;
}

.uniamo-left {
    width: 40%;
    padding-top: 200px;
    position: relative;
    color: white;
}

    .uniamo-left h3 {
        font-size: 2.6rem;
        line-height: 2.9rem;
        margin-bottom: 60px;
    }

    .uniamo-left p {
        font-size: 1.2rem;
        line-height: 1.4rem;
        margin-bottom: 40px;
        font-weight: 600;
    }

.uniamo-right {
    width: 40%;
    padding-top: 50px;
    padding-left: 100px;
    display: flex;
    align-items: end;
}

.uniamo-card {
    background-color: red;
    padding: 50px 10px;
}

#uniamo-bar {
    position: absolute;
    background-color: var(--ink);
    height: 700px;
    border-top-right-radius: 350px;
    border-bottom-right-radius: 350px;
    width: 50%;
    left: 0px;
}

.u-card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    padding: 90px 60px 25px 29px;
    height: 300px;
    position: relative;
    width: 320px;
    flex-shrink:0;
}

    .u-card h4 {
        margin-bottom: 20px;
        font-weight: 700;
        color: #004F70;
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .u-card p {
        margin-bottom: 10px;
        color: #004F70;
        font-size: 1rem;
        line-height: 1.5rem;
    }

.u-card {
    border-radius: 30px;
    border-bottom-right-radius: 90px
}

/*NEWS---------------------------------------*/
#news {
    padding-top: 220px;
    padding-bottom: 290px;
    position: relative;
}

.lawnews {
    background: #fff
}

    .lawnews .head {
        text-align: center;
        margin-bottom: 1.2rem
    }

        .lawnews .head .news-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(.75rem, 2.5vw, 2rem);
        }

        .lawnews .head .chevrons {
            display: grid;
            grid-auto-flow: column;
            gap: .45rem;
            color: #86afe3
        }

            .lawnews .head .chevrons .strap-gfx {
                display: inline-block;
                height: 16px;
                width: auto;
                max-width: 120px;
                vertical-align: middle
            }

.news-row h2 {
    font-size: 2.6rem;
}

.head .subtitle {
    font-size: 1.5rem;
}

.lawnews .rule {
    height: 2px;
    background-color: var(--blu-line);
    margin: 1.6rem 0
}

.law-list {
    width: 100%;
    display: flex;
    justify-content: space-between;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1rem;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

/*==========CAROUSEL=====================================================*/
#news-container{position:relative;padding-bottom:20px;}
#newsCarousel{background-color:white;}
.swiper {width: 100%;height: 400px;margin-bottom:50px;}
.swiper-slide{background-color:var(--ink );padding:35px 20px;border-radius:30px;}
.news-item h3{color:white;font-size:1.75rem;line-height:2rem;margin-bottom:20px}
.news-item time{color:white;}
.news-item p{color:white;height:150px;margin-top:5px;}
.swiper-pagination{bottom:30px !important;}
.news-btn{text-align:center;}
.ultime-news-cta{position:absolute;bottom:25px;}
.news-btn-text{color:white!important}
/*RESPONSIVE-------------------------------------------------------------*/
/*Laptop */
@media (max-width: 1700px) {
    /*HERO--------------------*/
    .hero {border-bottom-left-radius: 80px;border-bottom-right-radius: 80px;padding-top: 150px;padding-bottom: 280px;}
    .hero-eyebrow {font-size: 4rem;}
    .hero-title {font-size: 4rem;}
    .video-bg video {clip-path: inset(1px 2px);}
    /*SOLUTION-----------------*/
    .solutions {padding-top: 120px;}
    .solution-container{width:1100px;}
    #solution-title-container {
        height: 440px;
        width: 65%;
        position: absolute;
        border-top-left-radius: 290px;
        border-bottom-right-radius: 100px;
        border-bottom-left-radius: 290px;
        top: -160px;
        right: 0px;
        padding: 100px;
        padding-left: 170px;
    }
    .solution-title-container-text {width: 90%;}
    .solution-title {font-size: 2.2rem;margin-bottom: 30px;}
    .solution-description {font-size: 1.0rem;}
    .cards {margin-bottom: 200px;}
    .s-card {box-shadow: 0 24px 48px rgba(0,0,0,.12);height: 450px;padding: 80px 10px 40px 10px;}
    .s-card h3 {font-size: 1.45rem;line-height: 1.8rem;margin-bottom: 20px;}
    .s-card p {font-size: 0.95rem;}
    .s-card-image {height:115px;margin-bottom: 35px;}
    .card-text {padding: 0px 15px;}
    .s-cta-position {left: 20px;bottom:35px;}
    .solutions .cards .s-card:nth-child(1) {border-top-left-radius: 80px;}
    .solutions .cards .s-card:nth-child(2) {border-bottom-right-radius: 80px;}
    .solutions .cards .s-card:nth-child(3) {border-top-right-radius: 80px;}
    .solutions .cards .s-card:nth-child(4) {border-bottom-left-radius: 80px;}
    /*STRAPLINE----------------*/
    .strapline {margin-bottom: 220px;}
    /*ATOM---------------------*/
    .atom-container {height: 560px;margin-bottom: 200px;align-items: center;width:1115px}
    .atom-copy h2 {font-size: 2.2rem;line-height: 2.5rem;margin-bottom: 35px;}
    .atom-visual {width: 50%;}
    .atom-first-p {max-width: 40ch;font-size: 1.3rem;line-height: 1.5rem;margin-bottom: 20px;}
    .atom .lead {
        max-width: 40ch;
        font-size: 1.3rem;
        line-height: 1.5rem;
        margin-bottom: 40px;
    }

    .atom-section-button {
        font-size: 1rem;
    }
    .atom-dots {
        height: 600px;
        left: -120px;
        width: 100px;
        top: 0px;
    }
    /*WHY----------------------*/
    .why-panel {
        border-radius: 140px;
        padding: 120px 0px 60px;
    }

    .why-left h2 {
        font-size: 2.0rem;
        line-height: 2.0rem;
        margin-bottom: 30px;
    }

    .why-left p {
        font-size: 1.1rem;
        line-height: 1.2rem;
        margin-bottom: 50px;
    }

    .w-card {
        border-radius: 22px;
        padding: 70px 20px 15px;
        min-height: 100px;
        position: relative
    }

    .w-card h3 {
        margin-bottom: 15px;
        font-weight: 700;
        color: #004F70;
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .w-card p {
        margin-bottom: 10px;
        color: #004F70;
        font-size: 0.85rem;
        line-height: 1rem;
    }

    .w-card .learn-more {
        width: 10rem;
    }

    .w-card .learn-more .button-text {
        margin-left: 25px;
    }
    /*UNIAMO-----------------------*/
    .uniamo {
        padding: 60px 0px;
    }

    #uniamo-bar {
        height: 530px;
        border-top-right-radius: 350px;
        border-bottom-right-radius: 350px;
        width: 50%;
    }

    .uniamo-left {
        padding-top: 150px;
    }

    .uniamo-right {
        padding-top: 40px;
        padding-left: 30px;
    }

    .uniamo-left h3 {
        font-size: 2rem;
        line-height: 2.3rem;
        margin-bottom: 40px;
    }

    .u-card {
        padding-top: 55px;
        width: 280px;
    }

        .u-card h4 {
            font-size: 1.2rem;
            line-height: 1.4rem;
        }

        .u-card p {
            font-size: 0.9rem;
            line-height: 1.2rem;
        }

    .uniamo-container {
        padding: 100px 0px;
        margin-bottom: 150px;
    }
    /*SERVIZI/MODULI-----*/
    .servizi-container{width:825px;}
    .servizi {padding: 180px 0px 130px;}
    .servizi-title {font-size: 2.2rem;margin-bottom: -12px;}
    .servizi-subtitle {font-size: 1.2rem;margin-bottom: 30px;}
    .grid-services {margin-bottom: 170px;}
    .service-card {height: 250px;width:400px; }
    .background-service-card img {height: 100%}
    .service-card-text {bottom: 30px;left: 20px;width: 70px}
    .service-card .title {font-size: 1rem;margin-bottom: 5px;}
    .service-card .go {width: 25px;height: 25px}
    /*NEWS--------------*/
    #news {padding-top: 180px;padding-bottom: 250px;}
    .news-row h2 {font-size: 2.2rem;margin-bottom: -10px;}
    .head .subtitle {font-size: 1.2rem;}

    /*==========CAROUSEL=====================================================*/
    .news-item h3{color:white;font-size:1.5rem;line-height:1.75rem;}
    .swiper {height: 430px;margin-bottom: 50px;}
    .ultime-news-cta{position:absolute;}
}

@media (max-width: 1520px) {
    /*SOLUTION----------------*/
    .solution-title {
        font-size: 1.95rem;
    }
}


@media (max-width: 1450px) {
    /*HERO-------------------*/
    .hero-eyebrow {font-size: 3.8rem;}
    .hero-title {font-size: 3.8rem;}
    /*SOLUTIONS*/
    .s-card {min-height: 300px;padding-top: 70px;}
    /*======STRAP=============*/
    .strap-bottom{font-size:2rem}
    .strap-top{font-size:2rem;}
    /*========ATOM============*/
    .atom-dots {height: 550px;left: -210px;}
    /*=======WHY==============*/
    .why-grid{width:880px;}
    /*=======UNIAMO===========*/
    .uniamo-right {padding-left: 0px;}
    .uniamo-scroller {padding-left: 20px;padding-right: 130px;}
}
/* ≥1200px — desktop */
@media (max-width: 1200px) {
    /*HERO------------------*/
    .hero-eyebrow {
        font-size: 2.9rem;
    }

    .hero-title {
        font-size: 2.9rem;
    }
}
/* ≥992px — large tablet */
@media (max-width: 1100px) {
    /*======HERO===============================*/
    .video-bg {left: 180px;}
    /*SOLUTION*/
    .solutions {padding-top: 90px;}
    #solution-title-container {width: 730px;height: 350px;padding-bottom: 80px;}
    .solution-title-container-text {width: 90%}
    .solution-container{width:895px;}
    .solution-title {font-size: 1.9rem;margin-bottom: 20px;line-height: 1.5rem;}
    .s-card {padding:50px 10px 10px 10px;height:344px;}
    .card-text {margin-bottom: 0px;padding:0px;}
    .card-text h3 {font-size: 1.15rem;line-height: 1.3rem;margin-bottom: 15px;}
    .s-card p {font-size: 0.85rem;line-height: 1.2rem;}
    .solutions .cards .s-card:nth-child(1) {border-top-left-radius: 114px;}
    .solutions .cards .s-card:nth-child(2) {border-bottom-right-radius: 114px;}
    .solutions .cards .s-card:nth-child(3) {border-top-right-radius: 114px;}
    .solutions .cards .s-card:nth-child(4) {border-top-left-radius: 114px;border-bottom-left-radius: 30px;}
    .s-cta-position {left: 10px;bottom: 18px;}
    .s-card-image {height: 90px;margin-bottom: 23px;}
    .blue-box {height: 50px;width: 50px;top: -14px;right: 36px;border-radius: 15px;}
    /*==============STRAP==============*/
    .strapline-container {width: 90%;margin: auto;}
    /*=============ATOM================*/
    .atom-container {width: 890px;}
    .atom-visual {width: 62%;}
    .atom-copy {padding: 80px 0px;}
    .atom-container {margin-bottom: 150px;}
    /*=============UNIAMO===============*/
    .uniamo-right {padding-left: 0px;}
    .uniamo-scroller {padding-right: 200px;}
    /*=============WHY==================*/
    .why-grid{width:720px;}
    .why-right{width:70%;}
}
/* ≥768px — tablet */
@media (max-width: 870px) {
    /*===========HERO==================*/
    .video-bg {left: -150px;}
    .hero-text {max-width: 70%;}
    /*SERVIZI*/
    .servizi-container {width: 540px;}
    .grid-services {grid-template-columns: repeat(1, minmax(0, 1fr));margin-bottom: 0px;width:max-content; margin:auto;}
    .service-card {position: relative;height: 250px;margin-bottom: 15px;width: 430px;}
    .servizi {padding-top: 50px;padding-bottom: 100px;}
    .background-shape { height: 108%;top: -9px;}
    .background-service-card img {height: 100%}
    .service-card-text {bottom: 10px;left: 10px;width: 70px}
    .service-card .title {font-size: 1rem;margin-bottom: 5px;}
    .service-card .go {width: 25px;height: 25px}
    /*=======SOLUTION===================*/
    .cards {grid-template-columns: repeat(2, minmax(0, 1fr));}
    .solution-container {width: 545px;}
    .s-card {padding: 50px 15px 10px 15px;height: 390px;}
    .blue-box {right: 55px;}
    .card-text h3 {font-size: 1.55rem;line-height: 1.8rem;margin-bottom: 15px;}
    .s-cta-position {left: 34px;bottom: 50px;}
    .s-card p {font-size: 0.95rem;line-height: 1.2rem;}
    /*=============STRAPLINE==============*/
    .strap-top {font-size: 1.5rem;text-align: center;line-height: 1.5rem;margin-bottom: 20px;}
    .strap-bottom {font-size: 1.5rem;}
    /*=============ATOM===================*/
    .atom-container {width: 450px;display:block;height:max-content;}
    .atom-visual {width: 80%;margin: auto;}
    .atom-dots {height: 400px;left: -70px;top: -15px;}
    /*============UNIAMO==================*/
    .uniamo-left {padding-top: 90px;}
    .uniamo-right {padding-left: 0px;width:251px;}
    .u-card {width: 250px;}
    .uniamo-scroller {padding-right: 260px;}
    /*============WHY=====================*/
    .why-grid{display:block;width:515px;}
    .why-panel{width:100%;border-radius:60px;}
    .why-left{margin-bottom:100px;width:100%;}
    .why-right{width:100%;}
}
/* ≥768px — tablet */
@media (max-width: 768px) {
    /*HERO---------------*/
    .hero-eyebrow {font-size: 2.2rem;}
    .hero-title {font-size: 2.2rem;line-height: 2.3rem;

    }
}

@media (max-width: 576px) {
    
    /*========HERO=======*/
    .video-bg {left: -130px;}
    
    /*COMMON-------------*/
    .container-small {width: 90%;}
    .container-xsmall {width: 90%}
    .content-container {width: 90%}
    /*HERO--------------*/
    .hero {padding: 230px 0px 200px 0px;}
    .hero-eyebrow {font-size: 2rem;margin-bottom: -10px;}
    .hero-title {font-size: 2.1rem;margin-bottom: 30px;line-height: 2.2rem;}
    .hero-text {max-width: 100%;font-size: 1.125rem;line-height:1.5rem;}
    /*SOLUZIONE*/
    .solutions {padding-top: 140px;}
    #solution-title-container {
        width: 100%;
        padding: 80px 20px 60px 20px;
        height: 320px;
        border-radius: 10px;
        top: -120px;
    }
    .solution-container{width:337px;}
    .solution-title-container-text {
        margin: auto;
    }

    .solution-title {
        font-size: 1.5rem;
        line-height: 1.75rem;
        margin-bottom: 20px;
    }

    .solution-description {
        font-size: 1.125rem;
        line-height: 1.5rem;
    }

    .cards {
        grid-template-columns: repeat(1, minmax(0,1fr));
        width: 90%;
        margin-bottom: 50px;
    }

    .s-card {
        padding: 50px 35px 50px 35px;
    }

    .card-text h3 {
        font-size: 1.5rem;
    }

    .card-text p {
        font-size: 1.125rem;
        line-height:1.5rem;
    }
    /*STRAP*/
    .strapline {margin-bottom: 50px;position:relative;}
    .strapline-container {width: 100%}
    .strap-gfx {width: 100px;}
    .strap-row {overflow: hidden;display:block;}
    .strap-top {font-size: 1.35rem;width: 100%;text-align: center;margin-bottom:6px;line-height: 1.5rem}
    #hide-onMobile{display:none}
    #show-onMobile{display:inline;}
    .strap-bottom {font-size: 1.5rem;line-height:1.75rem;margin-bottom:22px;}
    .strap-img-container{text-align:center;margin-bottom:11px;}
    .show-onMobile{display:block}
    
    /*ATOM*/
    .atom {
        height: 700px;
    }
    .atom-visual {width: 70%;text-align: center;margin-bottom: 50px;}
    .atom-container {display: block;min-height: 100px;width:70%;}
    .atom-copy {padding: 0}
    .atom-copy h2 {font-size: 1.5rem;line-height: 1.7rem;margin-bottom: 25px;}
    .atom-first-p {font-size: 1.125rem;line-height: 1.5rem;margin-bottom: 20px;}
    .atom .lead {font-size: 1.125rem;line-height: 1.5rem;margin-bottom: 40px;font-weight:400}
    .atom-dots {height: 65vw;}
    #atom-cta-button{text-align:center;}
    /*WHY GRID*/
    .why-grid {display: block;width:85%;}
    .why-panel {padding-top: 105px;border-radius: 30px;}
    .cards-why {grid-template-columns: repeat(1, minmax(0, 1fr));}
    .why-left {width: 100%}
    .why-left h2 {font-size: 1.5rem;line-height:1.75rem; margin-bottom: 10px;}
    .why-left p {font-size: 1.125rem;margin-bottom: 20px;line-height:1.5rem}

    .why-right {
        margin:auto;
        width: 90%
    }
    .why-left {margin-bottom: 50px;width: 100%;}
    .w-card p {
        font-size:1.125rem;
        line-height: 1.5rem;
    }
    .cards-why > .w-card:nth-child(2), .cards-why > .w-card:nth-child(4) {
        transform: translateY(0px)
    }

    #forma-why {
        position: absolute;
        z-index: 2;
        top: 0%;
        right: 5%;
        height: 80px;
    }

        #forma-why img {
            height: 100%;
        }
    /*SERVIZI*/
    .service-card {position: relative;height: 210px;margin-bottom: 15px;width: 340px;}
    .service-container{width:90%;}
    .servizi-title {font-size: 1.5rem;margin-bottom:-6px;}
    .servizi-subtitle {font-size: 1.125rem;line-height: 1.5rem;}
    /*UNIAMO CONATINER*/
    .uniamo {
        background-color: white;
        padding-top: 0px;
    }
    #uniamo-bar {height: 760px;}
    .uniamo-container {
        display: block;
        padding-top: 0px;
        margin-bottom: 0px;
    }

    .uniamo-left {
        padding: 30px;
        width: 100%;
        padding-top:100px;
    }
    .uniamo-left h3{font-size:1.5rem;line-height:1.7rem;text-align:center;margin-bottom:15px}
    .uniamo-left p{font-size:1.125rem; line-height:1.5rem; text-align:center;font-weight:400;margin-bottom:40px;}
    .uniamo-button{text-align:center;margin-bottom:19px;}

    .uniamo-right {
        padding: 0px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .u-card {width: 295px;padding-top: 30px;}
    .u-card p {font-size: 1.125rem;line-height:1.5rem;}
    .u-card h4 {font-size: 1.5rem;line-height: 1.75rem;}
    .uniamo-scroller {padding-right: 15px;}
    #uniamo-bar {width: 100%;border-radius: 0;}
    #forma-uniamo {width: 25%;z-index: 3;top: -8%;}
    #forma-uniamo img {width: 100%;}
    .uniamo-scroller-wrap {width: 100vw;}
    .uniamo-scroller-wrap::before, .uniamo-scroller-wrap::after {display:none;}
    /*NEWS*/
    .no-mobile {display: none;}
    .lawnews .head .chevrons {display: none;}
    .head h4{font-size:1.5rem;}
    .news-row h2 {font-size: 2.2rem;margin-bottom: 0px;}
    .head .subtitle {font-size: 1.125rem;line-height: 1.5rem;margin-bottom:15px;}
    #news {padding-top: 45px;padding-bottom: 120px;overflow: hidden}
    .news-row {margin-bottom: 15px;}
    .news-row h2 {font-size: 1.4rem;line-height: 1.5rem;}
    .subtitle {font-size: 1.2rem;line-height: 1.3rem}
    .subtitle {font-size: 1.3rem}

    /*====CAROUSEL=======================================================*/
    #news-container{width:90vw;}
}
/*-----------------------------------------------------------------------*/
/*===============CAROSELLO===============================================*/
/*:root {
    --gap: 28px;
    --per-view: 1;
    --accent: #e83d58;
    --muted: #6f8a96;
    --rule: #b8d2dc;
}

.carousel {
    position: relative;
    margin-bottom: 70px;
}

.law-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--gap) * (var(--per-view) - 1))) / var(--per-view));
    gap: var(--gap);
    overflow: hidden;*/ /* desktop: no scroll manuale */
    /*scroll-behavior: smooth;
    scroll-snap-type: x mandatory;*/ /* snap sempre attivo */
    /*scroll-padding-inline-start: 2px;*/ /* piccolo padding per non “tagliare” la 1ª card */
    /*padding: 8px 2px;*/
    /*touch-action: pan-x;*/ /* aiuta lo scroll orizzontale */
    /*touch-action:auto;
    overscroll-behavior-x: contain;*/ /* evita “rimbalzi” indesiderati */
/*}

.law-item {
    scroll-snap-align: start;
    scroll-snap-stop: always;*/ /* forza lo stop sullo snap (aiuta il feeling) */
    /*border-radius: 18px;
    padding: 24px;
    padding-right: 50px;
    height: 400px;
    position: relative;*/
    /* visibilità e animazione */
    /*opacity: 0;
    transform: translateY(6px);
    transition: opacity .32s ease, transform .32s ease;
    pointer-events: none;*/ /* non cliccabile quando nascosto */
    /*display: flex;
    flex-direction: column;
}

.news-btn {
    text-align: center;
}

.law-item.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.law-item h3 {
    margin: 0 0 25px;
    font-size: 1.25rem;
    line-height: 1.25;
    flex-grow: 1;
}

.law-item time {
    display: inline-block;
    margin: 4px 0 30px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .02em;
}

.law-item p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.45;
    text-overflow: ellipsis;
    height: 115px;
    overflow: hidden;
}

.law-item::after {
    content: "";
    position: absolute;
    top: -24px;
    bottom: -24px;
    right: 0px;
    width: 2.2px;
    background: linear-gradient(var(--blu-line), var(--blu-line));
    transform: skewX(-12deg);
    opacity: .8;
    display: none;*/ /* gestita dal JS */
/*}

.law-item.has-separator::after {
    display: block;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
}

    .nav-btn[disabled] {
        opacity: .4;
        cursor: not-allowed;
    }

.prev {
    left: -50px;
}

.next {
    right: -50px;
}

.nav-btn .chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}

.prev .chev {
    transform: rotate(135deg);
}

.next .chev {
    transform: rotate(-45deg);
}

.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.dot {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 999px;
    background: #cfe0e6;
}

    .dot[aria-current="true"] {
        background: #7db1c3;
    }

@media (max-width: 1600px) {
    .law-item {
        padding: 20px 50px 10px 20px;
        height: 350px;
    }

        .law-item h3 {
            margin: 0 0 15px;
            font-size: 1.1rem;
            line-height: 1.25;
        }

        .law-item time {
            display: inline-block;
            margin: 4px 0 10px;
            font-weight: 600;
            letter-spacing: .02em;
            font-size: 0.9rem;
        }

        .law-item p {
            margin: 0 0 10px;
            line-height: 1.15;
            height: 115px;
        }

        .law-item::after {
            right: 5px;
        }

        .law-item .learn-more {
            width: 9rem
        }

            .law-item .learn-more .button-text {
                font-size: 0.85rem;
                margin-left: 30px;
            }

            .law-item .learn-more:hover .circle .icon.arrow {
                transform: translate(0,0)
            }
}

@media (min-width: 640px) {
    :root {
        --per-view: 2
    }
}

@media (min-width: 900px) {
    :root {
        --per-view: 3
    }
}

@media (min-width: 1200px) {
    :root {
        --per-view: 5
    }
}*/

/* Tablet medio e giù (≤ 1050px): frecce nascoste, scroll nativo con snap potenziato */
/*@media (max-width: 1050px) {
    .nav-btn {
        display: none;
    }

    .law-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;*/
        /* opzionale: nascondo scrollbar per un look più pulito */
        /*scrollbar-width: none;*/ /* Firefox */
    /*}

        .law-list::-webkit-scrollbar {
            display: none;
        }*/
    /* WebKit */
/*}

@media (max-width: 576px) {
    .lawnews .rule {
        margin: 5px 0px;
    }

    .law-item {
        height: 320px;
    }

    .carousel {
        margin-bottom: 60px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
    .law-item h3 {flex-grow: 0;}
    .law-item p {height: max-content;}*/
}