/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap');

/* Reset e base */
.swm-simulatore {
    font-family: 'Titillium Web', sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.button, button, fieldset, input, select, textarea {
    margin-bottom: 0px !important;
 }
/* Selettore modello */
.swm-model-selector {
    margin: 30px 0;
    text-align: center;
}

.swm-model-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.swm-model-selector select {
    font-family: 'Titillium Web', sans-serif;
    padding: 12px 40px 12px 20px;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.swm-model-selector select:hover,
.swm-model-selector select:focus {
    border-color: #1a1a1a;
    outline: none;
}

/* Layout principale */
.swm-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
}

/* Colonna sinistra */
.swm-col-left {
    position: sticky;
    top: 170px;
    align-self: start;
}

/* Nome modello - riga a sé */
.swm-nome-modello {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 30px 0;
    letter-spacing: -1px;
    text-align: center;
}

.swm-foto-container {
    background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
}

.swm-foto {
    width: 100%;
    height: auto;
    display: block;
}

.swm-testo {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

/* Colonna destra */
.swm-col-right {
    padding-top: 0px;
}

/* Box prezzo */
.swm-prezzo-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.swm-prezzo-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 0;
}

.swm-prezzo {
    font-size: 28px;
    font-weight: 700;
}

/* Tab Slider */
.swm-tabs {
    display: flex;
    position: relative;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 30px;
}

.swm-tab {
    flex: 1;
    padding: 12px 20px;
    line-height: 16px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    position: relative;
    z-index: 2;
}

.swm-tab.active {
    color: #1a1a1a;
}

.swm-tab-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.swm-tabs[data-active="caratteristiche"] .swm-tab-slider {
    transform: translateX(100%);
}

/* Tab Content */
.swm-tab-content {
    display: none;
}

.swm-tab-content.active {
    display: block;
}

/* Opzioni */
.swm-opzione-gruppo {
    margin-bottom: 35px;
}

.swm-opzione-titolo {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 15px;
}

.swm-opzione-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.swm-opzione-item {
    position: relative;
}

.swm-opzione-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.swm-opzione-item label {
    display: block;
    padding: 14px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 15px;
}

.swm-opzione-item label:hover {
    border-color: #999;
}

.swm-opzione-item input:checked + label {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: white;
}

/* Opzioni colore - layout speciale */
.swm-opzione-colori {
    gap: 20px;
}

.swm-opzione-colori .swm-opzione-item label {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 15px;
    background: transparent;
    border: none;
    display: flex;
}

.swm-opzione-colori .swm-opzione-item label:hover {
    border: none;
}

.swm-opzione-colori .swm-opzione-item input:checked + label {
    background: transparent;
    border: none;
    color: #1a1a1a;
}

/* Pallino colore */
.swm-colore-pallino {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 3px solid #e0e0e0;
    transition: all 0.2s ease;
}

.swm-colore-bianco {
    border-color: #ccc;
}

/* Pallino selezionato */
.swm-opzione-colori .swm-opzione-item input:checked + label .swm-colore-pallino {
    border-color: #DA3A52;
    box-shadow: 0 0 0 3px #DA3A52;
    transform: scale(1.1);
}

/* Hover sul pallino */
.swm-opzione-colori .swm-opzione-item label:hover .swm-colore-pallino {
    transform: scale(1.05);
}

/* Nome colore sotto il pallino */
.swm-opzione-colori .swm-opzione-nome {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.swm-opzione-colori .swm-opzione-item input:checked + label .swm-opzione-nome {
    color: #DA3A52;
    font-weight: 700;
}

/* Accordion */
.swm-accordion-item {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.swm-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.swm-accordion-header:hover {
    background: #f9f9f9;
}

.swm-accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s;
}

.swm-accordion-icon::before,
.swm-accordion-icon::after {
    content: '';
    position: absolute;
    background: #1a1a1a;
    transition: transform 0.3s;
}

.swm-accordion-icon::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.swm-accordion-icon::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.swm-accordion-item.active .swm-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.swm-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.swm-accordion-item.active .swm-accordion-content {
    max-height: 500px;
}

.swm-accordion-list {
    padding: 0 20px 20px 20px;
    margin: 0;
    list-style: none;
}

.swm-accordion-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.swm-accordion-list li:last-child {
    border-bottom: none;
}

/* Tab Slider - 3 voci */
.swm-tab-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(33.333% - 5px);
    height: calc(100% - 10px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.swm-tabs[data-active="configura"] .swm-tab-slider {
    transform: translateX(0);
}

.swm-tabs[data-active="optional"] .swm-tab-slider {
    transform: translateX(100%);
}

.swm-tabs[data-active="contatto"] .swm-tab-slider {
    transform: translateX(200%);
}

/* Form Contatto */
.swm-form {
    padding: 10px 0;
}

.swm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 5px;
}

.swm-form-group {
    display: flex;
    flex-direction: column;
}

.swm-form-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
}

.swm-form-group input,
.swm-form-group textarea {
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.2s;
    background: white;
}

.swm-form-group input:focus,
.swm-form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.swm-form-group textarea {
    resize: vertical;
    min-height: 250px;
}

.swm-form-group:last-of-type {
    margin-bottom: 40px;
}

.swm-btn-invia {
font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.swm-btn-invia:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.swm-btn-invia:active {
    transform: translateY(0);
}

.swm-btn-invia:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.swm-form-feedback {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: none;
}

.swm-form-feedback.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.swm-form-feedback.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Bottoni navigazione wizard */
.swm-btn-next {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 16px 30px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swm-btn-next:hover {
    background: #1a1a1a;
    color: white;
}

/* Responsive Form */
@media (max-width: 768px) {
    .swm-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .swm-tabs {
        flex-wrap: wrap;
    }
    
    .swm-tab {
        font-size: 12px;
        padding: 10px 8px;
        line-height: 14px;
    }
    
    .swm-tab-slider {
        display: none;
    }
    
    .swm-tab.active {
        background: white;
        border-radius: 8px;
    }

    .swm-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .swm-col-left {
        position: relative;
        top: 0;
    }

    .swm-nome-modello {
        font-size: 32px;
        text-align: center;
    }

    .swm-foto-container {
        padding: 20px;
    }

    .swm-testo {
        text-align: center;
    }

    .swm-prezzo-box {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .swm-prezzo {
        font-size: 24px;
    }

    .swm-opzione-item label {
        padding: 12px 18px;
        font-size: 14px;
    }

    .swm-opzione-colori {
        justify-content: center;
    }

    .swm-colore-pallino {
        width: 40px;
        height: 40px;
    }
}