﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

ul li {
    font-size: 18px;
    font-weight: 300;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1450px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillium Web';
    color: var(--cp-grey);
}
a {
    text-decoration: none;
    color: var(--cp-grey);
}
a:hover{
    color: var(--primary-color);
}

h4 {
    font-size: 28px;
    font-weight: 600;
}
p {
    font-family: 'Titillium Web' !important;
    font-family: var(--cp-ff-p);
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 5px;
}
.header-3 .primary-header.fixed {
    background-color: var(--cp-color-bg-1);
}
.page-header {
    height: auto;
}

html, body {
    width: 100%;
}
body {
    position: relative;
}

.process-section {
    background-image: url("../img/bg-img/bg-grattacieli.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.bg-grey {
    background-color: var(--cp-color-bg-1);
}

.header-3 .primary-header {
    background-color: var(--cp-color-bg-1);
}

.hero-section-3 {
    background-color: var(--cp-color-bg-1);
}
.consult-section {
    background-color: var(--cp-color-bg-1);
}

    .header .primary-header-inner .header-menu-wrap ul li a {
        font-size: 18px;
        text-transform: none;
    }

.btn-1 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 28px;
    background: var(--primary-color);
    color: #fff;
    border: 0;
    letter-spacing: .08em;
    text-decoration: none;
    transition: all .25s ease;
    z-index: 0; /* crea contesto */
    isolation: isolate; /* importantissimo: blocca effetti esterni */
}

    .btn-1::after {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--secondary-color);
        transform: translate(6px, 6px);
        transition: transform .25s ease;
        z-index: -1; /* ora funziona perché isolation lo “contiene” */
    }

    /* Hover */
    .btn-1:hover {
        background: var(--secondary-color); /* diventa verde chiaro */
        color: #fff; /* se vuoi testo scuro come nello screen */
    }

        .btn-1:hover::after {
            transform: translate(0, 0);
        }

.hero-content-3 .hero-content-inner .section-heading .section-title {
    font-size: 82px;
    font-weight: 500;
    line-height: 1;
    max-width: 820px;
}

    .section-heading.white-content p, .section-heading.white-content .section-title {
        color: var(--cp-color-common-black);
    }

.hero-content-3 {
    padding: 150px 50px;
    display: block;
}

    .hero-content-3 .hero-content-inner .section-heading {
        right: 150px;
    }

    .section-heading.white-content p, .section-heading.white-content .section-title {
        color: var(--cp-grey);
        max-width: 700px;
    }

    .hero-content .hero-content-inner p {
        font-family: var(--cp-ff-heading);
        font-size: 30px;
        margin-bottom: 40px;
        font-weight: 300;
    }

    .hero-section-3 {
        position: relative;
        overflow: hidden;
    }
    /* BLOCCO IMMAGINE */
.hero-image-oblique {
    position: absolute;
    top: 0;
    right: 150px;
    width: 800px;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0% 100%);
}

        .hero-image-oblique img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    /* CARD VERDE */
.hero-green-card {
    position: absolute;
    width: 200px;
    height: 400px;
    background: #2f8f1f;
    right: 180px;
    top: 35%;
    transform: skewX(-16deg);
}

    .skill-content p {
        color: var(--cp-grey);
        font-size: 17px;
        font-weight: 300;
        margin-bottom: 30px;
    }

    .skill-img-wrap .skill-img {
        left: 150px !important;
    }

    .skill-img-wrap {
        height: 500px;
        width: 800px;
        width: 100%;
        position: relative;
        margin-left: 50px;
    }

        .skill-img-wrap .skill-img {
            width: 700px;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }

    .skill-img {
        position: relative;
        z-index: 2;
    }
    /* CARD VERDE DIETRO */
.skill-green-card {
    position: absolute;
    width: 350px;
    height: 780px;
    background: #2f8f1f;
    top: -100px;
    right: 158px;
    z-index: -1;
    transform: skewX(-22deg);
}
    /* Per assicurarsi che l’immagine stia sopra */
    .skill-img img {
        position: relative;
        z-index: 2;
    }

    .section-heading .section-title {
        color: var(--cp-grey);
    }

    .consult-content p {
        font-size: 18px;
        font-weight: 300;
    }

    .section-green {
        border-bottom: 2px solid var(--primary-color);
    }

