/* ============================================================
   PREVENTIVO MODULE – Wizard di configurazione
   Mobile-First Responsive Design
   Bootstrap 5 Integration
   ============================================================ */

.wizard-module {
    --bg-dark: #0C0C0C;
    --bg-card: #1A1A1A;
    --bg-card-hover: #242424;
    --orange: #FF6900;
    --orange-dark: #E55E00;
    --orange-glow: rgba(255, 105, 0, 0.25);
    --text-light: #ffffff;
    --text-muted: #9CA3AF;
    --border: #2A2A2A;
    --success: #10B981;
    --touch-min: 48px;          /* Minimo touch target WCAG */
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.wizard-module .progress-wrapper {
    padding: 1rem 0 0.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg,
        var(--bg-dark) 0%,
        var(--bg-dark) 85%,
        transparent 100%);
}

.wizard-module .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    padding: 0 0.5rem;
}

.wizard-module .progress-step-label {
    color: var(--text-muted);
    font-weight: 500;
}

.wizard-module .progress-step-label strong {
    color: var(--orange);
    font-weight: 700;
}

.wizard-module .progress-percent {
    color: var(--orange);
    font-weight: 700;
}

.wizard-module .progress-bar-track {
    height: 8px;
    background: var(--bg-card);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: none;
}

.wizard-module .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange-dark), var(--orange));
    border-radius: 50px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px var(--orange-glow);
}

.wizard-module .progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.wizard-module .progress-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    position: relative;
    padding: 0 0.25rem;
}

.wizard-module .progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.wizard-module .progress-dot.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    box-shadow: 0 0 0 3px var(--orange-glow);
    transform: scale(1.1);
}

.wizard-module .progress-dot.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Linea di connessione tra i dot */
.wizard-module .progress-dots::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

/* ============================================================
   WIZARD CONTAINER
   ============================================================ */

.wizard-module .wizard-container {
    max-width: 860px;
    padding: 0 1rem 2rem;
}

/* ============================================================
   STEP
   ============================================================ */

.wizard-module .step {
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-module .step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   STEP HEADER
   ============================================================ */

.wizard-module .step-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.wizard-module .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px var(--orange-glow);
}

.wizard-module .step-title {
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    padding: 0 0.25rem;
}

.wizard-module .step-title span {
    color: var(--orange);
}

.wizard-module .step-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
    padding: 0 0.5rem;
}

/* ============================================================
   OPTION CARDS
   ============================================================ */

.wizard-module .options-grid {
    margin-bottom: 1.5rem;
}

.wizard-module .option-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: var(--touch-min);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.wizard-module .option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.wizard-module .option-card:hover {
    border-color: var(--orange);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wizard-module .option-card:hover::before {
    transform: scaleX(1);
}

.wizard-module .option-card.selected {
    border-color: var(--orange);
    background: linear-gradient(135deg, rgba(255, 105, 0, 0.12), rgba(255, 105, 0, 0.05));
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.wizard-module .option-card.selected::before {
    transform: scaleX(1);
}

.wizard-module .option-card:active {
    transform: scale(0.98);
}

.wizard-module .option-card .check-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.wizard-module .option-card.selected .check-mark {
    opacity: 1;
    transform: scale(1);
}

.wizard-module .option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 105, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.wizard-module .option-card.selected .option-icon {
    background: rgba(255, 255, 255, 0.15);
}

.wizard-module .option-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.wizard-module .option-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}


/* ============================================================
   OPTION CARDS - MOBILE 2-per-riga
   ============================================================ */

.wizard-module .options-grid .row-cols-2 > .col {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}

.wizard-module .options-grid .row-cols-2 {
    --bs-gutter-x: 0.75rem;
}

/* Card compatta su mobile per stare 2 per riga */
@media (max-width: 575.98px) {
    .wizard-module .option-card {
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
        min-height: auto;
    }

    .wizard-module .option-card .check-mark {
        top: 8px;
        right: 8px;
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .wizard-module .option-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .wizard-module .option-title {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }

    .wizard-module .option-desc {
        font-size: 0.68rem;
        line-height: 1.3;
        word-break: break-word;
    }

    /* Selezionata: glow più sottile */
    .wizard-module .option-card.selected {
        box-shadow: 0 0 0 2px var(--orange-glow);
    }
}

/* Tablet e desktop: card più grandi */
@media (min-width: 576px) {
    .wizard-module .options-grid .row-cols-2 > .col {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .wizard-module .options-grid .row-cols-2 {
        --bs-gutter-x: 1.5rem;
    }
}

/* ============================================================
   RANGE SLIDER (Step 2)
   ============================================================ */

.wizard-module .range-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.wizard-module .range-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.wizard-module .range-value {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    color: var(--orange);
    display: block;
    line-height: 1;
}

.wizard-module .range-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.wizard-module .range-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: var(--bg-dark);
    border-radius: 50px;
    outline: none;
    margin: 1rem 0;
    cursor: pointer;
}

/* Thumb - WebKit */
.wizard-module .range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    box-sizing: border-box;
    margin-top: -11px;
}

.wizard-module .range-input::-webkit-slider-thumb:hover,
.wizard-module .range-input::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.wizard-module .range-input::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 50px;
    background: var(--bg-dark);
}

