/* Reset e Variabili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #000000;
    --foreground: #ffffff;
    --muted: #292929;
    --muted-foreground: #cccccc;
    --card: #1a1a1a;
    --border: #404040;
    --primary: #ef4444;
    --primary-foreground: #ffffff;
    --secondary: #292929;
    --workshop-accent: #ef4444;
    --workshop-accent-secondary: #fb923c;
    --workshop-dark: #1a1a1a;
    --workshop-darker: #0f0f0f;
    --workshop-gray: #2d2d2d;
    --workshop-text-muted: #cccccc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #dc2626;
}

.desktop-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(239, 68, 68, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 24px;
    height: 3px;
    background: var(--foreground);
    margin: 2px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    color: var(--foreground);
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
    background: rgba(239, 68, 68, 0.1);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&h=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 64rem;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 3rem);
    margin-bottom: 2rem;
    color: #e5e5e5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    background: linear-gradient(45deg, var(--workshop-accent), var(--workshop-accent-secondary));
    color: var(--primary-foreground);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Section Styles */
.services-section,
.gallery-section,
.contact-section {
    padding: 5rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-family: 'Roboto Condensed', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, var(--workshop-accent), var(--workshop-accent-secondary));
    border-radius: 2px;
}

.text-red {
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, var(--workshop-dark), var(--workshop-gray));
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: hue-rotate(0deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--foreground);
    font-family: 'Roboto Condensed', sans-serif;
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(239, 68, 68, 0.8), rgba(251, 146, 60, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

.gallery-icon {
    font-size: 2rem;
    color: white;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.contact-info,
.contact-form {
    background: linear-gradient(135deg, var(--workshop-dark), var(--workshop-gray));
    border: 2px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
}

.contact-info-title,
.contact-form-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    font-family: 'Roboto Condensed', sans-serif;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-details h4 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--background);
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    padding: 0.75rem;
    color: var(--foreground);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-submit-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--workshop-accent), var(--workshop-accent-secondary));
    color: var(--primary-foreground);
    border: none;
    padding: 0.75rem;
    font-weight: bold;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-submit-btn:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 2px solid var(--primary);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu.show {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .nav-content {
        height: 60px;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .services-section,
    .gallery-section,
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .service-card,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        padding: 2rem 0;
        background: var(--background) !important;
    }
}