/* ==========================================================================
   ScreenshotLab - Assistenza Sistemistica & Soluzioni Digitali per PMI
   High-End Minimalist Monochrome Light Design System (2025/2026)
   Inverted Light Theme (Fondo Chiaro / Testi Scuri / Scala di Grigi)
   Continuous Bidirectional Scroll Animations & Architectural Precision
   ========================================================================== */

:root {
    /* Superfici & Sfondi Chiari (Invertiti) */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-card-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-glass-card: rgba(255, 255, 255, 0.96);

    /* Scala di Grigi Minimalista & Contrasti */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --black: #090d16;

    /* Accenti Monocromatici */
    --accent-dark: #0f172a;
    --accent-dark-hover: #1e293b;
    --accent-slate: #334155;
    --accent-light: #f1f5f9;

    /* Bordi & Divisori Puliti (Senza bordature pesanti o tacky) */
    --border-subtle: #e2e8f0;
    --border-light: #cbd5e1;
    --border-dark: #0f172a;

    /* Tipografia Scura ad Alta Leggibilità */
    --text-primary: #090d16;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-dark: #0f172a;

    /* Indicatori di Stato Tecnici Delicati */
    --status-ok: #059669;
    --status-ok-bg: #ecfdf5;
    --status-warn: #d97706;
    --status-warn-bg: #fffbeb;
    --status-alert: #dc2626;
    --status-alert-bg: #fef2f2;

    /* Gradienti Monocromatici */
    --grad-text: linear-gradient(135deg, #090d16 0%, #1e293b 60%, #475569 100%);
    --grad-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Font Stacks */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Dimensioni & Transizioni */
    --container-max: 1220px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition: all 0.25s var(--ease-out);

    /* Ombre Morbide Diffuse di Lusso */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 14px 30px -4px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.02), 0 10px 24px -5px rgba(0, 0, 0, 0.05);
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 28px;
}

/* ==========================================================================
   AMBIENT THEMATIC BACKGROUND SYSTEM (SCROLL WATERMARKS & CROSS-FADE)
   ========================================================================== */
.ambient-bg-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #f8fafc;
}

.ambient-bg-layer {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.025) translateY(6px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(100%) contrast(1.15) brightness(1.02);
    -webkit-filter: grayscale(100%) contrast(1.15) brightness(1.02);
    will-change: opacity, transform;
}

.ambient-bg-layer.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ambient-bg-overlay {
    position: absolute;
    inset: 0;
    /* Overlay sempre chiaro al 90% per tutte le sezioni sotto alla Hero */
    background: rgba(248, 250, 252, 0.90);
    pointer-events: none;
}

.ambient-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(148, 163, 184, 0.10) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 768px) {
    .ambient-bg-system {
        display: none !important;
    }
}

/* Indicatore di Avanzamento Scroll Superiore */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-dark);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   BADGES, PULSANTI & COMPONENTI UI MINIMALISTI
   ========================================================================== */
.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.badge-tech::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-dark);
}

.badge-emerald {
    color: var(--text-dark);
    background: #ffffff;
    border-color: var(--border-subtle);
}
.badge-emerald::before {
    background: var(--status-ok);
}

