/* Reset e stili base - Aggiornato per recensioni */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ottimizzazioni performance */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Animazioni di entrata globali */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Applicazione animazioni agli elementi */
.chi-siamo, .prodotti, .processo, .gallery, .instagram-banner {
    animation: fadeInUp 0.8s ease-out;
}

.step:nth-child(odd) {
    animation: fadeInLeft 0.8s ease-out;
}

.step:nth-child(even) {
    animation: fadeInRight 0.8s ease-out;
}

.product-card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.product-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.product-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.gallery-item:nth-child(odd) {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.gallery-item:nth-child(even) {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    scroll-behavior: smooth;
}.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: transparent;
    position: absolute;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
    z-index: 10;
}

/* Logo Styles */
.logo h1 {
    color: #2c5530;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: -5px;
}

.logo .tagline {
    color: #6b8e23;
    font-size: 0.9rem;
    font-style: italic;
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-menu li a:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: black;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 80%;
}

/* Card Styles */
.card { 
    width: 262.5px; 
    height: 500px; 
    background: black; 
    border-radius: 43.75px; 
    border: 2px solid rgb(40, 40, 40); 
    padding: 8.75px; 
    position: relative; 
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.486); 
    margin: 0 auto;
}

/* Sposta il telefono più a destra su desktop */
@media (min-width: 769px) {
    .card {
        margin: 0 0 0 auto;
        transform: translateX(50px);
    }
} 

.card-int { 
    background-image: linear-gradient(to right bottom, #ff0000, #ff0045, #ff0078, #ea00aa, #b81cd7, #8a3ad6, #5746cf, #004ac2, #003d94, #002e66, #001d3a, #020812); 
    background-size: 200% 200%; 
    background-position: 0% 0%; 
    height: 100%; 
    border-radius: 31.25px; 
    transition: all 0.6s ease-out; 
    overflow: hidden; 
} 

.card:hover .card-int { 
    background-position: 100% 100%; 
} 

.top { 
    position: absolute; 
    top: 0px; 
    right: 50%; 
    transform: translate(50%, 0%); 
    width: 35%; 
    height: 18px; 
    background-color: black; 
    border-bottom-left-radius: 10px; 
    border-bottom-right-radius: 10px; 
} 

.speaker { 
    position: absolute; 
    top: 2px; 
    right: 50%; 
    transform: translate(50%, 0%); 
    width: 40%; 
    height: 2px; 
    border-radius: 2px; 
    background-color: rgb(20, 20, 20); 
} 

.camera { 
    position: absolute; 
    top: 7.5px; 
    right: 84%; 
    transform: translate(50%, 0%); 
    width: 7.5px; 
    height: 7.5px; 
    border-radius: 50%; 
    background-color: rgba(255, 255, 255, 0.048); 
} 

.int { 
    position: absolute; 
    width: 3.75px; 
    height: 3.75px; 
    border-radius: 50%; 
    top: 50%; 
    right: 50%; 
    transform: translate(50%, -50%); 
    background-color: rgba(0, 0, 255, 0.212); 
} 

.btn1, .btn2, .btn3, .btn4 { 
    position: absolute; 
    width: 2.5px; 
} 

.btn1, .btn2, .btn3 { 
    height: 56.25px; 
    top: 30%; 
    right: -5px; 
    background-image: linear-gradient(to right, #111111, #222222, #333333, #464646, #595959); 
} 

.btn2, .btn3 { 
    transform: scale(-1); 
    left: -5px; 
} 

.btn2, .btn3 { 
    transform: scale(-1); 
    height: 37.5px; 
} 

.btn2 { 
    top: 26% 
} 

.btn3 { 
    top: 36% 
} 

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 25px;
    transition: all 0.6s ease-out;
    transform: scale(1.01);
    min-height: 100%;
    min-width: 100%;
}

.card:hover .phone-video {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.instagram-banner {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.instagram-banner:hover {
    background: rgba(225, 48, 108, 0.8);
    transform: translateX(-50%) scale(1.1);
    cursor: pointer;
}

.instagram-banner:hover .instagram-icon {
    color: white;
}

.instagram-icon {
    width: 15px;
    height: 15px;
    color: white;
    transition: color 0.3s ease;
}

.instagram-text {
    white-space: nowrap;
    font-size: 0.75rem;
}

/* Hamburger Menu (per mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-hamburger {
    display: none;
}

.mobile-nav {
    display: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: black;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('immagini-ottimizzate/sfondohero.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Rimossa animazione pesante heroParallax per migliori performance */
}

/* Rimossi @keyframes heroParallax e shineOverlay per migliori performance */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(107, 142, 35, 0.1) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(107, 142, 35, 0.1) 100%);
    /* Rimossa animazione pesante shineOverlay per migliori performance */
    opacity: 0.4;
    pointer-events: none;
}

