:root {
    --brand-color: rgba(255, 153, 0); 
    --bg-main: rgba(64, 64, 64, 1);
    --bg-darker: rgba(24, 24, 24, 1);
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'MADE Outer Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* CONTAINER */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative; 
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.main-header { 
    background: var(--bg-darker); 
    height: 96px; 
    display: flex; 
    align-items: center; 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo { 
    color: var(--white); 
    font-size: 28px; 
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a { 
    color: var(--white); 
    text-decoration: none; 
    margin-left: 25px; 
    font-size: 14px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--brand-color);
}

/* =========================================
   SEZIONE HERO
   ========================================= */
.hero {
    height: 673px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/fotocamion.png') no-repeat center center/cover;
    display: flex;
    align-items: center; 
    justify-content: center; 
    position: relative; 
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
    width: 100%;
    padding: 0 20px;
}

.hero h1 { 
    color: var(--white);
    font-size: clamp(32px, 5vw, 48px); 
    margin-bottom: 10px; 
}

.hero p { 
    font-size: 18px; 
    margin-bottom: 40px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
}

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.btn { 
    background-color: var(--brand-color); 
    color: #000; 
    padding: 12px 30px; 
    text-decoration: none; 
    border-radius: 15px; 
    font-weight: bold; 
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    opacity: 0.9;
}

.partner-logo { 
    position: absolute; 
    bottom: 30px; 
    left: 30px; 
    width: 140px; 
    z-index: 5;
}

/* =========================================
   DOVE OPERIAMO
   ========================================= */
.location { padding: 80px 0; }
.centered-title { color: var(--brand-color); text-align: center; font-size: 36px; margin-bottom: 50px; }

.location-grid { 
    display: flex; 
    gap: 50px; 
    align-items: center; 
}

.map-image { flex: 1; }
.map-image img { width: 100%; height: auto; border-radius: 10px; }
.location-text { flex: 1; }
.location-text p { margin-bottom: 20px; font-weight: 300; }

/* =========================================
   SERVIZI
   ========================================= */
.services-parallax {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('./img/meccanico.png') no-repeat center center/cover;
    padding: 100px 0;
    text-align: center;
}

.services-title { color: var(--brand-color); font-size: clamp(40px, 8vw, 64px); margin-bottom: 50px; }

.icons-row { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    margin-bottom: 60px; 
    flex-wrap: wrap; 
}

.icons-row img { width: 120px; transition: transform 0.3s; }
.icons-row img:hover { transform: scale(1.1); }

.btn-outline { 
    border: 2px solid var(--white); 
    padding: 15px 40px; 
    color: var(--white); 
    text-decoration: none; 
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline:hover { 
    background: var(--brand-color); 
    border-color: var(--brand-color); 
    color: #000; 
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer { background: var(--bg-darker); padding: 60px 0 0 0; }
.footer-title { font-size: 32px; margin-bottom: 40px; text-align: left; }

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    padding-bottom: 50px; 
}

.footer-col h4 { font-size: 18px; margin-bottom: 15px; color: var(--brand-color); }
.footer-col p { font-size: 14px; opacity: 0.8; margin-bottom: 8px; }

.footer-bottom { 
    background: #000; 
    text-align: center; 
    padding: 25px 20px; 
    font-size: 12px; 
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; padding: 20px 0; }
    .nav-menu { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-menu a { margin: 5px 10px; }
    .location-grid { flex-direction: column; text-align: center; }
    .hero { height: auto; min-height: 550px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .partner-logo { width: 100px; left: 20px; bottom: 20px; }
}