/* Pulsanti */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-dark);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background: var(--accent-dark-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    color: #ffffff;
}

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

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-glow-cyan {
    background: var(--accent-dark);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-glow-cyan:hover {
    background: var(--accent-dark-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   HEADER & FLOATING ISLAND NAVIGATION (SENZA BORDATURA PESANTE)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.site-header.header-scrolled .header-inner {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: var(--shadow-lg);
    padding: 7px 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo > * + * {
    margin-left: 10px;
}

.site-logo-img {
    height: 34px;
    width: auto;
    aspect-ratio: 850 / 376;
    object-fit: contain;
    filter: none;
    transition: var(--transition);
}

/* 6 Voci Pulite del Menu */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links > li + li {
    margin-left: 4px;
}

.nav-link-item {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 13px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link-item:hover {
    color: var(--text-primary);
    background: var(--gray-100);
}

.nav-link-item.active {
    color: var(--text-primary);
    background: var(--gray-200);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-cta {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-header-portal {
    padding: 8px 14px;
    font-size: 12.5px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-header-portal:hover {
    background: var(--gray-100);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-toggle-bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.35s var(--ease-out);
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.mobile-drawer-brand {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.mobile-drawer-close {
    background: var(--gray-100);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    background: var(--gray-200);
    border-color: var(--border-light);
}

.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-action-btn {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    text-align: center;
}

/* ==========================================================================
   HERO SECTION & TERMINAL CONSOLE MINIMALISTA
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: 125px;
    padding-bottom: 80px;
    background-color: #070a12;
    background-image: 
        linear-gradient(rgba(7, 10, 18, 0.70), rgba(7, 10, 18, 0.70)),
        url('../assets/bg/bg-hero.jpg?v=20261018_bw');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-grid-pattern {
    display: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-content {
    max-width: 680px;
    animation: heroIntro 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroIntro {
    0% {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.badge-glow {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border-color: rgba(203, 213, 225, 0.8);
}

.hero-title {
    font-size: clamp(42px, 5.4vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.gradient-text-shimmer {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 45%, #cbd5e1 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(15.5px, 1.25vw, 17.5px);
    line-height: 1.68;
    color: #f1f5f9;
    margin-bottom: 34px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-section .badge-tech {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-section .badge-tech::before {
    background: #10b981;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.hero-actions > * + * {
    margin-left: 14px;
}

.hero-section .btn-hero-cta {
    padding: 13px 28px;
    font-size: 14.5px;
    background: #ffffff;
    color: #090d16;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
}

.hero-section .btn-hero-cta:hover {
    background: #f1f5f9;
    color: #090d16;
    box-shadow: 0 8px 26px rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-section .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.hero-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    padding: 16px 18px;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.highlight-card:hover {
    background: #ffffff;
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.highlight-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-icon-svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-primary);
    stroke-width: 2.2;
    fill: none;
    flex-shrink: 0;
}

.highlight-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.hero-section .highlight-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-section .highlight-card:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-section .highlight-title {
    color: #ffffff;
}

.hero-section .highlight-icon-svg {
    stroke: #ffffff;
}

.hero-section .highlight-desc {
    color: #94a3b8;
}

/* ==========================================================================
   MODERNO EXECUTIVE SHOWCASE CARD (SOLUZIONI & SERVIZI PER PMI)
   ========================================================================== */
.enterprise-hub-wrapper {
    position: relative;
    perspective: 1200px;
    animation: heroIntro 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards;
}

/* Floating Satellite Value Badges */
.hub-floating-pill {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
    pointer-events: none;
}

.hub-pill-top {
    top: -16px;
    right: 20px;
    animation: pillFloat1 6s ease-in-out infinite alternate;
}

.hub-pill-bottom {
    bottom: -16px;
    left: 20px;
    animation: pillFloat2 7s ease-in-out infinite alternate 1s;
}

@keyframes pillFloat1 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes pillFloat2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(8px); }
}

/* Master Executive Showcase Card */
.enterprise-hub-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    position: relative;
    z-index: 2;
}

.enterprise-hub-card:hover {
    box-shadow: 0 32px 64px -12px rgba(15, 23, 42, 0.12);
    border-color: var(--border-light);
}

.hub-header {
    background: var(--gray-50);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.hub-brand-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-brand-status .hub-icon-symbol {
    font-size: 15px;
    color: var(--accent-dark);
}

.hub-title-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-primary);
}

.hub-location-badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 600;
}

/* Segmented Tab Switcher */
.hub-nav-tabs {
    display: flex;
    background: var(--gray-100);
    padding: 5px;
    gap: 5px;
    border-bottom: 1px solid var(--border-subtle);
}

.hub-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hub-tab-btn:hover {
    color: var(--text-primary);
}

.hub-tab-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Tab Content Body */
.hub-content-body {
    padding: 22px;
}

.hub-panel {
    display: none;
}

.hub-panel.active {
    display: block;
    animation: panelFadeIn 0.35s ease-out;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hub-metric-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.hub-big-stat {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.hub-big-stat-desc {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 3px;
}

.hub-live-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

/* Service Solution Rows */
.hub-services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.hub-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 11px 14px;
    transition: var(--transition);
}

.hub-service-item:hover {
    background: #ffffff;
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.hub-service-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-service-icon {
    font-size: 17px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-service-text h6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.hub-service-text p {
    font-size: 11.5px;
    color: var(--text-muted);
}

.hub-service-badge {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Corporate Guarantee Box */
.hub-guarantee-box {
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.hub-guarantee-box strong {
    color: var(--text-primary);
}

/* Hub Footer */
.hub-footer {
    background: var(--gray-50);
    padding: 13px 22px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
}

.hub-footer-status {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.hub-footer-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.hub-footer-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* ==========================================================================
   INFINITE TECH STACK MARQUEE
   ========================================================================== */
.tech-marquee-section {
    padding: 24px 0 32px 0;
    background: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.marquee-gradient-left, .marquee-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 5;
    pointer-events: none;
}
.marquee-gradient-left {
    left: 0;
    background: linear-gradient(90deg, #090d16 0%, transparent 100%);
}
.marquee-gradient-right {
    right: 0;
    background: linear-gradient(270deg, #090d16 0%, transparent 100%);
}

.tech-marquee-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: marqueeScroll 36s linear infinite;
}

.tech-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 9999px;
    white-space: nowrap;
    transition: var(--transition);
}

.marquee-item:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   MODERN WEB GUIDANCE: DEFERRED RENDERING DELLE SEZIONI SOTTO LA PIEGA
   Ottimizza First Contentful Paint & INP riducendo il calcolo del layout DOM iniziale.
   contain-intrinsic-size previene saltellamenti della barra di scorrimento (CLS).
   ========================================================================== */
.services-section,
.it-method-section,
.pillars-section,
.why-us-section,
.self-check-section,
.portfolio-section,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: auto none auto 750px;
}

/* ==========================================================================
   SEZIONE SERVIZI - BENTO GRID ARCHITECTURE (INVERTITA CHIARA)
   ========================================================================== */
.services-section {
    padding: calc(105px + 3.5vw) 0 calc(105px + 3.5vw) 0;
    margin-top: -3.5vw;
    margin-bottom: -3.5vw;
    background: #f8fafc;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
    -webkit-clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 56px auto;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    margin-bottom: 14px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
}

.bento-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.bento-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.bento-card > * {
    position: relative;
    z-index: 2;
}

.bento-card-core {
    grid-column: span 7;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
}

.bento-card-web {
    grid-column: span 5;
}

.bento-card-grafica {
    grid-column: span 4;
}

.bento-card-social {
    grid-column: span 4;
}

.bento-card-ia {
    grid-column: span 4;
}

.service-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.service-icon-wrap {
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.bento-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-summary {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-feature-pill {
    background: var(--gray-100);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.service-feature-pill:hover {
    background: #ffffff;
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.service-points-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
    flex: 1;
}

.service-points-list li {
    font-size: 13.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.service-points-list li::before {
    content: "✓";
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.service-target-tag {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: 8px;
    font-style: italic;
}

/* ==========================================================================
   METODO IT IN 4 FASI (COME LAVORIAMO)
   ========================================================================== */
.it-method-section {
    padding: calc(90px + 3.5vw) 0 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
    border-top: none;
}

.it-steps-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.it-step-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 26px 22px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.it-step-card:hover {
    background: #ffffff;
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.it-step-num {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-300);
    margin-bottom: 12px;
    line-height: 1;
}

.it-step-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.it-step-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.it-step-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   I 4 PILASTRI DELL'ARCHITETTURA IT & OPERATIVA PER IMPRESE
   ========================================================================== */
.pillars-section {
    padding: 100px 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 2;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.pillar-card {
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: 18px;
    padding: 34px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.pillar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.pillar-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: var(--shadow-sm);
}

.pillar-number {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--gray-100);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px;
    border-radius: 9999px;
    letter-spacing: 1px;
}

.pillar-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.pillar-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 22px;
    flex: 1;
}

.pillar-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

.pillar-features-list li {
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.45;
}

.pillar-features-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--status-ok-bg);
    color: var(--status-ok);
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

/* ==========================================================================
   PERCHÉ NOI & MATRICE COMPARATIVA (CON 4 PILASTRI AGGIORNATI)
   ========================================================================== */
.why-us-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.comparison-col {
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-subtle);
}

.comparison-negative {
    background: #fef2f2;
    border-color: #fee2e2;
}

.comparison-positive {
    background: #ffffff;
    border: 1.5px solid var(--accent-dark);
    box-shadow: var(--shadow-md);
}

.comparison-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comparison-list li {
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comparison-negative li {
    color: #991b1b;
}

.comparison-negative li::before {
    content: "✕";
    color: #ef4444;
    font-weight: 700;
    flex-shrink: 0;
}

.comparison-positive li {
    color: var(--text-primary);
}

.comparison-positive li::before {
    content: "✓";
    color: var(--accent-dark);
    font-weight: 700;
    flex-shrink: 0;
}

/* 4 Pilastri Tecnici (Statistiche Concrete) */
.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-counter-card {
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-counter-card:hover {
    background: #ffffff;
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   COMPLETAMENTE RIDISEGNATO: IL TEST (SELF-ASSESSMENT SICUREZZA IT)
   ========================================================================== */
.self-check-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
}

.self-check-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 38px;
    box-shadow: var(--shadow-md);
    max-width: 980px;
    margin: 0 auto;
}

.check-step-box {
    margin-bottom: 28px;
}

.check-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.check-step-number-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-dark);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.check-options-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.check-opt-btn {
    background: var(--gray-50);
    border: 1.5px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.check-opt-btn:hover {
    background: var(--gray-100);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.check-opt-btn.selected {
    background: #ffffff;
    border-color: var(--accent-dark);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Modulo Risultato del Test */
.check-result-box {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    background: var(--gray-50);
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.check-score-display {
    display: flex;
    align-items: center;
    gap: 18px;
}

.score-badge {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
}

.score-mid {
    background: #ffffff;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.score-ok {
    background: var(--status-ok-bg);
    color: var(--status-ok);
    border: 1px solid #bbf7d0;
}

.score-risk {
    background: var(--status-alert-bg);
    color: var(--status-alert);
    border: 1px solid #fecaca;
}

/* ==========================================================================
   PORTFOLIO & CLIENTI
   ========================================================================== */
.portfolio-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-filter-btn {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-filter-btn:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.portfolio-filter-btn.active {
    background: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.portfolio-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.portfolio-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.portfolio-client-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.portfolio-cat-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.portfolio-tag-line {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.portfolio-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.portfolio-service-tag {
    font-size: 11px;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 4px;
}

.portfolio-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.btn-portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-portfolio-link:hover {
    background: var(--gray-200);
}

.btn-portfolio-link svg {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   SEZIONE CONTATTI & LEAD FORM
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info-col h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    margin-bottom: 14px;
    color: var(--text-primary);
}

.contact-info-col p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-points {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-points > * + * {
    margin-top: 14px;
}

.contact-point-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-point-item > * + * {
    margin-left: 14px;
}

.contact-point-item:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-point-item small {
    display: block;
    color: var(--text-muted);
    font-size: 10.5px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.contact-point-item a, .contact-point-item span {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.form-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    background: #ffffff;
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.form-field textarea {
    height: 110px;
    resize: vertical;
}

/* Modern Web Guidance & Fallback Safari 12: Validazione delicata dopo interazione */
.form-field input:user-valid,
.form-field select:user-valid,
.form-field textarea:user-valid,
.form-field input.is-valid,
.form-field select.is-valid,
.form-field textarea.is-valid {
    border-color: var(--status-ok);
    background-color: #ffffff;
}

.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid,
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
    border-color: var(--status-alert);
    background-color: var(--status-alert-bg);
}

.field-error {
    display: none;
    font-size: 11.5px;
    color: var(--status-alert);
    margin-top: 5px;
    font-weight: 500;
}

/* Mostra errore sia con selettore moderno :has() che con classe fallback .has-error per Safari 12 */
.form-field:has(:user-invalid) .field-error,
.form-field.has-error .field-error {
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-feedback-box {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
}

.form-feedback-success {
    background: var(--status-ok-bg);
    border: 1px solid #bbf7d0;
    color: var(--status-ok);
}

.form-feedback-error {
    background: var(--status-alert-bg);
    border: 1px solid #fecaca;
    color: var(--status-alert);
}

/* ==========================================================================
   FOOTER ISTITUZIONALE
   ========================================================================== */
.site-footer {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 30px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    aspect-ratio: 850 / 376;
    object-fit: contain;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   STICKY MOBILE BOTTOM BAR & BACK TO TOP
   ========================================================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    z-index: 990;
    justify-content: space-around;
}

.mobile-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mobile-bar-btn svg {
    width: 20px;
    height: 20px;
}

#floating-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 980;
}

#floating-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#floating-back-to-top:hover {
    background: var(--gray-50);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#floating-back-to-top svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   JARVIS.CX INSPIRED ANIMATIONS & SCROLLING PHYSICS
   High-Tech Spring Easing, 3D Perspective Tilt, Luminous Border Beam & Laser
   ========================================================================== */

/* 1. Spring Easing & Focus-Blur Reveal on Scroll (Jarvis.cx Physics) */
.scroll-item,
.reveal-up,
.reveal-scale {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
    filter: blur(4px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.scroll-item.is-visible,
.reveal-up.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

.scroll-item.is-exited-top,
.reveal-up.is-exited-top,
.reveal-scale.is-exited-top {
    opacity: 0;
    transform: translateY(-20px) scale(0.985);
    filter: blur(2px);
}

.scroll-item.is-exited-bottom,
.reveal-up.is-exited-bottom,
.reveal-scale.is-exited-bottom {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
    filter: blur(4px);
}

/* 2. Staggered Grid & List Cascade (Jarvis.cx whileInView stagger) */
.scroll-stagger > *,
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px) scale(0.975);
    filter: blur(3px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.scroll-stagger.is-visible > *:nth-child(1), .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.scroll-stagger.is-visible > *:nth-child(2), .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.scroll-stagger.is-visible > *:nth-child(3), .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.scroll-stagger.is-visible > *:nth-child(4), .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.19s; opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.scroll-stagger.is-visible > *:nth-child(5), .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.scroll-stagger.is-visible > *:nth-child(6), .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.29s; opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.scroll-stagger.is-visible > *:nth-child(7), .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.34s; opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.scroll-stagger.is-visible > *:nth-child(8), .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.39s; opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

.scroll-stagger.is-exited-top > *, .reveal-stagger.is-exited-top > * {
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
    filter: blur(2px);
    transition-delay: 0s !important;
}

.scroll-stagger.is-exited-bottom > *, .reveal-stagger.is-exited-bottom > * {
    opacity: 0;
    transform: translateY(24px) scale(0.975);
    filter: blur(3px);
    transition-delay: 0s !important;
}

/* 3. Method Timeline Progress Beam & Glowing Tracer Dot (Jarvis.cx Laser Beam) */
.method-timeline-wrapper {
    position: relative;
    margin-top: 24px;
}
.timeline-laser-track {
    position: relative;
    width: 100%;
    height: 3px;
    background: rgba(203, 213, 225, 0.45);
    border-radius: 9999px;
    margin-bottom: 28px;
    overflow: visible;
}
.timeline-laser-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 9999px;
    position: relative;
    transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.7), 0 0 24px rgba(59, 130, 246, 0.4);
}
.timeline-laser-dot {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.95), 0 0 20px rgba(59, 130, 246, 0.6);
    animation: laserDotPulse 1.8s infinite;
}
@keyframes laserDotPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(6, 182, 212, 0.9), 0 0 16px rgba(59, 130, 246, 0.5);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 14px rgba(6, 182, 212, 1), 0 0 28px rgba(59, 130, 246, 0.8);
        transform: translateY(-50%) scale(1.25);
    }
}
.it-step-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease;
}
.it-step-card.active-step {
    border-color: rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.12), 0 0 0 1px rgba(6, 182, 212, 0.25) !important;
    transform: translateY(-5px) scale(1.015);
}
.it-step-card.active-step .it-step-num {
    color: #06b6d4 !important;
    text-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}
.it-step-card.active-step .it-step-badge {
    color: #0284c7 !important;
    background: rgba(6, 182, 212, 0.1) !important;
}

/* 4. Jarvis Luminous Rotating Border-Beam on Primary Buttons */
.btn-primary,
.btn-hero-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.btn-primary:hover,
.btn-hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.28), 0 0 15px rgba(59, 130, 246, 0.2);
}
.btn-primary::before,
.btn-hero-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, transparent 270deg, #06b6d4 315deg, #3b82f6 345deg, #ffffff 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderBeamRotate 3.5s linear infinite;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.btn-primary:hover::before,
.btn-hero-cta:hover::before {
    animation-duration: 2s;
    opacity: 1;
}
@keyframes borderBeamRotate {
    to {
        transform: rotate(360deg);
    }
}

/* 5. 3D Perspective Tilt & Specular Spotlight Overlay on Cards */
.bento-card,
.portfolio-card,
.highlight-card,
.it-step-card,
.pillar-card,
.comparison-col,
.stat-counter-card,
.self-check-card,
.enterprise-hub-card {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
}
.bento-card::after,
.portfolio-card::after,
.highlight-card::after,
.it-step-card::after,
.pillar-card::after,
.comparison-col::after,
.stat-counter-card::after,
.self-check-card::after,
.enterprise-hub-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(6, 182, 212, 0.08), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}
.bento-card:hover::after,
.portfolio-card:hover::after,
.highlight-card:hover::after,
.it-step-card:hover::after,
.pillar-card:hover::after,
.comparison-col:hover::after,
.stat-counter-card:hover::after,
.self-check-card:hover::after,
.enterprise-hub-card:hover::after {
    opacity: 1;
}

/* 6. Floating Satellite Pills Organic Float with Scroll Parallax */
@keyframes pillFloat1 {
    0%, 100% {
        transform: translateY(var(--scroll-offset-y, 0px)) rotate(0deg);
    }
    50% {
        transform: translateY(calc(var(--scroll-offset-y, 0px) - 8px)) rotate(0.8deg);
    }
}
@keyframes pillFloat2 {
    0%, 100% {
        transform: translateY(var(--scroll-offset-y, 0px)) rotate(0deg);
    }
    50% {
        transform: translateY(calc(var(--scroll-offset-y, 0px) - 6px)) rotate(-0.8deg);
    }
}
.hub-pill-top {
    animation: pillFloat1 5s ease-in-out infinite;
}
.hub-pill-bottom {
    animation: pillFloat2 6s ease-in-out infinite 0.5s;
}

/* 7. Shimmer Sweep on Portfolio & Bento Card Hover */
@keyframes cardShine {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }
    100% {
        transform: translateX(250%) skewX(-20deg);
    }
}
.portfolio-card-thumb,
.bento-card-core {
    position: relative;
    overflow: hidden;
}
.portfolio-card-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-150%) skewX(-20deg);
    pointer-events: none;
    z-index: 5;
}
.portfolio-card:hover .portfolio-card-thumb::before {
    animation: cardShine 1s ease forwards;
}

/* ==========================================================================
   MOBILE DRAWER BACKDROP
   ========================================================================== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

body.drawer-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & SMARTPHONE UX & TYPOGRAPHY PERFECTION)
   ========================================================================== */

/* 1. TABLET & LAPTOP SMALL (1024px e inferiori) */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-section {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 720px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(38px, 5.2vw, 54px);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.65;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
        max-width: 680px;
        margin: 0 auto;
        gap: 14px;
    }

    .enterprise-hub-wrapper {
        max-width: 620px;
        margin: 0 auto;
    }

    .section-header {
        margin-bottom: 44px;
    }

    .section-title {
        font-size: clamp(26px, 3.4vw, 36px);
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 15.5px;
    }

    .bento-grid {
        gap: 16px;
    }
    .bento-card-core { grid-column: span 12; }
    .bento-card-web { grid-column: span 12; }
    .bento-card-grafica { grid-column: span 6; }
    .bento-card-social { grid-column: span 6; }
    .bento-card-ia { grid-column: span 12; }
    .bento-card { padding: 26px; }

    .it-steps-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pillar-card {
        padding: 28px 24px;
    }

    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 700px;
        margin: 0 auto;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 2. SMARTPHONE & PHABLET (768px e inferiori) */
@media (max-width: 768px) {
    /* Ottimizzazione Performance Animazioni Jarvis su Mobile: Disattiva blur per 60fps fluidi */
    .scroll-item,
    .reveal-up,
    .reveal-scale,
    .scroll-stagger > *,
    .reveal-stagger > * {
        filter: none !important;
    }

    /* Layout di base & Padding Anti-collisione */
    body {
        padding-bottom: 68px;
    }

    .container {
        padding: 0 18px;
    }

    /* Sezioni Mobile: Sfondi Solidi & Spaziature Confortevoli (Senza Parallasse) */
    .services-section {
        background: #f8fafc;
        padding: calc(56px + 4.5vw) 0 calc(56px + 4.5vw) 0;
        margin-top: -4.5vw;
        margin-bottom: -4.5vw;
        clip-path: polygon(0 4.5vw, 100% 0, 100% calc(100% - 4.5vw), 0 100%);
        -webkit-clip-path: polygon(0 4.5vw, 100% 0, 100% calc(100% - 4.5vw), 0 100%);
    }

    .it-method-section {
        background: #ffffff;
        border-top: 1px solid var(--border-subtle);
        padding: calc(56px + 4.5vw) 0 56px 0;
    }

    .pillars-section {
        background: #f8fafc;
        padding: 56px 0;
    }

    .why-us-section {
        background: #ffffff;
        padding: 56px 0;
    }

    .self-check-section {
        background: #f8fafc;
        padding: 56px 0;
    }

    .portfolio-section {
        background: #ffffff;
        padding: 56px 0;
    }

    .contact-section {
        background: #f8fafc;
        padding: 56px 0;
    }

    /* Header & Navigazione Mobile */
    .site-header {
        top: max(8px, env(safe-area-inset-top, 8px));
    }

    .site-header .header-inner {
        padding: 8px 14px;
        border-radius: 12px;
    }

    .site-logo-img {
        height: 29px;
    }

    .nav-links {
        display: none;
    }

    .header-actions .btn-header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Bottom Quick Action Bar */
    .mobile-bottom-bar {
        display: flex;
    }

    #floating-back-to-top {
        bottom: 74px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    /* Intestazioni di Sezione (Allineamento e Bilanciamento Testi) */
    .section-header {
        margin-bottom: 30px;
        text-align: center;
        padding: 0 4px;
    }

    .section-title {
        font-size: clamp(22px, 5.8vw, 29px);
        line-height: 1.22;
        letter-spacing: -0.025em;
        margin-bottom: 10px;
        text-wrap: balance;
    }

    .section-subtitle {
        font-size: 13.5px;
        line-height: 1.52;
        color: var(--text-secondary);
        text-wrap: pretty;
        padding: 0 4px;
    }

    .badge-tech {
        font-size: 10px;
        padding: 4px 10px;
        letter-spacing: 0.8px;
        margin-bottom: 12px;
    }

    /* Hero Section Mobile (Distanza maggiorata anti-collisione con la barra fissa) */
    .hero-section {
        padding-top: calc(118px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 48px;
        min-height: auto;
    }

    .hero-layout {
        gap: 28px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(30px, 8.2vw, 44px);
        line-height: 1.12;
        letter-spacing: -0.035em;
        margin-bottom: 18px;
        text-wrap: balance;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.58;
        margin-bottom: 22px;
        text-wrap: pretty;
        padding: 0 2px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-bottom: 26px;
    }

    .btn-hero-cta,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 14px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .highlight-card {
        padding: 13px 15px;
        text-align: left;
    }

    .highlight-title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .highlight-desc {
        font-size: 12px;
        line-height: 1.42;
    }

    /* Executive Showcase Card nel Hero (Nascosta completamente su Mobile come richiesto) */
    .enterprise-hub-wrapper {
        display: none !important;
    }

    /* Marquee Tecnologico */
    .marquee-gradient-left,
    .marquee-gradient-right {
        width: 40px;
    }

    .marquee-item {
        font-size: 11.5px;
        padding: 5px 12px;
    }

    /* Bento Grid Servizi */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .bento-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .service-top-row {
        margin-bottom: 12px;
    }

    .service-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .service-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .bento-card h3 {
        font-size: 17.5px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .service-summary {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .service-pills-row {
        gap: 6px;
        margin-bottom: 14px;
    }

    .service-feature-pill {
        padding: 4px 9px;
        font-size: 11px;
    }

    .service-points-list {
        gap: 7px;
        margin-bottom: 16px;
    }

    .service-points-list li {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .service-target-tag {
        font-size: 11px;
        padding: 7px 10px;
    }

    /* 4 Step Come Lavoriamo */
    .it-steps-list {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .it-step-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .it-step-header {
        margin-bottom: 10px;
    }

    .it-step-card h3 {
        font-size: 15.5px;
        margin-bottom: 5px;
    }

    .it-step-card p {
        font-size: 13px;
        line-height: 1.45;
    }

    /* I 4 Pilastri Operativi Mobile */
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pillar-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .pillar-card-header {
        margin-bottom: 16px;
    }

    .pillar-icon-box {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 12px;
    }

    .pillar-number {
        font-size: 10.5px;
        padding: 4px 10px;
    }

    .pillar-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.32;
    }

    .pillar-card p {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .pillar-features-list {
        gap: 9px;
        padding-top: 16px;
    }

    .pillar-features-list li {
        font-size: 13px;
        line-height: 1.42;
    }

    /* Vantaggi & Metriche Concrete */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .comparison-col {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .comparison-col h3 {
        font-size: 16px;
    }

    .comparison-list li {
        font-size: 13px;
        line-height: 1.45;
        gap: 8px;
    }

    .stats-counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-counter-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 11.5px;
        line-height: 1.3;
    }

    /* Self Assessment Checkup IT */
    .self-check-card {
        padding: 20px 15px;
        border-radius: 14px;
    }

    .check-step-box {
        margin-bottom: 20px;
    }

    .check-step-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .check-step-title {
        font-size: 14.5px;
        line-height: 1.35;
    }

    .check-options-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .check-opt-btn {
        padding: 11px 13px;
        font-size: 12.5px;
        line-height: 1.35;
        min-height: 44px;
    }

    .check-result-box {
        margin-top: 22px;
        padding: 18px 14px;
        border-radius: 12px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 14px;
    }

    .check-score-display {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
    }

    #self-check-score-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    #self-check-score-desc {
        font-size: 12.5px;
        line-height: 1.45;
        text-align: center;
    }

    #self-check-fill-form-btn {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 12px 16px;
        white-space: normal;
        text-align: center;
    }

    /* Portfolio & Filtri */
    .portfolio-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        margin-bottom: 22px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .portfolio-filter-btn {
        flex-shrink: 0;
        padding: 7px 13px;
        font-size: 12px;
        border-radius: 7px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .portfolio-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .portfolio-client-name {
        font-size: 16px;
    }

    .portfolio-tag-line {
        font-size: 11.5px;
        margin-bottom: 8px;
    }

    .portfolio-desc {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .portfolio-service-tag {
        font-size: 10.5px;
        padding: 2px 7px;
    }

    .portfolio-links {
        padding-top: 12px;
        gap: 8px;
    }

    .btn-portfolio-link {
        padding: 6px 12px;
        font-size: 11.5px;
    }

    /* Contatti & Lead Form */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .contact-info-col h2 {
        font-size: clamp(21px, 5.2vw, 27px);
        margin-bottom: 8px;
        text-wrap: balance;
    }

    .contact-info-col p {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .contact-points {
        gap: 10px;
    }

    .contact-point-item {
        padding: 12px 14px;
        border-radius: 10px;
        gap: 12px;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .contact-point-item a,
    .contact-point-item span {
        font-size: 13.5px;
        word-break: break-all;
    }

    .form-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .form-field {
        margin-bottom: 12px;
    }

    .form-field label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* 16px font-size prevents annoying iOS Safari automatic zooming */
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 11px 13px;
        font-size: 16px;
        border-radius: 8px;
    }

    .form-field textarea {
        height: 90px;
    }

    .btn-submit-lead {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 13px 20px;
    }

    /* Footer Istituzionale Mobile */
    .site-footer {
        padding: 40px 0 84px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-logo-img {
        height: 30px;
    }

    .footer-col h4 {
        font-size: 12px;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
    }

    .footer-links a {
        font-size: 12.5px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        font-size: 11.5px;
        text-align: left;
        padding-top: 18px;
    }

    /* Mobile Drawer */
    .mobile-drawer {
        max-width: 320px;
        padding: 20px 16px;
    }

    .mobile-nav-link {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .mobile-action-btn {
        padding: 11px;
        font-size: 12.5px;
    }
}

/* 3. COMPACT SMARTPHONES (480px e inferiori: iPhone SE, Galaxy, Pixel compatte) */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero-section {
        padding-top: calc(112px + env(safe-area-inset-top, 0px)) !important;
    }

    .hero-title {
        font-size: clamp(28px, 8.8vw, 36px);
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 13.5px;
    }

    .pillar-card {
        padding: 18px 14px;
    }

    .pillar-card h3 {
        font-size: 16.5px;
    }

    .pillar-card p {
        font-size: 13px;
    }

    .pillar-icon-box {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }


    .stats-counter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-counter-card {
        padding: 14px 8px;
    }

    .stat-number {
        font-size: 23px;
    }

    .stat-label {
        font-size: 10.5px;
    }

    .self-check-card {
        padding: 16px 12px;
    }

    .form-card {
        padding: 18px 12px;
    }

    .mobile-bottom-bar {
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bar-btn {
        font-size: 9.5px;
        gap: 2px;
    }

    .mobile-bar-btn svg {
        width: 17px;
        height: 17px;
    }
}

/* Accessibilità e Riduzione Movimento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .scroll-item, .scroll-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