/* ===== CUSTOM PROCESS STYLE ===== */

.process-section .process-item {
    position: relative;
    padding: 50px 60px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #369322;
}

/* Rimuoviamo il cerchio */
.process-section .process-number-wrap {
    height: auto;
    width: auto;
    border-radius: 0;
    margin: 0 0 30px 0;
}

/* Box icona inclinato */
/* Box icona */
.process-section .process-number {
    background: transparent;
    height: 140px;
    width: 120px;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

    /* Riquadro obliquo */
    .process-section .process-number::before {
        content: "";
        position: absolute;
        top: -25px;
        left: 40px;
        width: 120px;
        height: 180px;
        background: rgba(47, 143, 31, 0.12);
        border: 2px solid #2f8f1f;
        transform: skewX(-25deg);
        z-index: 0;
    }

    /* Icona */
    .process-section .process-number img {
        width: 75px;
        height: auto;
        position: relative;
        z-index: 2;
        right: -20px;
        top: 30px;
    }


/* Forma verde grande dietro */
/*.process-section .process-item::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 40px;
    width: 90%;
    height: 85%;
    background: rgba(47, 143, 31, 0.12);
    transform: skewX(-20deg);
    z-index: -1;
}*/

/* Allineamento testo */
.process-section .process-item .title {
    text-align: left;
}

.process-section .process-item p {
    text-align: left;
}

.service-item-2 .service-content {
    background-color: var(--cp-color-common-white);
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    border-left: 4px solid var(--primary-color);
    border-top: 4px solid var(--primary-color);
    margin-top: -120px;
    position: relative;
    z-index: 5;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.service-item-2 .service-thumb {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-bottom: 0px;
    border-radius: 0;
}

    .service-item-2 .service-thumb img {
        border-radius: 0;
    }


.promo-item .title {
    font-size: 22px;
}

/* ===== PROMO SECTION ===== */

.promo-section .row {
    align-items: center;
}

/* Wrapper */
.promo-item-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 35px 40px;
    margin-top: 40px;
}

/* Card */
.promo-item {
    width: calc(50% - 20px);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

    /* Ultima centrata */
    .promo-item:last-child {
        width: 100%;
        max-width: 50%;
        margin: 0 auto;
    }

    /* Icona */
    .promo-item .icon {
        width: 100px;
        min-width: 100px;
    }

        .promo-item .icon img {
            width: 100px;
            height: auto;
        }

    /* BLOCCO TESTO */
    .promo-item .content {
        display: flex;
        flex-direction: column;
    }

    /* Titolo */
    .promo-item .title {
        font-size: 20px;
        margin: 0 0 8px 0;
        line-height: 1.3;
    }

    /* Link */
    .promo-item a {
        font-size: 14px;
        color: var(--cp-grey);
        transition: color .2s ease;
    }

        .promo-item a:hover {
            color: var(--primary-color);
        }

/* ----- IMMAGINE DESTRA ----- */
.promo-left-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
}

.promo-img {
    width: 120%;
    margin-left: 50px;
}

    .promo-img img {
        width: 100%;
        height: auto;
        display: block;
    }

.footer-widget p {
    color: var(--cp-grey);
    font-size: 16px;
}
.footer-widget .widget-header .widget-title {
    color: var(--cp-grey);
    font-weight: 600;
}
.footer-widget .address-list li {
    color: var(--cp-grey);
}

.footer-wrap {
    padding: 100px 0;
}

.footer-widget .widget-header .footer-logo {
    max-width: 200px;
}
.copyright-content .copyright-list a {
    color: var(--cp-grey);
    font-weight: 400;
}
.copyright-content p {
    color: var(--cp-grey);
}
.copyright-content .copyright-list a:hover {
    color: var(--primary-color);
}

/* ===== SERVICE PAGINATION ===== */

.service-pagination {
    text-align: center;
    margin-top: 40px;
}

    .service-pagination .swiper-pagination-bullet {
        width: 50px;
        height: 4px;
        border-radius: 0;
        background: #cfcfcf;
        opacity: 1;
        margin: 0 6px !important;
    }

    .service-pagination .swiper-pagination-bullet-active {
        background: var(--primary-color);
    }
.service-item-2 .service-content {
    background-color: #fff;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    margin-top: -110px;
    position: relative;
    z-index: 5;
    border-left: 4px solid var(--primary-color);
}

    /* forma obliqua */
    .service-item-2 .service-content::after {
        content: "";
        position: absolute;
        right: -30px;
        bottom: 2px;
        width: 50px;
        height: 171px;
        background: #ffffff;
        transform: skewX(-12deg);
        border-top: 4px solid var(--primary-color);
    }

.service-item-2:hover .service-content {
    background-color: #fff;
}


/* ===== SETTORI DI INTERVENTO ===== */

.sector-section {
    position: relative;
}

.sector-item {
    background: var(--cp-color-bg-1);
    padding: 50px 40px;
    position: relative;
    height: 100%;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

    .sector-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    }

.sector-number {
    font-size: 80px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    display: block;
    margin-bottom: 15px;
}

.sector-item h4 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.sector-item p {
    font-size: 16px;
    font-weight: 300;
    color: var(--cp-grey);
}


.post-card .post-content {
    max-width: 452px;
    border: none;
    border-radius: 0;
    margin-top: 0;
}
.post-card .post-thumb img {
    border-radius: 0;
}
.post-card .post-thumb {
    border-radius: 0;
    border: 20px solid #fff;
}
.post-card {
    border: 1px solid #dee2e6;
}

    .post-card:hover .post-content {
        background-color: var(--cp-color-bg-1);
    }

    .post-card .post-content span {
        font-size: 14px;
        font-weight: 600;
        text-transform: none;
        padding: 5px 15px;
        border-radius: 0;
        border-top: 1px solid var(--primary-color);
        border-left: 1px solid var(--primary-color);
    }

.service-section-2 .swiper-pagination {
    bottom: unset;
}

.page-header .page-header-content {
    padding: 150px 0 30px 0;
}

    .page-header .page-header-content .title {
        color: var(--cp-grey);
        font-size: 60px;
        margin-bottom: 30px;
    }
    .page-header .page-header-content .sub-title .home {
        color: var(--cp-grey);
        text-transform: none;
        font-size: 18px;
    }
    .page-header .page-header-content .inner-page {
        color: var(--primary-color);
        text-transform: none;
    }

    .page-header .page-header-content .sub-title .home:before {
        background-color: var(--cp-grey);
        height: 4px;
        width: 4px;
    }

    .page-header .page-header-content .sub-title .home:hover {
        color: var(--primary-color);
    }

/* ===== BLOG QUOTE ===== */

.blog-quote {
    position: relative;
    margin: 35px 0 40px 0;
    padding: 20px 25px 20px 25px;
    border-left: 5px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
    background: #f7f7f7;
    max-width: 520px;
}

    .blog-quote p {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        line-height: 1.6;
    }

/* ===== TIMELINE SECTION ===== */

.timeline-section {
    position: relative;
}

.timeline-row {
    position: relative;
}

/* linea orizzontale centrale */
.timeline-row::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 2px;
    background: var(--primary-color);
    z-index: 0;
}