.hero .container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 40px;
    padding: 0 60px;
}

.hero-logo {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-image {
    width: 375px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    /* Rimossa animazione logoFloat per migliori performance */
}

/* Rimosso @keyframes logoFloat per migliori performance */

.logo-image:hover {
    transform: scale(1.1) rotateY(15deg) rotateX(5deg);
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.3)) 
           drop-shadow(0 0 30px rgba(107, 142, 35, 0.4));
    animation-play-state: paused;
}

.products-button {
    background: rgba(255, 255, 255, 0.1);
    color: black;
    padding: 7.5px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: none;
    letter-spacing: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.products-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Sezioni principali */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    color: #2c5530;
    text-align: center;
    margin-bottom: 50px;
}

/* Chi Siamo Section */
.chi-siamo-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.chi-siamo-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.chi-siamo-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.chi-siamo-image {
    flex: 1;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

/* Processo Produttivo Section */
.processo {
    background: #fff;
    padding: 80px 0;
}

.processo-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.step {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, rgb(248, 249, 250) 0%, #ffffff 50%, rgb(240, 242, 245) 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(107, 142, 35, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.step:hover::before {
    left: 100%;
}

.step:hover {
    transform: translateY(-10px) rotateX(10deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2),
               0 10px 20px rgba(107, 142, 35, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, rgb(248, 249, 250) 50%, rgb(235, 240, 245) 100%);
}

.step-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6b8e23 0%, #8fbc3f 50%, #6b8e23 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 3px 10px rgba(107, 142, 35, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.step:hover .step-number {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(107, 142, 35, 0.5),
               0 0 30px rgba(107, 142, 35, 0.3);
    background: linear-gradient(135deg, #8fbc3f 0%, #6b8e23 50%, #8fbc3f 100%);
}

.step h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #6b8e23;
}

/* Chi Siamo Section */
.chi-siamo {
    background: #ffffff;
    background-color: #ffffff;
    position: relative;
}

/* Logo Section */
.logo-section {
    background: #fff;
    padding: 80px 0;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    /* Rimossa animazione sectionLogoGlow per migliori performance */
}

/* Rimosso @keyframes sectionLogoGlow per migliori performance */

.section-logo:hover {
    transform: scale(1.1) rotateY(10deg) rotateX(5deg);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2))
           drop-shadow(0 0 50px rgba(107, 142, 35, 0.5));
    animation-play-state: paused;
}

/* Prodotti Section */
.prodotti {
    background: #fff;
    padding: 80px 0;
}

.prodotti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    justify-items: center;
}

.product-card {
    padding: 15px;
    width: 250px;
    min-height: 280px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f2f5 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 
               0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.product-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.product-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e8eaf0 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 
               0 10px 20px rgba(0, 0, 0, 0.15),
               0 0 30px rgba(107, 142, 35, 0.1);
    border-color: rgba(107, 142, 35, 0.3);
}

.product-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0 0 0;
    text-align: center;
}

