/* ========================================= */
/* --- RESET, FONT E VARIABILI GLOBALI --- */
/* ========================================= */
/* Font caricati via <link rel=preconnect> nell head delle pagine: l @import
   qui creava una catena bloccante CSS -> font che ritardava il primo render. */
:root {
    --primary-color: #3cb8dc;
    --whatsapp-color: #3ef061;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: Forza il blocco orizzontale su tutto il documento per evitare scorrimenti anomali */
html, body {
    font-family: 'Lato', sans-serif;
    background-color: #f5f5f5;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ========================================= */
/* --- NAVBAR --- */
/* ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    position: relative;
    z-index: 100;
}

.logo img {
    height: 113px;
    width: auto;
    display: block;
}

/* Nascondiamo l'hamburger su desktop, lo mostreremo solo da mobile */
.hamburger-btn {
    display: none;
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

    .nav-menu ul {
        display: flex;
        list-style: none;
        gap: 64px;
    }

    .nav-menu a {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 16px;
        color: var(--text-light);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--primary-color);
            text-decoration: underline;
            text-underline-offset: 6px;
            text-decoration-thickness: 3px;
        }

/* ========================================= */
/* --- HERO SECTION (HOME) --- */
/* ========================================= */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../public/sfondo-carpenteria-metallica.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-text-box {
    max-width: 900px;
}

    .hero-text-box h1 {
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 64px;
        color: var(--primary-color);
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero-text-box p {
        font-family: 'Lato', sans-serif;
        font-weight: 400;
        font-size: 24px;
        color: var(--text-light);
        line-height: 1.5;
        margin-bottom: 40px;
        max-width: 750px;
    }

/* ========================================= */
/* --- HERO SECTION (CHI SIAMO) --- */
/* ========================================= */
.hero-chi-siamo {
    min-height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../public/sfondo-coperture-industriali.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.text-center {
    text-align: center;
}

.hero-chi-siamo .hero-text-box {
    max-width: 1000px;
}

.mega-title {
    font-family: 'Roboto', sans-serif;
    font-size: 140px !important;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.subtitle-chi-siamo {
    font-family: 'Lato', sans-serif;
    font-size: 26px;
    color: #ffffff;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================= */
/* --- PULSANTI --- */
/* ========================================= */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-row {
    display: flex;
    gap: 20px;
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    width: 250px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-sm {
    width: 170px;
    height: 45px;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--text-light);
}

.btn:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================= */
/* --- BANNER CALL TO ACTION --- */
/* ========================================= */
.cta-banner {
    background-color: var(--primary-color);
    padding: 70px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

    .btn-white:hover {
        background-color: #ffffff;
        color: var(--primary-color);
        border-color: #ffffff;
    }

/* ========================================= */
/* --- SEZIONE PERCHÈ SCEGLIERCI E VALORI --- */
/* ========================================= */
.why-us-section, .values-section {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.values-section {
    background-color: #ffffff;
}

.why-us-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.why-us-header, .values-header {
    margin-bottom: 50px;
    max-width: 650px;
    text-align: left;
}

.values-header {
    text-align: center;
    max-width: 800px;
}

    .why-us-header h2, .values-header h2 {
        font-family: 'Roboto', sans-serif;
        font-size: 64px;
        font-weight: 700;
        color: #000000;
        margin-bottom: 15px;
    }

    .values-header h2 {
        font-size: 55px;
        color: var(--primary-color);
    }

    .why-us-header p, .values-header p {
        font-family: 'Lato', sans-serif;
        font-size: 20px;
        color: #333333;
        line-height: 1.5;
    }

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 280px;
}

.value-card {
    min-height: 250px;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card .icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.feature-card p {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ========================================= */
/* --- SEZIONE INFO & SLIDER (CHI SIAMO) --- */
/* ========================================= */
.about-info-section {
    padding: 100px 5%;
    background-color: #ffffff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-slider-box {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-viewport {
    width: 100%;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

    .slider-track img {
        width: 100%;
        height: auto;
        flex: 0 0 100%;
        object-fit: contain;
        display: block;
    }

.arrow {
    background: none;
    border: none;
    font-size: 35px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

    .arrow:hover {
        color: var(--primary-color);
    }

.about-text-box {
    flex: 1;
}

    .about-text-box h2 {
        font-family: 'Roboto', sans-serif;
        font-size: 55px;
        color: var(--primary-color);
        line-height: 1.1;
        margin-bottom: 30px;
    }

.text-and-badge {
    display: flex;
    align-items: center;
    gap: 30px;
}

.text-paragraphs {
    flex: 1;
}

    .text-paragraphs p {
        font-family: 'Lato', sans-serif;
        font-size: 18px;
        color: #333333;
        line-height: 1.6;
        margin-bottom: 20px;
    }

.badge-container img {
    width: 140px;
}

/* ========================================= */
/* --- SEZIONE SERVIZI (GRIGLIA FOTO) --- */
/* ========================================= */
.services-section {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

    .card-content h2 {
        font-family: 'Poppins', sans-serif;
        font-size: 28px;
        font-weight: 700;
        color: var(--text-light);
        margin-bottom: 10px;
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-content p {
        font-family: 'Lato', sans-serif;
        font-size: 16px;
        color: var(--text-light);
        line-height: 1.4;
        margin-bottom: 25px;
        min-height: 90px;
    }

    .card-content > .btn {
        margin-top: 0;
    }

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
    margin-top: 0;
}

/* ========================================= */
/* --- SEZIONE STATISTICHE (COUNTERS) --- */
/* ========================================= */
.stats-section {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.counter-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.counter {
    text-align: center;
}

    .counter .number {
        font-family: 'Roboto', sans-serif;
        font-size: 64px;
        font-weight: 900;
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 25px rgba(255, 255, 255, 0.2);
        margin-bottom: 12px;
    }

    .counter p {
        font-family: 'Poppins', sans-serif;
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.5px;
    }

/* ========================================= */
/* --- SEZIONE PREVENTIVO E CONTATTI --- */
/* ========================================= */
.contact-section {
    display: flex;
    gap: 60px;
    padding: 60px 5% 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.form-column, .info-column {
    flex: 1;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 46px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
}

.form-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .input-group label {
        font-family: 'Lato', sans-serif;
        font-size: 14px;
        color: #333333;
        margin-bottom: 8px;
    }

    .input-group input, .input-group textarea {
        font-family: 'Lato', sans-serif;
        font-size: 15px;
        padding: 15px;
        background-color: #f2f2f2;
        border: 1px solid transparent;
        border-radius: 4px;
        outline: none;
        transition: all 0.3s ease;
        resize: none;
    }

        .input-group input:focus, .input-group textarea:focus {
            border: 1px solid var(--primary-color);
            background-color: #ffffff;
        }

.submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.submit-btn {
    border: none;
}

.info-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
    align-items: center;
}

.info-text {
    text-align: center;
}

    /* Telefono ed email restano cliccabili (tocco-per-chiamare su mobile)
       ma non devono apparire come link blu sottolineati. */
    .info-text a {
        color: inherit;
        text-decoration: none;
    }

    .info-text h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 24px;
        color: #000000;
        margin-bottom: 10px;
    }

    .info-text p {
        font-family: 'Lato', sans-serif;
        font-size: 18px;
        color: #333333;
        margin-bottom: 25px;
    }

.social-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

    .social-icon:hover {
        transform: scale(1.1);
    }

/* ========================================= */
/* --- FOOTER --- */
/* ========================================= */
.site-footer {
    background-color: #111518;
    color: #ffffff;
    padding: 80px 5% 30px 5%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    /* 5 colonne: aggiunta "Dove siamo" con l indirizzo completo (NAP).
       Con 4 colonne fisse la quinta andava a capo rompendo la griglia. */
    grid-template-columns: 1.8fr 1fr 1.1fr 0.9fr 1.6fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Blocco indirizzo nel footer: <address> di default e in corsivo */
.footer-address {
    font-style: normal;
    line-height: 1.9;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        row-gap: 45px;
    }
}

.footer-col h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 25px;
}

.about-col h2 {
    font-size: 28px;
    line-height: 1.3;
}

.col-title {
    font-size: 24px;
}

.footer-col p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-col ul li {
        margin-bottom: 12px;
    }

        .footer-col ul li a {
            font-family: 'Lato', sans-serif;
            font-size: 16px;
            color: #ffffff;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-col ul li a:hover {
                color: var(--primary-color);
            }

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-icon {
    width: 45px;
    height: 45px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

    .footer-icon:hover {
        transform: scale(1.1);
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

    .footer-bottom p {
        font-family: 'Lato', sans-serif;
        font-size: 14px;
        color: #a0a0a0;
    }

/* ========================================= */
/* === STILI SPECIFICI PAGINA SERVIZI    === */
/* ========================================= */
.hero-servizi {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../public/sfondo-officina-carpenteria.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
}

.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ========================================= */
/* --- SEZIONE RECENSIONI (TESTIMONIALS) --- */
/* ========================================= */
.testimonials-section {
    background-color: #f5f5f5;
    padding: 80px 5%;
    text-align: center;
}

.testimonials-title {
    font-family: 'Roboto', sans-serif;
    font-size: 55px;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.testi-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.testi-arrow {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(60, 184, 220, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

    .testi-arrow:hover {
        transform: scale(1.05);
        background-color: #2da1c4;
    }

.testi-card {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex: 1;
}

    .testi-card h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 22px;
        color: #333333;
        margin-bottom: 10px;
    }

.stars {
    color: #ffc107;
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testi-card p {
    font-family: 'Lato', sans-serif;
    font-style: italic;
    color: #888888;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.testi-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dddddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .dot.active {
        background-color: var(--primary-color);
    }

/* ========================================= */
/* === STILI SPECIFICI PAGINA GALLERIA   === */
/* ========================================= */
.hero-galleria {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../public/galleria/coperture-industriali-15.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

.galleria-servizi-section {
    background-color: #f4f5f6;
    padding: 80px 5%;
}

.galleria-servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.galleria-card {
    background-color: #4dbfe1;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .galleria-card .icon-small {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .galleria-card h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .galleria-card p {
        font-family: 'Lato', sans-serif;
        font-size: 15px;
        line-height: 1.5;
    }

.masonry-section {
    background-color: #f4f5f6;
    padding: 0 5% 100px 5%;
}

.masonry-gallery {
    max-width: 1400px;
    margin: 0 auto;
    column-count: 3;
    column-gap: 15px;
}

    .masonry-gallery img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
        display: block;
        border-radius: 4px;
        transition: transform 0.3s ease;
        cursor: zoom-in;
    }

        .masonry-gallery img:hover {
            transform: scale(1.02);
        }

.galleria-title-container {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    width: 100%;
    text-align: left;
}

.masonry-title-container {
    max-width: 1400px;
    margin: 0 auto 40px auto;
    width: 100%;
    text-align: left;
    padding-top: 50px;
}

.hero-contatti {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../public/galleria/finestre-pareti-01.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

/* ========================================= */
/* === STILI PAGINE DETTAGLIO SERVIZI    === */
/* ========================================= */
.service-detail-section {
    background-color: #ffffff;
    padding: 80px 5%;
}

.service-detail-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-text {
    flex: 1;
}

    .service-text h1 {
        font-family: 'Poppins', sans-serif;
        font-size: 42px;
        color: #000000;
        line-height: 1.2;
        margin-bottom: 25px;
    }

    .service-text p {
        font-family: 'Lato', sans-serif;
        font-size: 18px;
        color: #333333;
        line-height: 1.6;
        margin-bottom: 20px;
    }

.service-buttons {
    display: flex;
    gap: 15px;
}

.service-image {
    flex: 1;
}

    .service-image img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

.service-gallery-section {
    background-color: #ffffff;
    padding: 0 5% 100px 5%;
}

    .service-gallery-section .section-title {
        margin-bottom: 50px;
    }

.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

    .service-gallery-grid img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 4px;
        transition: transform 0.3s ease;
        cursor: pointer;
    }

        .service-gallery-grid img:hover {
            transform: scale(1.03);
        }

/* ========================================= */
/* --- DESIGN STRUTTURA CUSTOM LIGHTBOX --- */
/* ========================================= */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 11000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-img-container {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .lightbox-img-container img {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
        border: 3px solid #fff;
        border-radius: 4px;
    }

/* Pulsante di Chiusura Modale */
.lightbox-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
    z-index: 11010;
}

/* Frecce Navigazione Sincronizzate */
.lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 60px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.2s, transform 0.2s;
    z-index: 11010;
}

    .lightbox-nav-arrow:hover {
        color: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }

.left-arrow {
    left: 40px;
}

.right-arrow {
    right: 40px;
}


/* =======================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ======================================================= */
@media (max-width: 768px) {

    /* --- MENU DROPDOWN FIX --- */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #111518;
        padding: 20px 0;
        z-index: 1000;
        transform: none !important; /* Annulla lo spostamento del desktop */
        box-sizing: border-box;
    }

    /* --- TESTO HERO FIX --- */
    .hero-text-box h1 {
        font-size: 38px;
        margin-bottom: 15px;
    }

    .hero-text-box p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    /* --- BOTTONI HERO FIX --- */
    .btn-row {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons {
        gap: 15px;
    }

    /* --- FIX MARGINI E SPAZI --- */
    .counter-box {
        gap: 30px !important;
        padding: 20px 5%;
    }

    .form-card {
        padding: 20px;
    }

    /* Impedisce alle sezioni di essere più larghe dello schermo */
    .hero-content,
    .why-us-section,
    .values-section,
    .contact-section,
    .galleria-servizi-section,
    .masonry-section {
        padding-left: 5%;
        padding-right: 5%;
        box-sizing: border-box;
    }

    /* Icone social del footer */
    .footer-socials a.footer-icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 10px !important;
    }

    /* --- NAVBAR E HAMBURGER MENU --- */
    .navbar {
        padding: 15px 20px;
        position: relative;
    }

    .logo img {
        height: 70px;
    }

    .hamburger-btn {
        display: flex;
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 38px;
        color: #ffffff;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-menu a {
        display: block;
        padding: 16px 20px;
        font-size: 17px;
        text-align: center;
    }

    /* --- LAYOUT GRIGLIE --- */
    .service-detail-container,
    .contact-section,
    .about-container {
        flex-direction: column;
    }

    .service-text,
    .service-image,
    .form-column,
    .info-column,
    .about-slider-box,
    .about-text-box {
        width: 100% !important;
    }

    .services-grid,
    .values-grid,
    .why-us-grid,
    .footer-grid,
    .galleria-servizi-grid {
        grid-template-columns: 1fr;
    }

    .service-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Masonry su singola colonna per leggibilità mobile */
    .masonry-gallery {
        column-count: 1;
    }

    /* --- TITOLI --- */
    .mega-title {
        font-size: 52px !important;
    }

    .section-title {
        font-size: 30px;
    }

    /* --- PULSANTI RESPONSIVE --- */
    .btn,
    .btn-sm,
    .service-buttons .btn,
    .hero-buttons .btn {
        width: 100% !important;
    }

    /* --- CUSTOM LIGHTBOX RESPONSIVE --- */
    .lightbox-nav-arrow {
        font-size: 40px;
        padding: 10px;
    }

    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }

    .lightbox-close-btn {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }
}

/* ==========================================================================
   STILI LIGHTBOX OTTIMIZZATI (No Bordo, Frecce Semplici, Contatore Sotto)
   ========================================================================== */

.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Gestito da JS */
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Contenitore dell'immagine e del contatore */
.lightbox-img-container {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    /* Immagine pulita senza bordi bianchi */
    .lightbox-img-container img {
        max-width: 100%;
        max-height: 75vh;
        object-fit: contain;
        border: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        background: transparent !important;
        padding: 0 !important;
    }

/* Numero della foto sotto l'immagine con font Poppins obbligatorio */
.lightbox-counter {
    color: #ffffff;
    font-family: 'Poppins', 'Roboto', sans-serif !important; /* Forza Poppins */
    font-size: 16px;
    margin-top: 15px;
    font-weight: 700; /* Lo mettiamo bello in grassetto come gli altri titoli */
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

/* Frecce di navigazione classiche e minimali */
.lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #ffffff;
    font-size: 45px;
    cursor: pointer;
    padding: 20px;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
    z-index: 100000;
}

    .lightbox-nav-arrow:hover {
        opacity: 1;
    }

.left-arrow {
    left: 40px;
}

.right-arrow {
    right: 40px;
}

/* Bottone di chiusura (X) in alto a destra */
.lightbox-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 100000;
}

    .lightbox-close-btn:hover {
        opacity: 1;
    }

/* Ottimizzazione per Mobile */
@media (max-width: 768px) {
    .lightbox-img-container {
        max-width: 90%;
    }

    .lightbox-nav-arrow {
        font-size: 35px;
        padding: 10px;
    }

    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }

    .lightbox-close-btn {
        top: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   STATO INVIO FORM (Integrazione dinamica per JavaScript)
   ========================================================================== */

.form-status {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    color: var(--primary-color); /* Azzurro del brand #3cb8dc */
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-sizing: border-box;
    background: none;
    border: none;
}

    /* Quando c'è contenuto, diventa visibile con animazione */
    .form-status:not(:empty) {
        display: block;
        animation: slideInStatus 0.4s ease forwards;
    }

/* Animazione fluida di comparsa del messaggio */
@keyframes slideInStatus {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BANNER FISSO ALLO SCHERMO - AZZURRO */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color); /* <--- Sostituisci il codice esadecimale con questo */
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

    /* Classe attivata dal JS per farlo salire */
    .cookie-banner.show {
        bottom: 0;
    }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

    .cookie-content p {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 400;
    }

    /* Link alla Privacy interno al testo */
    .cookie-content a {
        color: #ffffff;
        text-decoration: underline;
        font-weight: 600;
    }

        .cookie-content a:hover {
            text-decoration: none;
        }

/* IL PULSANTE BIANCO */
.cookie-btn {
    background-color: #ffffff;
    color: var(--primary-color); /* <--- Usa la variabile anche qui */
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

    /* Effetto al passaggio del mouse */
    .cookie-btn:hover {
        background-color: #f5f5f5; /* Grigio chiarissimo */
    }

/* Ottimizzazione per smartphone */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 15px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================= */
/* --- STILE PRIVACY LINK NEL FOOTER BOTTOM --- */
/* ========================================= */
.footer-privacy-link {
    color: #a0a0a0; /* Lo stesso identico grigio del tuo .footer-bottom p */
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 5px; /* Crea spazio dopo la barretta di separazione | */
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

    .footer-privacy-link:hover {
        color: var(--primary-color); /* Si illumina con l'azzurro del brand (#3cb8dc) */
        text-decoration: underline;
    }

/* ===========================================================
   ACCESSIBILITA e AREE TOCCABILI
   La checkbox privacy era 13x13px: sotto la soglia dei 24px
   richiesta da Google (WCAG 2.2) e difficile da premere su mobile.
   =========================================================== */
.form-privacy input[type="checkbox"],
input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Voci di menu e link del footer: area di tocco piu ampia */
.nav-menu ul li a {
    display: inline-block;
    padding: 8px 4px;
}

.footer-col ul li a {
    display: inline-block;
    padding: 4px 0;
}

/* Evita che il focus da tastiera sia invisibile */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Orari di apertura nel blocco indirizzo del footer */
.footer-orari {
    display: inline-block;
    margin-top: 10px;
    opacity: 0.85;
}

/* ===========================================================
   CONTENUTO DI APPROFONDIMENTO DELLE PAGINE SERVIZIO
   =========================================================== */
.service-content {
    background-color: #ffffff;
    padding: 70px 20px 30px;
}

.service-content-inner {
    max-width: 820px;
    margin: 0 auto;
    color: #2b3136;
    line-height: 1.75;
}

.service-content-inner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    color: #111518;
    margin-bottom: 22px;
    line-height: 1.25;
}

.service-content-inner h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 21px;
    color: #111518;
    margin: 38px 0 14px;
}

.service-content-inner p {
    margin-bottom: 16px;
}

.service-content-inner strong {
    color: #111518;
}

.service-content-inner a {
    color: var(--primary-color);
    font-weight: 700;
}

.service-cta-line {
    margin-top: 34px;
    padding: 18px 22px;
    background-color: #f2f6f8;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .service-content {
        padding: 45px 18px 20px;
    }
    .service-content-inner h2 { font-size: 25px; }
    .service-content-inner h3 { font-size: 19px; }
}
