/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary: #1a252c;     /* Grigio Antracite */
    --secondary: #0f4c5c;   /* Blu Petrolio */
    --accent: #d4af37;      /* Oro Imperiale */
    --bg-light: #f9f9f9;    /* Bianco Caldo */
    --text-dark: #2d3748;
    --text-muted: #718096;
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   2. TYPOGRAPHY & REUSABLE COMPONENTS
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--primary);
    font-weight: 700;
}

section {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary);
    color: #ffffff;
    border: 1px solid var(--secondary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary);
}

/* ==========================================================================
   3. SECTIONS STYLING
   ========================================================================== */
.hero {
    height: 100vh;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(26, 37, 44, 0.5), rgba(26, 37, 44, 0.7)), 
                url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-ctas .btn {
    margin: 10px;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    width: 100%;
    height: auto;
    border-left: 5px solid var(--accent);
}

.why-us {
    background-color: var(--bg-light);
    max-width: 100%;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.why-card {
    background: #ffffff;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(26, 37, 44, 0.9));
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.category-overlay h3 {
    color: #ffffff;
    font-size: 1.5rem;
}

.category-card:hover img {
    transform: scale(1.1);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    transition: var(--transition);
}

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

.brand-slider, .review-slider {
    padding: 20px 0;
}

.review-card {
    background: var(--bg-light);
    padding: 40px;
    text-align: center;
}

.review-card .stars {
    color: var(--accent);
    margin-bottom: 15px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #e2e8f0;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    top: 30px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-item:nth-child(even)::after { left: -8px; }

.showroom-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    margin-top: 10px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .full-width { grid-column: span 2; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e0;
    font-family: var(--font-sans);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
}

footer {
    background-color: var(--primary);
    color: #ffffff;
    padding: 60px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid h3, .footer-grid a {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .about, .showroom-container, .contact-form {
        grid-template-columns: 1fr;
    }
    .contact-form .full-width { grid-column: span 1; }
    .hero-content h1 { font-size: 2.2rem; }
    .masonry-grid { column-count: 1; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 40px; text-align: left !important; }
    .timeline-item::after { left: 12px !important; }
}
