/* Preventivo sito web: wizard, riquadro prezzo, barra mobile e tabella listino.
   Solo classi pv-*: le regole di servizi.css restano invariate. */

/* ---------- Base ---------- */
.pv-wizard [hidden],
.pv-page [hidden] {
    display: none !important;
}
.pv-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.pv-wizard button {
    font-family: inherit;
}
.pv-wizard :focus-visible,
.pv-page a:focus-visible {
    outline: 2px solid #d8af81;
    outline-offset: 2px;
}
.pv-hero {
    margin-bottom: 36px;
}
.pv-hero .cs-hero-subtitle {
    margin-bottom: 0;
}
.pv-wizard {
    margin-bottom: 70px;
}

/* ---------- Stepper ---------- */
.pv-stepper ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.pv-stepper-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 14px 6px 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 148, 92, 0.22);
    border-radius: 999px;
    color: #b3b1c2;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.pv-stepper-btn:hover {
    border-color: rgba(197, 148, 92, 0.5);
}
.pv-stepper-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #b3b1c2;
    font-size: 13px;
    font-weight: 700;
}
.pv-stepper-btn.is-done .pv-stepper-n {
    background: rgba(197, 148, 92, 0.35);
    color: #ffffff;
}
.pv-stepper-btn.is-current {
    border-color: #c5945c;
    color: #ffffff;
    font-weight: 600;
}
.pv-stepper-btn.is-current .pv-stepper-n {
    background: #c5945c;
    color: #13111b;
}

.pv-noscript {
    background: rgba(197, 148, 92, 0.1);
    border: 1px solid rgba(197, 148, 92, 0.35);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.65;
    color: #d8d7db;
}
.pv-noscript a,
.pv-step a,
.pv-sum a:not(.pv-btn) {
    color: #d8af81;
}

/* ---------- Scelte riprese dall'ultima visita ---------- */
.pv-ripresa {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    background: rgba(197, 148, 92, 0.1);
    border: 1px solid rgba(197, 148, 92, 0.35);
    border-radius: 8px;
    padding: 12px 18px;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #d8d7db;
}
.pv-ripresa[hidden] {
    display: none;
}
.pv-ripresa p {
    margin: 0 !important;
}
.pv-btn-sm {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 13px;
}
.pv-sum-reset {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 8px 0;
    background: transparent;
    border: 0;
    color: #b3b1c2;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.pv-sum-reset:hover {
    color: #d8af81;
}
.pv-sum-reset[hidden] {
    display: none;
}

/* ---------- Layout: pannello + riquadro prezzo ---------- */
.pv-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.pv-panel {
    flex: 999 1 480px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 148, 92, 0.2);
    border-radius: 10px;
    padding: 28px;
    box-sizing: border-box;
}

/* ---------- Step ---------- */
.pv-step-num {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9a98aa;
}
.pv-step-title {
    position: relative;
    margin: 6px 0 14px;
    padding-bottom: 12px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}
.pv-step-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background-color: #c5945c;
    border-radius: 2px;
}
.pv-step-title:focus {
    outline: none;
}
.pv-step-title:focus-visible {
    outline: 2px solid #d8af81;
    outline-offset: 4px;
}
.pv-step-sub {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #b3b1c2;
}
.pv-group {
    margin-bottom: 26px;
}
.pv-group-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #d8af81;
}

/* ---------- Card ---------- */
.pv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}
.pv-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 148, 92, 0.22);
    border-radius: 10px;
    transition: border-color 0.2s, background-color 0.2s;
}
.pv-card:hover {
    border-color: rgba(197, 148, 92, 0.5);
}
.pv-card.is-selected,
.pv-card:has(> .pv-card-btn[aria-pressed="true"]),
.pv-card:has(> .pv-card-btn[aria-checked="true"]) {
    border-color: #c5945c;
    background: rgba(197, 148, 92, 0.12);
}
.pv-card.is-disabled {
    opacity: 0.55;
}
.pv-card.is-disabled:hover {
    border-color: rgba(197, 148, 92, 0.22);
}
.pv-card-btn {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 18px 18px 6px;
    background: transparent;
    border: 0;
    border-radius: 10px 10px 0 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.pv-card.is-disabled .pv-card-btn {
    cursor: not-allowed;
}
.pv-check {
    flex: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border: 2px solid rgba(197, 148, 92, 0.5);
    border-radius: 50%;
    box-sizing: border-box;
}
.pv-card--toggle .pv-check {
    border-radius: 5px;
}
.pv-card-btn[aria-pressed="true"] .pv-check,
.pv-card-btn[aria-checked="true"] .pv-check {
    border-color: #c5945c;
}
.pv-card-btn[aria-pressed="true"] .pv-check:after,
.pv-card-btn[aria-checked="true"] .pv-check:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: inherit;
    background: #c5945c;
}
.pv-card-body {
    flex: 1;
    min-width: 0;
}
.pv-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.pv-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}
.pv-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #d8af81;
    white-space: nowrap;
}
.pv-card-desc {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #9a98aa;
}
.pv-card-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #e8a7ad;
}
.pv-det-toggle {
    align-self: flex-start;
    min-height: 32px;
    margin: 0 18px 12px 50px;
    padding: 4px 0;
    background: transparent;
    border: 0;
    color: #d8af81;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.pv-det-toggle:hover {
    color: #ffffff;
}
.pv-details {
    margin: 0 18px 18px 50px;
    padding: 12px 14px 12px 30px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(197, 148, 92, 0.18);
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #b3b1c2;
}

