﻿/* =====================================================
   BASE
===================================================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Rajdhani';
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/*@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1280px;
    }
}*/

/* =====================================================
   RESET / UTILITY
===================================================== */

ol, ul {
    padding-left: 0rem;
}

a {
    color: var(--cp-color-theme-secondary);
    text-decoration: none;
}

    a:hover {
        color: var(--cp-color-theme-primary);
    }

.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;
}

/* =====================================================
   TYPOGRAPHY (DESKTOP IDENTICO)
===================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--cp-color-common-white);
}

h1,
h2,
.hero-title {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    font-size: 74px !important;
}

h3 {
    font-family: 'Rajdhani';
    font-size: 50px !important;
    font-weight: 700 !important;
}

h4 {
    font-family: 'Rajdhani';
    font-size: 30px !important;
    font-weight: 700 !important;
}

h5 {
    font-family: 'Rajdhani';
    font-size: 24px !important;
    font-weight: 700 !important;
}

p {
    color: var(--cp-color-common-white);
    font-weight: 300;
    font-size: 16px;
}

ul,
ul li{
    color: var(--cp-color-common-white);
    font-weight: 300;
    font-family: var(--cp-ff-p);
    font-size: 18px;
}

.hero-content .hero-content-inner p {
    font-family: var(--cp-ff-heading);
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
}

.page-header {
    height: 350px;
}

    .page-header .page-header-content {
        padding: 154px 0 120px 0;
    }
        /* =====================================================
   HEADER / HERO
===================================================== */

.header .primary-header-inner .header-logo img {
    max-width: 320px;
    height: 110px;
    padding: 10px;
}
.footer-widget .widget-header .footer-logo {
    max-width: 300px;
}

@media (max-width: 1199px) {
    .header .primary-header-inner .header-logo img {
        max-width: 150px;
        object-fit: contain;
    }
}


        .primary-header {
            background-color: var(--cp-color-dark) !important;
        }

        .header-2 .primary-header-inner {
            background-color: var(--cp-color-dark) !important;
            padding: 0 24px;
            border-radius: 0 0 8px 8px;
            border: none;
        }

        .header-3 .primary-header .primary-header-inner .header-menu-wrap ul li a {
            color: var(--cp-color-common-white);
        }

.hero-section-2 {
    background-image: url(/img/bg-img/hero.jpg) !important;
    height: 1000px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 3;
}
        /* =====================================================
   BUTTONS
===================================================== */

        .cp-primary-btn {
            background-color: var(--cp-color-theme-primary);
            color: var(--cp-color-common-white);
            border-radius: 0px;
            text-decoration: none;
            padding: 20px;
        }

            .cp-primary-btn:focus {
                color: var(--cp-color-text-white);
            }

            .cp-primary-btn:before {
                background: #CD1240;
            }
        /* =====================================================
   SECTIONS
===================================================== */

        .bg-brown {
            background-color: var(--cp-color-dark);
        }



