/* Minification failed. Returning unminified contents.
(670,30): run-time error CSS1030: Expected identifier, found '.'
(670,69): run-time error CSS1031: Expected selector, found ')'
(670,69): run-time error CSS1025: Expected comma or open brace, found ')'
(919,22): run-time error CSS1030: Expected identifier, found ':'
(919,46): run-time error CSS1031: Expected selector, found ')'
(919,46): run-time error CSS1025: Expected comma or open brace, found ')'
(1090,26): run-time error CSS1030: Expected identifier, found '.'
(1090,65): run-time error CSS1031: Expected selector, found ')'
(1090,65): run-time error CSS1025: Expected comma or open brace, found ')'
(1727,28): run-time error CSS1046: Expect comma, found '149'
(1727,35): run-time error CSS1046: Expect comma, found ')'
 */
@-webkit-keyframes circleRotation {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes circleRotation {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.loadingCircle {
    -webkit-animation: circleRotation 1.5s linear infinite;
    animation: circleRotation 1.5s linear infinite;
    width: 30px;
    height: 30px;
}

.Container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.55);
}
body {
}
/* Bottone stile "Invia" (pill azzurro + font pulito) */
.btn-next-visualizza {
    display: flex;
    /* padding: 12px 52px; */
    border: none;
    border-radius: 3px;
    background: #3E95D1;
    color: #ffffff;
    /* font-size: 18px; */
    /* cursor: pointer; */
    width: 100px;
    height: 58px;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important ;
    font-size: 18px;
    font-weight: 600;
    justify-content: center;
    /* max-height: 81px; */
}

button.roi-full-close {
    float: inline-end;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
}

.roi-full-close:hover {
    background: rgba(17, 24, 39, 0.08);
}

.roi-full-close:active {
    transform: translateY(1px);
}

.roi-full-close:focus {
    outline: none;
}

.roi-full-close:focus-visible {
    outline: 3px solid rgba(62,149,209,0.35);
    outline-offset: 2px;
}

.container-btn-next-visualizza {
    width: 100%;
    justify-content: center;
    display: flex;
    margin-top: 10px;
}
    .btn-next:hover {
        background: #3F98DE;
    }

    .btn-next:active {
        transform: translateY(1px);
        box-shadow: 0 1px 0 rgba(0,0,0,0.10);
    }

    .btn-next:focus {
        outline: none;
    }

    .btn-next:focus-visible {
        outline: 3px solid rgba(85,169,232,0.35);
        outline-offset: 2px;
    }

    .btn-next:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* =========================================
   ROI FULL RESULTS PACK (coerente con card ROI)
   ========================================= */

.roi-full-pack {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    color: #111;
}

/* Header */
.roi-full-head {
    margin-bottom: 16px;
}

.roi-full-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
}

.roi-full-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

/* Sezioni interne (card leggere) */
.roi-full-card {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 14px;
}

.roi-full-cardTitle {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
}

/* Dati inseriti (griglia semplice) */
.roi-full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.roi-full-itemLabel {
    font-size: 12px;
    color: #6b7280;
}

.roi-full-itemValue {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* KPI mini */
.roi-full-kpis {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.roi-full-kpi {
    flex: 1 1 180px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(115, 195, 243, 0.28), rgba(255, 214, 230, 0.38));
}

.roi-full-kpiLabel {
    font-size: 12px;
    color: #6b7280;
}

.roi-full-kpiValue {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-top: 4px;
}

/* Tabella risultati */
.roi-full-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .roi-full-table th {
        padding: 8px 6px;
        border-bottom: 1px solid #e7e7e7;
        font-size: 13px;
        color: #6b7280;
        text-align: right;
        font-weight: 700;
    }

        .roi-full-table th:first-child {
            text-align: left;
        }

.roi-full-row td {
    padding: 10px 6px;
    border-bottom: 1px solid #f1f3f7;
    vertical-align: middle;
    
}

.roi-full-label {
    text-align: left;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.roi-full-cell {
    text-align: right;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
}

td.roi-full-cell {
    padding-right: 10px;
}


.roi-full-delta {
    font-weight: 700;
}

td.roi-full-cell.roi-full-delta {
    color: #111111;
    border-radius: 10px;
    font-size: 16px;
    background: linear-gradient(90deg, rgba(115, 195, 243, 0.28), rgba(255, 214, 230, 0.38));
}

.roi-kpi-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 10px;
    width: max-content;
}


/* Responsive */
@media (max-width: 720px) {
    .roi-full-pack {
        padding: 18px;
    }

    .roi-full-grid {
        grid-template-columns: 1fr;
    }

    .roi-full-label {
        white-space: normal;
    }

    .roi-kpi-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 14px;
        margin-top: 10px;
        width: 100%;
    }

}