/* item */
.timeline-item {
    position: relative;
    z-index: 2;
}

/* anno grande outline */
.timeline-year {
    display: block;
    font-size: 80px;
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    margin-bottom: 10px;
}

.timeline-year.bottom {
    margin-top: 15px;
}

/* titolo */
.timeline-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* immagine */
.timeline-img {
    position: relative;
    margin-top: 10px;
}

    .timeline-img img {
        width: 100%;
        height: 300px;
        object-fit: contain;
    }

/* responsive */
@media (max-width: 991px) {

    .timeline-row::before {
        display: none;
    }

    .timeline-item {
        margin-bottom: 50px;
    }

}

/* ===== METHOD SECTION ===== */

.method-section {
    position: relative;
    overflow: hidden;
}

    /* IMMAGINE DECORATIVA GRANDE */
    .method-section::before {
        content: "";
        position: absolute;
        left: 20px;
        top: 40%;
        transform: translateY(-50%);
        width: 1400px;
        height: 1200px;
        background: url(/assets/img/images/wireframe-casa.png) no-repeat center;
        background-size: contain;
        opacity: 0.40;
        z-index: 0;
    }

/* manteniamo il testo sopra */
.method-content {
    position: relative;
    z-index: 2;
    padding-left: 40px;
}

.method-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* blocchi 01 / 02 */
.method-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 35px;
}