.bg-gray {
    background-color: #F6F6F6;
}


        .section-heading .section-title {
            color: var(--cp-color-common-white);
        }
        /* =====================================================
   SERVICES (COSA FACCIAMO)
===================================================== */
        /* stato iniziale */
        .service-card[data-card-animation] {
            opacity: 0;
            transform: translateX(-40px);
        }
        /* quando attiva */
        .service-card.is-visible {
            opacity: 1;
            transform: translateX(0);
            transition: opacity var(--card-duration, 0.8s) ease, transform var(--card-duration, 0.8s) cubic-bezier(.22,.61,.36,1);
        }

        .service-card {
            height: 100%;
            padding: 20px;
            background: var(--cp-color-dark) !important;
            border: 1px solid rgba(180, 30, 30, 0.4);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

.service-card {
    transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.18s ease-out;
}

    .service-card:hover {
        border-color: #b41e1e;
        transform: translateY(-8px) scale(1.015);
        box-shadow: 0 18px 40px rgba(139, 0, 37, 0.6), 0 0 20px rgba(180, 30, 30, 0.35);
    }


        .service-icon {
            font-size: 36px;
            color: #ffffff;
            margin-bottom: 30px;
        }

        .service-title {
            color: #ffffff;
            font-size: 25px;
            font-weight: 700;
            line-height: 1.4;
        }

        .service-link {
            margin-top: 40px;
            font-size: 14px;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

            .service-link i {
                font-size: 12px;
            }
        /* =====================================================
   PROCESSO
===================================================== */

        #process-image{
            height: 400px;
        }

@media (max-width: 575px) {
    #process-image {
        height: 300px;
    }
}

    .promo-card-wrap .promo-item-2 {
        background-color: transparent !important;
        padding: 25px 42px;
    }

        .promo-card-wrap .promo-item-2 .number {
            font-family: var(--cp-ff-heading);
            height: 80px;
            width: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgb(139 0 37 / 80%);
            border-radius: 50%;
            font-size: 20px;
            font-weight: 700;
            line-height: 1;
            color: #8b0025;
        }

    .process-wrapper {
        position: relative;
        padding-left: 60px;
    }

        .process-wrapper::before {
            content: "";
            position: absolute;
            left: 18px;
            top: 0;
            bottom: 0;
            width: 1px;
            background: rgba(139, 0, 37, 0.4);
        }

    .process-list {
        display: flex;
        flex-direction: column;
        gap: 85px;
    }

    .process-item {
        cursor: pointer;
        position: relative;
        padding: 22px 32px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        color: var(--cp-color-common-white);
        font-family: 'Rajdhani';
        font-weight: 700;
        font-size: 20px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }

        .process-item::before {
            content: "";
            position: absolute;
            left: -50px;
            top: 50%;
            transform: translateY(-50%);
            width: 15px;
            height: 15px;
            background: #8b0025;
            border-radius: 50%;
        }

        .process-item.active {
            border-color: #8b0025;
            color: #8b0025;
        }

            .process-item.active::before {
                background: var(--cp-color-theme-secondary);
            }

        .process-item:hover {
            border-color: #ffffff;
        }
    /* =====================================================
   PROJECT / SPONSOR
===================================================== */
    /* =====================================================
   PROJECT – SEMPRE COME HOVER
===================================================== */

    .project-item {
        position: relative;
    }

        .project-item .project-thumb {
            height: 650px;
        }
            /* overlay SEMPRE visibile */
            .project-item .project-thumb .overlay {
                opacity: 1;
                visibility: visible;
                background: rgba(0, 0, 0, 0.55); /* come hover */
                transition: none;
            }
        /* contenuto SEMPRE visibile */
        .project-item .project-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            transition: none;
            left: 0;
        }
            /* titolo */
            .project-item .project-content .title a {
                color: var(--cp-color-common-white);
                font-size: 28px;
                font-weight: 700;
            }
        /* disattiva completamente l’hover */
        .project-item:hover .project-thumb .overlay,
        .project-item:hover .project-content {
            opacity: 1;
            visibility: visible;
            transform: none;
        }
    /* =====================================================
   FOOTER
===================================================== */

    .footer-widget.footer-col-2 .footer-list li a {
        position: relative;
        text-decoration: none;
    }

    .footer-widget .address-list li a:hover {
        color: var(--cp-color-theme-primary);
        border-bottom: none;
    }

    .copyright-area {
        border-top: none;
    }
    /* =====================================================
   RESPONSIVE – MOBILE (NO CAMBI DESKTOP)
===================================================== */

    @media (max-width: 991px) {
        /* ================= HERO ================= */
        .hero-section-2 {
            padding-top: 120px;
            padding-bottom: 80px;
            height: 800px;
        }

        .hero-content {
            text-align: left;
        }

            .hero-content .section-title {
                font-size: 42px !important;
                line-height: 1.2;
            }

            .hero-content .section-subtitle {
                font-size: 18px;
                line-height: 1.4;
            }

            .hero-content .cp-primary-btn {
                padding: 14px 22px;
                font-size: 14px;
            }
        /* ================= ABOUT ================= */
        .about-section-2 .row.mt-4 > div {
            margin-bottom: 24px;
        }
        /* ================= SERVIZI ================= */
        .service-card {
            padding: 28px 22px;
        }

        .service-title {
            font-size: 20px;
        }

        .service-link {
            margin-top: 20px;
            font-size: 13px;
        }

        .service-icon img {
            max-width: 70px;
        }
        /* ================= PROCESSO ================= */
        .process-wrapper {
            padding-left: 0;
        }

            .process-wrapper::before,
            .process-item::before {
                display: none;
            }

        .process-list {
            gap: 18px;
        }

        .process-item {
            padding: 16px 18px;
            font-size: 14px;
        }
        /* ================= PROMO IMG ================= */
        .promo-right {
            margin-top: 32px;
        }

        .promo-img img {
            width: 100%;
            height: auto;
        }
        /* ================= SETTORI ================= */
        .project-item .project-thumb {
            height: 360px;
        }

        .project-item .project-content .title {
            font-size: 20px;
        }
        /* ================= SPONSOR ================= */
        .sponsor-wrap {
            padding-top: 100px;
            padding-bottom: 100px;
        }
        /* ================= BLOG ================= */
        .blog-clean .post-content {
            padding: 20px;
        }

            .blog-clean .post-content .title {
                font-size: 18px;
                line-height: 1.3;
            }

        .blog-clean .post-meta li {
            font-size: 12px;
        }
    }

    .project-item .project-content .title a {
        color: var(--cp-color-common-white);
        visibility: visible !important;
    }

    .project-item .project-content {
        background-color: transparent;
    }

    .project-item .project-thumb .overlay {
        background: #00000059;
    }

    .project-item .project-content .title {
        font-size: 28px;
        font-weight: 700;
    }
    /* =====================================================
   BLOG – STILE SEMPLICE E COERENTE
===================================================== */