.roi-pre-hero {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 16px 16px 18px;
    /*box-shadow: 0 1px 14px rgba(0,0,0,0.06);*/
    /*border: 1px solid #d0d0d0;*/
}

.roi-pre-head {
}

.roi-pre-title {
    color: #111;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
}


.roi-pre-sub {
    font-size: 14px;
    color: #666;
    line-height: 1.35;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
}

.roi-pre-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.roi-pre-kpi {
    border-radius: 12px;
    padding: 12px 12px;
    background: #f6f8fb;
    border: 1px solid rgba(0,0,0,0.05);
}

    .roi-pre-kpi.is-empty {
        opacity: 0.75;
    }

.roi-pre-kpi-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
}

.roi-pre-kpi-value {
    font-weight: 700;
    color: #111;
    letter-spacing: -0.3px;
}

.roi-pre-progress {
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.roi-pre-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roi-pre-progress-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;

}

.roi-pre-progress-val {
    font-size: 12px;
    color: #111;
    font-weight: 700;
}

.roi-pre-progress-bar {
    height: 10px;
    background: rgba(0,0,0,0.08);
    border-radius: 999px;
    /*overflow: hidden;*/
}

.roi-pre-progress-fill {
    height: 100%;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 999px;
}

.roi-pre-progress-hint {
    font-size: 12px;
    color: #6b7280;
}

    .roi-pre-progress-hint.ok {
        color: #0f766e;
        font-weight: 700;
    }

.roi-pre-warn {
    font-size: 12px;
    color: #b45309;
    background: rgba(245,158,11,0.12);
    border-radius: 10px;
    padding: 10px 12px;
}

.roi-pre-miniChart {
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.roi-pre-miniChart-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
}

.roi-pre-miniChart-sub {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
}

.roi-pre-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 18px;
    height: 140px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.roi-pre-bar-col {
    width: 46%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.roi-pre-bar {
    width: 72%;
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
}

    .roi-pre-bar.ghost {
        background: rgba(0,0,0,0.28);
    }

    .roi-pre-bar.ghost2 {
        background: rgba(0,0,0,0.55);
    }

.roi-pre-bar-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
}

.roi-compare-visual {
    width: 100%;
    display: grid;
}

.roi-compare-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 18px;
    font-weight: 600;
}

.roi-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.roi-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

    .roi-legend-dot.asis {
        background: #73c3f3;
    }

    .roi-legend-dot.tobe {
        background: #0b82cf;
    }

.roi-compare-groups {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: stretch;
}

