        :root {
            /* Palette Blu Scuro Professionale */
            --primary-red: #2c3e50;
            --dark-red: #1a2938;
            --gradient-red: linear-gradient(135deg, #2c3e50 0%, #1a2938 100%);
            --light-gray: #f8f9fa;
            --text-dark: #333;
        }
        
        body {
            animation: fadeIn 0.4s ease-in-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        body {
            font-family: 'Open Sans', sans-serif;
            color: var(--text-dark);
        }
        
        h1, h2, h3, h4, h5 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }
        
        /* --- Custom Navbar --- */
        .navbar {
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .navbar-brand {
            color: var(--primary-red) !important;
            font-weight: 800;
            font-size: 1.5rem;
        }
        .nav-link {
            font-weight: 600;
            color: #555 !important;
            transition: color 0.3s;
        }
        .nav-link:hover, .nav-link.active {
            color: var(--primary-red) !important;
        }
        .btn-custom {
            background: var(--gradient-red);
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 50px;
            font-weight: 600;
            transition: transform 0.2s;
        }
        .btn-custom:hover {
            transform: translateY(-2px);
            color: white;
            box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
        }
        
        /* --- Hero Section --- */
        .hero-section {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./img/portfolio/RistrutturazioniComplete/Termoli3CB/background.webp');
            background-size: cover;
            background-position: center;
            height: 85vh;
            display: flex;
            align-items: center;
            color: white;
            position: relative;
        }
        .hero-content h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        .red-line {
            width: 80px;
            height: 5px;
            background: var(--primary-red);
            margin-bottom: 20px;
        }
        
        /* --- Services --- */
        .service-card {
            border: none;
            border-radius: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            height: 100%;
            overflow: hidden;
        }
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        .icon-box {
            font-size: 3rem;
            color: var(--primary-red);
            margin-bottom: 20px;
        }
        .service-img {
            height: 250px;
            object-fit: cover;
            width: 100%;
        }
        
        /* --- Prima e Dopo (Before/After) --- */
        .ba-card {
            position: relative;
            margin-bottom: 30px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .ba-label {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            z-index: 10;
        }
        .ba-label.after {
            background: var(--primary-red);
            left: auto;
            right: 15px;
        }
        .compare-container {
            position: relative;
            height: 300px;
        }
        .compare-img {
            width: 50%;
            height: 100%;
            object-fit: cover;
            float: left;
            transition: width 0.5s ease;
        }
        /* Mobile adjustment for compare */
        @media (max-width: 768px) {
            .hero-content h1 { font-size: 2.5rem; }
        }
        
        /* --- Footer --- */
        footer {
            background: #222;
            color: white;
            padding: 50px 0 20px 0;
        }
        footer a { color: #ccc; text-decoration: none; }
        footer a:hover { color: var(--primary-red); }
        .footer-cta {
            background: var(--primary-red);
            padding: 40px;
            border-radius: 15px;
            margin-top: -100px;
            margin-bottom: 50px;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        .page-header {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('./img/portfolio/RistrutturazioniComplete/Termoli3CB/background.webp');
            background-size: cover;
            background-position: center;
            padding: 100px 0 60px 0;
            color: white;
            margin-bottom: 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        /* Sidebar per i servizi */
        .sidebar-contact {
            background: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            position: sticky;
            top: 100px; /* Rimane fissa mentre scorri */
            border-top: 5px solid var(--primary-red);
        }
        
        /* Portfolio Filters */
        .portfolio-filter .btn {
            border-radius: 30px;
            padding: 8px 20px;
            margin: 0 5px;
            font-weight: 600;
        }
        .portfolio-filter .btn-active {
            background-color: var(--primary-red);
            color: white;
        }

        /* --- Portfolio Categories & Carousels --- */
        .category-section {
            animation: fadeIn 0.6s ease-in-out;
        }

        .combined-categories-section {
            background: #f8f9fa;
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }

        .combined-categories-section .category-section {
            border-bottom: none;
        }

        .project-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2);
        }

        .carousel-item {
            height: 300px;
            background: #f0f0f0;
        }

        .carousel-control-prev,
        .carousel-control-next {
            width: 40px;
            height: 40px;
            background: rgba(44, 62, 80, 0.8);
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%);
        }

        .carousel-control-prev:hover,
        .carousel-control-next:hover {
            background: var(--primary-red);
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            width: 20px;
            height: 20px;
        }

        .project-card .badge {
            font-size: 0.75rem;
            padding: 0.4rem 0.8rem;
            font-weight: 700;
            letter-spacing: 1px;
        }

        .project-card-clickable {
            cursor: pointer;
        }

        .project-card-clickable:hover {
            transform: scale(1.05) translateY(-8px);
        }

        /* --- Category Navigation --- */
        .category-nav {
            border-bottom: none;
            padding: 1rem 0;
            background: white;
            z-index: 101;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            margin-top: -10px;
            padding-top: calc(1rem + 10px);
        }

        .category-nav .container {
            overflow-x: visible;
            -webkit-overflow-scrolling: auto;
        }

        .category-nav .d-flex {
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.5rem 0;
        }

        .category-nav .category-btn {
            border-radius: 25px;
            padding: 7px 15px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            background: var(--gradient-red);
            border: none;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .category-nav .category-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
        }

        @media (max-width: 768px) {
            .category-nav .d-flex {
                justify-content: center;
                gap: 0.3rem;
            }
            
            .category-nav .category-btn {
                padding: 5px 12px;
                font-size: 0.8rem;
            }
        }