@font-face {
    font-family: 'KoHo';
    src: url('../fonts/KoHo/KoHo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KoHo';
    src: url('../fonts/KoHo/KoHo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KoHo';
    src: url('../fonts/KoHo/KoHo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    /* Questo range permette di usare i vari spessori se scaricato come Variable Font */
    font-weight: 100 700;
    /* Nota: qui cambiamo l'estensione e il format */
    src: url('../fonts/material-symbols.ttf') format('truetype');
    font-display: block;
}

/* 2. Classe base (Invariata) */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: 700;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* 3. Stile specifico per il Tooltip (Invariato) */
.info-icon.material-symbols-outlined {
    color: #FD6861;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 8px;
    padding: 2px;
    width: auto; /* Reset importante se avevi larghezze fisse */
    height: auto;
    border-radius: 50%;
    border: 2px solid #FD6861;
    transition: transform 0.2s ease, color 0.2s ease;
}

.info-icon.material-symbols-outlined:hover {
    transform: scale(1.1);
}
body { font-family: 'KoHo', Helvetica, Arial, sans-serif; font-size: 16px; }
.dark { color: #141A33 !important; }
.box-configuratore { background-color: #141A33; padding-left: 0 !important; padding-right: 0 !important; }
.top-configuratore { padding-bottom: 2rem !important; }
.top-configuratore .l-section-h { padding-top: 30px !important; }
.l-content { width: unset !important; }
.configuratore-wrapper {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
/* Quando il JS ha finito, mostra tutto */
.configuratore-wrapper.ready {
    opacity: 1;
}
.configuratore-wrapper form .form-step  { padding-left: 20px; padding-right: 20px; padding-top: 50px; }
.configurator-title {}
.configurator-description, .configurator-begin-cta { color: #ffffff; font-size: 1.5em; line-height: normal; }
.form-navigation-top {
    background-color: #3f4562; margin-top: 30px; margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.form-navigation { background-color: #3f4562; margin-top: 100px; border-top-left-radius: 10px; border-top-right-radius: 10px; }
#prevBtn, #nextBtn { display: flex; justify-content: space-around; align-items: center; background-color: transparent; color: #FD6861; font-size: 1.5em; line-height: normal; transition: all .3s ease; }
#prevBtn span.material-symbols-outlined, #nextBtn  span.material-symbols-outlined { font-size: 1.8em; padding: 0 15px; line-height: 6px; }
#prevBtn:hover, #nextBtn:hover { background-color: transparent; color: #ffffff; font-size: 1.5em; line-height: normal; transition: all .3s ease; }
.nav-btn:disabled { opacity: 0.6; cursor: not-allowed; background-color: transparent; }
.nav-btn:disabled:hover {  color: #FD6861; opacity: 0.6; cursor: not-allowed; background-color: transparent; }
.form-step h3 { font-size: 3em; color: #FD6861;  }
.campo-obbliogatorio-testo { margin-bottom: 25px;}
.campo-obbliogatorio-testo p { font-size: 1.7em; font-weight: 700; color: #ffffff; }
.description, .configurator-description, .configurator-begin-cta { font-size: 1.25em; color: #ffffff; line-height: normal; }
.desc-and-img { display: flex; justify-content: space-between; align-items: self-start; margin-bottom: 40px; width: 100%; }
.desc-and-img .description { font-size: 1.25em; line-height: normal; color: #ffffff; width: 75%; padding-right: 30px; }
.desc-and-img .desc-img { width: 25%; text-align: center; }
.desc-and-img .desc-img img { width: 100%; border-radius: 10px;  }
.desc-and-img .desc-img img[src*=".svg"] { width: 50%; border-radius: 10px;  }

.descrizione-in-form {
    background: #ffffff;
    padding: 20px;
    font-size: 1.25em;
    color: #141A33;
}
/* Nascondi tutti gli step inizialmente tranne il primo (gestito da JS) */
.form-step { display: none; }
.form-step.active-step {
    display: block; /* JS userà fadeIn, ma questo serve per il caricamento iniziale */
}
.form-row label, .form-step label { color: #ffffff; font-size: 1.25em; line-height: normal; }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=number], .form-row input[type=tel], .form-row input[type=file],
.form-row select, .form-row textarea, .form-step input[type=text], .form-step input[type=email], .form-step input[type=number], .form-step input[type=file],
.form-step input[type=tel], .form-step select, .form-step textarea, .file-upload
{ background: #e6e6e6 !important; border-color: #FD6861 !important; border-width: 2px !important; color: #141A33 !important; font-size: 1em !important; line-height: normal !important; padding: 10px;
    height: 45px; box-shadow: none; }
.file-upload { /*padding: 15px !important;*/ }
.box-btn-invia { margin-top: 30px; text-align: right; }
span.wpcf7-list-item>label { display: flex; align-items: center; padding: .2em 0; font-size: 1em; }
span.wpcf7-list-item>label a { color: #FD6861; }
.wpcf7-not-valid-tip { padding: 5px; background-color: #ffffff; }
.wpcf7-list-item input[type="checkbox"] { border-color: #FD6861; border-width: 2px; margin-right: 20px; box-shadow: none; }
.form-row small, .form-step small { font-size: 1.1em !important; color: #ffffff; font-weight: normal; line-height: normal; }
.nb { background-color: #FD6861; padding: 30px; border: 2px solid #ffffff; border-radius: 0; font-size: 1.5em; color: #ffffff;}

    /* Nascondi il submit reale di CF7 fino alla fine */
input.wpcf7-submit {
    display: none;
}
/* Contenitore Griglia */
.checkbox-card-item, .card-content, .card-content p, .step-dot.completed, .card-image p img, .radio-card-item .card-image, .radio-card-item .card-image p,  .radio-card-item .card-image p img  { cursor: pointer; }
#step-counter, .step-dot.active, .step-dot, .form-step .description, .xor-group label { cursor: default; }
.checkbox-tiles-container .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Spazio tra i box */
}

/* Ogni singolo elemento della lista CF7 */
.checkbox-tiles-container .wpcf7-list-item {
    margin: 0 !important;
    display: block;
}

/* 1. Stile base della "Card" (Label) */
.checkbox-tiles-container .wpcf7-list-item label {
    display: block;
    position: relative;
    cursor: pointer;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px 25px;
    font-weight: 600;
    color: #555;
    text-align: center;
    transition: all 0.2s ease-in-out;
    min-width: 120px; /* Larghezza minima pulsante */
}

/* 2. Nascondiamo la checkbox nativa brutta */
.checkbox-tiles-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkbox-card-item.selected-card::after { opacity: 0; }

/* 3. Hover (quando passi sopra col mouse) */
.checkbox-tiles-container .wpcf7-list-item label:hover {
    background-color: #fff;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 4. STATO ATTIVO (Gestito da JS) */
/* Quando aggiungiamo la classe .active-tile al label */
.checkbox-tiles-container .wpcf7-list-item label.active-tile {
    background-color: #e6f7ff; /* Sfondo azzurrino */
    border-color: #0073aa;     /* Bordo blu brand */
    color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa; /* Doppio bordo per evidenziare */
}
#step-10 .checkbox-card-item { width: 250px;}

/* Icona Info */
.info-icon {
    /*
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background: #ccc;

    font-size: 12px;
    cursor: help;
    margin-left: 15px;

     */
}

/* Pulsanti Navigazione */
.form-navigation p {
    margin-top: 0;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}
.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e0e0e0;
}

/* Overlay scuro */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Sopra a tutto, anche menu Impreza */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Quando è attivo */
.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    display: flex !important; /* Forza il flex */
}

/* Box Bianco */
.modal-box {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    text-align: left;
}

/* Tasto Chiudi */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #141A33;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}
.modal-close:hover {
    color: #FD6861;
}

/* Immagine nel modale */
#modal-image-container img {
    margin-top: 15px;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #eee;
}
/* 1. Forza tutto il testo del modale a essere 'Normale' (sottile) */
#modal-content, #modal-content p {
    font-size: 1em;
    line-height: normal;
    font-weight: 400 !important;
    color: #141A33; /* Grigio scuro per il testo */
}

/* 2. Forza i tag grassetti a essere 'Molto Grassetti' e colorati */
#modal-content b,
#modal-content strong {
    display:block;
    margin-bottom:10px;
    font-size: 1.25em;
    font-weight: 700 !important;
    color: #FD6861;
}

/* Nascondiamo il radio button vero di CF7 senza usare display:none
   (così rimane nel DOM per la validazione) */
.cf7-hidden-source {
    position: absolute;
    opacity: 0;
    z-index: -1;
    height: 0;
    overflow: hidden;
}

/* Contenitore Griglia */
.radio-cards-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* La singola Card */
.radio-card-item {
    background: #fff;
    border: 12px solid #ffffff;
    border-radius: 10px;
    min-width: 260px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 260px;
}

/* Immagine */
/*
.radio-card-item .card-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}
*/
.card-image p { text-align: center; }

/* 1. REGOLA GENERALE (Per JPG, PNG, ecc.) */
.card-image img {
    width: 100%;         /* Si adatta al contenitore */
    height: auto;        /* Mantiene le proporzioni */
    display: block;      /* Toglie spazi bianchi indesiderati sotto */
}

/* 2. ECCEZIONE PER GLI SVG */
/* Il selettore [src*=".svg"] cerca immagini che contengono ".svg" nel nome */
.card-image img[src*=".svg"] {
    width: auto;         /* Usa le dimensioni esatte (naturali) dell'icona */
    max-width: 100%;     /* Sicurezza: se l'icona è gigante, non esce dal box */
    height: auto;
    display: unset;
    margin: 10px;
}

/* Contenuto Testo + Tooltip */
.radio-card-item .card-content p {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
}

/* Il finto pallino radio (cerchietto vuoto) */
.fake-radio-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s;
}

/* --- STATI INTERATTIVI --- */

/* Hover */
.radio-card-item:hover {
    border-color: #FD6861;
    transform: translateY(-3px);
}

/* SELEZIONATO (Classe aggiunta da JS) */
.radio-card-item.selected-radio {
    border-color: #FD6861; /* Colore brand */
    /*box-shadow: 0 5px 15px rgba(255, 255, 255, 0.8);*/
}

/* Pallino pieno quando selezionato */
.radio-card-item.selected-radio .fake-radio-circle {
    border-color: #FD6861;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 4px #fff; /* Crea l'effetto ciambella */
}

/* Mobile: uno sotto l'altro */
@media (max-width: 600px) {
    .desc-and-img .desc-img img { width: 50%; margin-bottom: 25px; }
    .radio-card-item {
        width: 100%;
        flex-direction: row; /* Immagine a sinistra, testo a destra */
        height: unset !important;
        min-width: unset !important;
        max-width: unset !important;
        align-items: center;
    }
    .radio-card-item .card-image { width: 40%; }
    .radio-card-item .card-content { width: 60%; }
    .radio-card-item .card-content p { justify-content: flex-start;}
    .radio-card-item .card-image img {
        width: 90%;
        margin-right: auto;
        margin-left: auto;
        height: 100%;
    }
    .card-image img[src*=".svg"] { width: 50px; }
    .fake-radio-circle {
        top: 50%;
        transform: translateY(-50%);
    }
    .checkbox-card-item {
        width: 100%;
        height: unset !important;
        min-width: unset !important;
        max-width: unset !important;
        flex-direction: row !important;
        align-items: center;
    }
    .checkbox-card-item .card-image {
        width: 40%;
    }
    .checkbox-card-item .card-image {
        width: 60%;
    }
    .checkbox-card-item .card-image img {
        width: 50%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .checkbox-card-item .card-content p { justify-content: flex-start; }

}

/* Contenitore Griglia */
.checkbox-cards-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* La singola Card */
.checkbox-card-item {
    background: #fff;
    border: 12px solid #ffffff;
    border-radius: 10px;
    min-width: 260px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    max-width: 260px;
}

/* Gestione Immagine */
/*
.checkbox-card-item .card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
 */

/* Immagine Opzionale: Se non c'è immagine, il testo si adatta */
.checkbox-card-item .card-content p {
    padding: 15px;
    flex-grow: 1; /* Occupa tutto lo spazio se manca l'immagine */
    display: flex;
    justify-content: space-between; /* Titolo a sx, info a dx */
    align-items: center;
    min-height: 50px; /* Altezza minima estetica */
}

.card-title {
    font-weight: 600;
    color: #141A33;
    font-size: 1.2em;
    line-height: normal;
    text-align: left;
    margin-right: 5px;
}

/* --- STATI INTERATTIVI --- */

.checkbox-card-item:hover {
    border-color: #FD6861;
    transform: translateY(-3px);
}

/* SELEZIONATO */
.checkbox-card-item.selected-card {
    border-color: #FD6861;
}

/* Checkmark visivo nell'angolo (opzionale) */
.checkbox-card-item.selected-card::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ffffff;
    color: #FD6861;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.xor-group {
    background: #ffffff;
    padding: 20px;
    border: 0;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.xor-separator {
    text-align: center;
    font-weight: 700;
    color: #141A33;
    margin: 15px 0;
    position: relative;
}

/* Linee laterali al testo OPPURE */
.xor-separator::before, .xor-separator::after {
    content: "";
    display: inline-block;
    width: 30%;
    height: 1px;
    background: #141A33;
    vertical-align: middle;
    margin: 0 10px;
}

/* Evidenzia il campo attivo */
.active-input {
    border-color: #0073aa !important;
    background-color: #fff !important;
    box-shadow: 0 0 5px rgba(0,115,170,0.2);
}

#debug-summary-box {
    background: #f1f1f1;
    border-left: 5px solid #0073aa;
    padding: 20px;
    margin-bottom: 30px;
    font-family: 'KoHo', Helvetica, Arial, sans-serif;
    color: #333;
    border-radius: 4px;
}

#debug-summary-box h4 {
    margin-top: 0;
    text-transform: uppercase;
    font-size: 2em;
    color: #141A33;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

#debug-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#debug-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.dedug-intestazione {
    background: #d6d6d6;
    padding: 10px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.2em;
    color: #141A33;
}
.debug-testo {
    padding: 10px;
    font-weight: 400;
    margin-top: 10px;
    font-size: 1.1em;
    color: #141A33;
}

#debug-list li strong {
    color: #141A33;
    margin-right: 10px;
}

/* Contenitore principale */
#step-progress-bar {
    /*opacity: 0;
    transition: opacity 0.4s ease-in-out;*/
    margin: 0 0 50px 0;
    text-align: center;
    position: sticky;
    /*top: 220px;*/
    /*border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;*/
    padding-top: 1px;
    background-color: #3f4562;
    z-index: 110;
    padding-bottom: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
body.admin-bar #step-progress-bar {
    top: calc(220px + 32px);
}

/* Quando il JS ha finito, aggiunge questa classe */
/*#step-progress-bar.ready {
    opacity: 1;
}*/
.page-template-tpl-configuratore .wpcf7 { /*padding-top: 60px !important;*/ }

/* Griglia dei pallini */
/*
#steps-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
*/
#steps-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
}
#steps-container::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FD6861;
    z-index: -1;
}

/* LO STILE DEL PALLINO (Base = "Da fare") */
/*
.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #D9D9D9;
    color: #FD6861;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
    transition: all 0.3s ease;
    border: 2px solid #FD6861;
}
 */
.step-dot {
    width: 40px;
    height: 40px;
    background: #D9D9D9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #141A33;
    font-size: 1.1em;
    cursor: default;
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid #FD6861;
    z-index: 99;
}
/* TRUCCO: Nel layout orizzontale, NASCONDI IL TESTO DEL TITOLO */
.step-dot .step-label {
    display: none;
}
/* Mostriamo il numero usando l'attributo data (o semplicemente il counter CSS) */
.step-dot::before {
    content: attr(data-number);
}
/* STATO 1: COMPLETATO (Già fatto) */
.step-dot.completed {
    background-color: #FD6861; /* Azzurrino chiaro */
    color: #ffffff; /* Colore brand */
    border-color: #FD6861;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.step-dot.completed:hover {
    /*transform: scale(1.2);
    opacity: 0.8;*/
    background-color: #141A33;
    color: #ffffff;
    border-color: #FD6861;
}
.step-dot.completed .step-label {
    cursor: pointer !important;
}

/* STATO 2: ATTIVO (Corrente) */
.step-dot.active {
    background-color: #D9D9D9;
    color: #141A33;
    transform: scale(1.40);
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3);
    border-color: #FD6861;
}
/* =========================================
   VARIANTE VERTICALE (SOLO PALLINI - STILE CUSTOM)
   ========================================= */

/* 1. Il Contenitore: Stretto e Verticale */
#steps-container.vertical-layout {
    position: sticky;
    top: 20px;              /* Si ferma a 20px dal bordo alto dello schermo */
    flex-shrink: 0;         /* Impedisce alla barra di restringersi */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    margin-right: 20px;
    padding-top: 20px;
}

#step-counter {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #ffffff;
    font-weight: 400;
}

/* 2. Il Wrapper dello Step (Spaziatura) */
#steps-container.vertical-layout .step-dot {
    width: 40px;               /* Larghezza base */
    height: 40px;              /* Altezza base */
    min-width: 40px;    /* IMPEDISCE schiacciamento orizzontale */
    min-height: 40px;
    margin-bottom: 25px;       /* Spazio verticale tra i pallini (aumentato per lo scale) */
    padding: 0;

    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* 3. Nascondi le etichette di testo */
#steps-container.vertical-layout .step-dot .step-label {
    display: none !important;
}

/* 4. IL PALLINO GRAFICO (Pseudo-elemento) */
/* --- STATO NORMALE (DA FARE) --- */
#steps-container.vertical-layout .step-dot::before {
    content: attr(data-number);

    /* Dimensioni fisse richieste */
    width: 40px;
    height: 40px;              /* Altezza base */
    min-width: 40px;    /* IMPEDISCE schiacciamento orizzontale */
    min-height: 40px;
    border-radius: 50%;

    /* Stile Richiesto: Normale */
    background: #D9D9D9;
    border: 2px solid #FD6861;
    color: #FD6861;

    /* Layout interno del numero */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;

    /* Transizione fluida */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- STATO ACTIVE (CORRENTE) --- */
#steps-container.vertical-layout .step-dot.active::before {
    /* Stile Richiesto: Active */
    background-color: #D9D9D9;
    color: #FD6861;
    border-color: #FD6861;

    /* Effetto Zoom */
    transform: scale(1.25);
    font-weight: 700; /* Numero più marcato */
    z-index: 10; /* Assicura che stia sopra */
}

/* --- STATO COMPLETO (FATTO) --- */
#steps-container.vertical-layout .step-dot.completed {
    cursor: pointer !important; /* Manina */
}

#steps-container.vertical-layout .step-dot.completed::before {


    /* Stile Richiesto: Completo */
    background-color: #FD6861;
    border-color: #FD6861;
    color: #ffffff;

    transform: scale(1); /* Reset scala se si torna indietro */
}

/* Hover sul completato (Opzionale, feedback utente) */
#steps-container.vertical-layout .step-dot.completed:hover::before {
    opacity: 0.8;
}