.roi-compare-group {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.Risparmio {
    color: #2f94d2;
}

.roi-compare-badge {
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #5aaee4;
    border-radius: 18px;
    color: #2f94d2;
    font-weight: 700;
    background: #fff;
    text-align: center;
    min-width: max-content;
}

.roi-bars-area {
    min-height: 260px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    padding: 0 10px;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    flex: 1;
}

.roi-bar-col {
    width: 42%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.roi-bar-value {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.roi-bar {
    width: 100%;
    border-radius: 16px 16px 0 0;
    min-height: 12px;
}

    .roi-bar.asis {
        background: #73c3f3;
    }

    .roi-bar.tobe {
        background: #0b82cf;
    }

.roi-group-label {
    margin-top: 14px;
    font-weight: 600;
    min-height: 64px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
}

.roi-annual-saving-card {
    max-width: 700px;
    padding: 24px 18px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(115,195,243,0.28), rgba(255,214,230,0.38));
}

.roi-annual-saving-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
}

.roi-annual-saving-value {
    font-size: clamp(32px, 7vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}

.roi-annual-saving-subtitle {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(0,0,0,0.55);
}







/* ===========================
   MOBILE / TABLET
   =========================== */
@media (max-width: 1400px) {
    body {
        padding: 16px; /* meno margine */
        display: block; /* evita effetti strani con flex su body */
    }

    .roi-calculator {
        min-width: 0; /* IMPORTANTISSIMO: rimuove il blocco a 520px */
        width: 100%;
    }

    .roi-layout {
        flex-direction: column; /* da 2 colonne a 1 colonna */
        gap: 16px;
    }

    .roi-left,
    .roi-right {
        width: 100%;
        min-width: 0;
    }

    .roi-right {
        position: static; /* stop sticky su mobile */
        top: auto;
    }

    /* form più “tight” */
    .roi-left > form {
        padding: 10px 16px 18px;
    }

    /* rimuovi min-width del form */
    form {
        min-width: 0;
        width: 100%;
    }

    .form-section.active:has(.btn-next:not([style*="display: none"])) .contenitor-btn-next {
        max-width: 310px;
    }
}



/*MOBILE*/

@media (max-width: 600px) {


    @media (max-width: 768px) {
        .roi-compare-groups {
            gap: 10px;
        }

        .roi-bars-area {
            min-height: 220px;
            gap: 8px;
            padding: 0 6px;
        }

        .roi-bar-value {
            font-size: 14px;
        }

        .roi-group-label {
            min-height: 56px;
            margin-top: 10px;
            font-size: 14px;
        }

        .roi-annual-saving-card {
            padding: 20px 14px;
        }

        .roi-annual-saving-title {
            font-size: 18px;
        }

        .roi-annual-saving-subtitle {
            font-size: 13px;
        }
    }


    .row-2cols {
        flex-direction: column;
        gap: 12px;
    }
    .btn-next {
        width: 100%;
    }

    .bottoni-end {
        flex-direction: column;
        gap: 12px;
    }

    .bottoni-end button,
    .bottoni-end .btn-next {
        width: 100%;
    }

    .roi-compare-canvas {
        height: 320px; /* aumenta un po’ */
        max-width: 100%;
    }

     /* evita overflow laterale */
  html, body { overflow-x: hidden; }

  /* il wrapper non deve mai imporre una larghezza minima */
  .roi-calculator { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }

  /* form e cards sempre contenuti */
  .roi-left > form,
  .risultati-section,
  .risultati-section-pre.active {
    width: 100% !important;
    max-width: 100% !important;
  }


  /* top nav non deve spingere in orizzontale */
  .roi-top-nav { flex-wrap: wrap; gap: 10px; }



/* spazio tra risparmio annuo e grafici, in alcuni telefoni si sovrappongono */
    .roi-annual-saving-card {
/*        margin-top: 80px;
*/    }

    /* il risparmio annuo stimato sta dentro il contenitore anche se è enorme */
    .roi-annual-saving-card {
        overflow: auto;
    }

    /*nascondo il recaptcha per non disturbare*/
    .grecaptcha-badge {
        visibility: hidden;
    }
}


html {
    background: #ffffff;
}
/* default (schermo): non far vedere il template PDF */
.pdf-pack,
.pdf-page,
.pdf-overlay {
    display: none;
}

html, body {
    height: auto !important;
    display: flex;
    justify-content: center;
    min-height: 0 !important;
    overflow: visible !important;
}

/* IMPORTANTISSIMO: niente padding sul body in embed */
body {
    padding: 0;
    margin: 0;
    background: #ffffff;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif ;
}

body.roi-embedded {
    padding: 0 !important;
    margin: 0 !important;
}

/* wrapper misurabile */
.roi-embed-page {
    padding: 40px; /* qui ci rimetti il padding */
    box-sizing: border-box;
}

/* il tuo contenitore */
.roi-calculator {
    max-width: 1040px;
    margin: 0 auto;
}

.roi-embed-page,
.roi-calculator,
.roi-layout,
.roi-left {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}




/* CARD DEL FORM */
form {
    background: #ffffff;
    border: 1px solid #808080;
    border-radius: 8px;
    padding: 40px 40px 15px 40px;
    /* max-width: 520px;*/
    width: auto;
    box-sizing: border-box;
    color-scheme: light;
}

/* SEZIONI (Contatti / Dati aziendali) */
fieldset {
    border: none;
    padding: 0;
}

/*  allinea a sinistra i titoli in nero */
.fieldset-dimension legend {
    text-align: left;
}

legend {
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 22px;
    color: black; /* Scritte titoli visibili */
    margin-bottom: 0px;
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
}

/* RIGHE DEL FORM */
fieldset > div {
    padding-bottom: 16px;
}

/* INPUT / SELECT */
input,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #808080;
    border-radius: 4px;
}


/* Colore scritte */
td {
    color: black;
}

span {
    color: #717171;
}



/* Forza gli spinner dei number visibili (Chrome/Edge/Safari) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    display: inline-block !important;
    opacity: 1 !important;
    margin: 0;
}

/* Firefox */

input[type="number"] {
    -moz-appearance: textfield !important;
}


/*elementi con la freccetta custom a destra*/
select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: #6f6f6f; /* grigio placeholder */
}

    /* quando l'utente seleziona un valore valido */
    select:has(option:checked:not([disabled])) {
        color: #2f2f2f; /* colore testo normale */
    }