.method-number {
    font-size: 60px;
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    min-width: 70px;
    line-height: 1;
}

.method-item h6 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.method-item p {
    font-size: 15px;
    font-weight: 300;
    color: var(--cp-grey);
    margin: 0;
}

/* responsive */
@media (max-width: 991px) {

    .method-content {
        padding-left: 0;
        margin-top: 40px;
    }

    .method-number {
        font-size: 50px;
    }
}

.bg-section {
    background: url(/assets/img/bg-img/bg-costruzione.png) no-repeat center;
}
.contact-item {
    background-color: var(--cp-color-bg-1);
}
.blog-contact-form.form-2 {
    background-color: var(--cp-color-bg-1);
}
.post-card .post-content .title {
    font-size: 26px;
    text-transform: none;
}

/* ===== PORTFOLIO FILTER ===== */

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.filter-btn {
    padding: 12px 30px;
    background: #e9e9e9;
    border: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

    .filter-btn.active {
        background: var(--primary-color);
        color: #fff;
    }

    .filter-btn:not(.active):hover {
        background: #dcdcdc;
    }

.service-item-2 .service-content .title {
    font-size: 26px;
    text-transform: none;
}
/* ===== PROJECT DETAIL ===== */

.project-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-category {
    padding: 6px 14px;
    border: 1px solid var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.project-value {
    padding: 6px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.contact-item .icon img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(28%) saturate(1254%) hue-rotate(68deg) brightness(92%) contrast(90%);
}

/* ===== SETTORI DI INTERVENTO / SERVICE SPLIT ===== */

.service-split {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    border-bottom: 1px solid #42B32F;
}

    /* ===== DIAGONALE VERDE CONTENUTA ===== */


    .service-split::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 20%;
        transform: translateY(-50%) skewX(-22deg);
        width: 420px;
        height: 100%;
        background: var(--primary-color);
        z-index: 0;
    }

    /* Sezione alternata (bg-grey) */
    .service-split.bg-grey::after {
        right: 15%;
        left: auto;
    }

/* ===== CONTENUTI SOPRA LA DIAGONALE ===== */

.split-content,
.split-image {
    position: relative;
    z-index: 2;
}

/* ===== NUMERO GRANDE OUTLINE ===== */

.split-number {
    font-size: 80px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

/* ===== TITOLI ===== */

.split-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
}

.split-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===== IMMAGINE GRANDE ===== */

.split-image {
    display: flex;
    justify-content: center;
}

    .split-image img {
        width: 110%;
        max-width: 800px;
        height: auto;
        display: block;
    }

/* ===== RESPONSIVE ===== */

@media (max-width: 1199px) {

    .split-image img {
        width: 100%;
        max-width: 600px;
    }

    .service-split::after {
        width: 320px;
        height: 70%;
    }
}

@media (max-width: 991px) {

    .service-split {
        padding: 90px 0;
    }

        .service-split::after {
            display: none;
        }

    .split-image {
        margin-top: 40px;
        text-align: center;
    }

    .split-title {
        font-size: 28px;
    }

    .split-number {
        font-size: 55px;
    }
}

@media (max-width: 1199px) {

    .hero-content-3 {
        padding: 120px 30px;
    }

        .hero-content-3 .hero-content-inner .section-heading .section-title {
            font-size: 60px;
            max-width: 100%;
        }

        .hero-content-3 .hero-content-inner .section-heading {
            right: 70px;
        }

    .hero-image-oblique {
        right: 0;
        width: 400px;
        clip-path: polygon(20% 0, 100% 0, 80% 100%, 0% 100%);
    }

    .hero-green-card {
        display: none;
    }
}
@media (max-width: 991px) {

    .hero-section-3 {
        padding-bottom: 0;
    }

    .hero-content-3 {
        padding: 120px 20px 60px 20px;
        text-align: left;
    }

        .hero-content-3 .hero-content-inner .section-heading .section-title {
            font-size: 42px;
            line-height: 1.2;
        }

    .hero-content .hero-content-inner p {
        font-size: 20px;
    }

    /* RESET IMMOBILE */
    .hero-image-oblique {
        position: relative;
        width: 100%;
        height: 300px;
        right: 0;
        top: 0;
        clip-path: none;
        margin-top: 40px;
    }

        .hero-image-oblique img {
            object-fit: cover;
        }

    /* NASCONDI CARD VERDE */
    .hero-green-card {
        display: none;
    }

    .hero-content-3 .hero-content-inner .section-heading {
        right: 0;
    }
}

@media (max-width: 575px) {

    .hero-content-3 {
        padding: 100px 15px 40px 15px;
    }

        .hero-content-3 .hero-content-inner .section-heading .section-title {
            font-size: 32px;
        }

    .hero-image-oblique {
        height: 220px;
    }

    .hero-content-3 .hero-content-inner .section-heading {
        right: 0;
    }
}
/* Link progetto */
.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Animazione filtro */
.portfolio-item {
    transition: opacity .3s ease, transform .3s ease;
}

    .portfolio-item.hide {
        opacity: 0;
        transform: scale(.95);
        pointer-events: none;
    }

/* Bottone attivo */
.filter-btn {
    padding: 12px 28px;
    background: #e9e9e9;
    border: none;
    transition: all .25s ease;
}

    .filter-btn.active {
        background: var(--primary-color);
        color: #fff;
    }

.container-fluid {
    padding-right: 100px;
    padding-left: 100px;
}

.contact-top-area .row > div {
    display: flex;
}

.contact-item {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
}

.process-section .process-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-container-2 .bg-img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 150px;
    left: 150px;
    z-index: -1;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}