/* Thumb - Firefox */
.wizard-module .range-input::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.wizard-module .range-input::-moz-range-track {
    height: 10px;
    border-radius: 50px;
    background: var(--bg-dark);
}

.wizard-module .range-ticks {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0 2px;
}

/* ============================================================
   CHIPS (Step 3)
   ============================================================ */

.wizard-module .chips-grid {
    margin-bottom: 1.5rem;
}

.wizard-module .chip {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-light);
    min-height: var(--touch-min);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-align: center;
    line-height: 1.2;
}

.wizard-module .chip:hover {
    border-color: var(--orange);
    background: var(--bg-card-hover);
}

.wizard-module .chip:active {
    transform: scale(0.96);
}

.wizard-module .chip.selected {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    box-shadow: 0 4px 15px var(--orange-glow);
}

.wizard-module .chip.selected .icon {
    color: white !important;
}

.wizard-module .chip-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chips mobile: 1 per riga, testo visibile */
@media (max-width: 575.98px) {
    .wizard-module .chips-grid .row-cols-1 > .col {
        padding-left: 0;
        padding-right: 0;
    }

    .wizard-module .chip {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .wizard-module .chip-label {
        font-size: 0.95rem;
    }
}

/* ============================================================
   CONTACT FORM (Step 7)
   ============================================================ */

.wizard-module .contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
}

.wizard-module .form-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wizard-module .contact-method-toggle {
    margin-bottom: 1.25rem;
}

.wizard-module .method-btn {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    min-height: var(--touch-min);
    -webkit-tap-highlight-color: transparent;
}

.wizard-module .method-btn.active {
    background: rgba(255, 105, 0, 0.12);
    border-color: var(--orange);
    color: var(--orange);
}

.wizard-module .method-btn .method-label {
    white-space: nowrap;
}

/* ============================================================
   WIZARD ACTIONS (Back / Next / Submit)
   ============================================================ */

.wizard-module .wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: var(--safe-bottom);
}