/* Dimensioni elementi tabella*/


.tabella-roi td {
    padding-bottom: 16px;
}

/* -----------------Ultima tabella pre-Continua */
/* Dati contatto: spazio tra le due colonne */
.tabella-contatto td {
    padding-bottom: 16px;
}

.tabella-contatto {
    border-collapse: collapse;
}

/* ------------------Gap SOLO tra Nome e Cognome */
.row-2cols {
    display: flex;
    width: 100%;
    column-gap: 56px;
}



.tabella-contatto tr:first-child td:first-child {
    position: relative;
}




/*----------*/
table.tabella-roi {
    display: grid;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    color: black;
}

.tr-roi{
    display: grid;
}
    /*---------------------------------------- input e select a 100% dentro la cella */
    /* Per input normali e select: ok display:block */
    table.tabella-roi td > input:not([type="number"]),
    table.tabella-roi td > select {
        width: 100%;
        display: block;
    }

    /*----------------------- Per mettere in ordine i due campi finali Accettazione privacy e Salva log */
    table.tabella-roi td > input[type="number"] {
        width: 100%;
        display: inline-block; /* oppure rimuovi proprio display */
        color: black;
    }

/* -------------------Nonostante il tema il form ha i suoi colori */
span.final-log {
    color: black;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 10px;
}

/* Sovrascrivo grandezze preimpostate altrove per i placeholder */
input.placeholder-roi {
    color: black;
    min-width: -webkit-fill-available;
}
select.placeholder-roi {
    min-width: -webkit-fill-available;
}

.roi-input-with-suffix {
    position: relative;
}

    .roi-input-with-suffix .placeholder-roi,
    .placeholder-roi.has-suffix {
        padding-right: 28px;
    }

.roi-input-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-weight: 600;
    line-height: 1;
}

/* --------------------checkbox allineati bene */
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .check-row input[type="checkbox"] {
        width: auto; /* evita che prenda 100% */
        height: auto;
    }

/*------------------- immagini frecce dentro gli input */

.input-with-icon {
    position: relative;
    width: 100%;
}

    .input-with-icon input {
        width: 100%;
        padding-right: 36px; /* spazio per l’icona */
    }

.input-icon {
    display: grid;
    position: absolute;
    right: 18px;
    top: 20%;
    width: min-content;
    opacity: 0.4;
}


img.upRow {
    height: 14px;
}

img.downRow {
    height: 14px;
}

/* per il placeholder */
.roi-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.roi-field-label-final {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}



/*------------------ NOME + COGNOME AFFIANCATI (primo div del primo fieldset) */
.placeholder-roi {
    display: flex;
    column-gap: 22px;
    min-width: max-content;
}


/* LOGICA BOTTONE SUCCESSIVO  */
/* padding solo quando nella sezione c'è un bottone next VISIBILE */
.form-section.active:has(.btn-next:not([style*="display: none"])) .contenitor-btn-next {
    padding-top: 30px;
    padding-bottom: 12px;
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

button#btn-reset {
    background: #ffffff;
    /* border-color: #808080; */
    border: 2px solid #808080;
    color: #808080;
}

.form-section {
    display: none;
}

    .form-section.active {
        display: grid;
        /* padding-bottom: 26px; */
    }

.btn-next {
    display: block;
    /* padding: 12px 52px; */
    border: none;
    border-radius: 3px;
    background: #3E95D1;
    color: #ffffff;
    /* font-size: 18px; */
    /* cursor: pointer; */
    width: 100px;
    height: 45px;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
}

    .btn-next:hover {
        opacity: 0.9;
    }


.btn-next-final-contatta {
    display: block;
    border: none;
    border-radius: 3px;
    background: #3E95D1;
    color: #ffffff;
    width: 60%;
    height: 45px;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 18px;
}

