/* ========================================
   SS SRLS - MAIN STYLESHEET
   Enterprise Architecture: Modular CSS
   ======================================== */

/**
 * IMPORT ORDER MATTERS!
 * 1. Tokens - Design system variables
 * 2. Reset - Normalize browser defaults
 * 3. Base - Typography, form defaults
 * 4. Animations - All @keyframes
 * 5. Layout & Components - Specific styling
 */

/* Fonts - Load early */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

/* 1. TOKENS - Single source of truth */
@import 'tokens.css';

/* 2. RESET & NORMALIZE */
@import 'reset.css';

/* 3. BASE STYLES */
@import 'base.css';

/* 4. ANIMATIONS */
@import 'animations.css';

/* 5. UTILITIES - Atomic CSS classes */
@import 'utilities.css';

/* 6. PERSUASIVE DESIGN COMPONENTS */
@import 'components/persuasive-design.css';

/* 7. SECTION COMPONENTS */
@import 'components/heritage.css';
@import 'components/footer.css';
@import 'components/operational-model.css';
@import 'components/pm-dashboard.css';
@import 'components/certifications.css';

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent);  /* ROSSO strategico (1 di 2) */
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* ========================================
   HEADER STYLES
   ======================================== */

header {
    background: rgba(7, 12, 18, 0.82);
    padding: 14px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 10px 5%;
    background: rgba(7, 12, 18, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 48px rgba(0, 0, 0, 0.6);
    border-bottom-color: var(--border-accent);
}

/* ========================================
   LOGO & BRANDING
   ======================================== */

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container img {
    height: 110px;
    width: auto;
    vertical-align: middle;
    transition: 0.3s;
}

.logo-container img:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));  /* White glow */
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-text h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.logo-text p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* ========================================
   NAVIGATION ELEMENTS
   ======================================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========================================
   BUTTON HIERARCHY SYSTEM
   Primary: High contrast, action-oriented
   Secondary: Outline, exploratory
   Tertiary: Text link, subtle
   ======================================== */

/* PRIMARY BUTTON - High priority CTA */
.btn-primary,
.nav-btn {
    background: var(--color-accent);  /* ROSSO strategico CTA */
    color: #FFFFFF;  /* Testo bianco */
    padding: 16px 40px;
    font-weight: 800;
    border-radius: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.5);  /* Rosso shadow */
    position: relative;
    overflow: hidden;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover,
.nav-btn:hover {
    background: var(--color-accent-light);  /* Rosso pi\u00f9 chiaro */
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.6);  /* Rosso shadow forte */
}

.btn-primary:active,
.nav-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);  /* Rosso shadow */
}

/* SECONDARY BUTTON - Exploratory actions */
.btn-secondary,
.nav-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 38px;
    font-weight: 700;
    border-radius: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover,
.nav-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);  /* Neutral subtle */
    color: var(--primary-light);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