.wizard-module .btn-back,
.wizard-module .btn-next,
.wizard-module .btn-submit {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    transition: all 0.25s ease;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.wizard-module .btn-submit {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.wizard-module .btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wizard-module .btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   SUMMARY CARD (Step 7)
   ============================================================ */

.wizard-module .summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.wizard-module .summary-title {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-module .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
}

.wizard-module .summary-row:last-child {
    border-bottom: none;
}

.wizard-module .summary-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.wizard-module .summary-value {
    color: var(--text-light);
    font-weight: 600;
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */

.wizard-module .success-screen {
    text-align: center;
    padding: 2rem 0.5rem;
    animation: successIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wizard-module .success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    animation: bounce 0.6s 0.3s both;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wizard-module .success-title {
    font-size: clamp(1.6rem, 5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.wizard-module .success-text {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    padding: 0 0.5rem;
}

.wizard-module .success-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    max-width: 480px;
    margin: 1.5rem auto;
    text-align: left;
}

.wizard-module .success-info-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.wizard-module .success-info-item:last-child {
    border-bottom: none;
}

.wizard-module .success-info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.wizard-module .success-info-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
}

/* Trust text sotto il submit */
.wizard-module .trust-text {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Privacy link */
.wizard-module .privacy-link {
    color: var(--orange);
    text-decoration: none;
}

.wizard-module .privacy-link:hover {
    text-decoration: underline;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */

.wizard-module .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   BOOTSTRAP 5 OVERRIDES
   ============================================================ */

.wizard-module .btn-warning {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark)) !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px var(--orange-glow) !important;
}

.wizard-module .btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--orange-glow) !important;
}

.wizard-module .btn-outline-light {
    border: 2px solid var(--border) !important;
    color: var(--text-light) !important;
    font-weight: 600 !important;
}

.wizard-module .btn-outline-light:hover:not(:disabled) {
    background: var(--bg-card) !important;
    border-color: var(--text-light) !important;
    color: var(--text-light) !important;
}

.wizard-module .btn-success {
    background: linear-gradient(135deg, var(--success), #059669) !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.wizard-module .btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4) !important;
}

/* Form controls */
.wizard-module .form-control {
    background: var(--bg-dark) !important;
    border: 2px solid var(--border) !important;
    color: var(--text-light) !important;
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;           /* Previene zoom iOS su focus */
    transition: all 0.3s ease !important;
    min-height: var(--touch-min);
}

.wizard-module .form-control:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 4px var(--orange-glow) !important;
}

.wizard-module .form-control::placeholder {
    color: #555 !important;
}

.wizard-module .form-check-input {
    background-color: var(--bg-dark);
    border-color: var(--border);
    width: 22px;
    height: 22px;
    min-width: 22px;
    cursor: pointer;
}

.wizard-module .form-check-input:checked {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
}

.wizard-module .form-check-input:focus {
    box-shadow: 0 0 0 4px var(--orange-glow) !important;
    border-color: var(--orange) !important;
}

.wizard-module .form-check-label {
    cursor: pointer;
    padding-left: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Progress override */
.wizard-module .progress {
    background: var(--bg-card);
}

.wizard-module .card {
    box-shadow: none;
}

/* ============================================================
   SFONDO RADIALE
   ============================================================ */

.wizard-module {
    background:
        radial-gradient(ellipse at top, rgba(255, 105, 0, 0.08), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(255, 105, 0, 0.04), transparent 60%),
        var(--bg-dark);
    min-height: 100vh;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Tablet (≥576px) --- */
@media (min-width: 576px) {
    .wizard-module .wizard-container {
        padding: 0 1.5rem 2rem;
    }

    .wizard-module .step-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .wizard-module .option-card {
        padding: 1.5rem;
    }

    .wizard-module .option-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .wizard-module .chip {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .wizard-module .contact-form-card {
        padding: 2rem;
    }

    .wizard-module .range-wrapper {
        padding: 2rem;
    }

    .wizard-module .success-screen {
        padding: 3rem 1rem;
    }

    .wizard-module .success-icon {
        width: 120px;
        height: 120px;
        font-size: 4rem;
    }
}

/* --- Desktop (≥768px) --- */
@media (min-width: 768px) {
    .wizard-module .progress-wrapper {
        padding: 1.5rem 0 0.5rem;
    }

    .wizard-module .progress-info {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .wizard-module .progress-dot {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .wizard-module .step-header {
        margin-bottom: 1.5rem;
    }

    .wizard-module .step-title {
        margin-bottom: 0.75rem;
    }

    .wizard-module .step-subtitle {
        font-size: 1.05rem;
    }

    .wizard-module .options-grid,
    .wizard-module .chips-grid {
        margin-bottom: 2rem;
    }

    .wizard-module .wizard-actions {
        margin-top: 2rem;
        gap: 1rem;
    }

    .wizard-module .btn-back,
    .wizard-module .btn-next {
        padding: 0.85rem 1.75rem;
    }

    .wizard-module .btn-submit {
        padding: 1rem 2.5rem;
    }
}

/* --- Piccoli schermi (≤360px) --- */
@media (max-width: 360px) {
    .wizard-module .wizard-container {
        padding: 0 0.75rem 1.5rem;
    }

    .wizard-module .step-title {
        font-size: 1.25rem;
    }

    .wizard-module .option-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .wizard-module .option-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .wizard-module .option-title {
        font-size: 0.95rem;
    }

    .wizard-module .option-desc {
        font-size: 0.78rem;
    }

    .wizard-module .chip {
        padding: 0.6rem 0.5rem;
        font-size: 0.78rem;
        gap: 0.3rem;
    }

    .wizard-module .chip .icon {
        font-size: 1rem !important;
    }

    .wizard-module .progress-dot {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .wizard-module .btn-back,
    .wizard-module .btn-next {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .wizard-module .range-value {
        font-size: 2rem;
    }
}

/* --- Landscape su mobile --- */
@media (max-height: 500px) and (orientation: landscape) {
    .wizard-module .step-header {
        margin-bottom: 0.75rem;
    }

    .wizard-module .step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .wizard-module .step-title {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .wizard-module .step-subtitle {
        font-size: 0.85rem;
    }

    .wizard-module .options-grid,
    .wizard-module .chips-grid {
        margin-bottom: 1rem;
    }

    .wizard-module .option-card {
        padding: 0.875rem;
    }

    .wizard-module .option-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .wizard-module .wizard-actions {
        margin-top: 1rem;
    }
}

/* --- Supporto dark mode di sistema --- */
@media (prefers-color-scheme: dark) {
    .wizard-module .form-control {
        color-scheme: dark;
    }
}

/* --- Riduci animazioni se richiesto dall'utente --- */
@media (prefers-reduced-motion: reduce) {
    .wizard-module .step {
        animation: none;
    }

    .wizard-module .success-screen {
        animation: none;
    }

    .wizard-module .success-icon {
        animation: none;
    }

    .wizard-module .progress-bar-fill {
        transition: none;
    }

    .wizard-module .option-card,
    .wizard-module .chip,
    .wizard-module .method-btn,
    .wizard-module .btn-back,
    .wizard-module .btn-next {
        transition: none;
    }
}


/* ============================================================
   STEP HEADER - Icona a destra del testo (tutti gli step)
   ============================================================ */

.wizard-module .step-header--inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 0;
    margin-bottom: 1.25rem;
}

.wizard-module .step-header--inline .step-header__content {
    flex: 1;
    min-width: 0;
}

.wizard-module .step-header--inline .step-title {
    text-align: left;
    padding: 0;
    margin-bottom: 0.4rem;
    font-size: clamp(1.15rem, 4.5vw, 1.75rem);
}

.wizard-module .step-header--inline .step-subtitle {
    text-align: left;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.wizard-module .step-header--inline .step-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 0;
    box-shadow: 0 6px 20px var(--orange-glow);
}

/* --- Mobile --- */
@media (max-width: 575.98px) {
    .wizard-module .step-header--inline {
        gap: 0.6rem;
        margin-bottom: 0.875rem;
    }

    .wizard-module .step-header--inline .step-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    .wizard-module .step-header--inline .step-title {
        font-size: 1.05rem;
        margin-bottom: 0.2rem;
        line-height: 1.25;
    }

    .wizard-module .step-header--inline .step-subtitle {
        font-size: 0.82rem;
    }
}

/* --- Desktop --- */
@media (min-width: 768px) {
    .wizard-module .step-header--inline {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .wizard-module .step-header--inline .step-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        font-size: 1.75rem;
    }

    .wizard-module .step-header--inline .step-title {
        font-size: 1.6rem;
    }
}

/* STEP 3: CHIP SELEZIONATO - ICONA BIANCA */
#wizardModule .chip.selected .icon.text-orange {
    background-color: #ffffff !important;
}
