.btn-cta-header {
    margin-top: 8px !important; 
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 260px;
    min-height: 72px;
    padding: 4px 6px;

    margin-left: 25px;

    background: #ffffff;
    color: #155e94 !important;

    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);

    text-align: center;
    text-decoration: none !important;
    line-height: 1.35;

    transition: .3s;
}

.btn-cta-header .cta-phone {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 3px;
}

.btn-cta-header .cta-info {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #155e94 !important;
}

.btn-cta-header:hover {
    transform: translateY(-2px);
    color: #155e94 !important;
    text-decoration: none !important;
}

.wf-icon-zoom-link {
    display: none !important;
}

@media (max-width: 767px) {

    #sp-header .container,
    #sp-header .container-inner,
    #sp-header .row {
        align-items: center !important;
    }  }


/* MENU ORIZZONTALE WORKTEAMCS */

.workteam-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    background: #242424;
    padding: 15px 20px;
}

.workteam-nav-label {
    color: #f36c00;
    font-weight: 600;
    font-size: 17px;
}

.workteam-nav a {
    color: #f36c00;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s ease;
}

.workteam-nav a:hover {
    color: #ffffff;
}

/* MOBILE */

@media (max-width: 767px) {
    .workteam-nav {
        gap: 6px 14px;
        padding: 12px 10px;
    }

    .workteam-nav a {
        font-size: 15px;
        line-height: 1.4;
    }
    .workteam-nav-label {
        font-size: 15px;
    }
}




/* =========================================================
   WORK-TEAM
   ========================================================= */

.workteam-map {
    --wt-orange: #f36c00;
    --wt-dark: #252525;
    --wt-grey: #f2f2f2;
    --wt-border: #dedede;

    max-width: 1250px;
    margin: 0 auto;
    padding: 45px 15px 55px;
    background: #ffffff;
}


/* =========================================================
   TITOLO
   ========================================================= */

.workteam-heading {
    text-align: center;
    margin-bottom: 58px;
}

.workteam-heading h2 {
    margin: 0;
    color: var(--wt-dark);
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
}

.workteam-heading h2::after {
    content: "";
    display: block;

    width: 75px;
    height: 4px;

    margin: 14px auto 0;

    background: var(--wt-orange);
    border-radius: 4px;
}


/* =========================================================
   BOX
   ========================================================= */

.workteam-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 90px;
    padding: 15px 10px;

    background: var(--wt-grey);
    border: 1px solid var(--wt-border);
    border-radius: 10px;

    color: var(--wt-dark) !important;
    text-decoration: none !important;
    text-align: center;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;

    box-shadow: 0 4px 12px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}


.workteam-box:hover {
    background: var(--wt-orange);
    border-color: var(--wt-orange);

    color: #ffffff !important;

    transform: translateY(-4px);

    box-shadow: 0 9px 22px rgba(0,0,0,.16);
}


/* =========================================================
   PRIMA RIGA
   ========================================================= */

.workteam-main {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}


/* FRECCE SUPERIORI */

.workteam-main .workteam-box::before {
    content: "";
    position: absolute;

    left: 50%;
    top: -29px;

    transform: translateX(-50%);

    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 14px solid var(--wt-orange);
}


.workteam-main .workteam-box::after {
    content: "";
    position: absolute;

    left: 50%;
    top: -42px;

    transform: translateX(-50%);

    width: 5px;
    height: 14px;

    background: var(--wt-orange);
}


/* =========================================================
   AREA CLIENTI
   ========================================================= */

.workteam-client-area {
    /*
       Il gruppo inferiore occupa 4 colonne virtuali.
       Lo posizioniamo sotto l'area CLIENTI.
    */

    width: 68%;
    margin: 0 auto;

    position: relative;
}


/* =========================================================
   LINEA VERTICALE DA CLIENTI
   ========================================================= */

.wt-client-stem {
    position: relative;

    width: 4px;
    height: 35px;

    /*
       Centro di CLIENTI rispetto
       al gruppo inferiore.
    */

    margin-left: 28%;

    background: var(--wt-orange);
}


/* punta */

.wt-client-stem::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: -1px;

    transform: translate(-50%, 100%);

    width: 0;
    height: 0;

    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--wt-orange);
}


/* =========================================================
   RAMIFICAZIONE
   ========================================================= */

.wt-branches {
    position: relative;

    width: 68%;
    height: 40px;

    border-top: 4px solid #c9c9c9;
}


/* posizionamento della linea */

.wt-branches {
    margin-left: 0;
}


/* =========================================================
   TRE FRECCE VERTICALI
   ========================================================= */

.wt-branch {
    position: absolute;

    top: 0;

    width: 4px;
    height: 25px;

    background: var(--wt-orange);
}


/* Preventivi */

.wt-branch-1 {
    left: 12.5%;
}


/* Contratti */

.wt-branch-2 {
    left: 50%;
}


/* Rilevamento */

.wt-branch-3 {
    left: 82%;
}


/* punte */

.wt-branch::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: -13px;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 13px solid var(--wt-orange);
}


/* =========================================================
   SECONDA RIGA
   ========================================================= */

.workteam-secondary {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1.2fr
        1.3fr;

    gap: 16px;
}


/* =========================================================
   RILEVAMENTO → FATTURAZIONE AUTOMATICA
   ========================================================= */

.wt-auto::before {
    content: "";

    position: absolute;

    left: -17px;
    top: 50%;

    width: 17px;
    height: 4px;

    transform: translateY(-50%);

    background: var(--wt-orange);
}


