:root {
            --primary-color: #1a3655;
            --primary-light: #1e659f;
            --secondary-color: #c72709;
            --secondary-light: #fa5e3c;
            --text-dark: #333333;
            --bg-light: #f8f9fa;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text-dark);
            overflow-x: hidden;
        }

        .navbar {
            background-color: rgba(255, 255, 255, 0.98);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 0.5rem 0;
            position: relative;
            z-index: 1000;
        }

        @media (min-width: 992px) {
            .navbar-toggler {
                display: none;
            }
        }

        .navbar-brand {
            position: relative;
            z-index: 1001;
            margin-bottom: -80px;
        }

        .navbar-brand img {
            max-height: 180px;
            width: auto;
            filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
        }

        .nav-link {
            color: var(--primary-color) !important;
            font-weight: 500;
            margin: 0 1rem;
            transition: color 0.3s;
        }

        .nav-link:hover {
            color: var(--secondary-color) !important;
        }
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(199, 39, 9, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 54, 85, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

        section {
            padding: 80px 0;
            min-height: 50vh;
        }

        section:nth-child(even) {
            background-color: var(--bg-light);
        }

        .hero {
            background: url('images/testata-trina.jpg') center/cover no-repeat fixed;
            color: white;
            padding: 180px 0 120px;
            text-align: center;
            position: relative;
            min-height: 600px;
            display: flex;
            align-items: center;
            z-index: 1;
            margin-top: -80px;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.2);
        }

        .hero .container {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
        }

        .hero p {
            font-size: 1.3rem;
            max-width: 800px;
            margin: 0 auto;
            font-weight: 300;
        }

        .section-title {
            color: var(--primary-color);
            font-size: 2.5rem;
            font-weight: 600;
            margin-bottom: 2rem;
            text-align: center;
            position: relative;
            padding-bottom: 1rem;
        }

        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: var(--secondary-light);
        }

        .technique-card {
            background: white;
            border-radius: 10px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .technique-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .technique-card h3 {
            color: var(--primary-light);
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .badge-custom {
            background-color: var(--secondary-light);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            display: inline-block;
            margin: 0.5rem;
            font-weight: 500;
        }

        .list-traditional {
            list-style: none;
            padding-left: 0;
        }

        .list-traditional li {
            padding: 0.5rem 0;
            padding-left: 2rem;
            position: relative;
        }

        .list-traditional li:before {
            content: "✦";
            position: absolute;
            left: 0;
            color: var(--secondary-color);
            font-size: 1.2rem;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            aspect-ratio: 3/4;
            background: #f0f0f0;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .lightbox-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            align-items: center;
            justify-content: center;
        }

        .lightbox-modal.active {
            display: flex;
        }

        .lightbox-content {
            max-width: 90%;
            max-height: 90%;
            position: relative;
        }

        .lightbox-content img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 40px;
            font-size: 40px;
            color: white;
            cursor: pointer;
            z-index: 10000;
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 50px;
            color: white;
            cursor: pointer;
            padding: 20px;
            user-select: none;
        }

        .lightbox-prev {
            left: 20px;
        }

        .lightbox-next {
            right: 20px;
        }

        .footer {
            background-color: var(--primary-color);
            color: white;
            padding: 3rem 0;
            text-align: center;
        }

        .contact-info {
            font-size: 1.1rem;
            margin: 1rem 0;
        }

        .contact-info i {
            color: var(--secondary-light);
            margin-right: 0.5rem;
        }

        .scroll-animate {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease-out;
        }

        .scroll-animate.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* MOBILE - Logo grande anche su schermi piccoli */
        @media (max-width: 768px) {
            .navbar {
                padding: 0.3rem 0;
            }
            
            .navbar-brand {
                margin-bottom: -60px;
            }
            
            .navbar-brand img {
                max-height: 140px !important; /* Logo grande anche su mobile */
            }
            
            .hero {
                margin-top: -60px;
                min-height: 500px;
                padding: 150px 0 100px;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
        }

/* MOBILE - Versione pulita e compatta */
@media (max-width: 768px) {
    .navbar {
        padding: 0.2rem 0; /* Navbar più stretta */
        background-color: white;
    }
    
    .navbar-brand {
        margin-bottom: 0; /* Logo NON sporge più */
        margin-top: 0;
    }
    
    .navbar-brand img {
        max-height: 100px !important; /* Logo più piccolo su mobile */
    }
    
    /* Hamburger allineato al logo */
    .navbar-toggler {
        border: 2px solid var(--primary-color);
        background: white;
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
        position: relative;
    }
    
    /* Rimuove bordo rosa */
    .navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none !important;
        box-shadow: 0 0 0 0.2rem rgba(26, 54, 85, 0.25) !important;
        border-color: var(--primary-color) !important;
    }
    
    /* Icona hamburger che diventa X quando aperto */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a3655' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.5em;
        height: 1.5em;
    }
    
    /* X quando menu è aperto */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a3655' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
    }
    
    /* Menu aperto */
    .navbar-collapse {
        margin-top: 10px;
        background: white;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .nav-link {
        margin: 0.3rem 0 !important;
        padding: 0.6rem 1rem !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero parte sotto la navbar */
    .hero {
        margin-top: 0; /* Niente sovrapposizione */
        min-height: 450px;
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Galleria Tombolo e Filet - 5 foto per riga */
.galleria-tombolo-filet {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.galleria-tombolo-filet img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .galleria-tombolo-filet {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .galleria-tombolo-filet {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* GALLERIA TOMBOLO E FILET - 5 FOTO PER RIGA */
.gallery-grid:has([data-gallery="tombolo"]) {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1rem;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .gallery-grid:has([data-gallery="tombolo"]) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .gallery-grid:has([data-gallery="tombolo"]) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* GALLERIA CORREDI STORICI - 2 RIGHE DA 3 COLONNE (6 IMMAGINI) */
.gallery-grid:has([data-gallery="generale"]) {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .gallery-grid:has([data-gallery="generale"]) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .gallery-grid:has([data-gallery="generale"]) {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}