.page-link {
    position: relative;
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
    .page-link:focus {
        z-index: 3;
        color: var(--primary-color);
        background-color: #e9ecef;
        outline: 0;
        box-shadow: 0 0 0 .25rem #3693225e;
    }

@media (max-width: 1199px) {
    .header .primary-header-inner .header-logo img {
        max-width: 120px;
    }

    .footer-widget .widget-header .footer-logo {
        max-width: 120px;
    }
}

/* =========================
   HERO X SLIDER
========================= */

.heroX-slider {
    position: relative;
}

/* slide */

.heroX-slide {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

/* overlay scuro */

.heroX-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(0,0,0,0.65), rgba(0,0,0,0.35) );
}

/* contenuto */

.heroX-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 50px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    border-left: 5px solid var(--primary-color);
}

    /* titolo */

    .heroX-content h1 {
        font-size: 70px;
        line-height: 1.1;
        font-weight: 500;
        margin-bottom: 30px;
        color: #fff;
    }

        .heroX-content h1 strong {
            color: var(--primary-color);
            font-weight: 600;
        }

    /* testo */

    .heroX-content p {
        font-size: 20px;
        color: #eee;
    }

/* =========================
   HEADER TRASPARENTE SU HERO X
========================= */

/* header sopra la hero */
/* ===== HEADER TRASPARENTE - SOLO HERO X SLIDER ===== */

.header-heroX {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent !important;
}

    .header-heroX .primary-header {
        background: transparent !important;
        box-shadow: none !important;
    }

    .header-heroX .header-menu-wrap ul li a {
        color: #fff !important;
    }

    .header-heroX .primary-header.fixed {
        background: var(--cp-color-bg-1) !important;
    }

        .header-heroX .primary-header.fixed .header-menu-wrap ul li a {
            color: var(--cp-grey) !important;
        }

/* Hero slider parte da top:0 per stare sotto l'header assoluto */
.heroX-slider {
    margin-top: 0 !important;
}
/* ===== HERO TAG ===== */

.heroX-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    padding: 8px 18px;
    margin-bottom: 20px;
    position: relative;
    background: transparent;
    border-left: 3px solid var(--primary-color);
}

    .heroX-tag::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--primary-color);
        opacity: 0.18;
        z-index: 0;
    }


.header .primary-header-inner {
    border-bottom: none;
}
.hero-content-2 {
    padding: 60px 0 60px 0;
}

    .hero-content-2 .section-heading .section-title {
        font-size: 80px;
        font-weight: 500;
        line-height: 1.1;
    }