/* ---------- Contatori ---------- */
.pv-counter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(197, 148, 92, 0.22);
    border-radius: 10px;
}
.pv-counter.is-disabled .pv-counter-ctrl {
    opacity: 0.55;
}
.pv-counter-ctrl {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pv-counter-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(197, 148, 92, 0.5);
    border-radius: 6px;
    color: #d8af81;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.pv-counter-btn:hover {
    background: rgba(197, 148, 92, 0.15);
}
.pv-counter-btn[aria-disabled="true"] {
    cursor: not-allowed;
}
.pv-counter-val {
    min-width: 48px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}
.pv-counter-hint {
    flex: 1;
    min-width: 200px;
    font-size: 13px;
    line-height: 1.6;
    color: #9a98aa;
}

/* ---------- Pulsanti (stessa resa di .cs-btn-primary / .cs-btn-outline) ---------- */
.pv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 26px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s;
}
.pv-btn-primary {
    background-color: #c5945c;
    border: 0;
    color: #13111b !important;
}
.pv-btn-primary:hover {
    background-color: #d8af81;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 148, 92, 0.4);
}
.pv-btn-outline {
    background: transparent;
    border: 1px solid rgba(197, 148, 92, 0.5);
    color: #d8af81 !important;
}
.pv-btn-outline:hover {
    background: rgba(197, 148, 92, 0.15);
    border-color: #d8af81;
}
.pv-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid rgba(197, 148, 92, 0.18);
}
.pv-nav [data-pv="avanti"] {
    margin-left: auto;
}

/* ---------- Form dello step 7 ---------- */
.pv-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.pv-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}
.pv-form-grid .pv-field {
    margin-bottom: 0;
}
.pv-field input,
.pv-field textarea {
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 148, 92, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
    width: 100%;
}
.pv-field textarea {
    resize: vertical;
}
.pv-field input:focus,
.pv-field textarea:focus {
    border-color: #c5945c;
    outline: none;
}
.pv-fieldset {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid rgba(197, 148, 92, 0.22);
    border-radius: 10px;
}
.pv-fieldset legend {
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #d8af81;
}
.pv-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.pv-radio,
.pv-check-line {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
}
.pv-check-line {
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #d8d7db;
}
.pv-radio input,
.pv-check-line input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: none;
    accent-color: #c5945c;
}
.pv-check-line input {
    margin-top: 3px;
}
.pv-help {
    margin: 0;
    font-size: 12px;
    color: #9a98aa;
}
.pv-ricevi {
    margin-bottom: 22px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(197, 148, 92, 0.12), rgba(26, 25, 37, 0.8));
    border: 1px solid rgba(197, 148, 92, 0.35);
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #d8d7db;
}
.pv-ricevi p {
    margin: 0;
}
.pv-ricevi .pv-ricevi-title {
    margin-bottom: 4px;
    font-weight: 700;
    color: #ffffff;
}

