/* === VARIABILI & RESET === */
:root {
    --primary: #ff5200; /* Arancione Acceso "Safety" */
    --primary-dark: #cc4100;
    --dark: #121212;
    --dark-gray: #1e1e1e;
    --light: #f4f4f4;
    --text-gray: #b0b0b0;
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === UTILITY === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-primary { color: var(--primary); }
.section-padding { padding: 80px 0; }
.mt-2 { margin-top: 20px; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    clip-path: none; /* Rimuove il taglio per il bottone outline */
    border-radius: 4px;
}
.btn-outline:hover { background: white; color: var(--dark); }

.btn-block { width: 100%; display: block; }

/* === TOPBAR & NAVBAR === */
.topbar { background: var(--dark); color: var(--text-gray); padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid #333; }
.topbar i { color: var(--primary); margin-right: 5px; }
.top-info a:hover { color: white; }

.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.logo { font-size: 2rem; font-weight: 800; font-family: var(--font-head); color: var(--dark); letter-spacing: 2px; }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
}
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--primary);
    transition: var(--transition);
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

/* === HERO SECTION === */
.hero {
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.badge { background: var(--primary); padding: 5px 15px; font-weight: bold; font-size: 0.9rem; display: inline-block; margin-bottom: 20px; }

.hero h1 { font-size: 5rem; line-height: 0.9; margin-bottom: 20px; }
.text-stroke { -webkit-text-stroke: 2px white; color: transparent; }

.hero p { font-size: 1.3rem; margin-bottom: 30px; color: #ddd; max-width: 600px; }
.hero-buttons { display: flex; gap: 20px; }

/* Shape Divider */
.custom-shape-divider-bottom {
    position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0;
}
.custom-shape-divider-bottom svg { position: relative; display: block; width: calc(136% + 1.3px); height: 100px; }
.custom-shape-divider-bottom .shape-fill { fill: #FFFFFF; }

/* === STATS COUNTER === */
.stats-section { margin-top: -50px; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-box {
    background: white; padding: 30px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-bottom: 4px solid var(--primary);
    transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-10px); }
.stat-box i { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.stat-box h3 { font-size: 3rem; margin-bottom: 5px; color: var(--dark); }

/* === ABOUT === */
.about-img { position: relative; }
.about-img img { border-radius: 8px; box-shadow: 20px 20px 0px rgba(0,0,0,0.1); }
.experience-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--primary); color: white; padding: 20px;
    text-align: center; font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 82, 0, 0.4);
}
.experience-badge .years { display: block; font-size: 2.5rem; line-height: 1; }

.check-list li { margin-bottom: 10px; font-size: 1.1rem; display: flex; align-items: center; }
.check-list i { color: var(--primary); margin-right: 10px; }

/* === SERVICES PAGE GRID === */
.page-header {
    background: var(--dark-gray); color: white; padding: 100px 0 60px;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1565610434128-11804d0b3c79?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover; background-position: center;
}

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px;
}
.service-card {
    background: white; border: 1px solid #eee; padding: 40px 20px; text-align: center;
    transition: var(--transition); position: relative; overflow: hidden;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }

.icon-box {
    width: 70px; height: 70px; background: #fff0e6; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.icon-box i { color: var(--primary); font-size: 1.8rem; }

/* === CTA BANNER === */
.cta-banner {
    background: var(--dark); color: white; padding: 60px 0; text-align: center;
    background-image: radial-gradient(circle at center, #333 0%, #121212 100%);
}
.phone-big { font-size: 3rem; font-family: var(--font-head); font-weight: 700; display: block; margin-top: 10px; color: var(--primary); }
.phone-big:hover { color: white; }

/* === CONTACT FORM === */
.contact-layout { display: flex; gap: 50px; flex-wrap: wrap; }
.contact-info-box, .contact-form { flex: 1; min-width: 300px; }
.c-item { display: flex; align-items: center; margin-bottom: 30px; }
.c-item i { width: 50px; height: 50px; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 15px; }

.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd;
    background: #f9f9f9; font-family: var(--font-body);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); outline: none; }

/* === FOOTER === */
footer { background: #111; color: #aaa; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3 { color: white; font-size: 1.8rem; margin-bottom: 20px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { border-top: 1px solid #222; padding: 20px 0; text-align: center; }

/* === RESPONSIVE === */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease; background-color: var(--dark); }

@media(max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; left: -100%; top: 70px; gap: 0; flex-direction: column;
        background-color: white; width: 100%; text-align: center; transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { padding: 20px; border-bottom: 1px solid #eee; }
    
    .hero h1 { font-size: 3rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .topbar { display: none; } /* Semplifica su mobile */
}

/* Animation Pulse for Call Button */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 82, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 82, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 82, 0, 0); }
}
.pulse-btn { animation: pulse 2s infinite; }

