/* ----------------------------------------------------------------------
   I.E.C. Italia - Global Stylesheet v1.1 (Optimized)
   ---------------------------------------------------------------------- */

:root {
    --iec-blue: #0d6efd;
    --iec-dark: #1a1d20;
    --iec-light: #f8f9fa;
    --iec-gray: #6c757d;
    --iec-green: #198754;
    --iec-red: #dc3545;
    --iec-orange: #fd7e14;
    --transition: all 0.3s ease;
}

body {
    background-color: #fcfcfc;
    color: #333;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* --- NAVBAR & COOKIE --- */
.navbar { 
    z-index: 1050 !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}
#cookie-banner { 
    z-index: 9999; 
    display: none;
    transition: opacity 0.5s ease;
}

/* --- HERO SECTION (FIXED) --- */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 350px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Velo integrato nel background */
    background: linear-gradient(rgba(0, 32, 77, 0.4), rgba(0, 32, 77, 0.2));
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.8); /* Leggero scurimento per contrasto */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

/* --- SERVICE CARDS (INDEX) --- */
.card-service {
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Colori Bordi Superiori (6px come richiesto) */
.card-iso-9001 { border-top: 6px solid var(--iec-blue) !important; }
.card-iso-14001 { border-top: 6px solid var(--iec-green) !important; }
.card-iso-45001 { border-top: 6px solid var(--iec-red) !important; }
.card-eow { border-top: 6px solid #0dcaf0 !important; }
.card-doc { border-top: 6px solid var(--iec-gray) !important; }
.card-loghi { border-top: 6px solid #ffc107 !important; }

/* --- TIMELINE (Processo.php) --- */
.timeline-steps { position: relative; padding: 1rem 0; }
.timeline-line {
    position: absolute; left: 20px; top: 0; bottom: 0;
    width: 3px; background: #dee2e6;
}
.step-item {
    position: relative; padding-left: 60px; margin-bottom: 30px;
    transition: var(--transition);
}
.step-dot {
    position: absolute; left: 0; top: 0;
    width: 40px; height: 40px; background: white;
    border: 3px solid var(--iec-blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 2; color: var(--iec-blue); font-weight: bold;
}
.step-content {
    background: white; padding: 1.2rem; border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- FOOTER --- */
footer {
    background-color: var(--iec-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--iec-blue); }

/* --- UTILITIES --- */
.btn-pill { border-radius: 50px; padding: 10px 25px; font-weight: 600; }
.section-compact { padding: 2.5rem 0 !important; }