.blog-clean .blog-clean-card {
    background: #ffffff;
    border: 15px solid #ffffff;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
    /* immagine */
    .blog-clean .post-thumb img {
        width: 100%;
        display: block;
    }
    /* contenuto */
    .blog-clean .post-content {
        padding: 34px;
        background: #ffffff;
        flex-grow: 1;
    }
        /* titolo */
        .blog-clean .post-content .title {
            font-size: 24px;
            font-weight: 700;
            line-height: 1.35;
            margin-bottom: 10px;
        }

            .blog-clean .post-content .title a {
                color: var(--cp-color-dark);
            }

    .post-card .post-thumb img {
        border-radius: 0px;
    }

    .post-card .post-thumb {
        border-radius: 0px;
    }

    .post-card .post-content .title a:hover {
        color: var(--cp-color-theme-secondary);
        background-size: 100% 2px;
        text-decoration: none;
    }

    .footer-widget .widget-header .widget-title {
        color: var(--cp-color-common-white);
        font-size: 24px;
        font-weight: 700;
    }

    .chi-siamo-link {
        color: #ffffff;
        text-transform: uppercase;
        font-size: 18px;
        letter-spacing: 1px;
        text-decoration: none;
        transition: opacity .3s ease;
    }

    .header .primary-header-inner .header-menu-wrap ul li li a {
        background-color: var(--cp-color-dark);
        display: block;
        height: auto;
        line-height: inherit;
        color: var(--cp-color-common-white);
    }
    /* =====================================================
   SERVICES – MARRONE SOLIDO + IMMAGINE SX + ROSSO ALTO SX
===================================================== */

    .services-bg {
        position: relative;
        background-color: var(--cp-color-dark);
        background-image: radial-gradient(180% 180% at top right, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 5%, rgba(139, 0, 37, 0.0) 15%), linear-gradient(90deg, rgba(43, 32, 26, 0.0) 0%, rgba(43, 32, 26, 0.90) 25%, rgb(40 31 26) 35%, rgb(40 31 26) 100%), url(/img/images/ingranaggi.png);
        background-repeat: no-repeat;
        background-size: 100% 100%, /* radial */
        100% 100%, /* marrone */
        contain; /* immagine */

        background-position: top left, center, left center;
        overflow: hidden;
    }

    .service-card {
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(2px);
    }
    /* =====================================================
   ABOUT – CONTINUITÀ DEL ROSSO (BASSO DESTRA)
===================================================== */

    .about-gradient {
        position: relative;
        background-color: var(--cp-color-dark);
        background-image: radial-gradient( 180% 180% at bottom right, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 6%, rgba(139, 0, 37, 0.0) 15% );
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .about-gradient-top {
        position: relative;
        background-color: var(--cp-color-dark);
        background-image: radial-gradient( 180% 180% at top right, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 6%, rgba(139, 0, 37, 0.0) 15% );
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .about-gradient-left {
        position: relative;
        background-color: var(--cp-color-dark);
        background-image: radial-gradient( 180% 180% at bottom left, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 6%, rgba(139, 0, 37, 0.0) 15% );
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .about-gradient-combined {
        position: relative;
        background-color: var(--cp-color-dark);
        background-image:
        /* ROSSO IN ALTO A DESTRA */
        radial-gradient( 180% 180% at top right, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 6%, rgba(139, 0, 37, 0.0) 15% ),
        /* ROSSO IN BASSO A SINISTRA */
        radial-gradient( 180% 180% at bottom left, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 6%, rgba(139, 0, 37, 0.0) 15% );
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .about-gradient-combined-inverted {
        position: relative;
        background-color: var(--cp-color-dark);
        background-image:
        /* ROSSO IN ALTO A DESTRA */
        radial-gradient( 180% 180% at top left, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 6%, rgba(139, 0, 37, 0.0) 15% ),
        /* ROSSO IN BASSO A SINISTRA */
        radial-gradient( 180% 180% at bottom right, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 6%, rgba(139, 0, 37, 0.0) 15% );
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .about-gradient-left-top {
        position: relative;
        background-color: var(--cp-color-dark);
        background-image: radial-gradient( 180% 180% at top left, rgba(139, 0, 37, 0.85) 0%, rgba(139, 0, 37, 0.65) 6%, rgba(139, 0, 37, 0.0) 15% );
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    /* =====================================================
   CONSULT – COME SCREEN
===================================================== */

    .consult-bg {
        position: relative;
        overflow: hidden;
        background-color: #281F1A;
    }
        /* immagine a destra */
        .consult-bg .bg-img {
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            height: 100%;
            z-index: 1;
        }

            .consult-bg .bg-img img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        /* fade scuro sopra l’immagine */
        .consult-bg::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 2;
            background: linear-gradient( 90deg, #281F1A 0%, #281F1A 50%, rgba(40, 31, 26, 0.85) 65%, rgba(40, 31, 26, 0.4) 75%, rgba(40, 31, 26, 0.0) 88% );
        }
    /* contenuto sopra tutto */
    .consult-section .container {
        position: relative;
        z-index: 3;
    }
    /* =====================================================
   A CHI CI RIVOLGIAMO – LISTA
===================================================== */

    .target-list {
        list-style: disc;
        padding-left: 20px;
        margin-top: 30px;
    }

        .target-list li {
            margin-bottom: 26px;
        }

        .target-list strong {
            display: block;
            font-weight: 700;
            font-size: 18px;
            margin-bottom: 6px;
            color: var(--cp-color-common-white);
        }

        .target-list p {
            margin: 0;
            font-size: 16px;
            line-height: 1.6;
            color: var(--cp-color-common-white);
        }
    /* =====================================================
   SETTORI – LAYOUT COME SCREEN
===================================================== */

    .sectors-section {
        position: relative;
        overflow: hidden;
    }
        /* ingranaggio grande sul fondo a destra */
        .sectors-section::before {
            content: "";
            position: absolute;
            right: -650px;
            top: 68%;
            transform: translateY(-45%);
            width: 100%;
            height: 700px;
            background-image: url(/img/bg-img/ingranaggio.png);
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;
            opacity: 0.35;
            pointer-events: none;
            z-index: 0;
        }
        /* tutto il contenuto sopra */
        .sectors-section .container {
            position: relative;
            z-index: 1;
        }
    /* testo intro sinistra */
    .sectors-intro {
        font-size: 16px;
        line-height: 1.6;
        opacity: 0.9;
        max-width: 360px;
    }
    /* griglia a destra: 2 colonne + featured che sta sotto a destra */
    .sectors-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px; /* un po’ più staccate */
        align-items: stretch;
    }
        /* le card della seconda riga scendono */
        .sectors-grid > .sector-card:nth-child(3),
        .sectors-grid > .sector-card:nth-child(4) {
            margin-top: 60px;
        }
    /* la card featured sta in colonna 2, riga 2 (basso a destra) */
    .sector-card--featured {
        grid-column: 2;
    }

    .sector-card {
        min-height: 220px;
        padding: 50px;
        border: 1px solid rgba(139, 0, 37, 0.35);
        background: linear-gradient( 180deg, rgb(40, 31, 26) 0%, rgb(40, 31, 26) 35%, rgb(90, 20, 35) 100% );
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: border-color .25s ease, transform .25s ease;
    }


        .sector-card:hover {
            border-color: rgba(139, 0, 37, 0.75);
            transform: translateY(-2px);
        }
    /* card "Macchine speciali" nel col-4 */
    .col-lg-4 > .sector-card {
        margin-top: 80px;
        max-width: 85%;
    }
    /* restringe visivamente le card del col-8 */
    .col-lg-8 .sector-card {
        max-width: 85%;
    }


    .sector-title {
        font-size: 20px;
        font-weight: 700;
        margin: 0 0 10px 0;
        color: var(--cp-color-common-white);
    }

    .sector-text {
        margin: 0 0 18px 0;
        font-size: 14px;
        line-height: 1.6;
        opacity: 0.9;
        color: var(--cp-color-common-white);
    }

    .sector-link {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        opacity: 0.9;
    }

        .sector-link:hover {
            opacity: 1;
        }

    .hero-content {
        padding: 320px 0 105px 0
    }

    .hero-chi-siamo {
        position: relative;
        background-color: var(--cp-color-dark);
        overflow: hidden;
    }

    .hero-image-col {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 55%;
        z-index: 2; /* ⬅ immagine */
        pointer-events: none;
    }


    .hero-image {
        position: absolute;
        right: -950px;
        top: 55%;
        transform: translateY(-50%);
        height: 120%;
        width: auto;
        max-width: none;
        object-fit: contain;
        opacity: 0.65;
    }

    .hero-chi-siamo .hero-container {
        position: relative;
        z-index: 4;
    }

    @media (max-width: 991px) {

        .hero-image-col {
            position: relative;
            width: 100%;
            height: auto;
            margin-top: 40px;
        }

        .hero-image {
            position: relative;
            right: 0;
            top: 0;
            transform: none;
            width: 100%;
            height: auto;
        }

        .hero-chi-siamo::after {
            display: none;
        }
    }
    /* =====================================================
   VALORI
===================================================== */

    .values-section {
        position: relative;
        padding: 140px 0;
        background-color: var(--cp-color-dark);
        overflow: hidden;
    }
        /* sfumatura rossa morbida come screen */
        .values-section::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient( circle at bottom left, rgba(139, 0, 37, 0.35) 0%, rgba(139, 0, 37, 0.18) 20%, rgba(139, 0, 37, 0.08) 35%, rgba(139, 0, 37, 0.0) 55% );
            z-index: 0;
        }

        .values-section .container {
            position: relative;
            z-index: 1;
        }
    /* GRID */
    .values-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 80px 60px;
        margin-top: 80px;
    }
    /* CARD */
    .value-card {
        text-align: center;
    }
    /* ICONA */
    .value-icon {
        margin-bottom: 26px;
    }

        .value-icon img {
            width: 120px;
            height: auto;
        }

    .sfalsato {
        margin-top: 220px
    }
    /* =====================================================
   RESPONSIVE
===================================================== */

    @media (max-width: 991px) {
        .values-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 60px 40px;
        }
    }

    @media (max-width: 575px) {
        .values-grid {
            grid-template-columns: 1fr;
            gap: 50px;
        }

        .value-icon img {
            width: 80px;
        }

        .sfalsato {
            margin-top: 0px
        }
    }

    .service-details-img {
        height: 300px;
    }

    .service-details-content {
        max-width: 620px;
    }
    /* =====================================================
   CONTATTI – COME SCREEN
===================================================== */

    .contact-content {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    .contact-item h4 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 6px;
        color: var(--cp-color-common-white);
    }

    .contact-item p {
        font-size: 16px;
        font-weight: 300;
        line-height: 1.6;
        color: var(--cp-color-common-white);
    }

    .contact-item a {
        color: var(--cp-color-common-white);
        text-decoration: none;
    }

        .contact-item a:hover {
            opacity: 0.8;
        }

    .promo-section-2 {
        position: relative;
        overflow: hidden;
    }

        .promo-section-2 .container {
            position: relative;
            z-index: 3;
        }

    .promo-image-col {
        position: absolute;
        top: 0;
        right: 0;
        width: 55%;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }

    .promo-image-wrap {
        position: relative;
        width: 100%;
        height: 100%;
    }

        .promo-image-wrap img {
            position: absolute;
            right: -350px;
            top: 50%;
            transform: translateY(-50%);
            height: 130%;
            width: auto;
            max-width: none;
            object-fit: contain;
            opacity: 0.5;
            filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 1)) !important;
        }

    @media (max-width: 991px) {

        .promo-image-col {
            position: relative;
            width: 100%;
            height: auto;
            margin-top: 40px;
        }

        .promo-image-wrap img {
            position: relative;
            right: 0;
            top: 0;
            transform: none;
            width: 100%;
            height: auto;
            opacity: 1;
            filter: none;
        }

        .promo-section-2::after {
            display: none;
        }
    }

    .settori {
        height: 115% !important;
    }

    .hero-section,
    .promo-section-2,
    .sectors-section,
    .hero-chi-siamo {
        overflow: hidden;
    }

    @media (max-width: 991px) {
        /* HERO */
        .hero-content {
            padding: 140px 0 80px 0;
        }

        .hero-image,
        .promo-image-wrap img {
            position: relative;
            right: 0;
            left: 0;
            top: 0;
            transform: none;
            width: 100%;
            height: auto;
            max-width: 100%;
            opacity: 1;
        }
        /* colonne immagine */
        .promo-image-col,
        .hero-image-col {
            position: relative;
            width: 100%;
            height: auto;
            margin-top: 40px;
            pointer-events: auto;
        }
    }

    @media (max-width: 991px) {
        .sectors-section::before,
        .promo-section-2::after {
            display: none;
        }
    }

    @media (max-width: 991px) {
        .px-5 {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
    }

    @media (max-width: 991px) {
        .sectors-grid {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .sector-card,
        .sector-card--featured {
            grid-column: auto;
            margin-top: 0;
            max-width: 100%;
        }

        .col-lg-4 > .sector-card {
            margin-top: 40px;
            max-width: 100%;
        }
    }

    @media (max-width: 991px) {
        /* PARAGRAFI */
        p {
            font-size: 15px;
            line-height: 1.6;
        }
        /* H4 */
        h4 {
            font-size: 22px !important;
            line-height: 1.25;
        }
        /* H3 */
        h3 {
            font-size: 28px !important;
            line-height: 1.25;
        }
    }

    @media (max-width: 575px) {
        /* PARAGRAFI */
        p {
            font-size: 14px;
            line-height: 1.65;
        }
        /* H4 */
        h4 {
            font-size: 20px !important;
            line-height: 1.3;
        }
        /* H3 */
        h3 {
            font-size: 26px !important;
            line-height: 1.3;
        }
    }

    @media (max-width: 575px) {
        .service-card p,
        .sector-text,
        .target-list p {
            font-size: 14px;
            line-height: 1.6;
        }
    }

    @media (max-width: 991px) {
        .page-header {
            height: 240px;
        }

            .page-header .page-header-content {
                padding: 120px 0 60px 0;
                text-align: left;
            }
    }

    @media (max-width: 575px) {
        .page-header {
            height: 200px;
        }

            .page-header .page-header-content {
                padding: 100px 0 40px 0;
            }
    }

    @media (max-width: 991px) {
        .contact-section {
            padding-top: 80px;
            padding-bottom: 80px;
        }
    }

    @media (max-width: 575px) {
        .contact-section {
            padding-top: 60px;
            padding-bottom: 60px;
        }
    }

    @media (max-width: 991px) {
        .contact-info {
            gap: 32px;
        }
    }

    @media (max-width: 575px) {
        .contact-info {
            gap: 24px;
        }
    }

    @media (max-width: 991px) {
        .contact-info h4 {
            font-size: 20px !important;
            margin-bottom: 4px;
        }

        .contact-info p {
            font-size: 15px;
            line-height: 1.6;
        }
    }

    @media (max-width: 575px) {
        .contact-info h4 {
            font-size: 18px !important;
        }

        .contact-info p {
            font-size: 14px;
        }
    }

    @media (max-width: 991px) {
        .map-wrapper .container {
            padding-left: 0;
            padding-right: 0;
            max-width: 100%;
        }

        .map-wrapper iframe {
            width: 100%;
            height: 380px;
            display: block;
        }
    }

    @media (max-width: 575px) {
        .map-wrapper iframe {
            height: 300px;
        }
    }

    @media (max-width: 991px) {
        .contact-section .row > div:first-child {
            order: 1;
        }

        .contact-section .row > div:last-child {
            order: 2;
        }
    }

    @media (max-width: 991px) {
        .hero-content .hero-content-inner p {
            font-size: 17px;
            line-height: 1.5;
            margin-bottom: 24px;
        }
    }

    @media (max-width: 575px) {
        .hero-content .hero-content-inner p {
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 20px;
        }
    }

    @media only screen and (max-width: 992px) {
        .mobile-side-menu {
            background-color: var(--cp-color-dark);
        }
    }

    .mean-bar .mean-nav.mean-nav > ul li a {
        color: var(--cp-color-theme-primary);
    }

    @media only screen and (max-width: 992px) {
        .mobile-side-menu .side-menu-head .mobile-side-menu-close {
            color: var(--cp-color-theme-primary)
        }
    }

    .mean-bar .mean-nav.mean-nav > ul li a.mean-expand {
        background-color: var(--cp-color-theme-primary);
    }
    /* =====================================================
   PROMO SECTION – VERSIONE INVERTITA (IMMAGINE A SINISTRA)
===================================================== */
    /* immagine a sinistra (già fatto, lo ribadisco completo) */
    .promo-section--invert .promo-image-col {
        left: 0;
        right: auto;
    }
    /* immagine spinta verso sinistra */
    .promo-section--invert .promo-image-wrap img {
        left: -350px;
        right: auto;
    }
    /* TESTO FORZATO A DESTRA */
    .promo-section--invert .row {
        justify-content: flex-end;
    }

    .promo-section--invert .col-lg-6:not(.promo-image-col) {
        margin-left: auto;
        position: relative;
        z-index: 4; /* sopra l’immagine */
        text-align: left;
    }


    @media (max-width: 991px) {
        .promo-image-col {
            position: relative;
            width: 100%;
            height: auto;
            margin-top: 40px;
        }

        .promo-image-wrap img {
            position: relative;
            left: 0;
            right: 0;
            transform: none;
            width: 100%;
            height: auto;
        }

        .promo-section-2::after {
            display: none;
        }
    }


    .post-card-3 {
        grid-gap: 0px;
    }

    .hero-section-2::before {
        content: "";
        position: absolute;
        top: 183px;
        left: 178px;
        width: 750px;
        height: 750px;
        background-image: url("/img/images/gear.png"); /* <-- ASSOLUTO */
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        animation: gearRotate 30s linear infinite;
        pointer-events: none;
        z-index: 1; /* <-- lo metto visibile sopra lo sfondo */
    }

    .hero-section-2 .container {
        position: relative;
        z-index: 2;
    }

    @keyframes gearRotate {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

.post-meta li {
    color: #ffffff;
}

    .blog-details-wrap .post-meta .category {
        border: 1px solid rgb(220 53 69 / 20%);
    }

    .sidebar-widget .widget-title:before {
        width: 0;
        height: 0;
    }
.hero-section-2 {
    background-color: var(--cp-color-dark);
}


.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
}

    .whatsapp-popup.show {
        transform: scale(1);
    }

.whatsapp-header {
    background: var(--cp-color-dark);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

    .whatsapp-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.whatsapp-header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-body {
    padding: 20px;
    background: #e5ddd5;
}

.whatsapp-message {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.whatsapp-footer {
    padding: 15px;
    background: white;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--cp-color-dark);
    color: var(--cp-color-dark);
    padding: 12px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .whatsapp-button:hover {
        background: var(--cp-color-dark);
        color: white;
    }

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background: #281f1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 0, 37, 0.65);
    transition: all 0.3s ease;
    border: none;
}

    .whatsapp-float-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(139, 0, 37, 0.85);
    }

    .whatsapp-float-btn i {
        color: white;
        font-size: 30px;
    }

.sidebar-widget {
    background-color: #ededed;
}

.page-header .page-header-content .sub-title .home:before {
    background-color: var(--cp-color-common-white);
    content: "/";
    height: 0px;
    width: 0px;
    position: absolute;
    top: 0;
    right: 10px;
    transform: translateY(-50%);
    border-radius: 50%;
}
.page-header .page-header-content .inner-page {
    color: var(--cp-color-theme-secondary);
}