/* Servizi % senza bordo*/
input.roi-auto-field {
    border: none;
}
/* BOTTONi RESET CALCOLA */
.end-button {
    width: 100%;
}


/* se vuoi che stiano affiancati */
.bottoni-end {
    padding-top: 30px;
    padding-bottom: 12px;
    display: flex;
    width: 100%;
    gap: 30px;
    justify-content: flex-end;
}

.end {
    font-size: 12px;
    color: #808080;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
    text-align: end;
}



.font1 {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.font2 {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
}

.ultimo {
    left: 26px;
    position: relative;
}

/* Separatore: esiste (ma invisibile) prima di ogni sezione */
.form-section::before {
    content: "";
    display: block;
    border-top: 1px dashed #808080;
    /* spazio responsive */
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease,  max-height .25s ease;
}

/* Mostra il separatore SOLO quando la sezione corrente è preceduta da una sezione attiva */
.form-section.active + .form-section.active::before {
    margin: clamp(14px, 3vw, 22px) 0;
    max-height: 1px;
    opacity: 1;
    transform: translateY(0);
}

/*font*/
.roi-results-hint {
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 13px;
}

/* Gestione Errori */
@keyframes errorPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    30% {
        transform: scale(1.03);
        opacity: 1;
    }

    60% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.field-error-pulse {
    animation: errorPulse 450ms ease-out;
}







.field-error {
    font-size: 12px;
    color: #ED7465;
    line-height: 1.2;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
}

.has-error .placeholder-roi {
    border: 1px solid #ED7465;
}

.field-privacy {
    display: contents;
}

/*Dopo Conferma blocco tutto*/
.input-icon.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.roi-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-weight: 600;
    cursor: progress;
}

/*  Regole di stampa */
#btn-print {
    display: block;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    background: #16a8f7;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
}

    #btn-print:hover {
        opacity: 0.9;
    }


/* =========================
   CARD RISULTATI (screen-only)
   ========================= */

.risultati-section {
    padding-top: 18px;
    background: #f3f6fb;
}


/* Titolo (piccolo, centrato) */
.roi-kpi-title {
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: black;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
}

/* Valore grande (centrato) */
.roi-kpi-value {
    text-align: center;
    color: #111;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.5px;
    font-size: clamp(28px, 5vw, 46px);
    margin: 0;
}

/* (opzionale) riga helper sotto */


/* Griglia: sinistra KPI + destra Prima/Dopo/Delta */
.roi-kpi-grid {
    display: grid;
    gap: 14px;
    align-items: start;
}

/* KPI a sinistra */
.roi-kpi-left {
    display: grid;
    gap: 20px;
}

.roi-kpi-line {
    display: grid;
    align-items: center;
}

.roi-kpi-label {
    font-size: 13px;
    color: #808080;
}

