/* 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 Dettaglio */
.detail-hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.detail-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #9ca3af;
}

.detail-breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    text-decoration: underline;
}

.detail-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: #d1d5db;
    margin-bottom: 24px;
}

.detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    background-color: rgba(255, 107, 53, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #ff6b35;
}

/* Contenuto Principale */
.detail-content {
    padding: 80px 0;
    background: linear-gradient(to bottom, #000 0%, #1f2937 100%);
}

.detail-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
}

/* Sidebar */
.detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.specs-card {
    background-color: #1f2937;
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid #ff6b35;
    margin-bottom: 32px;
}

.specs-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    margin-bottom: 24px;
    color: #ff6b35;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #374151;
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    color: #9ca3af;
    font-size: 14px;
}

.spec-value {
    color: #f5f5f5;
    font-weight: 600;
    text-align: right;
}

.gallery-mini h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff6b35;
}

.mini-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mini-gallery-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mini-gallery-grid img:hover {
    transform: scale(1.05);
}

/* Contenuto Principale */
.detail-main {
    max-width: 800px;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: #ff6b35;
    margin-bottom: 24px;
    border-bottom: 2px solid #374151;
    padding-bottom: 12px;
}

.content-section h3 {
    font-size: 24px;
    color: #f5f5f5;
    margin: 32px 0 16px;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #d1d5db;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #d1d5db;
}

/* Timeline */
.history-timeline {
    margin: 32px 0;
    border-left: 3px solid #ff6b35;
    padding-left: 40px; /* Aumentato da 24px a 40px per più spazio */
}

.timeline-item {
    margin-bottom: 32px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -52px; /* Aumentato da -40px a -52px per spostare più a sinistra */
    top: 0;
    background-color: #ff6b35;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    min-width: 50px; /* Assicura una larghezza minima */
    text-align: center;
}

.timeline-content h4 {
    color: #f5f5f5;
    margin-bottom: 8px;
    font-size: 18px;
}

.timeline-content p {
    color: #9ca3af;
    margin-bottom: 0;
}

/* Statistiche */
.battle-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.stat-item {
    background-color: #1f2937;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #374151;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: #ff6b35;
    margin-bottom: 8px;
}

.stat-label {
    color: #9ca3af;
    font-size: 14px;
}

/* Battaglie */
.battles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.battle-card {
    background-color: #1f2937;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.battle-card h4 {
    color: #ff6b35;
    margin-bottom: 8px;
}

.battle-card p {
    color: #9ca3af;
    margin-bottom: 0;
    font-size: 14px;
}

/* 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;
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .detail-sidebar {
        position: static;
    }
    
    .battle-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .detail-hero {
        height: 50vh;
    }
    
    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mini-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .battles-grid {
        grid-template-columns: 1fr;
    }
}