/* TERTIARY BUTTON - Subtle link-style */
.btn-tertiary {
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-tertiary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.btn-tertiary:hover {
    color: var(--primary-light);
}

.btn-tertiary:hover::after {
    width: 100%;
}

/* URGENCY INDICATOR - Limited capacity badge */
.btn-urgency {
    position: relative;
    padding-right: 20px;
}

.btn-urgency::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 4px solid transparent;
    border-top: 18px solid var(--color-accent);
    clip-path: polygon(40% 0%, 100% 0%, 50% 60%, 80% 60%, 20% 100%, 40% 60%, 0% 60%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-switcher a {
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lang-switcher a:hover {
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.15);  /* Silver */
}

.lang-switcher a.active {
    color: var(--primary);
    background: rgba(26, 77, 122, 0.15);  /* Navy subtle */
    border-color: rgba(26, 77, 122, 0.3);  /* Navy border */
}

.lang-divider {
    color: #444;
    font-size: 0.8rem;
}

/* ========================================
   FLOATING NAVIGATION
   ======================================== */

.floating-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.floating-nav.visible {
    opacity: 1;
}

.floating-nav a {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);  /* Silver subtle */
    border: 2px solid var(--primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.floating-nav a:hover,
.floating-nav a.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(26, 77, 122, 0.4);  /* Navy glow */
}

.floating-nav a::before {
    content: attr(data-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 17, 21, 0.95);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
}

.floating-nav a:hover::before {
    opacity: 1;
}

/* ========================================
   STATUS BAR
   ======================================== */

.status-bar {
    margin-top: 130px;
    background: var(--accent-blue);
    color: #f5f5f5;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image:
        linear-gradient(135deg, rgba(15, 17, 21, 0.6), rgba(26, 77, 122, 0.3)),  /* Navy gradient */
        url('../images/hero.jpg');
    background-size: cover, cover;
    background-position: center, center;
    background-attachment: fixed;
    padding: 60px 20px 0 20px;
    position: relative;
    overflow: hidden;
}

#particles-canvas {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #FFFFFF;  /* BIANCO PURO invece gradient navy */
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -4px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);  /* Deep shadow invece gradient */
    z-index: 2;
}

/* Riduzione drastica per italiano - "Saldatura & Carpenteria" 2 righe */
html[lang="it"] .hero h1 {
    font-size: clamp(1.8rem, 6vw, 3.8rem);
}

.hero h2 {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 35px;
    letter-spacing: 6px;
    animation: fadeInUp 1.2s ease-out 0.2s both;
    position: relative;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    z-index: 2;
}

.hero h2::before,
.hero h2::after {
    content: '--';
    margin: 0 15px;
    color: var(--primary);
    opacity: 0.5;
}

.hero p {
    max-width: 800px;
    color: #ffffff;
    margin-bottom: 50px;
    font-size: 1.05rem;
    line-height: 1.8;
    animation: fadeInUp 1.4s ease-out 0.4s both;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 35px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* ========================================
   HERO STATS
   ======================================== */

.hero-stats {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
    animation: fadeInUp 1.6s ease-out 0.6s both;
    position: relative;
    z-index: 2;
}

.hero-stat-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
    border-radius: 2px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-stat-badge:hover {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
}

.hero-stat-badge .badge-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-badge .badge-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   SECTIONS & TYPOGRAPHY
   ======================================== */

section {
    padding: 80px 10%;
    position: relative;
    scroll-behavior: smooth;
    opacity: 1;
    visibility: visible;
}

.section-title {
    font-size: 2.5rem;
    border-left: 5px solid #1A4D7A;
    padding-left: 25px;
    margin-bottom: 50px;
    color: #FFFFFF;  /* BIANCO PURO confermato */
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    animation: slideInLeft 0.7s ease-out;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #1A4D7A;
    animation: accent-line 0.8s ease-out 0.3s forwards;
}

/* ========================================
   STATS SECTION
   ======================================== */

/**
 * STATS SECTION STYLING:
 * 
 * PROBLEMA RISOLTO: "Buco nero" tra Why Choose e Who We Are
 * 
 * SOLUZIONE APPLICATA:
 * 1. Padding ridotto (50px vs 80px default) - sezione compatta
 * 2. Background gradient subtle - continuità visiva
 * 3. Border accents top/bottom - definizione sezione
 * 
 * RISULTATO: Visual flow smooth, zero spazio nero vuoto
 */

#stats {
    padding: 50px 10%;  /* Ridotto da 80px - più compatto */
    background: linear-gradient(180deg, 
        rgba(28, 31, 38, 1),      /* Dark top - continuità da why-choose */
        rgba(15, 17, 21, 0.8)     /* Darker bottom - transizione a heritage */
    );
    border-top: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
}

/* ========================================
   STATS GRID
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: var(--card-bg);
    padding: 50px 35px;
    text-align: center;
    border-radius: 2px;
    border: 1px solid var(--border-subtle);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* FIXED: Rimosso opacity: 0 - card visibili di default */
    opacity: 1;
    /* Animation trigger sarà gestito da .animate-in */
}