.roi-kpi-value {
    font-size: 25px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

/* Blocco Prima/Dopo/Delta a destra */
.roi-kpi-right {
    display: flex;
    justify-content: flex-end;
}

.roi-pdd {
    gap: 10px;
    width: 100%;
    /* max-width: 360px; */
    display: flex;
    min-width: max-content;
}

.roi-pdd-item {
    background: #ffffff;
    border: 1px solid #808080;
    border-radius: 10px;
    padding: 10px 10px 8px 10px;
    text-align: center;
}

.roi-pdd-num {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

.roi-pdd-label {
    font-size: 12px;
    color: #444;
}

/* Evidenzia Delta */
.roi-pdd-item.roi-pdd-delta {
    border-width: 2px;
}



/*--*/
/* =========================================================
   LAYOUT PRINCIPALE ROI (FORM SINISTRA / RISULTATI DESTRA)
   ========================================================= */


/* GRID A DUE COLONNE */
.roi-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.roi-left, .roi-right {
    min-width: 0;
}


.placeholder-roi {
    border-radius: 12px;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
}

/* =========================================================
   COLONNA SINISTRA – FORM
   ========================================================= */

.roi-left {
    width: 100%;
    display: flex;
    padding-top: 18px;
}

    /* la card del form */
    .roi-left > form {
        background: #ffffff;
        border: 1px solid #d0d0d0;
        border-radius: 12px;
        padding: 10px 40px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
        width: 550px;
    }

.roi-top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* =========================================================
   COLONNA DESTRA – RISULTATI
   ========================================================= */

.roi-right {
    width: 100%;
    top: 24px;
}

/* contenitore comune risultati */
.risultati-section {
    background: #ffffff;
    /*border: 1px solid #d0d0d0;*/
    border-radius: 12px;
    padding: 28px;
    padding-top: 10px;
    /*box-shadow: 0 8px 24px rgba(0,0,0,0.06);*/
}


.risultati-section-pre.active {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* =========================================================
   PLACEHOLDER (prima del calcolo)
   ========================================================= */

.risultati-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.risultati-empty {
    max-width: 360px;
    text-align: center;
    color: #666;
}

    .risultati-empty h3 {
        font-size: 20px;
        font-weight: 700;
        color: #111;
        margin-bottom: 12px;
    }

    .risultati-empty p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .risultati-empty ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .risultati-empty li {
        font-size: 14px;
        margin: 6px 0;
        color: #444;
    }

    .privacyColor {
        color: #3e95d1;
    }
/* =========================================================
   CARD KPI (quando i risultati esistono)
   ========================================================= */
.risultati-section.active {
    background: #ffffff;
}


/* titolo risultati */


/* griglia KPI */
.roi-kpi-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: flex-start;
}

/* KPI a sinistra */
.roi-kpi-left {
    display: grid;
    gap: 18px;
}

.roi-kpi-line {
    display: grid;
    gap: 4px;
}

.roi-kpi-label {
    font-size: 13px;
    color: #777;
}

.roi-kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: #111;
}

/* blocco Prima / Dopo / Delta */
.roi-kpi-right {
    display: flex;
    align-items: flex-start;
}

.roi-pdd {
    display: flex;
    gap: 10px;
}

.roi-pdd-item {
    min-width: 100px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    text-align: center;
    background: #fafafa;
}

.roi-pdd-num {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

.roi-pdd-label {
    font-size: 12px;
    color: #555;
}

/* evidenzia Delta */
.roi-pdd-delta {
    border: 2px solid #16a8f7;
}

/* =========================================================
   BOTTONI RISULTATI
   ========================================================= */

.roi-right .bottoni-end {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}


.contenitor-btn-next {
    display: flex;
    gap: 12px;
}

/* =========================================================
            Puntini blu
    ========================================================= */

.roi-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 12px 0 18px 0;
}

.roi-stepper-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d7de;
    transition: all 0.25s ease;
    transform: scale(1);
    opacity: 0.8;
}

.roi-stepper-dot.is-active {
    background: #3e95d1;
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.15);
}

.roi-stepper-dot.is-done {
    background: #6caedd;
    opacity: 1;
}


/* =========================================================
            3 sezione wizard
    ========================================================= */
.roi-contact-expert-title-section {
    padding-top: 10%;
    cursor: pointer;
    text-align: center;
}

.roi-contact-expert-title {
    font-size: 22px;
    line-height: 1.2;
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
}

.roi-contact-expert-subtitle {
    font-size: 18px;
    padding: 20px;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 500;
}

.roi-contact-expert-box {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}


