/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 200px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 212, 255, 0.5));
    transform: translateY(-2px);
}

.company-info {
    flex: 1;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.website-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #b0b0b0;
}

.website-link a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.website-link a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.section-title i {
    color: #00d4ff;
    font-size: 28px;
}

/* Progress Bar */
.progress-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #0066cc 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Catalogs Section */
.catalogs-section {
    margin-bottom: 60px;
}

.table-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.catalogs-table {
    width: 100%;
    border-collapse: collapse;
}

.catalogs-table thead th {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 102, 204, 0.2) 100%);
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.catalog-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.catalog-row:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
    transform: translateY(-1px);
}

.catalog-row.empty-row {
    height: 60px;
    opacity: 0.3;
}

.catalog-row td {
    padding: 20px 15px;
    vertical-align: middle;
}

/* Preview Cell */
.preview-cell {
    width: 280px;
}

.catalog-preview {
    width: 250px;
    height: 320px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.catalog-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.catalog-preview:hover::before {
    opacity: 1;
}

.catalog-preview:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1;
    position: relative;
}

.preview-placeholder i {
    font-size: 48px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.preview-placeholder span {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 1px;
}

.catalog-preview:hover .preview-placeholder i {
    transform: scale(1.1);
    opacity: 1;
}

/* Stili per le immagini reali dei cataloghi */
.catalog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.catalog-preview:hover .catalog-image {
    transform: scale(1.05);
}

/* Name Cell */
.name-cell strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.name-cell small {
    font-size: 14px;
    color: #b0b0b0;
    display: block;
}

/* Size Cell */
.size-cell {
    font-weight: 500;
    color: #00d4ff;
    font-size: 16px;
}

/* Date Cell */
.date-cell {
    color: #b0b0b0;
    font-size: 14px;
}

/* Action Cell */
.download-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    margin-bottom: 60px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-info p {
    font-size: 16px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #ffffff;
}

.contact-item i {
    color: #00d4ff;
    width: 20px;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #b0b0b0;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #00d4ff;
    border-color: #00d4ff;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.submit-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    color: #b0b0b0;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .catalog-preview {
        width: 200px;
        height: 260px;
    }
    
    .preview-cell {
        width: 230px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .catalog-preview {
        width: 180px;
        height: 230px;
    }
    
    .preview-cell {
        width: 200px;
    }
    
    .preview-placeholder i {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 20px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .catalogs-table {
        min-width: 800px;
    }
    
    .catalog-preview {
        width: 150px;
        height: 190px;
    }
    
    .preview-cell {
        width: 170px;
    }
    
    .preview-placeholder i {
        font-size: 28px;
    }
    
    .preview-placeholder span {
        font-size: 14px;
    }
    
    .contact-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .logo {
        width: 200px;
        height: 60px;
        object-fit: contain;
    }
    
    .main-title {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .catalog-preview {
        width: 120px;
        height: 160px;
    }
    
    .preview-cell {
        width: 140px;
    }
    
    .name-cell strong {
        font-size: 16px;
    }
    
    .download-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .contact-container {
        padding: 20px 15px;
    }
}

/* Animazioni personalizzate */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-row {
    animation: fadeInUp 0.6s ease forwards;
}

.catalog-row:nth-child(1) { animation-delay: 0.1s; }
.catalog-row:nth-child(2) { animation-delay: 0.2s; }
.catalog-row:nth-child(3) { animation-delay: 0.3s; }
.catalog-row:nth-child(4) { animation-delay: 0.4s; }
.catalog-row:nth-child(5) { animation-delay: 0.5s; }
.catalog-row:nth-child(6) { animation-delay: 0.6s; }

/* Effetti di lucidità aggiuntivi */
.header::after,
.table-container::after,
.contact-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.header,
.table-container,
.contact-container {
    position: relative;
}