.wt-auto::after {
    content: "";

    position: absolute;

    left: -5px;
    top: 50%;

    transform: translateY(-50%);

    width: 0;
    height: 0;

    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 13px solid var(--wt-orange);
}


/* =========================================================
   ANCORE
   ========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .workteam-main {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .workteam-main .workteam-box::before,
    .workteam-main .workteam-box::after {
        display: none;
    }

    .workteam-client-area {
        width: 100%;
        margin-top: 18px;
    }

    .wt-client-stem,
    .wt-branches {
        display: none;
    }

    .workteam-secondary {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .wt-auto::before,
    .wt-auto::after {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .workteam-map {
        padding: 30px 10px;
    }

    .workteam-heading {
        margin-bottom: 30px;
    }

    .workteam-heading h2 {
        font-size: 26px;
    }

    .workteam-heading h2::after {
        width: 55px;
        height: 3px;
        margin-top: 10px;
    }

    .workteam-main,
    .workteam-secondary {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .workteam-client-area {
        margin-top: 12px;
    }

    .workteam-box {
        min-height: 72px;
        padding: 12px 8px;

        font-size: 13px;
    }
}


/* =========================================================
   SMARTPHONE PICCOLI
   ========================================================= */

@media (max-width: 430px) {

    .workteam-main,
    .workteam-secondary {
        grid-template-columns: 1fr;
    }

    .workteam-box {
        min-height: 65px;
    }
}


/* ==========================================
   GESTIONE PREVENTIVI - GRIGLIA IMMAGINI
   ========================================== */

.preventivi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 20px auto;
}

.preventivi-item {
    min-width: 0;
    text-align: center;
}

.preventivi-item a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.preventivi-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 273 / 164;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

.preventivi-item a:hover img {
    transform: scale(1.03);
}

.preventivi-item p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
}

/* TABLET - 2 COLONNE */

@media (max-width: 991px) {
    .preventivi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* SMARTPHONE - 1 COLONNA */

@media (max-width: 575px) {
    .preventivi-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* ==========================================
   GESTIONE PREVENTIVI - GRIGLIA 5 COLONNE
   ========================================== */

.preventivi-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 20px auto;
}

/* TABLET - 2 COLONNE */

@media (max-width: 991px) {
    .preventivi-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* SMARTPHONE - 1 COLONNA */

@media (max-width: 575px) {
    .preventivi-grid-5 {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* ==========================================
   GESTIONE CONTRATTI - GRIGLIA 3 COLONNE
   ========================================== */

.contratti-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 20px auto;
}

/* Mantiene le proporzioni originali delle immagini */

.contratti-grid .preventivi-item img {
    aspect-ratio: auto;
    height: auto;
}

/* TABLET - 2 COLONNE */

@media (max-width: 991px) {
    .contratti-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* SMARTPHONE - 1 COLONNA */

@media (max-width: 575px) {
    .contratti-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* Immagini Gestione Contratti - 4 colonne */

.preventivi-grid .preventivi-item img {
    object-fit: contain;
}


#sp-footer .container-inner {
 padding: 8px 0;
 border: none; }


/* ==========================================
   WORKTEAMCS - CTA FONDO PAGINA
   ========================================== */

.workteam-cta-footer {
    display: flex;
    justify-content: center;
    margin: 35px auto;
}

.workteam-cta-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 18px 30px;
    background: #18458a;
    color: #ffffff !important;
    border-radius: 14px;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 5px 16px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

.workteam-cta-footer a:hover {
    background: #0f60ba;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.workteam-cta-phone {
    white-space: nowrap;
    font-weight: 700;
    font-size: 19px;
}

.workteam-cta-phone i {
    margin-right: 8px;
}

.workteam-cta-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.45);
}

.workteam-cta-info {
    text-align: left;
}

/* SMARTPHONE */

@media (max-width: 767px) {

    .workteam-cta-footer a {
        flex-direction: column;
        gap: 10px;
        padding: 18px 22px;
        font-size: 15px;
        text-align: center;
    }

    .workteam-cta-divider {
        width: 70px;
        height: 1px;
    }

    .workteam-cta-info {
        text-align: center;
    }
}


/* LOGO WORKTEAM - MOBILE */

@media (max-width: 767px) {

    #sp-header {
        height: auto;
        min-height: 85px;
    }

    #sp-header .logo {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 0;
    }

    #sp-header .logo img {
        max-height: 75px;
        width: auto;
    }
}

/* LOGO WORKTEAM - MOBILE */

@media (max-width: 576px) {

    #sp-header .logo-image-phone {
        height: 60px !important;
        max-height: none !important;
        width: auto !important;
    }

}

/* ==========================================
   WORKTEAMCS - CTA FONDO PAGINA
   ========================================== */

.workteam-cta-footer {
    display: flex;
    justify-content: center;
    margin: 35px auto;
}

.workteam-cta-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 18px 30px;
    background: #18458a;
    color: #ffffff !important;
    border-radius: 14px;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 5px 16px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

.workteam-cta-footer a:hover {
    background: #0f60ba;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.workteam-cta-phone {
    white-space: nowrap;
    font-weight: 700;
    font-size: 19px;
}

.workteam-cta-phone i {
    margin-right: 8px;
}

.workteam-cta-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.45);
}

.workteam-cta-info {
    text-align: left;
}

/* SMARTPHONE */

@media (max-width: 767px) {

    .workteam-cta-footer a {
        flex-direction: column;
        gap: 10px;
        padding: 18px 22px;
        font-size: 15px;
        text-align: center;
    }

    .workteam-cta-divider {
        width: 70px;
        height: 1px;
    }

    .workteam-cta-info {
        text-align: center;
    }
}
