/** Shopify CDN: Minification failed

Line 3030:0 Unexpected "9rem"
Line 3167:11 Expected identifier but found whitespace
Line 3167:20 Unexpected ";"

**/
:root {
    --primary: #1e293b;
    --accent: #0077cc;
    --accent-gradient: linear-gradient(135deg, #0077cc 0%, #5b21b6 100%);
    --success: #10b981;
    --error: #dc2626;
    --bg: #ffffff;
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gold: #fbbf24;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--primary);
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

/* BADGE ITALIA */
.italy-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--success);
    color: white;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(16,185,129,0.2);
    z-index: 10;
}

/* COLONNA SINISTRA - TUTTO CENTRATO AL PIXEL */
.image-section {
    padding: 35px 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
}
.image-section > * {
    max-width: 380px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.image-section img {
    width: 100%;
    max-width: 380px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    margin: 20px auto 0;
    transition: transform 0.5s;
}
.image-section img:hover {
    transform: scale(1.05);
}

/* PREZZO */
.price-section {
    margin: 20px 0 12px;
    text-align: center;
}
.price-section .old-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 6px;
}
.price-section .current-price {
    font-size: 30px;
    font-weight: 600;
    color: var(--primary);
}
.price-section .discount {
    background: #fee2e2;
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
}

/* PULSANTE MODERNO */
.button-area {
    margin: 26px 0;
    perspective: 1000px;
    display: flex;               /* ← NUOVO */
    justify-content: center;     /* ← NUOVO */
    width: 100%;                 /* ← NUOVO */
}
.button-area button {
    position: relative;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 
        0 8px 20px rgba(0, 119, 204, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 380px;        /* IDENTICO ALL'IMMAGINE */
    margin-left: auto;       /* CENTRATO PERFETTO */
    margin-right: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: none;
}
.button-area button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.button-area button:hover::before {
    opacity: 1;
}
.button-area button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 16px 35px rgba(0, 119, 204, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 0 30px rgba(0, 119, 204, 0.4);
    animation: pulse-glow 2s infinite;
}
.button-area button:active {
    transform: translateY(-2px) scale(1.01);
}
.button-area button:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.button-area button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}
.button-area button:hover i {
    transform: translateX(4px);
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 16px 35px rgba(0, 119, 204, 0.45), 0 0 30px rgba(0, 119, 204, 0.4); }
    50% { box-shadow: 0 16px 35px rgba(0, 119, 204, 0.55), 0 0 40px rgba(0, 119, 204, 0.5); }
}
.button-area p {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
}
.today-counter strong {
    color: var(--primary);
}

.spec-item {
    text-align: center;
    padding: 14px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* === TECHNICAL SPECS: 3 BOX IN RIGA ON DESKTOP === */
@media (min-width: 769px) {
  .technical-specs {
    flex-direction: row;     /* da colonna → riga */
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .technical-specs .spec-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 14px 12px;
  }

  .technical-specs .spec-item .value {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    font-weight: 400;          /* normale */
    color: #374151;
  }

  .technical-specs .spec-item .label {
    font-weight: 700;          /* grassetto */
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
  }

  .technical-specs .spec-item .icon {
    margin-bottom: 10px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

.spec-item .icon {
    width: 38px;
    height: 38px;
    background: var(--success, #22c55e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 17px;
}

.spec-item .label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}

.spec-item .value {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary, #3b82f6);
}
/* GARANZIA - ICONA SI MUOVE SUBITO */
.guarantee {
    position: relative;
    margin: 20px auto 0;
    text-align: center;
    max-width: 380px;
    width: 100%;
    padding-left: 46px;           /* spazio per l'icona */
    min-height: 46px;             /* evita salti */
}
.guarantee .icon {
    position: absolute !important;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guarantee .icon i { font-size: 17px; }

/* 3 STEP - DESTRA */
.steps-container {
    position: relative;
    margin-bottom: 26px;
}
.steps-title-right {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 34px;
    position: absolute;
    left: 16px;
    top: 10px;
    z-index: 2;
}
.steps-section-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 16px;
    margin-top: 50px;
}
.steps-section-right::before {
    content: '';
    position: absolute;
    left: 33px;
    top: 34px;
    bottom: 34px;
    width: 3px;
    background: #bbf7d0;
    border-radius: 2px;
    z-index: 0;
}
.step-item-right {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
    padding: 10px 0;
}
.step-number-right {
    width: 34px;
    height: 34px;
    background: var(--success);
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(16,185,129,0.3);
    position: relative;
    z-index: 2;
}
.step-content-right h3 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 3px 0;
}
.step-content-right p {
    font-size: 13px;
    color: #4b5563;
}

/* SPEDIZIONE — icona a sinistra, testo su una sola riga */
.shipping-highlight {
    display: inline-flex;
    align-items: center;        /* centra verticalmente icona e testo */
    justify-content: center;    /* centra orizzontalmente tutto */
    gap: 10px;
    padding: 12px 20px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.1);
    box-sizing: border-box;
    text-align: center;
}

/* Icona a sinistra */
.shipping-highlight .icon {
    width: 36px;
    height: 36px;
    background: var(--success, #22c55e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
/* Correzione allineamento icona spedizione */
.shipping-highlight .icon {
    position: relative;
    top: 16px; /* alza o abbassa l’icona — prova 1px, 2px o 3px per perfezionare */
}
.shipping-highlight .text {
    position: relative;
    top: -18px; /* alza il testo - aumenta o diminuisci questo valore se serve */
    left: 10px;       /* sposta a destra (+) o a sinistra (-) */
}


/* Testo sulla stessa riga */
.shipping-highlight .text {
    display: inline-flex;
    align-items: center;
    gap: 6px;                  /* piccolo spazio tra le due parti */
    color: #374151;            /* colore testo */
    font-size: 15px;
    white-space: nowrap;       /* evita l’andata a capo */
}

/* “Spedizione gratuita” più evidente */
.shipping-highlight .text strong {
    font-weight: 800;          /* più grassetto */
    color: #166534;            /* verde scuro */
}

/* “Consegna in 7 giorni lavorativi” normale */
.shipping-highlight .text span {
    font-weight: 500;
    color: inherit;            /* stesso colore del testo principale */
}


/* COLONNA DESTRA */
.details-section {
    padding: 40px 28px 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--bg);
}
.details-section .title-big {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.details-section .title-small {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;        /* PIÙ GRANDE, COME VUOI TU */
    color: #333;            /* NERO LEGGIBILE */
    line-height: 1.3;
    margin-top: 8px;
}
.details-section > p {
    font-size: 16.5px;
    color: #555;
    margin-bottom: 26px;
    line-height: 1.7;
}
.mobile-cta button {
    width: 100%;
    max-width: none;
    padding: 12px;
    font-size: 16px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,119,204,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: none;
}
.mobile-cta button:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.mobile-cta button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}
.mobile-cta button:hover i {
    transform: translateX(4px);
}

/* MODALE CON ANIMAZIONE */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* 🔥 NUOVO BLOCCO — quando il modale deve essere visibile */
.modal.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #1d4ed8;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

/* FORM PERSONALIZZAZIONE */
.personalization-form {
    font-family: 'Poppins', sans-serif;
}
.personalization-form .sticky-container {
    position: relative;
    top: 0;
    background: var(--bg);
    padding: 20px 0;
    border-radius: 12px;
    z-index: 10;
}
.personalization-form .sticky-container h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}
.personalization-form .intro-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
}
.personalization-form .product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}
.personalization-form .modern-progress-container {
    margin-top: 16px;
    width: 100%;
    position: relative;
    --progress-width: 0%;
    padding: 0 20px;
}
.personalization-form .modern-progress-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    z-index: 1;
}
.personalization-form .modern-progress-container::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    height: 4px;
    background: var(--accent);
    width: var(--progress-width);
    border-radius: 2px;
    transition: width 0.4s ease;
    z-index: 1;
}
.personalization-form .modern-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    margin-top: -36px;
    padding: 0 4px;
}
.personalization-form .modern-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.personalization-form .modern-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    color: #9ca3af;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}
.personalization-form .modern-step.active .modern-step-circle {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(0, 119, 204, 0.2);
}
.personalization-form .modern-step.completed .modern-step-circle {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-size: 20px;
    font-weight: bold;
}
.personalization-form .modern-step-label {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    transition: color 0.3s ease;
}
.personalization-form .modern-step.active .modern-step-label,
.personalization-form .modern-step.completed .modern-step-label {
    color: var(--accent);
    font-weight: 700;
}
.personalization-form #custom-product-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.personalization-form .form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.personalization-form .form-icon {
    flex-shrink: 0;
    stroke: var(--accent);
}
.personalization-form .form-header h2 {
    font-size: 22px;
    color: var(--primary);
}
.personalization-form .form-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}
.personalization-form .form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.personalization-form .form-row-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.personalization-form .form-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.personalization-form .form-box label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.personalization-form .form-box label .required {
    color: var(--error);
}
.personalization-form .form-box input,
.personalization-form .form-box select,
.personalization-form .form-box textarea {
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all .2s;
    width: 100%;
}
.personalization-form .form-box input:focus,
.personalization-form .form-box select:focus,
.personalization-form .form-box textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.2);
}
.personalization-form .form-subrow {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.personalization-form .char-counter {
    font-size: 12px;
    color: #888;
    text-align: right;
}
.personalization-form .upload-box {
    position: relative;
}
.personalization-form #preview {
    margin-top: 12px;
    max-height: 120px;
    overflow: hidden;
    border-radius: 12px;
}
.personalization-form #preview img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.personalization-form .remove-photo {
    margin-top: 8px;
    padding: 8px 16px;
    background: #fee2e2;
    color: var(--error);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}
