/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #000;
    color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
#navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ff6b35;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b35;
}

/* Hero Section (identica alla homepage) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    color: #d1d5db;
    letter-spacing: 1.5px;
    margin-bottom: 48px;
}

/* Filtri */
.filters-section {
    padding: 96px 0;
    background: linear-gradient(to bottom, #000 0%, #1f2937 100%);
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px;
}

#searchInput {
    flex: 1;
    padding: 16px 20px;
    background-color: #111827;
    border: 2px solid #374151;
    color: #f5f5f5;
    font-size: 16px;
    border-radius: 4px 0 0 4px;
}

#searchInput:focus {
    outline: none;
    border-color: #ff6b35;
}

#searchBtn {
    padding: 0 24px;
    background-color: #ff6b35;
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease;
}

#searchBtn:hover {
    background-color: #c2410c;
}

.filter-controls {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
}

.filter-group select {
    padding: 12px 16px;
    background-color: #111827;
    border: 2px solid #374151;
    color: #f5f5f5;
    border-radius: 4px;
    min-width: 200px;
}

.filter-group select:focus {
    outline: none;
    border-color: #ff6b35;
}

/* Griglia Carri Armati */
.tanks-grid-section {
    padding: 96px 0;
    background-color: #000;
}

.tanks-grid-archivio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tank-card-archivio {
    background-color: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tank-card-archivio:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.tank-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tank-info {
    padding: 20px;
}

.tank-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ff6b35;
}

.tank-model {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.tank-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tank-detail {
    background-color: #111827;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #d1d5db;
}

.tank-description {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #ff6b35;
}

.no-results p {
    color: #9ca3af;
}

/* Footer */
footer {
    background-color: #000;
    border-top: 1px solid #1f2937;
    padding: 48px 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #ff6b35;
    margin-bottom: 16px;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1f2937;
    padding: 32px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-left: 4px solid #ff6b35;
    position: relative;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff6b35;
}

.tank-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tank-modal-image {
    width: 100%;
    border-radius: 8px;
}

.tank-modal-info h2 {
    font-size: 32px;
    color: #ff6b35;
    margin-bottom: 8px;
}

.tank-modal-model {
    font-size: 18px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.tank-modal-specs {
    margin-bottom: 24px;
}

.tank-modal-spec {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #374151;
}

.tank-modal-spec:last-child {
    border-bottom: none;
}

.spec-label {
    color: #d1d5db;
}

.spec-value {
    color: #ff6b35;
    font-weight: 600;
}

.tank-modal-description {
    line-height: 1.6;
    color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: clamp(36px, 10vw, 80px);
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-group select {
        min-width: 250px;
    }
    
    .tanks-grid-archivio {
        grid-template-columns: 1fr;
    }
    
    .tank-modal-content {
        grid-template-columns: 1fr;
    }
}

.btn-details-archivio {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ea580c;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 16px;
    text-align: center;
}

.btn-details-archivio:hover {
    background-color: #c2410c;
}

/* Stili aggiuntivi per la navbar */
.nav-links a.active {
    color: #ff6b35;
}

/* Miglioramenti responsive */
@media (max-width: 480px) {
    .filter-group select {
        min-width: 100%;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    #searchInput {
        border-radius: 4px;
        margin-bottom: 8px;
    }
    
    #searchBtn {
        border-radius: 4px;
        padding: 12px;
    }
}