@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.2);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-border: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 16px;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --section-padding: 6rem 2rem;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Animations & Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Background ambient glow - Blue technical glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(80px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, transparent 60%);
    opacity: 0.3;
    z-index: -1;
    filter: blur(80px);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 4rem;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--nav-border);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled {
    padding: 0.75rem 4rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 769px) {
    .navbar-center {
        justify-content: center;
        gap: 5rem;
    }
}

@media (max-width: 768px) {
    .navbar-scrolled {
        padding: 0.75rem 2rem !important;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    height: 100%;
    align-items: center;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    border-radius: 8px;
    top: calc(100% + 15px);
    /* Position below the link with a gap */
    left: 0;
    overflow: visible;
    /* Changed so pseudo elements can exist outside */
    pointer-events: auto;
}

/* Hover bridge to keep menu open while moving mouse */
.dropdown-content::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: transparent;
}

/* Pointy arrow for dropdown */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.04);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    border-bottom: 1px solid var(--nav-border);
}

.dropdown-content a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-content a:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mega Menu per Industria */
.dropdown-mega .dropdown-content {
    min-width: 500px;
    padding: 1rem;
    left: -150px;
    /* Centra meglio rispetto al menu */
}

@media (max-width: 768px) {
    .dropdown-mega .dropdown-content {
        min-width: 100%;
        left: 0;
    }
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem !important;
    border-radius: 8px;
    border-bottom: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background-size: cover;
    background-position: center;
    min-height: 80px;
}

.mega-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Scurisce l'immagine */
    z-index: -1;
    transition: background 0.3s ease;
}

.mega-item:hover::before {
    background: rgba(249, 115, 22, 0.7);
    /* Arancione in hover */
}

.mega-item i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.mega-item.energy {
    background-image: url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?q=80&w=400&auto=format&fit=crop');
}

.mega-item.manufacturing {
    background-image: url('https://images.unsplash.com/photo-1565514020179-026b92b84bb6?q=80&w=400&auto=format&fit=crop');
}

.mega-item.public-sector {
    background-image: url('Immagini/public_sector_bg.png');
}

.mega-item.financial {
    background-image: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?q=80&w=400&auto=format&fit=crop');
}

.mega-item.transportation {
    background-image: url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?q=80&w=400&auto=format&fit=crop');
}

.mega-item.healthcare {
    background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?q=80&w=400&auto=format&fit=crop');
}

.mega-item.fashion {
    background-image: url('https://images.unsplash.com/photo-1445205170230-053b83016050?q=80&w=400&auto=format&fit=crop');
    grid-column: span 2;
}

.badge-new {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
    position: relative;
    top: -2px;
}