.personalization-form .color-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.personalization-form .option-row {
    margin-top: 24px;
}
.personalization-form .option-row .option-picker {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}
.personalization-form .option-picker {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    justify-content: flex-start;
}
.personalization-form .option-item {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: all .2s;
    width: 140px;
    text-align: center;
    flex: 0 0 auto;
}
.personalization-form .option-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.personalization-form .option-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.personalization-form .option-label {
    display: block;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg);
}
.personalization-form .option-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.personalization-form .option-item.selected {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.4);
}
.personalization-form .color-option {
    cursor: pointer;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 12px;
    text-align: center;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.personalization-form .color-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.personalization-form .color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.personalization-form .color-label {
    font-size: 13px;
    color: var(--primary);
}
.personalization-form .color-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.personalization-form .color-option.selected {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.4);
}
.personalization-form .error-message {
    color: var(--error);
    font-size: 13px;
    min-height: 18px;
    margin-top: 4px;
    aria-live: polite;
}
.personalization-form .button-container {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}
.personalization-form .next-step,
.personalization-form .prev-step,
.personalization-form .cta-button {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Poppins', sans-serif;
}
.personalization-form .prev-step {
    background: #f1f5f9;
    color: #475569;
}
.personalization-form .prev-step:hover {
    background: #e2e8f0;
}
.personalization-form .next-step,
.personalization-form .cta-button {
    background: var(--accent-gradient);
    color: white;
}
.personalization-form .next-step:hover,
.personalization-form .cta-button:hover {
    background: var(--accent);
    transform: translateY(-1px);
}
.personalization-form .cta-button {
    position: relative;
}
.personalization-form .loading-spinner {
    margin-left: 8px;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.personalization-form .form-box.error-highlight {
    animation: pulse-error 1.5s ease-in-out;
}
@keyframes pulse-error {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.2); }
}
.personalization-form .shake-error {
    animation: shake 0.5s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
.personalization-form .form-step:last-child {
    min-height: 200px;
}
.personalization-form .modal {
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
}
.personalization-form .modal-content {
    background: var(--bg);
    padding: 32px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.personalization-form .modal-message {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
}
.personalization-form .missing-fields {
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 16px;
}
.personalization-form .modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}
.personalization-form .modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.personalization-form .modal-btn.proceed {
    background: #FBE9F6;
    color: var(--accent);
}
.personalization-form .modal-btn.complete {
    background: var(--success);
    color: white;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .container { grid-template-columns: 1fr; }
    .image-section, .details-section { padding: 45px 36px; }
    .italy-badge { top: 12px; right: 12px; font-size: 11px; padding: 4px 9px; }
    .technical-specs { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
    .steps-title-right { position: static; text-align: center; margin-bottom: 16px; }
    .steps-section-right { margin-top: 0; padding-left: 0; }
    .steps-section-right::before { left: 50%; transform: translateX(-50%); width: 3px; }
    .step-item-right { justify-content: center; }
    .step-number-right { margin-right: 12px; }
}
@media (max-width: 600px) {
    .container { margin: 20px auto; }
    .details-section h1 { font-size: 32px; }
    .price-section .current-price { font-size: 30px; }
    .shipping-highlight { padding: 12px; }
    .shipping-highlight .icon { width: 40px; height: 40px; }
    .shipping-highlight .icon i { font-size: 18px; }
    .step-number-right { width: 30px; height: 30px; font-size: 14px; }
    .button-area button { padding: 14px 32px; font-size: 17px; }
    .mobile-cta { display: block; }
    .review-box { flex-direction: column; text-align: center; }
    .review-box img { margin: 0 auto; }
    .personalization-form .form-row-3 { grid-template-columns: 1fr; }
    .personalization-form .color-picker { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 4px; }
    .personalization-form .color-option { padding: 10px 8px; }
    .personalization-form .color-swatch { width: 28px; height: 28px; }
    .personalization-form .option-row .option-picker { justify-content: center; }
    .personalization-form .option-item { width: 120px; }
    .personalization-form .button-container { flex-direction: column; }
    .personalization-form .next-step,
    .personalization-form .prev-step,
    .personalization-form .cta-button { width: 100%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Evidenziazione errore */
.form-box.error-highlight {
    border: 2px solid #e11d48 !important;
    border-radius: 8px;
    padding: 12px;
    background-color: #fdf2f2;
}

.shake-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
     width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden; /* OBBLIGATORIO */
    display: flex;
    flex-direction: column;
}

.personalization-form {
    flex: 1;
    overflow-y: auto; /* SCROLL QUI */
    padding: 0;
}

/* === MODALE FISSA E SCROLL INTERNO === */
.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.personalization-form {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* === HEADER FISSO === */
.sticky-container {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    padding: 24px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sticky-container h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.intro-text {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 0.95rem;
}

.product-price {
    margin: 0 0 16px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e11d48;
}

.progress-steps {
    margin-top: 16px;
}

.form-step {
    padding: 24px;
    display: none;
}

.form-step.active {
    display: block;
}

/* SELETTORE TONO PELLE - 6 OPZIONI VISIVE */
.skin-tone-picker {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.skin-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    width: 68px;
    text-align: center;
}

.skin-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.skin-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}

.skin-label {
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.3;
}

.skin-option:hover .skin-swatch {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.skin-option input:checked + .skin-swatch {
    transform: scale(1.18);
    box-shadow: 
        0 0 0 3px var(--accent),
        0 4px 16px rgba(0, 119, 204, 0.4);
    border-color:, border-color: var(--accent);
}

.skin-option input:checked ~ .skin-label {
    color: var(--accent);
    font-weight: 700;
}

/* CAPELLI - 7 OPZIONI REALISTICHE - CORRETTO */
.hair-color-picker {
    display: flex;
    gap: 14px; /* Aumentato da 10px */
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hair-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    width: 85px; /* AUMENTATO */
    text-align: center;
}

.hair-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hair-swatch {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hair-label {
    font-size: 11.8px; /* RIDOTTO */
    color: var(--primary);
    font-weight: 500;
    line-height: 1.2;
    white-space: normal; /* VA A CAPO */
    word-wrap: break-word;
    max-width: 100%;
}

.hair-option:hover .hair-swatch {
    transform: scale(1.15);
    box-shadow: 0 5px 16px rgba(0,0,0,0.3);
}

.hair-option input:checked + .hair-swatch {
    transform: scale(1.2);
    box-shadow: 
        0 0 0 3.5px var(--accent),
        0 6px 18px rgba(0, 119, 204, 0.45);
    border-color: var(--accent);
}

.hair-option input:checked ~ .hair-label {
    color: var(--accent);
    font-weight: 700;
}

/* OCCHI - 5 OPZIONI VISIVE */
.eye-color-picker {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.eye-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    width: 68px;
    text-align: center;
}

.eye-option input {
    position: absolute;
    opacity: 0;
}

.eye-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}

.eye-label {
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 500;
}

.eye-option:hover .eye-swatch {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.eye-option input:checked + .eye-swatch {
    transform: scale(1.18);
    box-shadow: 0 0 0 3px var(--accent), 0 4px 16px rgba(0,119,204,0.4);
    border-color: var(--accent);
}

.eye-option input:checked ~ .eye-label {
    color: var(--accent);
    font-weight: 700;
}
/* RIGA DOPPIA: TIPO + FINITURA */
.cover-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 12px;
    align-items: start;
}

.form-box.half-width {
    margin: 0;
}

.form-box.half-width .option-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-box.half-width .option-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.form-box.half-width .option-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 8px;
    display: block;
    border: 1.5px solid #ddd;
}

.form-box.half-width .option-label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive: mobile → una colonna */
@media (max-width: 768px) {
    .cover-options-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-box.half-width .option-picker {
        justify-content: center;
    }
}
/* GRIGLIA 2x2 PER LUNGHEZZA CAPELLI */
.hair-length-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 8px;
    justify-content: start;
}

.hair-length-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 35px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    text-align: center;
    width: 100%;
}

.hair-length-option input {
    margin-right: 10px;
    accent-color: #0077cc;
}

.hair-length-label {
    font-weight: 500;
}

/* Hover */
.hair-length-option:hover {
    border-color: #0077cc;
    background: #f0f7ff;
    transform: translateY(-1px);
}

/* Selezionato */
.hair-length-option:has(input:checked) {
    background: #e6f2ff;
    border-color: #0077cc;
    color: #0077cc;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,119,204,0.15);
}

/* Responsive: mobile → 1 colonna */
@media (max-width: 768px) {
    .hair-length-grid {
        grid-template-columns: 1fr;
    }
    
    .hair-length-option {
        justify-content: flex-start;
        padding: 16px;
    }
}
/* TIPO CAPELLI - 5 IN RIGA, IMMAGINI GRANDI, SPAZIO PIENO */
.hair-type-horizontal {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding: 4px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.hair-type-horizontal::-webkit-scrollbar {
    height: 6px;
}

.hair-type-horizontal::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.hair-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;                    /* Usa tutto lo spazio */
    min-width: 85px;            /* Minimo per mobile */
    max-width: none;            /* Rimuovi limite */
    padding: 12px 6px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.hair-type-item img {
    width: 78px;                /* IMMAGINE GRANDE */
    height: 78px;               /* QUADRATA */
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hair-type-item span {
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
    color: #222;
}

.hair-type-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Hover */
.hair-type-item:hover {
    border-color: #0077cc;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,119,204,0.15);
}

/* Selezionato */
.hair-type-item:has(input:checked) {
    background: #e6f2ff;
    border-color: #0077cc;
    color: #0077cc;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,119,204,0.25);
}

.hair-type-item:has(input:checked) span {
    color: #0077cc;
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .hair-type-horizontal {
        gap: 12px;
        padding: 8px 0;
    }
    
    .hair-type-item {
        min-width: 82px;
        padding: 12px 8px;
    }
    
    .hair-type-item img {
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }
    
    .hair-type-item span {
        font-size: 0.85rem;
    }
}
/* ========================================
   LUNGHEZZA CAPELLI - SWIPE ORIZZONTALE
   ======================================== */

/* Contenitore: swipe orizzontale */
.hair-length-horizontal {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 8px 0;
    }

/* Ogni opzione (Calvo, Corto, ecc.) */
.hair-length-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;                    /* Si adatta allo spazio */
    min-width: 0;               /* Permette di restringersi */
    padding: 14px 8px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    gap: 6px;
}

.hair-length-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hair-length-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

/* Hover */
.hair-length-option:hover {
    border-color: #0077cc;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,119,204,0.15);
}

/* Selezionato */
.hair-length-option:has(input:checked) {
    background: #e6f2ff;
    border-color: #0077cc;
    box-shadow: 0 4px 12px rgba(0,119,204,0.25);
}

.hair-length-option:has(input:checked) .hair-length-label {
    color: #0077cc;
    font-weight: 700;
}

/* ========================================
   SOLO MOBILE: METÀ LARGHEZZA
   ======================================== */
@media (max-width: 768px) {
    .hair-length-horizontal {
        gap: 8px;
        padding: 10px 0;
    }

    .hair-length-option {
        min-width: 45px;       /* Metà di 90px */
        padding: 10px 6px;
        gap: 4px;
    }

    .hair-length-label {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}
/* === SFONDI DELICATI PER OGNI SEZIONE === */
.section-block {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.section-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* SFONDI TEMATICI */
.bg-skin   { background: linear-gradient(135deg, #fdf8f5, #f5ece6); }
.bg-hair   { background: linear-gradient(135deg, #f0f7ff, #e6f2ff); }
.bg-eyes   { background: linear-gradient(135deg, #f0fff4, #e6fceb); }
.bg-type   { background: linear-gradient(135deg, #fff4fb, #fce8f8); }
.bg-length { background: linear-gradient(135deg, #f5f5ff, #ebebf5); }
.bg-pets   { background: linear-gradient(135deg, #fff9e6, #fff3d6); }
.bg-color  { background: linear-gradient(135deg, #f0e6ff, #e6d6ff); }
.bg-remember{ background: linear-gradient(135deg, #e6f7ff, #d6f0ff); }
.bg-details{ background: linear-gradient(135deg, #e6f7ff,rgb(224, 231, 235)); }

/* Titoli più chiari */
.section-block > label:first-child {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 14.5px;
}

/* Griglie interne: rimuovi margini extra */
.section-block .hair-type-horizontal,
.section-block .hair-length-grid,
.section-block .skin-tone-picker,
.section-block .hair-color-picker,
.section-block .eye-color-picker {
    margin-top: 6px;
    margin-bottom: 0;
}
/* === HEADER FISSO DENTRO IL MODALE === */
.fixed-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 20px 20px 0 0;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    margin: -24px -24px 24px -24px;
    transition: all 0.2s ease;
}

/* Desktop */
@media (min-width: 768px) {
    .fixed-header {
        padding: 18px 32px;
        border-radius: 24px 24px 0 0;
        margin: -24px -32px 32px -32px;
    }
    .header-title { font-size: 1.35rem; font-weight: 700; max-width: 55%; }
    .header-price { font-size: 1.6rem; font-weight: 800; color: #e11d48; }
    .fixed-header .modern-step-circle { width: 36px; height: 36px; font-size: 15px; }
    .fixed-header .modern-step-label { font-size: 13px; font-weight: 500; }
}

/* Mobile */
@media (max-width: 767px) {
    .header-title { font-size: 1.1rem; max-width: 50%; }
    .header-price { font-size: 1.35rem; }
    .fixed-header .modern-step-circle { width: 30px; height: 30px; font-size: 13px; }
    .fixed-header .modern-step-label { font-size: 11px; }
}

/* Pulsante Indietro mobile */

/* Rimuovi padding extra */
.personalization-form {
    padding-top: 0 !important;
    background: white;
}
/* === PULSANTE AVANTI FISSO IN BASSO === */
.fixed-bottom-cta {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 90;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 12px -24px -24px -24px;
    border-radius: 0 0 20px 20px;
}

.fixed-cta-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fixed-cta-btn.next-step {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: white;
    border: none;
}

.fixed-cta-btn.next-step:hover {
    background: linear-gradient(135deg, #5a3a8a, #7d3f9b);
    transform: translateY(-1px);
}

.fixed-cta-btn.prev {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.fixed-cta-btn.prev:hover {
    background: #e2e8f0;
}

/* Desktop: più grande */
@media (min-width: 768px) {
    .fixed-bottom-cta {
        padding: 18px 32px;
        margin: 32px -32px -24px -32px;
        border-radius: 0 0 24px 24px;
    }
    .fixed-cta-btn {
        padding: 16px 24px;
        font-size: 1.1rem;
    }
}

/* Nascondi CTA fisso su Step 3 */
.form-step:nth-child(3) ~ .fixed-bottom-cta,
.form-step:nth-child(3) .fixed-bottom-cta {
    display: none;
}
.image-preview {
    max-width: 100%;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
/* ========================================
   SESSO: MASCHIO/FEMMINA IN RIGA SU MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* Contenitore: forza 2 elementi in riga */
    .sex-picker {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 10px;
        padding: 0 4px;
    }

    /* Ogni opzione: occupa metà spazio */
    .sex-picker .option-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Immagine più piccola */
    .sex-picker .option-image {
        height: 70px !important;
        object-fit: cover;
    }

    /* Testo compatto */
    .sex-picker .option-label {
        font-size: 0.8rem !important;
        padding: 6px 4px !important;
        line-height: 1.2;
    }
}
/* ========================================
   RIDUCI SPAZIO TRA BOX INPUT SU MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* Riduci margine tra tutti i .form-subrow */
    .personalization-form .form-subrow {
        margin-bottom: 6px !important;
    }

    /* Riduci padding interno dei box */
    .personalization-form .bg-name,
    .personalization-form .bg-age,
    .personalization-form .bg-parents {
        padding: 8px 10px !important;
        margin-bottom: 6px !important;
    }

    /* Etichetta più vicina all'input */
    .personalization-form .form-subrow > label:first-child {
        margin-bottom: 2px !important;
        font-size: 13px !important;
    }

    /* Input più compatti */
    .personalization-form .form-subrow input,
    .personalization-form .form-subrow textarea {
        padding: 8px 10px !important;
        margin: 0 !important;
        height: 36px !important;
        font-size: 14.5px !important;
    }
}
/* ========================================
   SPAZIO ESTREMO TRA BOX INPUT (MOBILE)
   ======================================== */
@media (max-width: 768px) {
    /* FORZA: spazio tra box = 2px */
    .personalization-form .form-subrow.bg-name,
    .personalization-form .form-subrow.bg-age,
    .personalization-form .form-subrow.bg-parents {
        margin-bottom: 2px !important;
        padding: 6px 8px !important;
        border-radius: 8px !important;
    }

    /* Etichetta quasi attaccata all'input */
    .personalization-form .form-subrow > label:first-child {
        margin-bottom: 1px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }

    /* Input ultra-compatti */
    .personalization-form .form-subrow input,
    .personalization-form .form-subrow textarea {
        padding: 6px 8px !important;
        margin: 0 !important;
        height: 34px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }

    /* Rimuovi ogni margine extra */
    .personalization-form .form-subrow {
        margin-top: 0 !important;
        margin-bottom: 2px !important;
    }
}
@media (max-width: 768px) {
    /* ... regole esistenti ... */

    /* Forza le opzioni su una riga singola (nowrap), distribuisci lo spazio */
    .cover-options-row .option-picker {
        flex-wrap: nowrap !important;  /* Impedisce il wrap su righe multiple */
        justify-content: space-between;  /* Distribuisce le opzioni ai lati per bilanciare */
        gap: 10px;  /* Riduci gap per far entrare meglio su schermi stretti */
    }

    /* Riduci dimensioni minime delle opzioni per mobile */
    .cover-options-row .option-item {
        min-width: 0;  /* Rimuovi min-width fisso per permettere flessibilità */
        flex: 1;  /* Fai occupare spazio uguale */
        width: auto;  /* Auto per adattarsi */
    }

    /* Riduci dimensioni immagini e testo per far stare tutto */
    .cover-options-row .option-image {
        width: 60px !important;  /* Riduci da 80px */
        height: 60px !important;
        border-radius: 10px;
    }

    .cover-options-row .option-label {
        font-size: 0.85rem !important;  /* Riduci testo per spazio */
        padding: 6px 4px !important;
    }

    /* Opzionale: Riduci padding del box per più spazio orizzontale */
    .cover-options-row .form-box.half-width {
        padding: 0;  /* Rimuovi padding extra se necessario */
    }
}
/* ========================================
   COLORI COPERTINA — UNICA RIGA + SCORRIMENTO
   ======================================== */

.color-picker-container {
    position: relative;
    margin-top: 8px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding-bottom: 10px !important;
    overflow: hidden;
}

/* Contenitore interno */
.color-picker {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 14px;
    padding: 12px 8px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* AGGIUNGI QUESTE PROPRIETÀ */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: auto !important;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    -webkit-overscroll-behavior-x: contain;
}

/* FORZA HARDWARE ACCELERATION PER iOS */
.color-picker-container {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* MIGLIORA LE OPZIONI PER iOS */
.color-option {
    flex: 0 0 auto;
    width: 76px;
    text-align: center;
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* --- SCROLLBAR --- */
.color-picker::-webkit-scrollbar {
    height: 6px;
}
.color-picker::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 3px;
}
.color-picker::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}
.color-picker::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* --- ELEMENTI COLORI --- */
.color-option {
    flex: 0 0 auto;
    width: 76px;
    text-align: center;
    cursor: pointer;
    scroll-snap-align: center;
    transition: all 0.25s ease;
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 6px;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.color-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.color-option:hover .color-swatch,
.color-option input:checked + .color-swatch {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--accent), 0 6px 20px rgba(0, 119, 204, 0.5);
    border-color: var(--accent);
}

.color-option input:checked ~ .color-label {
    color: var(--accent);
    font-weight: 700;
}

/* --- MOBILE: nasconde la scrollbar per un effetto pulito --- */
@media (max-width: 768px) {
    .color-picker {
    }
}
/* ========================================
   VERSIONE DEFINITIVA — SPAZIO LATERALE MINIMO SU MOBILE
   ======================================== */
@media (max-width: 768px) {
    .modal-content,
    .personalization-form,
    .section-block,
    .form-box {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Rimuovi margini aggiuntivi su elementi interni */
    .form-row,
    .form-row-3,
    .form-subrow {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 6px !important;
    }

    /* Etichette e input quasi a filo */
    .personalization-form label,
    .personalization-form input,
    .personalization-form textarea {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Swipe orizzontali più larghi */
    .skin-tone-picker,
    .hair-color-picker,
    .eye-color-picker,
    .hair-type-horizontal,
    .hair-length-horizontal,
    .color-picker,
    .sex-picker {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}
/* ========================================
   FIX FINALE: HEADER MODALE - PREZZO BEN A DESTRA
   ======================================== */

.fixed-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 20px 20px 0 0;
    padding: 24px 32px;
    border-bottom: 1px solid #eee;
    margin: -24px -32px 32px -32px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Prima riga: titolo + prezzo + X */
.header-content {
    display: flex;
    align-items: center;
    gap: 20px; /* Spazio maggiore */
    flex-wrap: nowrap;
    width: 100%;
    min-height: 48px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    flex: 1;
    min-width: 0;
    white-space: normal;
    line-height: 1.3;
    padding-right: 24px; /* SPINGE IL PREZZO LONTANO */
}

.header-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: #e11d48;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 16px; /* DISTANZA DALLA X */
    text-align: right;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Barra di progresso */
.progress-steps {
    width: 100%;
    margin-top: 20px;
    padding-top: 12px;
}

.modern-progress-container {
    position: relative;
    margin: 0;
    padding: 0 8px;
}

.modern-steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 2;
}

.modern-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.modern-step-circle {
    width: 44px;
    height: 44px;
    font-size: 17px;
    border-width: 3px;
}

.modern-step-label {
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.modern-progress-container::before,
.modern-progress-container::after {
    top: 22px;
    z-index: 1;
}

/* ========================================
   MOBILE: PREZZO A DESTRA, NIENTE SOTTO LA X
   ======================================== */
@media (max-width: 767px) {
    .fixed-header {
        padding: 16px 20px;
        margin: -20px -20px 28px -20px;
        min-height: 100px;
        gap: 8px;
    }

    .header-content {
        gap: 16px;
        flex-wrap: nowrap; /* NO wrap fino a 480px */
    }

    .header-title {
        font-size: 1.15rem;
        flex: 1;
        min-width: 0;
        padding-right: 20px; /* Spinge prezzo a destra */
        white-space: normal;
    }

    .header-price {
        font-size: 1.35rem;
        font-weight: 800;
        color: #e11d48;
        white-space: nowrap;
        flex-shrink: 0;
        margin-right: 14px; /* Distanza dalla X */
        text-align: right;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .progress-steps {
        margin-top: 24px;
        padding-top: 8px;
    }

    .modern-step-circle {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }

    .modern-step-label {
        font-size: 11px !important;
        margin-top: 10px !important;
    }

    .modern-progress-container::before,
    .modern-progress-container::after {
        top: 17px;
    }
}

/* Solo su schermi piccolissimi: wrap */
@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-title {
        flex: 1 1 100%;
        font-size: 1.1rem;
        margin-bottom: 4px;
        padding-right: 0;
    }
    .header-price {
        font-size: 1.3rem;
        margin-right: 10px;
    }
}
/* CASTANI A CAPO */
.castano-label {
    white-space: normal !important;
    line-height: 1.1;
    font-size: 0.7rem;
    text-align: center;
    display: block;
}
/* ========================================
   FIX SWIPE - SOLO PER iOS (NON Android)
   ======================================== */

/* Rileva solo iOS Safari */
@supports (-webkit-overflow-scrolling: touch) and (not (-ms-ime-align:auto)) {
    /* Contenitore: momentum scroll solo iOS */
    .color-picker-container {
        -webkit-overflow-scrolling: auto !important;
        overscroll-behavior-x: contain;
        -webkit-overscroll-behavior-x: contain;
    }

    /* Picker interno: ottimizza solo iOS */
    .color-picker {
    -webkit-overflow-scrolling: touch !important;
    overflow-x: scroll;
    scroll-behavior: auto; /* <--- CAMBIATO da smooth a auto */
    scroll-snap-type: none; /* <--- CAMBIATO da mandatory a none */
    -webkit-transform: translateZ(0); /* ottimizzazione hardware */
    will-change: transform;
    cursor: grab;
}

    /* Opzioni: fix touch solo iOS */
    .color-option {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        scroll-snap-align: start;
    }

    .color-picker {
        padding: 12px 6px !important;
        gap: 12px;
    }
    
    .color-option {
        min-width: 72px;
        width: 72px !important;
        flex: 0 0 72px !important;
    }
    
    .color-picker-container {
        min-height: 120px;
        padding-bottom: 15px !important;
    }
}

/* ========================================
   STILE BASE - FUNZIONA SU TUTTI I DISPOSITIVI
   ======================================== */

.color-picker-container {
    position: relative;
    margin-top: 8px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding-bottom: 10px !important;
    overflow: hidden;
}

/* Contenitore interno - VELOCE SU ANDROID */
.color-picker {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 14px;
    padding: 12px 8px !important;
    /* Rimuovi proprietà che rallentano Android */
}

/* Nascondi scrollbar ma mantieni scroll */
.color-picker::-webkit-scrollbar {
    height: 6px;
}
.color-picker::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 3px;
}
.color-picker::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}
.color-picker::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Elementi colori */
.color-option {
    flex: 0 0 auto;
    width: 76px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 6px;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.color-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.color-option:hover .color-swatch,
.color-option input:checked + .color-swatch {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--accent), 0 6px 20px rgba(0, 119, 204, 0.5);
    border-color: var(--accent);
}

.color-option input:checked ~ .color-label {
    color: var(--accent);
    font-weight: 700;
}

/* ========================================
   SCROLLBAR VISIBILE - IMPORTANTE PER USABILITÀ
   ======================================== */

/* SCROLLBAR SEMPRE VISIBILE SU MOBILE */
@media (max-width: 768px) {
    .color-picker::-webkit-scrollbar {
        display: block !important;
        height: 6px;
    }
    
    .color-picker::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
        margin: 0 8px;
    }
    
    .color-picker::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
        border: 1px solid #f1f5f9;
    }
    
    .color-picker::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    /* Firefox */
    .color-picker {
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e1 #f1f5f9;
    }
}

/* SCROLLBAR SU DESKTOP (se applicabile) */
@media (min-width: 769px) {
    .color-picker::-webkit-scrollbar {
        height: 8px;
    }
    
    .color-picker::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 4px;
        margin: 0 10px;
    }
    
    .color-picker::-webkit-scrollbar-thumb {
        background: #94a3b8;
        border-radius: 4px;
    }
    
    .color-picker::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }
}
/* ========================================
   FIX SAFARI - Forza scroll anche con poche opzioni
   ======================================== */
@supports (-webkit-hyphens: none) {
    .color-picker {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: auto !important;
        scroll-snap-type: none !important;
        min-width: 100%;
    }

    /* Estendi la larghezza se ci sono poche opzioni */
    .color-picker:has(.color-option:nth-child(6)):not(:has(.color-option:nth-child(7))) {
        min-width: 130% !important;
    }

    .color-picker:has(.color-option:nth-child(5)):not(:has(.color-option:nth-child(6))) {
        min-width: 160% !important;
    }

    .color-picker:has(.color-option:nth-child(4)):not(:has(.color-option:nth-child(5))) {
        min-width: 200% !important;
    }

    .color-picker:has(.color-option:nth-child(3)):not(:has(.color-option:nth-child(4))) {
        min-width: 250% !important;
    }

    .color-picker:has(.color-option:nth-child(2)):not(:has(.color-option:nth-child(3))) {
        min-width: 300% !important;
    }
}
/* ========================================
   MOBILE: LAYOUT A DUE COLONNE (COPERTINA + INFO)
   ======================================== */
@media (max-width: 768px) {
  /* NASCONDI SOLO SU MOBILE */
  .image-section,
  .details-section > h1,
  .details-section > p,
  .steps-container,
  .shipping-highlight,
  .today-counter,
  .technical-specs,
  .guarantee {
    display: none !important;
  }

  /* MOSTRA IL NUOVO LAYOUT MOBILE */
  .mobile-hero-layout,
  .mobile-cta-full,
  .mobile-specs,
  .mobile-social-proof,
  .mobile-shipping {
    display: grid !important;
  }

  .mobile-hero-layout {
    grid-template-columns: 42% 58%;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin: 1rem 0;
  }

  .mobile-hero-image img {
    width: 100%;
    max-width: 180px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: contain;
  }

  .mobile-hero-title { font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.3; color: #1e293b; }
  .mobile-hero-subtitle { font-size: 0.9rem; color: #555; margin: 0; }

  .mobile-current-price { font-size: 1.6rem; font-weight: 800; color: #e11d48; }
  .mobile-old-price { font-size: 1rem; text-decoration: line-through; color: #888; }
  .mobile-discount { background: #e11d48; color: white; font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 1rem; font-weight: 600; }

  .mobile-steps { margin: 0.75rem 0 0; padding: 0; list-style: none; }
  .mobile-step-item { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
  .mobile-step-number { background: #10b981; color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .mobile-step-text strong { display: block; font-size: 0.95rem; color: #1e293b; }
  .mobile-step-text small { color: #666; font-size: 0.8rem; }

  .mobile-cta-full { grid-column: 1 / -1; margin: 1rem 0 0.3rem !important; }
  .mobile-cta-btn {
    background: linear-gradient(135deg, #0077cc 0%, #5b21b6 100%);
    color: white; border: none; 
    padding: 1.4rem !important;           /* AUMENTATO: da 1rem a 1.4rem */
    font-size: 1.25rem !important;        /* AUMENTATO: da 1.1rem a 1.25rem */
    font-weight: 700;
    border-radius: 12px; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,119,204,0.3); transition: all 0.4s ease;
  }
  .mobile-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,119,204,0.4); }

  .mobile-specs {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; text-align: center; font-size: 0.85rem; padding: 0 1rem; margin-bottom: 1rem;
  }
  .mobile-specs div { padding: 0.5rem; background: #f8f9fa; border-radius: 8px; border: 1px solid #e2e8f0; }

}

/* ========================================
   DESKTOP: RIPRISTINA TUTTO (INVARIATO)
   ======================================== */
@media (min-width: 769px) {
  /* NASCONDI IL LAYOUT MOBILE */
  .mobile-hero-layout,
  .mobile-cta-full,
  .mobile-specs,
  .mobile-social-proof,
  .mobile-shipping {
    display: none !important;
  }

  /* MOSTRA IL LAYOUT ORIGINALE */
  .image-section,
  .details-section > h1,
  .details-section > p,
  .steps-container,
  .shipping-highlight,
  .today-counter,
  .technical-specs,
  .guarantee {
    display: block !important;
  }

  /* Assicura che il pulsante e l'immagine siano visibili */
  .image-section img,
  .button-area,
  .price-section {
    display: block !important;
  }
}

/* ========================================
   MOBILE FOOTER: 4 BOX IN RIGA – 25% LARGHEZZA
   ======================================== */
@media (max-width: 768px) {
    .mobile-footer-row {
        grid-column: 1 / -1;
        display: flex !important;
        gap: 8px !important;
        padding: 12px !important;
        margin: 8px 12px 0 !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
        height: 88px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        align-items: stretch !important;
    }

    /* === SPEDIZIONE (VERDE) === */
    .mobile-shipping {
        flex: 1.4 !important; /* invariato */
        background: linear-gradient(135deg, #e8f5e9 0%, #dcedc8 100%) !important;
        border: 1.5px solid #81c784 !important;
        border-radius: 12px !important;
        padding: 8px 6px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    .mobile-shipping i {
        font-size: 1.2rem !important;
        color: #2e7d32 !important;
        flex-shrink: 0 !important;
    }

    .mobile-shipping div {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
    justify-content: flex-end !important; /* spinge il testo verso il basso */
    margin-top: 20px !important; /* aumenta l'effetto di "discesa" */
}



    .mobile-shipping strong {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #1b5e20 !important;
    white-space: normal !important; /* permette l’andata a capo */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.mobile-shipping strong::after {
    content: "";
}

    .mobile-shipping span {
    font-size: 0.66rem !important;
    color: #2e7d32 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.1 !important;
    position: relative !important;
    top: -20px !important; /* rialza SOLO il testo "Consegna in 7 giorni" */
}



    /* === 3 SPEC (GRIGI) === */
    .mobile-specs-inline {
        flex: 2.9 !important; /* aumentato da 2.8 → 2.9 (+3px circa per box) */
        display: flex !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    .mobile-specs-inline > div {
        flex: 1 !important;
        background: linear-gradient(145deg, #f8f9fa 0%, #f1f3f4 100%) !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 8px 4px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 1px !important;
        min-width: 0 !important;
        font-size: 0.68rem !important;
    }

    .mobile-specs-inline strong {
        font-weight: 700 !important;
        color: #1e293b !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.70rem !important;
        line-height: 1.1 !important;
    }

    .mobile-specs-inline > div > *:not(strong) {
        color: #475569 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.66rem !important;
        line-height: 1.1 !important;
    }

    /* === RESPONSIVE: SOTTO 380px → 2 RIGHE === */
    @media (max-width: 380px) {
        .mobile-footer-row {
            flex-direction: column !important;
            height: auto !important;
            gap: 10px !important;
            padding: 10px !important;
        }
        .mobile-shipping,
        .mobile-specs-inline {
            width: 100% !important;
            flex: none !important;
        }
        .mobile-specs-inline {
            gap: 8px !important;
        }
        .mobile-specs-inline > div {
            padding: 12px 6px !important;
            font-size: 0.78rem !important;
        }
        .mobile-specs-inline strong {
            font-size: 0.82rem !important;
        }
        .mobile-specs-inline > div > *:not(strong) {
            font-size: 0.76rem !important;
        }
        .mobile-shipping {
            padding: 12px 8px !important;
        }
        .mobile-shipping strong {
            font-size: 0.82rem !important;
        }
        .mobile-shipping span {
            font-size: 0.76rem !important;
        }
    }
}



    /* === MODALE CAMPI MANCANTI === */

.modal-message {
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-btn {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.modal-btn.proceed {
  background: #0077cc;
  color: white;
}

.modal-btn.complete {
  background: #10b981;
  color: white;
}

@keyframes modal-fade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === MOSTRA IL MODALE QUANDO È ATTIVO === */
.modal.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* === MODALE PERSONALIZZAZIONE — ANIMAZIONE PREMIUM === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.modal.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}
/* === TITOLO MOBILE: COMPATTO, 2 RIGHE, NO A CAPO CASUALE === */
@media (max-width: 768px) {
    .mobile-hero-content h1 {
        display: flex;
        flex-direction: column;
        gap: 0.15rem; /* Spazio tra le due righe */
        line-height: 1.25;
        margin: 0;
    }

    .mobile-hero-content h1 .title-big,
    .mobile-hero-content h1 .title-small {
        display: inline !important;   /* NON block → non va a capo da solo */
        font-weight: 700;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-hero-content h1 .title-big {
        font-size: 1.38rem !important;   /* Grande ma leggibile */
        color: #1e293b;
    }

    .mobile-hero-content h1 .title-small {
        font-size: 1.15rem !important;   /* Sottotitolo */
        color: #374151;
    }
}
/* === FORZA 3 BOX IN RIGA SU DESKTOP === */
@media (min-width: 1001px) {
  .technical-specs {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .technical-specs .spec-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
  }
}
.guarantee {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 60px !important; /* aumenta lo spazio sopra */
  gap: 8px;
}

.guarantee .icon {
  background: var(--success);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 6px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.guarantee strong {
  font-size: 15px;
  color: var(--primary);
}

.guarantee span {
  font-size: 13px;
  color: #64748b;
}

/* Bordo rosso e ombra per i box mancanti */
.form-box.missing {
  border: 2px solid #e00000 !important;
  box-shadow: 0 0 10px rgba(224, 0, 0, 0.3);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Tremolio */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake-animation {
  animation: shake 0.4s ease;
}
/* ==== RECENSIONE DINAMICA PREMIUM ==== */

.review-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  max-width: 800px;
  margin: 40px auto;
  font-family: "Poppins", sans-serif;
}

.review-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.review-photo img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 100%;
  border: 3px solid #f4d35e;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.review-text {
  flex: 1;
}

.review-text .stars {
  font-size: 20px;
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}

.review-text span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #555;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .review-box {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .review-photo img {
    width: 90px;
    height: 90px;
  }

  .review-text p {
    font-size: 15px;
  }
}
9rem;
}

/* ============================================================= */
/* CAROSELLO STEP 4 – UNICO FILE, PULITO E PERFETTO             */
/* ============================================================= */

.preview-carousel-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 20px auto;
  padding: 14px 16px 10px;
  background: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.16);
  overflow: hidden;
}

.preview-carousel {
  display: flex;
  width: 300%;
  height: 410px;
  transition: transform 0.5s ease;
}

/* OGNI SLIDE */
.carousel-slide {
  width: 33.333%;
  padding: 8px 12px 4px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* TITOLO SOPRA OGNI SLIDE */
.slide-preview-title {
  margin: 0 0 20px !important;
  font: 600 16px/1.4 'Poppins', sans-serif;
  text-align: center;
  color: #1a1a1a;
}

/* ============================================================= */
/* 1. COPERTINA                                                 */
/* ============================================================= */
.book-cover-slide {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

#cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6));
}

.book-title-embossed {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  color: white;
  font: 900 1.4rem/1.2 sans-serif;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  z-index: 2;
}

/* ============================================================= */
/* 2. LIBRO APERTO – SLIDE 2 e 3                                */
/* ============================================================= */
.book-spread-mini {
  display: flex;
  width: 100%;
  max-width: 460px;
  height: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  gap: 2px;
  aspect-ratio: 1.6/1;
  position: relative;
}

/* Piega centrale */
.book-spread-mini::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: #ddd;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

/* Pagine */
.mini-page {
  flex: 1;
  padding: 18px 14px;
  background: #fefdfb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font: 0.89rem/1.52 Georgia, serif;
  color: #333;
  border: 1px solid #eee;
  border-left: none;
  border-right: none;
}
/* 🔧 Centra verticalmente il testo della storia nella pagina sinistra (slide 3) */
.mini-page.left .page-content.story-page {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10%;
  height: 100%;
  box-sizing: border-box;
}

.mini-page.left  { border-right: 1px solid #eee; }
.mini-page.right { border-left:  1px solid #eee; }
  position: relative;     /* serve per il posizionamento assoluto del titolo */
  justify-content: center;

/* ============================================================= */
/* SLIDE 2 – TITOLO MARRONE AL CENTRO DELLA PAGINA DESTRA       */
/* ============================================================= */

/* Mostra la scritta bianca SOLO nella slide 1 (copertina) */
.carousel-slide:first-child .book-title-embossed {
  display: block !important;
}

/* Nasconde la scritta bianca nelle slide 2 e 3 */
.carousel-slide:nth-child(2) .book-title-embossed,
.carousel-slide:nth-child(3) .book-title-embossed {
  display: none !important;
}

/* 2) Il titolo MARRONE lo mettiamo AL CENTRO della pagina DESTRA */
#title-mini {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  font: 900 1.4rem/1.3 Georgia, serif;
  color: #8b5a2b;
  text-align: center;
  z-index: 10;
}

/* 3) La pagina destra deve essere “relativa” */
.mini-page.right {
  position: relative;
}

/* ============================================================= */
/* SLIDE 3 – INTERNO (lasciata perfetta)                        */
/* ============================================================= */
.mini-illustration {
  max-width: 86%;
  max-height: 112px;
  margin: 10px auto;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
  display: block;
}

.page-caption {
  font: italic 0.78rem/1.4 sans-serif;
  text-align: center;
  color: #666;
  margin-top: 6px;
}

/* ============================================================= */
/* RESPONSIVE                                                   */
/* ============================================================= */
@media (max-width: 480px) {
  .preview-carousel         { height: 380px; }
  .book-spread-mini         { max-width: 400px; height: 270px; }
  .mini-page                { padding: 14px 10px; font-size: 0.84rem; }
  .mini-illustration        { max-height: 96px; }
  .book-cover-slide         { max-width: 240px; }
  .book-title-embossed      { font-size: 1.2rem; }
}

/* ============================================================= */
/* FRECCE E PALLINI                                             */
/* ============================================================= */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: 0.3s;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: 0.3s;
}
.dot.active, .dot:hover {
  background: #10b981;
  transform: scale(1.2);
}
/* ============================================================= */
/* SLIDE 2 – DEDICA PERFETTA E POSIZIONATA                      */
/* ============================================================= */

/* Pagina sinistra con dedica */

/* Contenitore della dedica */
.page-content.dedica-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* allinea la dedica al centro verticale */
  align-items: center;
  padding: 10% 8%;
  box-sizing: border-box;
}

/* Firma / nomi (“Da i tuoi cari”) – in basso a destra sotto la dedica */
#genitori-mini,
#from-preview {
  position: absolute;
  bottom: 6%; /* spinge in basso dentro la pagina */
  right: 8%;
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
  text-align: right;
  margin: 0;
  z-index: 3;
}


/* Nasconde il placeholder quando c’è testo nella dedica */
#dedica-mini.dinamica:not(:empty) ~ .placeholder-text {
  display: none;
}


/* La pagina sinistra deve essere relativa */
.mini-page.left {
  position: relative;
}

/* Contenitore della dedica */
.page-content.dedica-preview {
  position: relative;
  width: 100%;
  height: 100%;
}
/* 🔧 Assicura che la pagina sinistra abbia un'altezza reale */
.mini-page.left {
  position: relative;
  height: 100%;
  min-height: 260px; /* o 300px se vuoi più spazio */
}

/* 🔧 Firma in basso a destra */
#genitori-mini,
#from-preview {
  position: absolute;
  bottom: 8%;
  right: 10%;
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
  text-align: right;
  margin: 0;
  z-index: 3;
}


/* Testo "Qui apparirà la tua dedica" centrato in alto */
.placeholder-text {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  font-size: 0.88rem;
  color: #999;
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* Testo dinamico della dedica (rimane centrato verticalmente o dove serve) */
#dedica-mini.dinamica {
  position: relative;
  z-index: 2;
  font-size: 0.96rem !important;
  line-height: 1.65;
  text-align: center;
  color: #444;
  padding: 0 12px;
  white-space: pre-wrap;
}

/* Firma / frase “Da i tuoi cari” allineata a destra e alla stessa altezza */
#from-preview,
#genitori-mini {
  position: absolute;
  bottom: 8%;
  right: 10%;
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
  text-align: right;
  margin: 0;
  z-index: 3;
}
.book-cover-slide { position: relative; }
.cover-image-wrapper { position: relative; }
/* RIASSUNTO STEP 4 – CENTRATO SOPRA IL PULSANTE */
.preview-summary {
  width: 100%;
  text-align: center;
  margin: 24px 0 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}
.summary-line {
  display: inline-block;
  margin: 0 12px;
}
/* BESTIA FIX FINALE – SOTTO IL CAROSELLO, CENTRATO, SOLO STEP 4 */
#step-preview .preview-info {
  position: static !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 20px auto 8px !important;
  text-align: center;
  width: 100%;
  max-width: 460px;
  pointer-events: auto;
  z-index: 1;
}
#step-preview .preview-info p {
  display: inline-block;
  margin: 0 14px;
  font-size: 1rem;
  color: #333;
}
#step-preview .preview-info strong { font-weight: 600; }
#preview-price { 
  color: #10b981 !important; 
  font-weight: 700; 
  font-size: 1.15rem; 
}
.preview-info {text-align:center; margin:20px 0 10px;}
.preview-info p {display:inline-block; margin:0 20px; font-size:1rem;}
#preview-price {color:#10b981; font-weight:700; font-size:1.2rem;}
.preview-info { display: none; }                /* sparito sempre */
#solo-step-4 { text-align:center; margin:18px 0 12px; }
#solo-step-4 p { display:inline-block; margin:0 22px; font-size:1rem; }
#preview-price { color:#10b981; font-weight:700; font-size:1.2rem; }
/* ============================================================= */
/* FIX SLIDE 3 – IMMAGINE A PAGINA INTERA                        */
/* ============================================================= */

/* Pagina destra: niente padding o margini, contenitore pieno */
.mini-page.right {
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* Contenitore interno dell'immagine */
.page-content.illustration-page {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border: none;
  background: none;
}

/* L'immagine riempie tutta la pagina */
#illus-mini {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  display: block;
}

/* Nascondi la didascalia */
#caption-mini {
  display: none !important;
}
.preview-badge {
  display: inline-block;
  margin: 12px auto;
  padding: 6px 12px;
  background-color: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.preview-badge:hover {
  opacity: 1;
}
.option-item input[type="radio"]:checked + .option-image {
  outline: 3px solid #10b981;
  transform: scale(1.05);
  transition: all 0.3s ease;
}
/* --- STILE ILLUSTRAZIONI + TIPO LIBRO (righe separate, due opzioni per riga) --- */
.option-picker.two-columns {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.option-picker.two-columns .option-item {
  flex: 1 1 200px;       /* due colonne centrali */
  max-width: 220px;
  text-align: center;
  box-sizing: border-box;
}

.option-picker.two-columns .option-image {
  width: 140px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
  max-width: 100%;
}

.option-picker.two-columns .option-image:hover {
  transform: scale(1.05);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .option-picker.two-columns {
    flex-direction: column;
    align-items: center;
  }

  .option-picker.two-columns .option-item {
    max-width: none;
    width: 100%;
  }

  .option-picker.two-columns .option-image {
    width: 130px;
  }
}
/* --- Tipo di libro: grande come le illustrazioni ma visibile per intero --- */
.tipo-libro .option-image {
  width: 180px;           /* stesso ingombro visivo */
  height: auto;           /* lascia l’altezza naturale */
  max-height: 240px;      /* evita che diventi troppo alta su immagini panoramiche */
  object-fit: contain;    /* mostra l’intera immagine senza tagliarla */
  background-color: #fff; /* sfondo neutro per eventuali bordi */
  padding: 4px;           /* piccolo margine interno per respiro */
  border-radius: 8px;
  transition: transform 0.2s ease;
}
/* ============================
   MOBILE CAROUSEL FIX — VERSIONE FINALE
=============================*/
#mobile-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: none;
}

@media (max-width: 767px) {
    #mobile-carousel-wrapper {
        display: block !important;
    }

    /* NASCONDI VERSIONE DESKTOP */
    #preview-carousel {
        display: none !important;
    }

/* === CAROSELLO MOBILE (NASCONDE DESKTOP + MOSTRA MOBILE) === */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 767px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}

/* Stile carosello mobile */
.mobile-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin: 20px 0;
}

#mobile-carousel {
    display: flex;
    transition: transform 0.4s ease;
    width: 500%;
}

.mobile-slide {
    width: 20%;
    flex-shrink: 0;
}

.mobile-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.mobile-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    z-index: 10;
    cursor: pointer;
}

#mobile-prev { left: 12px; }
#mobile-next { right: 12px; }

.mobile-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.m-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
}

.m-dot.active {
    background: #0077cc;
    transform: scale(1.3);
}
/* === NASCONDI COMPLETAMENTE IL CAROSELLO DESKTOP SU MOBILE === */
.desktop-only {
    display: block;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
}
#mobile-carousel-wrapper {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

#mobile-carousel {
    display: flex;
    width: 500%; /* 5 slide */
    touch-action: pan-y;
}

#mobile-carousel img {
    width: 100%;
    flex-shrink: 0;
    user-drag: none;
    -webkit-user-drag: none;
}

#mobile-prev, #mobile-next {
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
#mobile-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    touch-action: pan-y;
}

#mobile-carousel {
    display: flex;
    width: 500%; /* 5 * 100% */
    height: 100%;
}

#mobile-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    user-drag: none;
    -webkit-user-drag: none;
}

#mobile-prev, #mobile-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

#mobile-prev { left: 10px; }
#mobile-next { right: 10px; }
    transform-origin: center;
}
#slide-romanzo .page-content {
    border-right: 1px solid rgba(0,0,0,0.06);
}
/* ============================================
   SLIDE 4 MOBILE — UNA SOLA PAGINA DI LIBRO (NON APERTO)
   ============================================ */
#slide-romanzo {
    width: 100%;
    padding: 16px 8px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}


#slide-romanzo .page-content.libro-pagina {
    width: 100%;
    max-width: 340px;
    background: #fefdfb;
    padding: 38px 28px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    box-sizing: border-box;

    /*  ➜  AUTO-HEIGHT: cresce secondo il contenuto   */
    height: auto;
    min-height: auto;
    max-height: none;

    display: block;
}


/* TESTO – RIEMPE TUTTA LA PAGINA */
#slide-romanzo .libro-testo {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;

    font-family: Georgia, serif;
    font-size: clamp(15px, 4.1vw, 17px);
    line-height: 1.58;
    letter-spacing: -0.01em;
    color: #2c1810;

    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;

    max-width: 28ch;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 1.15em;
    justify-content: flex-start;
}

#slide-romanzo .libro-testo p {
    margin: 0;
    padding: 0;
    text-indent: 1.6em;
}

#slide-romanzo .libro-testo p:first-child {
    text-indent: 0;
}

/* RIMUOVI TUTTO CIÒ CHE SIMULA IL LIBRO APERTO */
#slide-romanzo .page-content.libro-pagina::before,
#slide-romanzo .page-content.libro-pagina::after {
    display: none !important;
}

/* Ombra solo esterna (pagina singola) */
#slide-romanzo .page-content.libro-pagina {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Responsive piccoli schermi */
@media (max-width: 380px) {
    #slide-romanzo .page-content.libro-pagina {
        padding: 32px 22px;
        min-height: 400px;
    }
    #slide-romanzo .libro-testo {
        font-size: 14.5px;
        line-height: 1.52;
        max-width: 26ch;
    }
}
#slide-romanzo .libro-testo {
    width: 100%;
    max-width: 28ch;
    margin: 0 auto;
    font-family: Georgia, serif;
    font-size: clamp(15px, 4.1vw, 17px);
    line-height: 1.58;
    color: #2c1810;
    text-align: justify;
    hyphens: auto;
}
.mini-page.left .page-content.story-page {
    padding: 20px 10px !important;
}
/* Ottimizzazione pagina testo interno mobile */
@media (max-width: 768px) {
    #slide-romanzo .page-content {
        padding: 70px 20px 10px 20px !important;
    }
}
/* SISTEMA DELLE CARD DEL TIPO DI LIBRO SU MOBILE */
@media (max-width: 768px) {

    /* Riduce l'altezza dell'immagine così il testo ha spazio */
    .option-item img.option-image {
        height: 120px !important;
        object-fit: cover !important;
    }

    /* Rende leggibile l'etichetta sotto l'immagine */
    .option-item .option-label {
        font-size: 16px !important;
        display: block !important;
        margin-top: 10px !important;
        text-align: center !important;
    }

    /* Riduce padding generale della card per bilanciare */
    .option-item {
        padding: 10px !important;
    }
}
#ricordo,
#dettagli {
    min-height: 130px;   /* più alto e leggibile */
    line-height: 1.5;
    resize: vertical;    /* opzionale: permette all’utente di allungarlo */
}
.toggle-style-btn {
    margin: 20px auto 10px auto;
    display: block;
    padding: 10px 18px;
    background: #3b2f2f;
    color: white;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s ease;
}
.toggle-style-btn:hover {
    background: #5a4444;
}