.product-card .card-image {
    min-height: 140px;
    background-color: #fff;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.product-card:hover .card-image::after {
    left: 100%;
}

.product-card:hover .card-image {
    transform: scale(1.05);
    border-color: rgba(107, 142, 35, 0.4);
}

.product-card .card-body {
    margin: 13px 0 0 10px;
    color: rgb(184, 184, 184);
    font-size: 15px;
}

.product-card .footer {
    float: right;
    margin: 28px 0 0 18px;
    font-size: 13px;
    color: #b3b3b3;
}

.product-card .by-name {
    font-weight: 700;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.product-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
    width: 450px;
    min-height: 400px;
    border-radius: 15px;
    background: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
               0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid #e0e0e0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.product-modal .card-image {
    min-height: 180px;
    background-color: #fff;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.product-modal .card-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    text-align: center;
}

.product-modal .card-body {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #2c3e50;
}

/* Galleria Section */
.galleria {
    background: #fff;
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 150px;
    gap: 12px;
    margin-top: 50px;
    grid-auto-flow: dense;
}

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Lazy Loading for Products */
.lazy-product {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    opacity: 0.7;
    transition: opacity 0.5s ease-in-out;
}

.lazy-product::before {
    content: 'Caricamento...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

.lazy-product.loaded {
    opacity: 1;
}

.lazy-product.loaded::before {
    display: none;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    will-change: transform;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Mosaic pattern - different sizes for interwoven effect */
.gallery-item:nth-child(1) { grid-row: span 2; grid-column: span 2; }
.gallery-item:nth-child(2) { grid-row: span 1; }
.gallery-item:nth-child(3) { grid-row: span 1; }
.gallery-item:nth-child(4) { grid-row: span 2; }
.gallery-item:nth-child(5) { grid-row: span 1; grid-column: span 2; }
.gallery-item:nth-child(6) { grid-row: span 1; }
.gallery-item:nth-child(7) { grid-row: span 2; }
.gallery-item:nth-child(8) { grid-row: span 1; }
.gallery-item:nth-child(9) { grid-row: span 1; grid-column: span 2; }
.gallery-item:nth-child(10) { grid-row: span 2; }
.gallery-item:nth-child(11) { grid-row: span 1; }
.gallery-item:nth-child(12) { grid-row: span 2; grid-column: span 2; }
.gallery-item:nth-child(13) { grid-row: span 1; }
.gallery-item:nth-child(14) { grid-row: span 1; }
.gallery-item:nth-child(15) { grid-row: span 2; }
.gallery-item:nth-child(16) { grid-row: span 1; grid-column: span 2; }
.gallery-item:nth-child(17) { grid-row: span 1; }
.gallery-item:nth-child(18) { grid-row: span 2; }
.gallery-item:nth-child(19) { grid-row: span 1; }
.gallery-item:nth-child(20) { grid-row: span 1; grid-column: span 2; }
.gallery-item:nth-child(21) { grid-row: span 2; grid-column: span 2; }
.gallery-item:nth-child(22) { grid-row: span 1; }
.gallery-item:nth-child(23) { grid-row: span 1; }
.gallery-item:nth-child(24) { grid-row: span 2; }
.gallery-item:nth-child(25) { grid-row: span 1; grid-column: span 2; }
.gallery-item:nth-child(26) { grid-row: span 1; }
.gallery-item:nth-child(27) { grid-row: span 2; }
.gallery-item:nth-child(28) { grid-row: span 1; }
.gallery-item:nth-child(29) { grid-row: span 1; grid-column: span 2; }
.gallery-item:nth-child(30) { grid-row: span 2; }
.gallery-item:nth-child(31) { grid-row: span 1; }
.gallery-item:nth-child(32) { grid-row: span 2; grid-column: span 2; }
.gallery-item:nth-child(33) { grid-row: span 1; }
.gallery-item:nth-child(34) { grid-row: span 1; }
.gallery-item:nth-child(35) { grid-row: span 2; }
.gallery-item:nth-child(36) { grid-row: span 1; grid-column: span 2; }
.gallery-item:nth-child(37) { grid-row: span 1; }
.gallery-item:nth-child(38) { grid-row: span 2; }
.gallery-item:nth-child(39) { grid-row: span 1; }
.gallery-item:nth-child(40) { grid-row: span 1; grid-column: span 2; }
.gallery-item:nth-child(41) { grid-row: span 2; }
.gallery-item:nth-child(42) { grid-row: span 1; }

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
}

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

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ff6b6b;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 25px;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Contatti Section */
/* Location Section */ 
.location-section { 
    display: flex; 
    justify-content: space-between; 
    align-items: stretch; 
    padding: 80px 40px; 
    max-width: 1200px; 
    margin: 80px auto 0; 
    gap: 40px;
    background: #ffffff;
    background-color: #ffffff;
} 

.location-info { 
    text-align: center; 
    padding: 40px; 
    background: #ffffff; 
    border-radius: 10px; 
    box-shadow: 
        8px 8px 16px rgba(0,0,0,0.4), 
        -2px -2px 12px rgba(255,255,255,0.05), 
        inset -1px -1px 4px rgba(255,255,255,0.05), 
        inset 1px 1px 4px rgba(0,0,0,0.3); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(107, 142, 35, 0.2); 
    flex: 1; 
    color: #333; 
} 

.location-info h2 { 
    color: #6b8e23; 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 30px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
} 

.location-info p { 
    color: #555; 
    font-size: 1.1rem; 
    line-height: 1.6; 
    margin-bottom: 30px; 
    font-weight: 300; 
} 

.contact-info { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    align-items: center; 
} 

.contact-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    color: #555; 
    text-decoration: none; 
    font-size: 1rem; 
    font-weight: 400; 
    transition: all 0.3s ease; 
    padding: 10px 0; 
} 