/* Hero Section New */
.hero-new {
    min-height: 90vh;
    padding: 8rem 0rem 4rem;
    /* Adjusted padding since container has padding */
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

.section-resp {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-resp {
        padding: 60px 0;
    }
}

.responsive-grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-1-2 {
    grid-template-columns: 1fr 1.2fr;
}

.grid-1-2-resp {
    grid-template-columns: 1fr 1.2fr;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.hero-title span {
    display: block;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.23);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--nav-border);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.slide.active .hero-image {
    transform: scale(1);
}

/* Hero Section Base */
.hero-product {
    height: 80vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: calc(-1 * var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Hero Carousel Full-Width */
.hero-carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    border-radius: 0;
    box-shadow: none;
    background: #0f172a;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.carousel-nav {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.2rem;
    z-index: 30;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    width: 30px;
    border-radius: 10px;
}

.carousel-nav, .carousel-btn {
    pointer-events: auto;
}

/* Carousel Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 40;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 2rem;
}

.carousel-btn.next {
    right: 2rem;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .carousel-btn.prev { left: 1rem; }
    .carousel-btn.next { right: 1rem; }
}

/* Hero Video Section */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Scurisce il video per far risaltare il testo */
}

.hero-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: linear-gradient(to bottom, 
        rgba(15, 23, 42, 0.3) 0%, 
        rgba(15, 23, 42, 0.5) 75%, 
        rgb(255, 255, 255) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    color: white;
}


@media (max-width: 1200px) {
    .hero-product h1 { font-size: 5rem; }
}

@media (max-width: 992px) {
    .hero-product { height: 70vh; }
    .hero-product h1 { font-size: 4rem; }
    .hero-product .hero-subtitle { font-size: 1.25rem; }
}

@media (max-width: 500px) {
    .hero-product h1 { font-size: 3rem; }
}

/* Solutions Section - Home Page */
.solutions-section {
    padding: 3.5rem 2rem 3rem;
    background: #ffffff;
    position: relative;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    max-width: 1400px;
    margin: 1.5rem auto 0;
}

.solution-card {
    background: var(--bg-color);
    padding: 2.2rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--nav-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.solution-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.solution-card:hover::before {
    opacity: 0.3;
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.solution-card:hover .solution-icon {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.solution-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: gap 0.3s ease;
    position: relative;
    z-index: 2;
}

.solution-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.solution-link:hover {
    gap: 1.25rem;
}

.solution-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .solutions-section { padding: 3rem 1.25rem; }
    .solution-card { padding: 2rem 1.5rem; }
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.service-card-new:hover .service-icon-wrapper {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card-new h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card-new p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Featured Projects Section */
.projects-featured {
    padding: 6rem 2rem 2rem;
    background: white;
}

/* Category List Section */
.category-list-section {
    padding: 2rem 2rem 10rem;
    background: white;
}

.projects-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.project-preview-card {
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--nav-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-preview-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.project-preview-image {
    height: 280px;
    overflow: hidden;
}

.project-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-preview-card:hover .project-preview-image img {
    transform: scale(1.1);
}

.project-preview-content {
    padding: 2.5rem;
}

.project-preview-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-preview-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.project-preview-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-preview-link:hover {
    gap: 1rem;
}

/* Partners Marquee */
.partners-marquee {
    padding: 2.25rem 0;
    background: white;
    overflow: hidden;
    border-top: 1px solid var(--nav-border);
    border-bottom: 1px solid var(--nav-border);
}

.marquee-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-track img {
    height: 40px;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.marquee-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* CTA Section */
.cta-section {
    padding: 3.75rem 2rem 3.5rem;
    background: var(--text-primary);
    color: white;
    text-align: center;
}

/* Impact Stats Section - Premium Redesign */
.stats-section {
    padding: 5rem 2rem;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Mesh Gradients */
.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 1;
}

.stats-section::before {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

.stats-section::after {
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 3.5rem 2rem;
    border-radius: 32px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .stats-section { padding: 6rem 1.5rem; }
    .stat-number { font-size: 3.5rem; }
}

/* Category List Section */

.category-group {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.category-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.category-main::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover {
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.15);
    transform: translateX(10px);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    background: var(--accent-color);
    color: white;
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
    flex-grow: 1;
    text-align: left;
}

.category-arrow {
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.category-item:hover .category-arrow {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(5px);
}

/* Category Gallery (Expandable) */
.category-gallery {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border-radius: 0 0 16px 16px;
    margin-top: -10px;
    /* Overlap with item above to look connected */
    padding: 0 2rem;
    opacity: 0;
}

.category-gallery.open {
    max-height: 1000px;
    /* Arbitrary large value for animation */
    padding: 2rem;
    border: 1px solid var(--nav-border);
    border-top: none;
    opacity: 1;
    margin-bottom: 1rem;
}

.toggle-gallery.active {
    border-radius: 16px 16px 0 0;
    border-bottom-color: transparent;
    background: #f8fafc;
}

.toggle-gallery.active .category-arrow {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 2px dashed #cbd5e1;
}

.placeholder-content {
    text-align: center;
}

.placeholder-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}


.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.cta-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.75rem;
}

/* Footer New */
.footer {
    background: #f8fafc;
    padding: 2.2rem 4rem 1.25rem;
    border-top: 1px solid var(--nav-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-brand .logo {
    margin-bottom: 0.65rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    max-width: 320px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.social-links {
    display: flex;
    gap: 0.65rem;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.footer-nav,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 0.2rem;
    font-size: 0.88rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--nav-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.footer-bottom p {
    margin: 0;
}

/* Global Page Header Styles */
.page-header {
    padding: 8rem 4rem 1.5rem;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.05), transparent 40%);
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--nav-border);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-header h1 span {
    color: var(--accent-color);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-new {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {

    .grid-2,
    .grid-1-2,
    .grid-1-2-resp {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Override inline grids for responsive views */
    div[style*="1.2fr 1fr"],
    div[style*="1fr 1.2fr"],
    div[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .grid-reverse-mobile {
        direction: rtl;
    }

    .grid-reverse-mobile>* {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 2.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .navbar {
        padding: 0 2rem;
    }

    .navbar-scrolled {
        padding: 0.75rem 2rem !important;
    }

    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .dropdown-content {
        display: block !important;
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0.5rem 1rem !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        text-align: center;
        min-width: 100% !important;
    }
    
    .dropdown-content::before,
    .dropdown-content::after {
        display: none !important;
    }
    
    .dropdown-content a {
        border-bottom: none !important;
        padding: 0.5rem 0 !important;
        color: var(--text-secondary) !important;
        font-size: 0.9rem !important;
    }

    .projects-preview-grid,
    .pricing-grid,
    .values-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-new {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .footer {
        padding: 2rem 1.5rem 1rem;
    }
}

/* Image Modal (Lightbox) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active {
    display: flex;
}

.image-modal.active img {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Clickable images hint */
.enlarge-image {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.enlarge-image:hover {
    transform: translateY(-5px) scale(1.02) !important;
}

/* --- Enhanced About Page Styles --- */

.about-hero {
    padding: calc(var(--nav-height) + 3rem) 2rem 2.5rem;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.03), transparent 40%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(249, 115, 22, 0.05)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

/* Contact Form Mobile Fixes */
.contact-form {
    padding: 3rem;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-form .responsive-grid {
        gap: 1.5rem !important;
    }
}

.about-hero .accent-text {
    background: linear-gradient(135deg, var(--accent-color), #fcc21b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.25rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    padding: 1.35rem 1.5rem;
    background: white;
    border-radius: 18px;
    border: 1px solid var(--nav-border);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Timeline Styles */
.timeline-section {
    padding: var(--section-padding);
    background: #ffffff;
}

.timeline-container {
    max-width: 1000px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), rgba(249, 115, 22, 0.1));
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--nav-border);
    box-shadow: var(--card-shadow);
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--accent-glow);
    z-index: 2;
}

.timeline-year {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--accent-glow);
    color: var(--accent-color);
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* Values Styles */
.values-section {
    padding: 3rem 2rem 3.5rem;
    background: #f8fafc;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.value-card {
    background: white;
    padding: 2.2rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--nav-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #fcc21b);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    color: white;
    border-color: transparent;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover .service-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.value-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.value-card:hover h3 {
    color: white;
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 45px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }
}

/* Vision & Mission Section */
.vision-mission-section {
    padding: 2.75rem 2rem;
    background: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.mission-item {
    background: #f8fafc;
    padding: 2.2rem 2.2rem;
    border-radius: 20px;
    border: 1px solid var(--nav-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mission-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent-color);
}

.mission-item .icon-box {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mission-item h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.mission-item p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-item {
        padding: 2rem;
    }

    .page-header {
        padding: 7rem 2rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2.25rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }

    .cta-section h2 {
        font-size: 1.75rem !important;
    }

    .btn-stack-mobile,
    .cta-container > div[style*="display: flex"] {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
        gap: 1rem !important;
    }

    .btn-stack-mobile .btn,
    .cta-container > div[style*="display: flex"] .btn {
        width: 100% !important;
        text-align: center;
    }

    .contact-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-card .social-stack,
    .contact-card .social-links {
        justify-content: center;
    }

    .contact-form-container {
        padding: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Alternanza moduli Nexus desktop */
@media (min-width: 993px) {
    .nexus-module-row {
        gap: 6rem;
        margin-bottom: 8rem;
        align-items: center;
    }

    .nexus-module-row:nth-child(even) {
        direction: rtl;
    }

    .nexus-module-row:nth-child(even)>* {
        direction: ltr;
    }
}

/* --- Contact Page Specific Styles --- */

.contact-section {
    padding: 1.5rem 2rem 6rem;
    background: white;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--nav-border);
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent-color);
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card p,
.contact-card a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--accent-color);
}

.contact-form-container {
    background: white;
    padding: 3.5rem;
    border-radius: 32px;
    border: 1px solid var(--nav-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: #fcfdfe;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.social-stack {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container {
        padding: 2.5rem;
    }
}

/* Background Decoration */
.bg-blob {
    position: absolute;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: -50px;
    left: -50px;
}

/* Gallery Mosaic Styles */
.philosophy-section {
    padding: var(--section-padding);
    background: #ffffff;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.gallery-item-small {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.gallery-item-large img,
.gallery-item-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-large:hover .gallery-overlay,
.gallery-item-small:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-large:hover img,
.gallery-item-small:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item-large {
        grid-column: auto;
        grid-row: auto;
        height: 300px;
    }

    .gallery-item-small {
        height: 250px;
    }
}

/* --- Pricing Section (MES Page) --- */
.pricing-section {
    padding: var(--section-padding);
    background: #f8fafc;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.pricing-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.pricing-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid var(--nav-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.15);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(249, 115, 22, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), #fcc21b);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pricing-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.pricing-price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.pricing-period {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 0.5rem;
}

.pricing-divider {
    height: 1px;
    background-color: var(--nav-border);
    margin-bottom: 2.5rem;
    border: none;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 1.1rem;
    background-color: transparent;
    color: var(--text-primary);
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--nav-border);
    cursor: pointer;
}

.pricing-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.pricing-card.popular .pricing-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}

.pricing-card.popular .pricing-btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.23);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .pricing-grid {
        gap: 3rem;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

/* --- Features Section (Premium Altek Style) --- */
.features-section {
    padding: var(--section-padding) 0;
    background: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.03) 0%, transparent 40%),
                #ffffff;
    position: relative;
    overflow: hidden;
}

.features-section .section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 12rem;
    position: relative;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image-wrapper {
    flex: 3;
    position: relative;
    z-index: 1;
}

.feature-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    animation: floatAnim 8s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(0.5deg); }
}

.feature-row:hover .feature-image-wrapper img {
    transform: scale(1.01) translateY(-5px);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.25);
}

.feature-content {
    flex: 1;
    z-index: 2;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
    min-width: 380px;
}

.feature-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.feature-content h2 span {
    color: var(--accent-color);
}

.feature-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.feature-highlights {
    list-style: none;
    padding: 0;
}

.feature-highlights li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.15rem;
    opacity: 0.9;
}

.feature-highlights li i {
    width: 28px;
    height: 28px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Global Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry for scroll reveal */
.feature-row {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-row.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-row .feature-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-row.active .feature-content > * {
    opacity: 1;
    transform: translateY(0);
}

.feature-row.active .feature-content h2 { transition-delay: 0.2s; }
.feature-row.active .feature-content p { transition-delay: 0.4s; }
.feature-row.active .feature-highlights { transition-delay: 0.6s; }

@media (max-width: 1200px) {
    .feature-content h2 { font-size: 2.85rem; }
}

@media (max-width: 992px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 4rem;
        margin-bottom: 8rem;
        text-align: center;
        padding: 0 2rem;
    }
    
    .feature-content {
        padding: 2rem;
        min-width: auto !important;
    }

    .feature-content h2 {
        font-size: 2.4rem;
    }

    .feature-highlights li {
        justify-content: center;
    }
}

/* --- Image Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

/* --- Bento Grid Layout for Digital Products --- */
/* --- Bento Grid Layout for Digital Products (Light Theme) --- */
.bento-section {
    padding: 8rem 2rem;
    background: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 64, 175, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(30, 64, 175, 0.03) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
}

.bento-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f172a' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bento-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) contrast(1.05);
    opacity: 0.15;
    transition: all 0.7s ease;
}

.bento-item:hover .bento-image img {
    opacity: 0.25;
    transform: scale(1.1);
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item.large .bento-content {
    justify-content: center;
    text-align: center;
}

.bento-content i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.bento-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.bento-content h2 span {
    color: var(--accent-color);
}

.bento-content p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
}

.bento-item.large p {
    margin: 0 auto;
}

.bento-highlights {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.bento-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.bento-highlights li i {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--accent-color);
}

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-item {
        height: 400px;
    }
    .bento-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 350px;
    }
    .bento-content h2 {
        font-size: 2rem;
    }
}

/* --- Incentive Bar (Transizione 5.0) --- */
.incentive-bar {
    padding: 3rem 2rem;
    background: #ffffff;
    position: relative;
    z-index: 5;
}

.incentive-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    border: 1px solid rgba(249, 115, 22, 0.1);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.incentive-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.incentive-icon {
    width: 70px;
    height: 70px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.incentive-content h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.incentive-content h3 span {
    color: var(--accent-color);
}

.incentive-content p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
}

.incentive-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .incentive-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .incentive-icon {
        margin: 0 auto;
    }
}

/* HMI Bento Grid Gallery */
.hmi-gallery-section {
    padding: var(--section-padding);
    background: #ffffff;
}

.hmi-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid var(--nav-border);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-overlay h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Bento Grid Spans */
.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 1100px) {
    .hmi-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
}

@media (max-width: 768px) {
    .hmi-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    
    .bento-item.large, .bento-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* HMI Benefits Section */
.hmi-benefits-section {
    padding: 5rem 2rem;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.hmi-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 32px;
    border: 1px solid var(--nav-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-color);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: var(--accent-color);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* HMI CTA Section */
.hmi-cta-section {
    padding: 6rem 2rem;
    background: var(--text-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hmi-cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hmi-cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hmi-cta-section h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hmi-cta-section h2 span {
    color: var(--accent-color);
}

.hmi-cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hmi-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.hmi-cta-btn:hover {
    background: #e66712;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
}

/* Section Title Accent */
.section-title span {
    color: var(--accent-color);
}

/* Process Section */
.process-section {
    padding: var(--section-padding);
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    position: relative;
    padding-top: 2rem;
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.1;
    line-height: 1;
    z-index: 1;
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 4rem;
        max-width: 600px;
    }
}

/* Chi Siamo Services/Markets Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: #f8fafc;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--nav-border);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Chi Siamo Page Specifics */
.about-hero {
    padding: calc(var(--nav-height) + 3rem) 2rem 2.25rem;
    background: #ffffff;
    text-align: center;
}

.vision-mission-section {
    padding: 2.5rem 2rem;
}

/* Sidebar Layout for Projects */
.projects-sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.projects-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: var(--text-primary);
    color: white;
}

.sidebar-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.projects-main-content {
    min-height: 600px;
    background: white;
}

.gallery-container {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.gallery-container.fade-out {
    opacity: 0;
}

/* Mobile Sidebar */
@media (max-width: 992px) {
    .projects-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .projects-sidebar {
        position: relative;
        top: 0;
        overflow-x: auto;
        padding-bottom: 1rem;
        background: #f8fafc;
        padding: 1rem;
        margin: 0 -2rem;
        z-index: 10;
    }

    .sidebar-nav {
        flex-direction: row;
        gap: 0.75rem;
    }

    .sidebar-item {
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* --- Case Study Section (MES Pharmaceutical) --- */
.case-study-section {
    padding: var(--section-padding);
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.case-study-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    background: rgba(249, 115, 22, 0.1);
    padding: 0.4rem 1.25rem;
    border-radius: 20px;
}

.case-study-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.case-study-header h2 span {
    color: var(--accent-color);
}

.case-study-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}

.case-study-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.case-study-content h3:first-of-type {
    margin-top: 0;
}

.case-study-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.metric-card {
    background: white;
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid var(--nav-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.1);
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

.case-study-image-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4 / 3;
}

.case-study-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.image-overlay-info i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .case-study-image-wrapper {
        order: -1;
        aspect-ratio: 16 / 9;
    }
    
    .case-study-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .case-study-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: var(--section-padding);
    background: #ffffff;
    position: relative;
}

.faq-header {
    text-align: center;
    margin-bottom: 5rem;
}

.faq-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.faq-header h2 span {
    color: var(--accent-color);
}

.faq-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.faq-item details {
    width: 100%;
}

.faq-item summary {
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item details[open] summary i {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-content {
    padding: 0 2rem 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-content p {
    margin-bottom: 1rem;
}

.eula-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(249, 115, 22, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.eula-download-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ============================================================ */
/* NEXUS MES: SALESFORCE-STYLE HERO, SHOWCASE & DEMO MODAL       */
/* ============================================================ */

/* Nav Demo Button */
.nav-demo-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    border: none;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    margin-left: 0.5rem;
}

.nav-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.badge-nexus {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: 6px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    text-transform: uppercase;
}

/* Salesforce-Inspired Hero Section */
.sf-mes-hero {
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.16) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
                linear-gradient(180deg, #031633 0%, #061e42 50%, #03132c 100%);
    color: #ffffff;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3.5rem;
    overflow: hidden;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.sf-mes-hero .section-container {
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .sf-mes-hero {
        min-height: calc(100vh - var(--nav-height));
        height: auto;
        padding-top: calc(var(--nav-height) + 3.5rem);
        padding-bottom: 4rem;
    }
}

.sf-mes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.sf-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hero Content (Centered) */
.sf-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: #fed7aa;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.3);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.sf-hero-title {
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 1.4rem;
    max-width: 950px;
}

.sf-hero-title .highlight-orange {
    color: #f97316;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sf-hero-desc {
    font-size: 1.22rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 2.4rem;
    max-width: 820px;
    font-weight: 400;
}

.sf-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-bottom: 2.6rem;
}

.btn-hero-demo {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    padding: 1.15rem 2.6rem;
    font-size: 1.12rem;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.6);
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1.15rem 2.4rem;
    font-size: 1.12rem;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: #ffffff;
}

/* Hero Stats Bar */
.sf-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.stat-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value i {
    color: #f97316;
    font-size: 1.35rem;
}

.stat-label {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-top: 0.35rem;
}

/* Hero Showcase & Interactive Window (Right) */
.sf-hero-showcase {
    position: relative;
    width: 100%;
}

.software-window {
    background: #0f172a;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 35px 75px -15px rgba(0, 0, 0, 0.75),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
}

/* Window Titlebar */
.software-window-header {
    background: rgba(15, 23, 42, 0.95);
    padding: 0.85rem 1.4rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
    display: flex;
    gap: 9px;
}

.window-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

/* Interactive Tabs inside Mockup */
.software-tabs-bar {
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}

.software-tabs-bar::-webkit-scrollbar {
    display: none;
}

.software-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.85rem 1.4rem;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.software-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.software-tab-btn.active {
    color: #f97316;
    border-bottom-color: #f97316;
    background: rgba(249, 115, 22, 0.12);
}

/* Screen Image Display */
.software-screen-viewport {
    position: relative;
    width: 100%;
    height: clamp(380px, 54vh, 580px);
    background: #0b1120;
    overflow: hidden;
}

/* Responsive adjustment for shorter screens (e.g. 768px - 850px laptops) */
@media (max-height: 850px) and (min-width: 1024px) {
    .sf-mes-hero .section-container {
        padding: 0 2.5rem;
    }
    .sf-hero-title {
        font-size: clamp(2.1rem, 3.2vw, 2.95rem);
        margin-bottom: 0.95rem;
    }
    .sf-hero-desc {
        font-size: 1.08rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }
    .sf-hero-actions {
        margin-bottom: 1.5rem;
        gap: 1.1rem;
    }
    .btn-hero-demo, .btn-hero-outline {
        padding: 0.9rem 1.9rem;
        font-size: 1rem;
    }
    .sf-hero-stats {
        padding-top: 1.1rem;
        gap: 1.3rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .software-tab-btn {
        padding: 0.7rem 1.1rem;
        font-size: 0.86rem;
    }
    .software-screen-viewport {
        height: clamp(310px, 46vh, 440px);
    }
}

.software-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.software-screen-img.active {
    display: block;
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating Metric Chips */
.floating-chip {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.15rem;
    border-radius: 14px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 10;
    animation: floatSlow 6s ease-in-out infinite alternate;
}

.floating-chip.top-right {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.floating-chip.bottom-left {
    bottom: -22px;
    left: -20px;
    animation-delay: 2s;
}

@keyframes floatSlow {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-8px);
    }
}

.chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chip-icon.icon-green {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.chip-icon.icon-orange {
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.chip-text {
    display: flex;
    flex-direction: column;
}

.chip-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.chip-desc {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ============================================================ */
/* SALESFORCE-STYLE MODULAR FEATURES SECTION                     */
/* ============================================================ */

.mes-pillars-section {
    padding: 3.5rem 2rem 3rem;
    background: #f8fafc;
    position: relative;
}

.mes-pillars-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2.25rem;
}

.mes-pillars-header .section-tag {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.mes-pillars-header h2 {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.mes-pillars-header h2 span {
    color: var(--accent-color);
}

.mes-pillars-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.mes-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    max-width: 1400px;
    margin: 0 auto;
}

.mes-pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.85rem 1.75rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mes-pillar-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.1);
}

.pillar-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.pillar-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(234, 88, 12, 0.2) 100%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.mes-pillar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.mes-pillar-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.pillar-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.pillar-bullet-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pillar-bullet-list li i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.pillar-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.pillar-card-link:hover {
    gap: 0.75rem;
}

/* Banner Intermedio per la Demo */
.mes-demo-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 2.2rem 2.75rem;
    margin: 2.75rem auto 0;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-banner-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.demo-banner-content h3 span {
    color: #f97316;
}

.demo-banner-content p {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 650px;
    line-height: 1.55;
}

#bannerOpenDemoBtn,
.mes-demo-banner .btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ============================================================ */
/* INTERACTIVE NEXUS DEMO MODAL                                 */
/* ============================================================ */

.nexus-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexus-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.nexus-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    border-radius: 20px;
    overflow: hidden; /* strictly non-scrollable */
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
    transform: translateY(20px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nexus-modal-backdrop.active .nexus-modal-card {
    transform: translateY(0) scale(1);
}

.modal-header-section {
    background: linear-gradient(135deg, #031633 0%, #08234e 100%);
    color: #ffffff;
    padding: 1.25rem 2rem 1.1rem;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #f97316;
    transform: rotate(90deg);
}

.modal-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fed7aa;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}

.modal-header-section h3 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.modal-header-section p {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.35;
    margin: 0;
}

.modal-body-section {
    padding: 1.35rem 2rem 1.4rem;
}

/* Form Styles */
.demo-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.25rem;
}

.demo-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.demo-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

.demo-form-group input,
.demo-form-group select,
.demo-form-group textarea {
    padding: 0.55rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
    width: 100%;
}

.demo-form-group input:focus,
.demo-form-group select:focus,
.demo-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.demo-submit-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.8rem;
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    transition: all 0.25s ease;
    margin-top: 0.9rem;
}

.demo-submit-btn:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.demo-privacy-notice {
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.55rem;
    line-height: 1.35;
    margin-bottom: 0;
}

/* Success Confirmation Box */
.demo-success-box {
    display: none;
    text-align: center;
    padding: 1.5rem 1rem;
}

.demo-success-icon {
    width: 56px;
    height: 56px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

.demo-success-box h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.demo-success-box p {
    font-size: 0.92rem;
    color: #475569;
    max-width: 440px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}

/* Responsive Rules for Hero, Pillars & Modal */
@media (max-width: 1080px) {
    .sf-hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .sf-hero-content {
        max-width: 100%;
        text-align: center;
    }
    .sf-hero-actions {
        justify-content: center;
    }
    .sf-hero-stats {
        max-width: 600px;
        margin: 0 auto;
    }
    .floating-chip.top-right {
        right: 10px;
    }
    .floating-chip.bottom-left {
        left: 10px;
    }
}

@media (max-width: 768px) {
    .sf-mes-hero {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 2rem;
    }
    .sf-hero-title {
        font-size: 2.2rem;
    }
    .sf-hero-desc {
        font-size: 1rem;
    }
    .sf-hero-stats {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        text-align: center;
    }
    .stat-metric {
        align-items: center;
    }
    .software-screen-viewport {
        height: 250px;
    }
    .floating-chip {
        display: none; /* Hide floating badges on small mobile screens to prevent clutter */
    }
    .mes-demo-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.25rem;
    }
    .demo-form-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .modal-header-section, .modal-body-section {
        padding: 1.15rem 1.25rem;
    }
    .nexus-modal-card {
        max-height: 94vh;
        overflow-y: auto;
    }
}

/* ==========================================================================
   CONTACT PAGE - VIEWPORT-FIT INFORMATION (SCROLL TO VIEW FOOTER)
   ========================================================================== */

.contact-screen-main {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2.5rem) 2.5rem 3.5rem;
    position: relative;
    background: #ffffff;
}

.contact-screen-container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-screen-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: center;
}

/* Left Column */
.contact-header-block {
    margin-bottom: 1.75rem;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.2rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    letter-spacing: 0.02em;
}

.contact-screen-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
}

.contact-screen-desc {
    color: var(--text-secondary);
    font-size: 1.22rem;
    line-height: 1.65;
    max-width: 580px;
    margin: 0;
}

.contact-screen-cards {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin-top: 1.5rem;
}

.contact-info-row-card {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.6rem 2rem;
    background: #f8fafc;
    border: 1px solid var(--nav-border);
    border-radius: 22px;
    transition: all 0.3s ease;
}

.contact-info-row-card:hover {
    background: white;
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-icon-bubble {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

.card-info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.card-info-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.55;
    margin: 0;
}

.maps-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.45rem;
    transition: color 0.2s ease;
}

.maps-inline-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.direct-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.contact-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.08rem;
    transition: color 0.2s ease;
}

.contact-meta-link i {
    color: var(--accent-color);
    font-size: 1.05rem;
    width: 20px;
}

.contact-meta-link:hover {
    color: var(--accent-color);
}

.social-inline-stack {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.social-inline-stack .social-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.social-inline-stack a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--nav-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-inline-stack a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Right Column - Form Card */
.contact-screen-form-card {
    background: white;
    padding: 2.8rem 3.2rem;
    border-radius: 28px;
    border: 1px solid var(--nav-border);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.06);
}

.form-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.15rem;
}

.form-card-top h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.form-card-top p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
}

.fast-reply-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-compact-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-cell {
    display: flex;
    flex-direction: column;
}

.form-cell label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.contact-field {
    width: 100%;
    height: 54px;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: #f8fafc;
    transition: all 0.25s ease;
}

.contact-field:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.contact-field::placeholder {
    color: #94a3b8;
    font-size: 0.98rem;
}

.contact-field.textarea-field {
    height: 125px;
    min-height: 115px;
    max-height: 200px;
    resize: vertical;
    padding: 0.85rem 1.25rem;
    line-height: 1.55;
}

.form-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.compact-submit-btn {
    height: 56px;
    padding: 0 2.8rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    border: none;
    background: var(--accent-color);
    color: white;
    transition: all 0.25s ease;
}

.compact-submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.privacy-hint {
    font-size: 0.88rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tablet & Mobile Fallback */
@media (max-width: 992px) {
    .contact-screen-main {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 3.5rem;
    }

    .contact-screen-title {
        font-size: 2.8rem;
    }

    .contact-screen-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-screen-form-card {
        padding: 2rem 1.5rem;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .compact-submit-btn {
        width: 100%;
        justify-content: center;
    }
}