.btn-next-final {
    display: block;
    border: none;
    border-radius: 3px;
    background: #3E95D1;
    color: #ffffff;
    width: 100px;
    height: 45px;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.contattaci-section {
    row-gap: 10%;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
}
/* =========================================================
            animazione e stile bottoni Precedente,successivo, ecc..
    ========================================================= */
.roi-top-nav-btn {
    position: relative;
    background: transparent;
    border: 0;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
    color: rgba(0,0,0,0.75);
}

    .roi-top-nav-btn::after {
        content: "";
        position: absolute;
        left: 8px;
        right: 8px;
        bottom: 2px;
        height: 2px;
        background: rgb(62 149 209);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 160ms ease;
        border-radius: 999px;
    }

    .roi-top-nav-btn:hover {
        color: rgba(0,0,0,0.95);
    }

    .roi-top-nav-btn:hover::after {
        transform: scaleX(1);
    }

    .roi-top-nav-btn:disabled {
        opacity: 0.35;
        cursor: default;
    }

    .roi-top-nav-btn:disabled::after {
        display: none;
    }


    /* bottone finale 3 sezione */
    .completed-result {
        font-size: 18px;
        padding-top: 36px;
    }


    .roi-top-nav-btn.completed-result {
        color: rgba(0,0,0,0.9);
    }

    .roi-top-nav-btn.completed-result::before {
        content: "";
        position: absolute;
        left: 8px;
        right: 8px;
        bottom: 2px;
        height: 2px;
        background: rgba(0,0,0,0.22);
        border-radius: 999px;
    }

    .roi-top-nav-btn.completed-result:hover::before {
        opacity: 0;
    }

    /*Blocco feedback*/
    .roi-consulenza-feedback {
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 14px;
        line-height: 1.4;
        border: 1px solid transparent;
    }

    .roi-consulenza-feedback.is-success {
        background: rgba(46, 125, 50, 0.08);
        border-color: rgba(46, 125, 50, 0.22);
        color: #2e7d32;
    }

    .roi-consulenza-feedback.is-error {
        background: rgba(211, 47, 47, 0.08);
        border-color: rgba(211, 47, 47, 0.22);
        color: #c62828;
    }




/* --------------------------------CSS di stampa -------------------------------------*/
@page {
    size: A4;
    margin: 0 !important;
}

@media print {

    /* 0) Azzera layout screen che crea pagina bianca */
    body {
        padding: 0 !important;
        display: block !important;
        background: transparent !important;
    }

    form {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    fieldset,
    .fieldset-dimension {
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    legend {
        display: none !important;
    }

    /* 1) Mostra solo pack PDF quando attivi print-roi */
    body.print-roi .screen-only,
    body.print-roi .no-print {
        display: none !important;
    }

    body.print-roi .pdf-pack {
        display: block !important;
        width: 210mm !important;
        padding: 0 !important;

    }

    /* 2) Le 3 pagine */
    body.print-roi .pdf-pack .pdf-page {
        display: block !important;
        width: 210mm;
        height: 292mm;
        position: relative;
        overflow: hidden;
        break-after: page;
        page-break-after: always;
    }

    body.print-roi .pdf-pack .pdf-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    body.print-roi .pdf-bg {
        position: absolute;
        inset: 0;
        width: 210mm;
        height: 297mm;
        object-fit: cover;
        z-index: 0;
    }

    /* Overlay solo pagina report */
    body.print-roi .pdf-page-report .pdf-overlay {
        display: block !important;
        position: absolute;
        z-index: 2;
        /* QUI regoli l’allineamento sulla grafica "Report" */
        left: 15mm;
        right: 15mm;
        top: 95mm; /* aumenta/diminuisci per farla combaciare */
        bottom: 18mm;
    }

    /* placeholder-roi non deve essere flex in stampa */
    body.print-roi .pdf-pack .placeholder-roi {
        display: block !important;
        column-gap: 0 !important;
        min-width: 0 !important;
    }

    /* ===============================
   TABELLA RISULTATI – STAMPA PDF
   =============================== */
    .tabella-risultati {
        width: 100%;
        border-collapse: collapse;
        font-size: 11.5px;
        color: #111;
    }

        /* intestazione */
        .tabella-risultati th {
            background: #f2f4f7;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 10.5px;
            letter-spacing: 0.04em;
            padding: 6px 8px;
            border-bottom: 2px solid #222;
            text-align: right;
        }

            .tabella-risultati th:first-child {
                text-align: left;
            }

        /* celle */
        .tabella-risultati td {
            padding: 6px 8px;
            border-bottom: 1px solid #cfcfcf;
            vertical-align: middle;
        }

            .tabella-risultati td:first-child {
                font-weight: 600;
                text-align: left;
                white-space: nowrap;
            }

            .tabella-risultati td:not(:first-child) {
                text-align: right;
                font-variant-numeric: tabular-nums;
            }

        /* righe alternate (leggibilità) */
        .tabella-risultati tr:nth-child(even) td {
            background: #fafafa;
        }

        /* evidenzia colonna DELTA */
        .tabella-risultati th:last-child,
        .tabella-risultati td:last-child {
            font-weight: 700;
            color: #003a8f;
        }

        /* input stampati come testo */
        .tabella-risultati input {
            border: none !important;
            padding: 0 !important;
            background: transparent !important;
            font-size: inherit;
            color: inherit;
            text-align: right;
            width: 100%;
        }

        .tabella-risultati td:first-child input {
            text-align: left;
        }



        .tabella-risultati tr.separator td {
            border-top: 2px solid #000;
            padding-top: 10px;
        }



}



