.richieste-container {
max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tabs-navigation {
    margin-bottom: 30px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 2px;
    width: fit-content;
}

.tab-btn {
flex: 1;
    padding: 8px 15px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border-radius: 6px;
    color: #666;
    font-weight: 500;
    margin: 10px;
}

.tab-btn.active {
    background: #D1EF34;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.richieste-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.richiesta-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #D1EF34;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.richiesta-item h3 {
    margin-top: 0;
    color: #333;
}

.richiesta-item p {
    margin: 10px 0;
}

.richiesta-item a {
    color: #333;
    text-decoration: none;
}

.richiesta-item a:hover {
    text-decoration: underline;
}

.immagini-risposta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.immagini-risposta h4 {
    margin-bottom: 15px;
    color: #666;
}

.galleria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.galleria-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
}

.galleria-item img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.galleria-item:hover img {
    transform: scale(1.05);
}

.img-thumbnail {
    cursor: pointer;
}

.image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s;
}

.galleria-item:hover .image-actions {
    opacity: 1;
}

.btn-download {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
}

.btn-download:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-download svg {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #D1EF34;
    box-shadow: 0 0 0 3px rgba(209, 239, 52, 0.1);
}

.form-hint {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 10px;
}

.btn-submit {
    background: #D1EF34 !important;
    color: #333 !important;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #c0dd2f !important;
}

.btn-submit:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

.in-attesa {
    color: #999;
    font-style: italic;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-top: 10px;
}

#messaggio-risposta {
    margin-top: 20px;
}

.successo {
    color: #155724;
    padding: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.errore {
    color: #721c24;
    padding: 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.avviso-login {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

.upload-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.upload-box {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #D1EF34;
    background: #f9fce8;
}

.upload-box.drag-over {
    border-color: #D1EF34;
    background: #f4facc;
}

.upload-placeholder svg {
    color: #999;
    margin-bottom: 10px;
}

.upload-placeholder p {
    margin: 5px 0;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.upload-hint {
    font-size: 12px;
    color: #999;
}

.image-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.remove-image:hover {
    background: #d32f2f;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    z-index: 10000;
    pointer-events: none;
}

.lightbox-content>* {
    pointer-events: auto;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.lightbox-actions {
    margin-top: 20px;
}

.lightbox-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D1EF34;
    color: #333;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(209, 239, 52, 0.3);
}

.lightbox-download:hover {
    background: #c0dd2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 239, 52, 0.4);
    color: #333;
}

.lightbox-download svg {
    display: block;
}

@media (max-width: 768px) {
    .galleria {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .upload-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .tabs-navigation {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
    }

    .lightbox-content {
        padding: 80px 10px 10px;
    }

    .lightbox-content img {
        max-width: 95%;
    }
}

.immagini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.immagini-header h4 {
    margin: 0;
}

.btn-download-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D1EF34;
    color: #333;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(209, 239, 52, 0.3);
}

.btn-download-all:hover {
    background: #c0dd2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(209, 239, 52, 0.4);
    color: #333;
    text-decoration: none;
}

.btn-download-all svg {
    display: block;
}

@media (max-width: 768px) {
    .immagini-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-download-all {
        width: 100%;
        justify-content: center;
    }
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #D1EF34;
    box-shadow: 0 0 0 3px rgba(209, 239, 52, 0.1);
}