.hero-section-2 .bg-shape {
    bottom: 0;
}

.hero-carousel .swiper-arrow .swiper-nav {
    background-color: var(--primary-color);
}

.header .primary-header-inner .header-menu-wrap ul li li a {
    background-color: var(--primary-color);
    color: #fff !important;
    opacity: 0.95;
}

/* ===== HERO SECTION 2 ===== */

.hero-section-2 .section-heading .section-title {
    max-width: 100% !important;
    width: 100%;
    text-align: center;
}

.hero-section-2 .section-heading p {
    max-width: 100% !important;
    width: 100%;
    text-align: center;
}

.hero-section-2 .hero-content-inner {
    width: 100%;
}

.hero-section-2 .section-heading {
    margin: auto;
    text-align: center;
}


/* =================================================
   HERO RESPONSIVE
================================================= */

/* ----------- TABLET ----------- */

@media (max-width:1200px) {

    /* HERO X */

    .heroX-content {
        max-width: 600px;
        padding: 40px;
    }

        .heroX-content h1 {
            font-size: 50px;
        }

        .heroX-content p {
            font-size: 18px;
        }

    /* HERO 2 */

    .hero-section-2 .section-heading {
        left: 0 !important;
        margin: auto;
    }

    .hero-content-2 .section-heading .section-title {
        font-size: 55px;
    }

    /* HERO 3 */

    .hero-content-3 {
        padding: 120px 40px;
    }

        .hero-content-3 .hero-content-inner .section-heading .section-title {
            font-size: 55px;
        }

    .hero-image-oblique {
        width: 450px;
    }
}


/* ----------- MOBILE ----------- */

@media (max-width:768px) {

    /* HERO X */

    .heroX-slide {
        min-height: 85vh;
    }

    .heroX-content {
        max-width: 100%;
        padding: 30px;
    }

        .heroX-content h1 {
            font-size: 38px;
            line-height: 1.2;
        }

        .heroX-content p {
            font-size: 16px;
        }

    /* HERO TAG */

    .heroX-tag {
        font-size: 11px;
    }

    /* HERO 2 */

    .hero-content-2 {
        padding: 120px 20px 60px 20px;
    }

        .hero-content-2 .section-heading .section-title {
            font-size: 40px;
        }

    .hero-section-2 .section-heading {
        left: 0 !important;
        max-width: 100% !important;
    }

    /* HERO 3 */

    .hero-content-3 {
        padding: 120px 20px 50px 20px;
    }

        .hero-content-3 .hero-content-inner .section-heading .section-title {
            font-size: 38px;
        }

    /* immagine diagonale */

    .hero-image-oblique {
        position: relative;
        width: 100%;
        height: 260px;
        clip-path: none;
        margin-top: 40px;
    }

    .hero-green-card {
        display: none;
    }
}


/* ----------- SMALL MOBILE ----------- */

@media (max-width:480px) {

    .heroX-content {
        padding: 25px;
    }

        .heroX-content h1 {
            font-size: 30px;
        }

        .heroX-content p {
            font-size: 15px;
        }

    /* HERO 2 */

    .hero-content-2 .section-heading .section-title {
        font-size: 30px;
    }

    /* HERO 3 */

    .hero-content-3 .hero-content-inner .section-heading .section-title {
        font-size: 30px;
    }
}

/* =================================
   FIX SCROLL ORIZZONTALE
================================= */

html, body {
    overflow-x: hidden;
}

/* container fluid responsive */

@media (max-width:768px) {

    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* promo image */

.promo-img {
    width: 100%;
    margin-left: 0;
}

/* split image */

.split-image img {
    width: 100%;
}

/* hero oblique fix */

@media (max-width:991px) {

    .hero-image-oblique {
        right: 0;
    }
}

/* solo heroX e menu aperto */

body.side-menu-open .header-heroX .header-logo {
    display: none;
}

body.side-menu-open .header-heroX .mobile-side-menu-toggle {
    display: none;
}

html {
    overflow-x: clip; /* più affidabile di hidden su html */
}

body {
    overflow-x: hidden;
    max-width: 100%;
}