/* Campo trappola per i bot: fuori dallo schermo, non nascosto con display:none */
.pv-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.pv-field input[aria-invalid="true"],
.pv-field textarea[aria-invalid="true"] {
    border-color: #e8a7ad;
}
.pv-check-line input[aria-invalid="true"] {
    outline: 2px solid #e8a7ad;
    outline-offset: 2px;
}
.pv-recaptcha-note {
    margin: -8px 0 18px;
    font-size: 12px;
    color: #9a98aa;
}
.pv-form-msg {
    margin-bottom: 18px;
    padding: 12px 16px;
    background: rgba(232, 167, 173, 0.08);
    border: 1px solid rgba(232, 167, 173, 0.35);
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #e8c4c7;
}
.pv-form-msg .cc-btn {
    margin: 10px 0 6px;
}
.pv-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}
.pv-conferma {
    padding: 32px;
    background: #13111b;
    border: 1px solid rgba(197, 148, 92, 0.3);
    border-radius: 12px;
    text-align: center;
    color: #b3b1c2;
}
.pv-conferma:focus {
    outline: none;
}
.pv-conferma p {
    max-width: 560px;
    margin: 0 auto 14px;
    font-size: 14.5px;
    line-height: 1.7;
}
.pv-conferma .pv-conferma-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
}
.pv-conferma [data-pv="numero"] {
    color: #d8af81;
    white-space: nowrap;
}
.pv-conferma-azioni {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

/* ---------- Riquadro prezzo ---------- */
.pv-sum {
    flex: 1 1 300px;
    max-width: 380px;
    min-width: 0;
    min-height: 520px;                 /* spazio riservato: niente salti di layout */
    position: sticky;
    top: 88px;
    background: #13111b;
    border: 1px solid rgba(197, 148, 92, 0.3);
    border-radius: 12px;
    overflow: hidden;
    color: #b3b1c2;
}
.pv-sum p {
    margin: 0;
    line-height: 1.5;
}
.pv-sum-head {
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(197, 148, 92, 0.18);
}
.pv-sum-label {
    color: #c5945c;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
}
.pv-sum-range {
    margin-top: 8px !important;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    color: #d8af81;
}
.pv-sum-note {
    margin-top: 6px !important;
    font-size: 12px;
    color: #9a98aa;
}
.pv-sum-body {
    padding: 14px 22px 4px;
}
.pv-sum-sub {
    margin-bottom: 4px !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9a98aa;
}
.pv-sum ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pv-sum-righe li,
.pv-sum-canoni li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.pv-sum-righe li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pv-sum-imp {
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}
.pv-sum-tot {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}
.pv-sum-canoni {
    margin: 0 22px 16px;
    padding: 12px 14px;
    background: rgba(197, 148, 92, 0.1);
    border: 1px solid rgba(197, 148, 92, 0.3);
    border-radius: 8px;
}
.pv-sum-canoni .pv-sum-sub {
    color: #d8af81;
}
.pv-sum-canoni li {
    padding: 4px 0;
}
.pv-sum-avvisi {
    margin: 0 22px 16px !important;
    padding: 10px 14px !important;
    background: rgba(232, 167, 173, 0.08);
    border: 1px solid rgba(232, 167, 173, 0.35);
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #e8c4c7;
}
.pv-sum-foot {
    padding: 0 22px 22px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #9a98aa;
}
.pv-sum-foot p {
    margin-bottom: 10px !important;
}
.pv-fiscale {
    font-size: 12.5px;
    color: #b3b1c2;
}
.pv-sum-call {
    display: flex;
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    font-size: 12px;
}

/* Aggiornamento in corso: solo opacità, nessun cambio di dimensioni */
.pv-sum-range,
.pv-sum-body,
.pv-sum-canoni,
.pv-mbar-text strong {
    transition: opacity 0.2s;
}
.pv-sum.is-loading .pv-sum-range,
.pv-sum.is-loading .pv-sum-body,
.pv-sum.is-loading .pv-sum-canoni {
    opacity: 0.55;
}
.pv-sum-errore {
    margin: 0 22px 16px !important;
    padding: 10px 14px;
    background: rgba(232, 167, 173, 0.08);
    border: 1px solid rgba(232, 167, 173, 0.35);
    border-radius: 8px;
    font-size: 12.5px;
    color: #e8c4c7;
}

/* ---------- Barra mobile ---------- */
.pv-mbar {
    display: none;
}

/* ---------- Tabella listino ---------- */
.pv-table-wrap {
    overflow-x: auto;
    margin: 25px 0 15px;
    border: 1px solid rgba(197, 148, 92, 0.2);
    border-radius: 10px;
}
.pv-listino {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #b3b1c2;
}
.pv-listino caption {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    color: #9a98aa;
    caption-side: top;
}
.pv-listino th,
.pv-listino td {
    padding: 12px 18px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-color: transparent;
    text-align: left;
    vertical-align: top;
}
.pv-listino thead th {
    background: #13111b;
    color: #d8af81;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pv-listino tbody th {
    font-weight: 600;
    color: #ffffff;
}
.pv-listino .pv-cat th {
    background: rgba(197, 148, 92, 0.1);
    color: #d8af81;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pv-listino-desc {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 400;
    color: #9a98aa;
}
.pv-listino .pv-num {
    text-align: right;
    white-space: nowrap;
}
.pv-listino td.pv-num {
    color: #ffffff;
    font-weight: 600;
}

/* ---------- Metodo in 5 passi e titoli dei riquadri ---------- */
.sv-steps.pv-steps5 {
    grid-template-columns: repeat(5, 1fr);
}
.pv-cta-title,
.pv-errore-titolo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .sv-steps.pv-steps5 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1020px) {
    .pv-sum {
        position: static;
        max-width: none;
        min-height: 0;
        flex-basis: 100%;
    }
    .pv-page {
        padding-bottom: 150px;
    }
    .pv-mbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        min-height: 64px;
        padding: 10px 20px;
        background: #13111b;
        border-top: 1px solid rgba(197, 148, 92, 0.35);
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
        box-sizing: border-box;
    }
    .pv-mbar-text {
        margin: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }
    .pv-mbar-label {
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #c5945c;
    }
    .pv-mbar-text strong {
        font-size: 18px;
        font-weight: 800;
        color: #d8af81;
    }
    .pv-mbar-btn {
        padding: 10px 18px;
    }
}
@media (max-width: 850px) {
    .sv-steps.pv-steps5 {
        grid-template-columns: 1fr;
    }
    .pv-panel {
        padding: 20px 16px;
    }
    .pv-step-title {
        font-size: 22px;
    }
    .pv-det-toggle,
    .pv-details {
        margin-left: 18px;
    }
    .pv-listino th,
    .pv-listino td {
        padding: 10px 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pv-wizard *,
    .pv-btn {
        transition: none !important;
    }
    .pv-btn:hover {
        transform: none;
    }
}
