        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        
        .container {
            width: 80%;
            margin: 0 auto;
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        
        .header {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .header img {
            display: block;
            margin: 0 auto;
        }
        
        .header h1 {
            color: #333;
        }
        
        .form-group {
            margin-top: 20px;
            text-align: center;
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #555;
        }
        
        .form-group input,
        .form-group select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        
        .form-group button {
            background-color: #EE7B17;
            color: #fff;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        
        .form-group button:hover {
            background-color: #24387F;
        }
        
        .audio-player {
            width: 100%;
            margin-bottom: 15px;
        }
        
        .image-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        
        .image-container img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin: 10px;
        }
        
        #percentuale {
            text-align: center;
            color: #333;
        }
        
        .image-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .image-item input {
            margin-top: 10px;
            width: 170px;
            height: 30px;
            font-size: 20px;
            border-radius: 5px; 
            border: 1px solid #ccc; 
            padding: 5px; 
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
            transition: all 0.3s ease;
        }
        .image-item input:focus {
            border-color: #007BFF; /* Cambia il colore del bordo quando è in focus */
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Aggiunge un'ombra colorata */
        }
        .audio-player {
            display: none;
        }
        #titolo-immagini{
            display: none;
        }

        .form-group.submit-group {
            margin-top: 30px;
        }
        #titolo-immagini{
            text-align: center;
        }
/* Stile pagina video con mascherina */
.btn-back-choice,
.action-link {
    display: inline-block;
    margin: 8px 0 18px;
    padding: 12px 20px;
    background: #EE7B17;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-back-choice:hover,
.action-link:hover {
    background: #24387F;
}

.action-link {
    margin: 12px 8px;
}

.action-link.secondary {
    background: #24387F;
}

.action-link.secondary:hover {
    background: #EE7B17;
}

.upload-button {
    display: inline-block !important;
    width: auto !important;
    background: #EE7B17;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s ease;
}

.upload-button:hover {
    background: #24387F;
}

.file-input-hidden {
    display: none;
}

.file-name {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}

.spinner {
    margin: 20px auto;
    width: 80px;
    height: 80px;
    border: 10px solid #f3f3f3;
    border-top: 10px solid #EE7B17;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-box {
    text-align: center;
    margin-top: 20px;
}

.result-video {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
}

.error-message {
    color: red;
    font-weight: bold;
}

/* Upload video mascherina: anteprima sempre sotto al bottone */
.upload-card {
    max-width: 620px;
    margin: 26px auto 18px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8fb 100%);
    border: 2px solid rgba(36, 56, 127, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(36, 56, 127, 0.13);
}

.upload-title {
    color: #24387F !important;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px !important;
}

.upload-card .upload-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    background: #EE7B17;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 8px 18px rgba(238, 123, 23, .28);
}

.upload-card .upload-button:hover {
    background: #24387F;
    box-shadow: 0 8px 18px rgba(36, 56, 127, .28);
}

.upload-card .file-name {
    margin-top: 12px;
    color: #24387F;
    font-weight: 700;
}

.video-preview-wrap {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(36, 56, 127, .14);
    border-radius: 16px;
    box-sizing: border-box;
}

#video-preview {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
    background: #111;
}