.contact-item:hover { 
    color: #6b8e23; 
    transform: translateX(5px); 
} 

.contact-item svg { 
    width: 20px; 
    height: 20px; 
    fill: #6b8e23; 
    transition: fill 0.3s ease; 
} 

.contact-item:hover svg { 
    fill: #2c5530; 
} 

.social-links { 
    display: flex; 
    gap: 15px; 
    margin-top: 20px; 
    justify-content: center; 
} 

.social-links a { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 45px; 
    height: 45px; 
    background: rgba(107, 142, 35, 0.1); 
    border: 2px solid #6b8e23; 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    text-decoration: none; 
} 

.social-links a:hover { 
    background: #6b8e23; 
    transform: scale(1.05); 
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.4); 
} 

.social-links a svg { 
    width: 22px; 
    height: 22px; 
    fill: #6b8e23; 
    transition: fill 0.3s ease; 
} 

.social-links a:hover svg { 
    fill: #f0f0f0; 
} 

.map-container { 
    flex: 1; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 
        8px 8px 16px rgba(0,0,0,0.3), 
        -2px -2px 12px rgba(255,255,255,0.05); 
    border: 1px solid rgba(212, 175, 55, 0.2); 
} 

.map-container iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
    display: block; 
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        display: none;
    }
    
    .header .container {
        padding: 1rem 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu li a {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-hamburger {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        padding: 8px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }
    
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        z-index: 1000;
        transition: left 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav.active {
        left: 0;
    }
    
    .mobile-nav-menu {
        list-style: none;
        text-align: center;
    }
    
    .mobile-nav-menu li {
        margin: 2rem 0;
    }
    
    .mobile-nav-menu li a {
        text-decoration: none;
        color: #333;
        font-size: 1.5rem;
        font-weight: 600;
        transition: color 0.3s ease;
    }
    
    .mobile-nav-menu li a:hover {
        color: #6b8e23;
    }
    
    .mobile-hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo .tagline {
        font-size: 0.8rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        margin-top: 0;
        background-image: url('immagini-ottimizzate/heromobile.jpg'); /* Immagine specifica per mobile */
        background-attachment: scroll; /* Migliora le performance su mobile */
        background-position: center center; /* Centra meglio l'immagine */
        background-size: cover;
        height: 100vh;
        animation: none; /* Disabilita l'animazione su mobile per migliori performance */
    }
    
    .hero::before {
        animation: none; /* Disabilita anche l'animazione dell'overlay su mobile */
    }
    
    .hero .container {
        gap: 30px;
        padding: 80px 20px 20px 20px;
        justify-content: flex-start;
        flex-direction: column;
        align-items: center;
    }
    
    .logo-image {
        width: 220px;
        animation: none; /* Disabilita logoFloat su mobile */
        margin-top: -60px; /* Sposta il logo ancora più in alto su mobile */
    }
    
    .products-button {
        padding: 6.25px 12.5px;
        font-size: 0.875rem;
    }
    
    .card {
        width: 187.5px;
        height: 350px;
        border-radius: 31.25px;
        padding: 6.25px;
        margin: 0 auto;
        transform: none;
    }
    
    .phone-video {
        border-radius: 18.75px;
        transform: none; /* Rimuove scale su mobile */
        object-position: center center;
        transition: none; /* Disabilita transizioni su mobile */
    }
    
    .card:hover .phone-video {
        transform: none; /* Disabilita hover effects su mobile */
    }
    
    .instagram-banner {
        bottom: 10px;
        padding: 3.75px 7.5px;
        font-size: 0.625rem;
        border-radius: 10px;
        gap: 3.75px;
    }
    
    .instagram-icon {
        width: 12.5px;
        height: 12.5px;
    }
    
    .chi-siamo-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .chi-siamo-text {
        font-size: 1rem;
    }
    
    .about-image {
        max-width: 100%;
    }
    
    .instagram-text {
        font-size: 0.625rem;
    }
    
    /* Logo Section Responsive */
    .logo-section {
        padding: 60px 0;
    }
    
    .section-logo {
        max-width: 280px;
    }
    
    /* Responsive styles for new sections */
    .processo-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .step {
        padding: 20px 15px;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 120px;
        gap: 10px;
    }
    
    /* Disabilita animazioni galleria su mobile per performance */
    .gallery-item {
        transition: none;
        will-change: auto;
    }
    
    .gallery-item:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-item::before {
        display: none; /* Rimuove l'effetto shine su mobile */
    }
    
    .prodotti-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .product-card {
        width: 100%;
        max-width: 160px;
        min-height: 180px;
        padding: 8px;
    }
    
    .product-card .card-image {
        min-height: 90px;
    }
    
    .product-card .card-title {
        font-size: 12px;
        margin: 6px 0 0 0;
    }
    
    .product-modal-content {
        width: 90%;
        max-width: 350px;
        padding: 18px;
        min-height: 350px;
    }
    
    .product-modal .card-image {
        min-height: 130px;
    }
    
    .product-modal .card-title {
        font-size: 18px;
    }
    
    .product-modal .card-body {
        font-size: 14px;
    }
    
    /* Location section responsive styles */
    .location-section {
        flex-direction: column;
        padding: 40px 20px;
        margin: 40px auto 0;
        gap: 30px;
    }
    
    .location-info {
        padding: 30px 20px;
    }
    
    .location-info h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .location-info p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .contact-item {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    /* Sposta il numero di telefono più in basso su mobile */
    .contact-item[href*="tel:"] {
        margin-top: 20px;
    }
    
    .contact-item svg {
        width: 18px;
        height: 18px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .social-links a svg {
        width: 20px;
        height: 20px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        background-position: center center;
        background-size: cover;
        min-height: 100vh; /* Assicura che copra sempre l'intera altezza */
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .processo-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .prodotti-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 8px;
    }
    
    .product-card {
        max-width: 130px;
        min-height: 150px;
        padding: 6px;
    }
    
    .product-card .card-image {
        min-height: 70px;
    }
    
    .product-card .card-title {
        font-size: 11px;
        margin: 4px 0 0 0;
    }

}

/* Footer Styles */
.footer {
    background: #ffffff;
    color: #333;
    padding: 40px 0 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.footer-info p {
    margin: 8px 0;
    color: #555;
    font-size: 1rem;
}

.footer-social {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #333;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #6b8e23;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-copyright {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-copyright p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: #6b8e23;
    text-decoration: none;
    font-weight: 500;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Footer responsive styles */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-info h3 {
        font-size: 1.2rem;
    }
    
    .footer-info p {
        font-size: 0.9rem;
    }
    
    .footer-social {
        margin: 20px 0;
    }
    
    .footer-social a {
        width: 28px;
        height: 28px;
    }
}

/* Pulsante di chiamata floating */
.call-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6b8e23, #8fbc8f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 20px rgba(107, 142, 35, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

.call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(107, 142, 35, 0.6);
    background: linear-gradient(135deg, #8fbc8f, #6b8e23);
}

.call-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.call-button:hover svg {
    transform: rotate(15deg);
}

.call-text {
    position: absolute;
    right: 70px;
    background: rgba(107, 142, 35, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.call-button:hover .call-text {
    opacity: 1;
    transform: translateX(0);
}

/* Animazione pulsante */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(107, 142, 35, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(107, 142, 35, 0.8), 0 0 0 10px rgba(107, 142, 35, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(107, 142, 35, 0.4);
    }
}

.call-button {
    animation: pulse 2s infinite;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .call-button {
        width: 55px;
        height: 55px;
        bottom: 40px;
        right: 15px;
    }
    
    .call-button svg {
        width: 22px;
        height: 22px;
    }
    
    .call-text {
        font-size: 12px;
        padding: 6px 10px;
        right: 65px;
    }
}

@media (max-width: 480px) {
    .call-button {
        width: 50px;
        height: 50px;
        bottom: 35px;
        right: 10px;
    }
    
    .call-button svg {
        width: 20px;
        height: 20px;
    }
    
    .call-text {
        display: none; /* Nasconde il testo su schermi molto piccoli */
    }
}

@media (max-width: 480px) {
    .footer-social svg {
        width: 14px;
        height: 14px;
    }
}

/* Ottimizzazioni prestazioni */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

.lazy-video {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Ottimizzazioni per il rendering */
.hero, .prodotti, .galleria {
    will-change: transform;
    transform: translateZ(0);
}

/* Riduce il reflow durante lo scroll */
.navbar {
    contain: layout style paint;
}

/* Sezione Recensioni */
.recensioni {
    background: #ffffff !important;
    padding: 80px 0 !important;
    border-top: 1px solid #e0e0e0;
    display: block !important;
}

.recensioni h2 {
    text-align: center !important;
    font-size: 2.5rem !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    display: block !important;
}

.recensioni-header {
    text-align: center;
    margin-bottom: 50px;
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    color: #ffc107;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.rating-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.recensioni-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.recensioni-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
}

.recensione-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.recensione-header {
    margin-bottom: 15px;
}

.cliente-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cliente-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cliente-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.recensione-stars {
    display: flex;
    gap: 1px;
}

.recensione-stars .star {
    color: #ffc107;
    font-size: 0.9rem;
}

.recensione-text {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    font-size: 1rem;
}

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

.google-reviews-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4285f4;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.google-reviews-button:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    color: white;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Responsive per recensioni */
@media (max-width: 768px) {
    .recensioni {
        padding: 60px 0;
    }
    
    .recensioni h2 {
        font-size: 2rem;
    }
    
    .recensioni-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recensione-card {
        padding: 20px;
    }
    
    .google-rating {
        flex-direction: column;
        gap: 10px;
    }
    
    .google-reviews-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}