.stat-card.animate-in {
    animation: statCardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--glow-soft) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(196, 30, 58, 0.1);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--primary);
    font-weight: 800;
    display: block;
    margin-bottom: 15px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -2px;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

/* ========================================
   SERVICES GRID
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 45px 40px;
    border-radius: 2px;
    transition: all 0.4s ease;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--glow-soft) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 12px rgba(196, 30, 58, 0.08);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card h3 {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* ========================================
   WHY CHOOSE SECTION
   ======================================== */

.why-choose-card {
    padding: 30px;
    background: rgba(26, 77, 122, 0.08);  /* Navy subtle */
    border-left: 4px solid var(--primary);
    border-radius: 0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.why-choose-card:hover {
    background: rgba(26, 77, 122, 0.15);  /* Navy hover */
    border-left-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.why-choose-card h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ========================================
   HERITAGE / ISO SECTION
   ======================================== */

.heritage {
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.08), rgba(15, 20, 25, 1));  /* Navy */
    border-top: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
}

.iso-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.iso-badge {
    border: 1px solid var(--primary);
    padding: 12px 24px;
    color: var(--primary);
    font-weight: 700;
    background: rgba(26, 77, 122, 0.1);  /* Navy */
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.iso-badge:hover {
    background: rgba(26, 77, 122, 0.2);  /* Navy hover */
    box-shadow: 0 0 10px rgba(26, 77, 122, 0.3);  /* Navy glow */
    transform: scale(1.02);
}

/* ========================================
   CASE STUDY CARDS
   ======================================== */

.case-study-card {
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.08), rgba(15, 20, 25, 0.95));  /* Navy */
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-study-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(26, 77, 122, 0.3);  /* Navy shadow */
    transform: translateY(-5px);
}