/* Link "Modifica" nella tabella riepilogo */
.edit-step-link {
    cursor: pointer;
    color: #FD6861; /* Colore brand */
    font-size: 22px;
    font-weight: normal;
    vertical-align: middle;
    margin-left: 8px;
    border: 2px solid #FD6861;
    background: #ffffff;
    padding: 8px;
    width: auto; /* Reset importante se avevi larghezze fisse */
    height: auto;
    border-radius: 50%;
    transition: transform 0.2s ease, color 0.2s ease;
}
.edit-step-link:hover {
    transform: scale(1.1);
}

/* Pulsante "Torna al Riepilogo" */
#returnSummaryBtn {
    color: white;
}

/* Campo input calcolato automaticamente */
input.calculated-lock {
    background-color: #f0f0f0; /* Grigio chiaro */
    color: #666;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Il contenitore principale con le nuove dimensioni */
.input-corner-wrapper {
    position: relative;
    display: inline-block;
    width: 250px;
    height: 60px;
    vertical-align: middle;
}

/* Reset del paragrafo CF7 */
.input-corner-wrapper p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Base per gli angoli: usiamo i pseudo-elementi per disegnare solo le "L" */
.input-corner-wrapper::before,
.input-corner-wrapper::after {
    content: "";
    position: absolute;
    width: 100%; /* Copre l'intera larghezza per gestire entrambi i lati */
    height: 12px; /* Lunghezza del tratto verticale dell'angolo */
    pointer-events: none;
    z-index: 1;
}

/* Angoli Superiori (Sinistra e Destra) */
.input-corner-wrapper::before {
    top: 0;
    left: 0;
    /* Gradienti per disegnare solo i segmenti di 2px negli angoli */
    background:
            linear-gradient(to right, #FD6861 2px, transparent 2px) no-repeat left top,    /* Verticale SX */
            linear-gradient(to bottom, #FD6861 2px, transparent 2px) no-repeat left top,   /* Orizzontale SX (lunghezza 12px default) */
            linear-gradient(to left, #FD6861 2px, transparent 2px) no-repeat right top,   /* Verticale DX */
            linear-gradient(to bottom, #FD6861 2px, transparent 2px) no-repeat right top;  /* Orizzontale DX */
    background-size: 12px 100%; /* Il primo valore (12px) è la lunghezza del tratto orizzontale */
}

/* Angoli Inferiori (Sinistra e Destra) */
.input-corner-wrapper::after {
    bottom: 0;
    left: 0;
    background:
            linear-gradient(to right, #FD6861 2px, transparent 2px) no-repeat left bottom,    /* Verticale SX */
            linear-gradient(to top, #FD6861 2px, transparent 2px) no-repeat left bottom,      /* Orizzontale SX */
            linear-gradient(to left, #FD6861 2px, transparent 2px) no-repeat right bottom,   /* Verticale DX */
            linear-gradient(to top, #FD6861 2px, transparent 2px) no-repeat right bottom;     /* Orizzontale DX */
    background-size: 12px 100%;
}

/* L'input submit con il font a 1.1em */
.input-corner-wrapper .wpcf7-submit {
    width: 250px !important;
    height: 60px !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff;
    font-weight: 400 !important;
    font-size: 1.4em !important; /* Dimensione richiesta */
    padding: 10px 20px !important;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

/* Feedback al passaggio del mouse (opzionale) */
.input-corner-wrapper .wpcf7-submit:hover {
    color: #FD6861 !important;
}

/* Nascondiamo lo spinner di CF7
.input-corner-wrapper .wpcf7-spinner {
    display: none !important;
}
*/

/* Nascondiamo o posizioniamo lo spinner di CF7 per non rompere il quadrato */
.input-corner-wrapper .wpcf7-spinner {
    position: absolute;
    bottom: -25px; /* Lo sposta fuori dal quadrato */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* Il pulsante principale */
#returnSummaryBtn {
    position: relative;
    width: 250px;
    height: 60px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.4em;
    line-height: normal;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    padding: 10px 20px;
    outline: none;
    transition: background-color 0.2s ease;
}

/* Creazione degli angoli Superiori (Sinistra e Destra) */
#returnSummaryBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px; /* Tratto verticale */
    background:
            linear-gradient(to right, #FD6861 2px, transparent 2px) no-repeat left top,    /* L-verticale SX */
            linear-gradient(to bottom, #FD6861 2px, transparent 2px) no-repeat left top,   /* L-orizzontale SX */
            linear-gradient(to left, #FD6861 2px, transparent 2px) no-repeat right top,   /* L-verticale DX */
            linear-gradient(to bottom, #FD6861 2px, transparent 2px) no-repeat right top;  /* L-orizzontale DX */
    background-size: 12px 100%; /* 12px è la lunghezza del tratto orizzontale */
    pointer-events: none;
}

/* Creazione degli angoli Inferiori (Sinistra e Destra) */
#returnSummaryBtn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px; /* Tratto verticale */
    background:
            linear-gradient(to right, #FD6861 2px, transparent 2px) no-repeat left bottom,    /* L-verticale SX */
            linear-gradient(to top, #FD6861 2px, transparent 2px) no-repeat left bottom,      /* L-orizzontale SX */
            linear-gradient(to left, #FD6861 2px, transparent 2px) no-repeat right bottom,   /* L-verticale DX */
            linear-gradient(to top, #FD6861 2px, transparent 2px) no-repeat right bottom;     /* L-orizzontale DX */
    background-size: 12px 100%;
    pointer-events: none;
}

/* Effetto hover opzionale */
#returnSummaryBtn:hover {
    background-color: #FD6861;
    color: #ffffff;
}

/* Nasconde il box di risposta standard di CF7 */
form.wpcf7-form .wpcf7-response-output {
    display: none !important;
}
.configuratore-layout {
    display: flex;          /* Attiva la modalità affiancata */
    align-items: flex-start; /* Allinea tutto in alto */
    gap: 30px;              /* Spazio tra la barra laterale e il form */
    position: relative;
}

/* Colonna Destra (Il Form vero e proprio) */
.form-content-wrapper {
    flex: 1;                /* Prende tutto lo spazio rimanente */
    min-width: 0;           /* Fix per evitare overflow su schermi piccoli */
}

/* --- RESPONSIVE (MOBILE) --- */
/* Sotto i 768px (Tablet/Cellulari) torna tutto verticale */
@media (max-width: 768px) {
    .configuratore-layout {
        flex-direction: column; /* Torna in colonna */
        align-items: center;
    }

    #steps-container.vertical-layout {
        position: static;    /* Niente sticky su mobile */
        flex-direction: row; /* Se vuoi che su mobile tornino orizzontali */
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 20px;
        padding-top: 0;
    }

    .step-dot { width: 30px; height: 30px; font-size: 1em; }
    .step-dot.active { transform: scale(1.30); }
    .desc-and-img { flex-direction: column-reverse; }
    .desc-and-img  .description { width: 100%; }
    .desc-and-img  .desc-img { width: 100%; }
    .desc-and-img .desc-img img[src*=".svg"] { width: 30%; margin-bottom: 20px; }
    .box-btn-invia { text-align: center; margin-top: 45px; }
    #prevBtn span.material-symbols-outlined { font-size: 2em !important; color: #FD6861; }
    #prevBtn .nav-btn-text { display: none; }
    #nextBtn span.material-symbols-outlined { font-size: 2em !important; color: #FD6861;}
    #nextBtn .nav-btn-text { display: none; }
    #returnSummaryBtn { font-size: 1.2em;}

    /* Se su mobile vuoi mantenere i pallini verticali (sconsigliato per spazio), rimuovi 'flex-direction: row' sopra */
}

/* ==================================================
   GESTIONE STEP PALLINI MOBILE (TRUNCATION < 600px)
   ================================================== */
@media (max-width: 767px) {
    /* Nasconde fisicamente i pallini esclusi dal calcolo */
    .step-dot.mobile-hidden {
        display: none !important;
    }

    /* Crea lo spazio vuoto a destra del pallino */
    .step-dot.mobile-gap {
        margin-right: 40px !important;
        position: relative;
    }

    /* Disegna i puntini sospensivi "..." nello spazio vuoto */
    .step-dot.mobile-gap::after {
        content: "...";
        position: absolute;
        right: -50px; /* Si posiziona esattamente dentro il margin-right */
        top: -25%;
        transform: translateY(-15%);
        color: #FD6861;
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 4px;
    }
    .step-dot.active.mobile-gap::after { transform: none !important; font-size: 16px; right: -40px; }

    /* Assicuriamoci che su mobile i pallini siano centrati bene */
    #steps-container {
        justify-content: center !important;
        overflow-x: hidden; /* Togliamo lo scroll orizzontale, non serve più */
        height: 40px;
        gap: 20px;
    }
    #steps-container::before { display: none; }
}