.case-study-hero {
    width: 100%;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.case-study-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-hero:hover img {
    transform: scale(1.05);
}

.case-study-hero::after {
    content: '🔍 Click to enlarge';
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    padding: 8px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-study-hero:hover::after {
    opacity: 1;
}

.case-study-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    background: rgba(15, 17, 21, 0.5);
}

.case-study-thumb {
    height: 100px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.case-study-thumb:hover {
    border-color: var(--primary);
}

.case-study-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-thumb:hover img {
    transform: scale(1.1);
}

.case-study-content {
    padding: 30px;
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.case-study-title {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.case-study-meta {
    color: #888;
    font-size: 0.9rem;
}

.case-study-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.case-study-spec {
    background: rgba(26, 77, 122, 0.15);  /* Navy */
    border: 1px solid rgba(26, 77, 122, 0.3);  /* Navy border */
    padding: 8px 15px;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
}

.case-study-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-study-tag {
    background: rgba(26, 77, 122, 0.15);
    border: 1px solid rgba(26, 77, 122, 0.3);
    padding: 6px 14px;
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.case-study-tag:hover {
    background: rgba(26, 77, 122, 0.25);
    border-color: #1A4D7A;
    color: #fff;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.15);  /* Silver */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--primary);
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    color: #fff;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    font-size: 0.9rem;
}

/* ========================================
   FORM STYLES
   ======================================== */

.inquiry-form {
    background: rgba(20, 22, 28, 0.95);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(15, 17, 21, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
    color: #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(26, 77, 122, 0.3), inset 0 0 10px rgba(26, 77, 122, 0.1);  /* Navy */
    background: rgba(15, 17, 21, 0.95);
}

.form-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000;
    padding: 14px 35px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(26, 77, 122, 0.3);  /* Navy */
}

.form-submit:hover {
    background: linear-gradient(135deg, #fff, #fff);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(26, 77, 122, 0.3);  /* Navy */
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(180deg, rgba(26, 77, 122, 0.08), rgba(15, 17, 21, 1));  /* Navy */
    border-top: 1px solid rgba(255, 255, 255, 0.08);  /* Silver */
    padding: 60px 10%;
}

/* ========================================
   CURSOR EFFECT
   ======================================== */

.cursor-glow {
    position: fixed;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);  /* Neutral white */
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    mix-blend-mode: screen;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET (768px)
   ======================================== */

@media (max-width: 768px) {
    header {
        padding: 10px 4%;
    }

    .logo-container img {
        height: 70px;
    }

    .logo-text h2 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .logo-text p {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 0.75rem;
    }

    .header-right {
        gap: 10px;
    }

    .lang-switcher a {
        padding: 4px 6px;
        font-size: 0.7rem;
    }

    .status-bar {
        font-size: 0.65rem;
        letter-spacing: 1px;
        padding: 10px 15px;
        margin-top: 90px;
    }

    .hero {
        padding: 90px 6% 40px;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 3rem);
        letter-spacing: -1px;
        margin-bottom: 15px;
    }

    .hero h2 {
        font-size: clamp(0.7rem, 2.5vw, 0.95rem);
        letter-spacing: 2px;
        margin-bottom: 25px;
    }

    .hero h2::before,
    .hero h2::after {
        display: none;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 16px 18px;
        line-height: 1.7;
        margin-bottom: 26px;
    }

    .hero-stats {
        gap: 10px;
        margin-top: 25px;
    }

    .hero-stat-badge {
        padding: 8px 12px;
        gap: 8px;
    }

    .hero-stat-badge .badge-value {
        font-size: 0.9rem;
    }

    .hero-stat-badge .badge-label {
        font-size: 0.6rem;
    }

    section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 1.6rem;
        padding-left: 15px;
        margin-bottom: 35px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .why-choose-card {
        padding: 25px;
    }

    .why-choose-card h4 {
        font-size: 1rem;
    }

    .iso-list {
        gap: 10px;
    }

    .iso-badge {
        padding: 8px 15px;
        font-size: 0.65rem;
    }

    .floating-nav {
        display: none;
    }

    .cursor-glow {
        display: none;
    }

    .inquiry-form {
        padding: 25px;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    footer {
        padding: 40px 5%;
    }

    .case-study-hero {
        height: 250px;
    }

    .case-study-thumb {
        height: 70px;
    }

    .case-study-title {
        font-size: 1.4rem;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 10px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE (480px)
   ======================================== */

@media (max-width: 480px) {
    header {
        padding: 8px 3%;
    }

    .logo-container img {
        height: 55px;
    }

    .logo-text h2 {
        font-size: 1.2rem;
    }

    .logo-text p {
        display: none;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .lang-switcher a {
        padding: 3px 5px;
        font-size: 0.65rem;
    }

    .status-bar {
        font-size: 0.55rem;
        padding: 8px 10px;
        margin-top: 75px;
    }

    .hero {
        padding: 110px 5% 40px;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .hero h2 {
        font-size: clamp(0.6rem, 2.2vw, 0.8rem);
    }

    .hero p {
        font-size: 0.85rem;
        padding: 14px;
    }

    .hero-stats {
        gap: 8px;
        margin-top: 20px;
    }

    .hero-stat-badge {
        padding: 6px 10px;
        gap: 6px;
    }

    .hero-stat-badge .badge-value {
        font-size: 0.8rem;
    }

    .hero-stat-badge .badge-label {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .service-card {
        padding: 25px 20px;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: #1A4D7A; /* Navy */
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(26, 77, 122, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
    outline: none;
}

.back-to-top svg {
    color: white;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.back-to-top:hover {
    background: var(--color-primary);  /* Navy invece rosso */
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(26, 77, 122, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);  /* Navy shadow */
    border-color: rgba(255, 255, 255, 0.2);
}

.back-to-top:active {
    transform: translateY(-4px);
}

.back-to-top:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

/* Mobile: Smaller, bottom-right corner */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Utilities */
[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
}
