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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #1a365d;
            background: #f8fafc;
        }

      
        @keyframes scanLine {
            0% { left: -100%; }
            100% { left: 100%; }
        }

      
    /* Preloader stampante */
    #preloader{
        position:fixed;
        inset:0;
        display:flex;
        align-items:center;
        justify-content:center;
        background: #ffffff;
        z-index: 9999;
        transition: opacity 0.6s ease, visibility 0.6s ease;
        opacity: 1;
        visibility: visible;
    }
    #preloader.hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
    .printer-preloader{ width: 140px; height: 110px; position: relative; display: flex; align-items: center; justify-content: center; }
    .printer-preloader .printer-top{ position: absolute; top: 0; width: 88%; height: 26%; background: #2b2b2b; border-radius: 6px 6px 2px 2px; left: 6%; box-shadow: 0 4px 0 rgba(0,0,0,0.06) inset; }
    .printer-preloader .printer-body{ position: absolute; bottom: 10px; width: 92%; height: 54%; left: 4%; background: linear-gradient(180deg,#333,#1f1f1f); border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .printer-preloader .printer-slot{ width: 70%; height: 8px; background: linear-gradient(90deg,#f5f5f5 0 50%, rgba(255,255,255,0.05) 50% 100%); margin: 6px 0; border-radius: 2px; opacity: 0.9; }
    .printer-preloader .printer-tray{ position: absolute; bottom: -8px; width: 60%; height: 12px; background: #111; border-radius: 0 0 6px 6px; box-shadow: 0 6px 10px rgba(0,0,0,0.12); }
    .printer-preloader .printer-button{ position: absolute; right: 10%; top: 42%; width: 12px; height: 12px; background: #ffcc00; border-radius: 50%; box-shadow: 0 0 8px rgba(255,204,0,0.8); animation: pulse 1.6s infinite; }
    .printer-preloader .printer-paper{ position: absolute; top: 14%; width: 46%; height: 46%; left: 27%; background: linear-gradient(180deg,#fff,#f8f8f8); box-shadow: 0 6px 10px rgba(0,0,0,0.06); transform-origin: top center; animation: paperMove 1.3s infinite ease-in-out; border-radius: 2px; }
    @keyframes paperMove { 0%{ transform: translateY(-20px) scaleY(0.95); opacity: 0; } 25%{ transform: translateY(0) scaleY(1); opacity: 1; } 70%{ transform: translateY(6px) scaleY(0.98); opacity: 1; } 100%{ transform: translateY(-20px) scaleY(0.95); opacity: 0; } }
    @keyframes pulse { 0%{ transform: scale(0.95); opacity: 0.9; box-shadow: 0 0 4px rgba(255,204,0,0.6);} 50%{ transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px rgba(255,204,0,0.9);} 100%{ transform: scale(0.95); opacity: 0.9; box-shadow: 0 0 4px rgba(255,204,0,0.6);} }
    @media (max-width:480px){ .printer-preloader{ transform: scale(0.9); } }
   

        .preloader-printer-tray {
            width: 160px;
            height: 18px;
            background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
            margin: 15px auto 0;
            border-radius: 0 0 10px 10px;
            box-shadow: inset 0 3px 6px rgba(0,0,0,0.15);
        }

        .preloader-printer-paper {
            width: 100px;
            height: 70px;
            background: white;
            position: absolute;
            bottom: -30px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            border-radius: 4px;
            animation: printingPaper 3s infinite ease-in-out;
        }

        .preloader-printer-paper::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            height: 3px;
            background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
            box-shadow: 0 10px 0 #3b82f6, 0 20px 0 #3b82f6, 0 30px 0 #60a5fa;
            border-radius: 2px;
        }

        .preloader-printer-paper::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.15) 100%);
            animation: printProgress 1.5s infinite linear;
        }

        @keyframes printProgress {
            0% { height: 0%; }
            100% { height: 100%; }
        }

        @keyframes printingPaper {
            0%, 100% { 
                bottom: -30px; 
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            50% { 
                bottom: -80px; 
                opacity: 1;
            }
            90% {
                opacity: 0.3;
            }
        }

        .preloader-text {
            margin-top: 100px;
            color: white;
            font-size: 1.5rem;
            font-weight: 600;
            text-align: center;
            animation: textPulse 1.5s ease-in-out infinite;
        }

        @keyframes textPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .preloader-dots {
            color: white;
            font-size: 2rem;
            margin-top: 10px;
        }

        .preloader-dots span {
            animation: dotBounce 1.4s infinite;
            display: inline-block;
        }

        .preloader-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .preloader-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes dotBounce {
            0%, 80%, 100% { 
                transform: scale(0);
                opacity: 0;
            }
            40% { 
                transform: scale(1);
                opacity: 1;
            }
        }
        /* ============ FINE PRELOADER ============ */

        header {
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
            color: white;
            padding: 1.5rem 5%;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
            transition: all 0.3s;
        }

        header.scrolled {
            padding: 1rem 5%;
            box-shadow: 0 6px 30px rgba(30, 64, 175, 0.4);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            height: 50px;
            width: auto;
            transition: all 0.3s;
        }

        header.scrolled .logo {
            height: 40px;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            transition: all 0.3s;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: white;
            transition: all 0.3s;
            transform: translateX(-50%);
        }

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

        .nav-links a:hover {
            background: rgba(255,255,255,0.2);
        }

.hero {
  background: 
    linear-gradient(rgba(30, 64, 175, 0.6), rgba(59, 130, 246, 0.3)),
    url("img/bg.png") center/cover no-repeat;
  color: white;
  padding: 150px 5% 120px;
  text-align: center;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}

/* 📱 Tablet */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 5% 100px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

/* 📱 Smartphone orizzontale */
@media (max-width: 768px) {
  .hero {
    padding: 100px 5% 80px;
    margin-top: 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* 📱 Smartphone piccolo (es. iPhone SE) */
@media (max-width: 480px) {
  .hero {
    padding: 80px 5% 60px;
    margin-top: 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
  }
}


        /* Servizi */
#servizi {
    background: url("img/bg-servizi.jpg") center/cover no-repeat;
    background-size: cover;
    color: white;
}

/* Chi siamo */
/*chi-siamo {
    background: url("img/bg-chi-siamo.jpg") center/cover no-repeat;
    background-size: cover;
    color: white;
}
--]
/* Partner */
.partners {
    background: url("img/bg-partners.jpg") center/cover no-repeat;
    background-size: cover;
    color: white;
}

        .printer-icon {
            display: inline-block;
            margin: 2rem 0 4rem 0; /* Changed bottom margin from 2rem to 4rem */
            animation: fadeInUp 1s ease 0.4s backwards;
        }

        .printer {
            /* Increased size for hero prominence */
            width: 220px;
            height: 150px;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border-radius: 15px;
            position: relative;
            margin: 0 auto;
            box-shadow: 0 26px 60px rgba(0,0,0,0.35);
            transition: transform 0.3s ease;
        }


        

        .printer-top {
            width: 100%;
            height: 25px;
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
            border-radius: 15px 15px 0 0;
            position: relative;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        }

        .printer-top::after {
            content: '';
            position: absolute;
            top: 8px;
            right: 15px;
            width: 8px;
            height: 8px;
            background: #60a5fa;
            border-radius: 50%;
            box-shadow: -15px 0 0 #60a5fa, -30px 0 0 #60a5fa;
            animation: blink 2s infinite;
        }

        .printer-with-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.partner-logo-left,
.partner-logo-right {
    flex: 0 0 auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.partner-logo-left:hover,
.partner-logo-right:hover {
    opacity: 1;
}

.partner-logo-left img,
.partner-logo-right img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .printer-with-logos {
        gap: 1rem;
    }
    
    .partner-logo-left img,
    .partner-logo-right img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .printer-with-logos {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .partner-logo-left img,
    .partner-logo-right img {
        width: 100px;
    }
}

.partner-logo-left,
.partner-logo-right {
    flex: 0 0 auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.partner-logo-left:hover,
.partner-logo-right:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo-left img,
.partner-logo-right img {
    width: 230px;
    height: auto;
    object-fit: contain;
    display: block;
}

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .printer-body {
            position: relative;
            padding: 15px;
        }

        .printer-slot {
            width: 120px;
            height: 8px;
            background: #cbd5e1;
            margin: 0 auto 10px;
            border-radius: 4px;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
        }

        .printer-tray {
            width: 140px;
            height: 15px;
            background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
            margin: 10px auto 0;
            border-radius: 0 0 8px 8px;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        }

        .printer-paper {
            width: 110px;
            height: 72px;
            background: white;
            position: absolute;
            bottom: -28px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 10px 26px rgba(0,0,0,0.28);
            border-radius: 3px;
            /* pause by default; animation enabled when .printer.animate is present */
            animation-play-state: paused;
        }

        .printer-paper::before {
            content: '';
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            height: 3px;
            background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
            box-shadow: 0 8px 0 #3b82f6, 0 16px 0 #3b82f6, 0 24px 0 #60a5fa;
            border-radius: 2px;
        }

        .printer-paper::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.1) 100%);
            animation-play-state: paused;
        }

        @keyframes printing {
            0% { height: 0%; }
            100% { height: 100%; }
        }

        /* When hero printer is activated, run slower, subtle animations */
        .printer.animate .printer-paper {
            animation: printPaper 3.6s infinite ease-in-out;
            animation-play-state: running;
        }
        .printer.animate .printer-paper::after {
            animation: printing 3.2s infinite linear;
            animation-play-state: running;
        }

        /* Slightly slower, subtler button pulse when printer animates */
        .printer.animate .printer-button { animation: pulse 2.6s infinite; }

        /* Respect users who prefer reduced motion */
        @media (prefers-reduced-motion: reduce) {
            .printer, .printer * { animation: none !important; transition: none !important; }
            .whatsapp-fab { animation: none !important; }
        }

/* WhatsApp floating button */
.whatsapp-fab{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    /* show only the image: transparent background, keep clickable area */
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 1100;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.whatsapp-fab:hover{ transform: translateY(-4px); box-shadow: 0 10px 24px rgba(37,211,102,0.32); }
.whatsapp-fab:active{ transform: translateY(-1px); }
.whatsapp-fab img{ display:block; width: 56px; height: 56px; object-fit: contain; transition: transform 140ms ease; }
.whatsapp-fab:hover img{ transform: scale(1.02); }

/* Bubble sopra il pulsante WhatsApp: visibile solo su hover */
.whatsapp-bubble{
    position: absolute;
    bottom: 72px;
    right: 0;
    background: linear-gradient(90deg,#25D366,#128C7E);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transition: all 180ms ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-fab:hover .whatsapp-bubble{
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Slight attention animation */
@keyframes waPulse { 0%{ transform: scale(1); } 50%{ transform: scale(1.06); } 100%{ transform: scale(1); } }
.whatsapp-fab{ animation: waPulse 3.6s ease-in-out infinite; }

@media (max-width:480px){
    .whatsapp-fab{ right: 14px; bottom: 14px; width: 48px; height: 48px; }
    .whatsapp-fab img{ width: 48px; height: 48px; }
    .partner-kyocera { height: 64px; }
}

/* Subfooter credits */
.subfooter{
    background: #000;
    color: #fff;
    padding: 10px 5%;
}
.subfooter-inner{
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.9;
}
.subfooter .author{
    font-weight: 700;
    color: #ffd700; /* golden accent */
}

@media (max-width:480px){
    .subfooter-inner{ font-size: 0.85rem; }
}

/* stampante hero: visibile (regola temporanea rimossa) */

        @keyframes printPaper {
            0%, 100% { 
                bottom: -25px; 
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            50% { 
                bottom: -70px; 
                opacity: 1;
            }
            90% {
                opacity: 0.5;
            }
        }

        .printer-button {
            position: absolute;
            bottom: 20px;
            left: 20px;
            width: 12px;
            height: 12px;
            background: #3b82f6;
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
            }
            50% { 
                transform: scale(1.2);
                box-shadow: 0 0 20px rgba(59, 130, 246, 1);
            }
        }

      .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #1e40af;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.6s backwards;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);

    /* Nuovo modo per posizionarlo più in alto */
    position: relative;
    top: -50px; /* sposta verso l’alto di 80px, modifica se serve */
}

        .cta-button:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }


        .cta-button2 { 
            display: inline-block; 
            padding: 15px 40px; 
            background: white; 
            color: #1e40af; 
            text-decoration: none; 
            border-radius: 50px; 
            font-weight: bold; 
            transition: all 0.3s; 
            animation: fadeInUp 1s ease 0.6s backwards;
             box-shadow: 0 5px 20px rgba(0,0,0,0.2); 
            } 
           
 .cta-button3 { 
            display: inline-block; 
            padding: 15px 40px; 
         
            animation: fadeInUp 1s ease 0.6s backwards;
             box-shadow: 0 5px 20px rgba(0,0,0,0.2); 
            } 


        .section {
            padding: 80px 5%;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .section-title {
            font-size: 2.4rem;
            text-align: center;
            margin-bottom: 2.4rem;
            color: #0f172a;
            position: relative;
            font-weight: 700;
            letter-spacing: 0.2px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -14px;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 6px;
            background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
            border-radius: 6px;
            box-shadow: 0 6px 18px rgba(30,64,175,0.12);
        }

        .section.visible .section-title::after {
            width: 120px;
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            margin-top: 3rem;
        }

        .feature-card {
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            padding: 2rem 2.2rem;
            border-radius: 16px;
            box-shadow: 0 12px 30px rgba(16,24,40,0.06);
            transition: transform 300ms ease, box-shadow 300ms ease;
            border: 1px solid rgba(30,64,175,0.04);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(18px);
        }

        .section.visible .feature-card {
            opacity: 1;
            transform: translateY(0);
        }

        .section.visible .feature-card:nth-child(1) { transition-delay: 0.1s; }
        .section.visible .feature-card:nth-child(2) { transition-delay: 0.2s; }
        .section.visible .feature-card:nth-child(3) { transition-delay: 0.3s; }
        .section.visible .feature-card:nth-child(4) { transition-delay: 0.4s; }
        .section.visible .feature-card:nth-child(5) { transition-delay: 0.5s; }
        .section.visible .feature-card:nth-child(6) { transition-delay: 0.6s; }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
        }

        .feature-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 50px rgba(16,24,40,0.12);
            border-color: rgba(59,130,246,0.12);
        }

        .feature-icon {
            font-size: 2.4rem;
            margin-bottom: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 64px;
            height: 64px;
            border-radius: 12px;
            background: linear-gradient(135deg,#eef2ff,#e0f2fe);
            color: #1e40af;
            transition: transform 200ms ease, box-shadow 200ms ease;
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.12) rotate(3deg);
            box-shadow: 0 8px 20px rgba(16,24,40,0.06);
        }

        .feature-card h3 {
            color: #0f172a;
            margin-bottom: 0.6rem;
            font-size: 1.25rem;
            font-weight: 700;
        }

        .feature-card p {
            color: #475569;
            line-height: 1.6;
            margin: 0;
        }
        

        .about-content {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            padding: 3rem;
            border-radius: 20px;
            line-height: 1.9;
            font-size: 1.1rem;
            box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
            border-left: 5px solid #1e40af;
            opacity: 0;
            transform: translateX(-50px);
            transition: all 0.8s ease;
        }

        .section.visible .about-content {
            opacity: 1;
            transform: translateX(0);
        }

        .partners {
            background: white;
            padding: 60px 5%;
            text-align: center;
        }

        .partner-logos {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            flex-wrap: wrap;
            margin-top: 2rem;
        }

        .partner-logo {
            font-size: 2rem;
            font-weight: bold;
            color: #1e40af;
            padding: 2rem 3rem;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(30, 64, 175, 0.15);
            transition: all 0.5s;
            opacity: 0;
            transform: scale(0.8);
            text-decoration: none; /* Add this */
            display: inline-block; /* Add this */
        }

        .section.visible .partner-logo {
            opacity: 1;
            transform: scale(1);
        }

        .section.visible .partner-logo:nth-child(1) { transition-delay: 0.2s; }
        .section.visible .partner-logo:nth-child(2) { transition-delay: 0.4s; }

        .partner-logo:hover {
            transform: scale(1.1) rotate(-2deg);
            box-shadow: 0 10px 30px rgba(30, 64, 175, 0.25);
        }

        .logos-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
            justify-items: center;
        }

        .logo-item {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 80px;
            opacity: 0;
            transform: translateY(20px);
        }

        .section.visible .logo-item {
            opacity: 1;
            transform: translateY(0);
        }

        .section.visible .logo-item:nth-child(1) { transition-delay: 0.1s; }
        .section.visible .logo-item:nth-child(2) { transition-delay: 0.2s; }
        .section.visible .logo-item:nth-child(3) { transition-delay: 0.3s; }
        .section.visible .logo-item:nth-child(4) { transition-delay: 0.4s; }
        .section.visible .logo-item:nth-child(5) { transition-delay: 0.5s; }
        .section.visible .logo-item:nth-child(6) { transition-delay: 0.6s; }
        .section.visible .logo-item:nth-child(7) { transition-delay: 0.7s; }
        .section.visible .logo-item:nth-child(8) { transition-delay: 0.8s; }

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

        .logo-item img {
            width: 120px;
            height: 60px;
            object-fit: contain;
        }

        footer {
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
            color: white;
            padding: 3rem 5%;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        footer a {
  color: inherit;          /* usa lo stesso colore del testo circostante */
  text-decoration: none;   /* rimuove la sottolineatura */
  font-weight: 500;
  transition: opacity 0.3s ease;
}

/* About section grid for image + text */
.about-grid{
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: center;
}
.about-image img{ width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

@media (max-width: 900px){
    .about-grid{ grid-template-columns: 1fr; }
    .about-image{ order: -1; }
}

/* Contatti: layout a due colonne con mappa */
.contacts .lead{
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: #1e293b;
}

.contact-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch; /* stretch so both columns match height */
    max-width: 1200px;
    margin: 0 auto;
}

.contact-left{
    background: linear-gradient(135deg,#eff6ff,#dbeafe);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(30,64,175,0.06);
}

.contact-info-list{ list-style: none; padding: 0; margin: 0 0 1rem 0; }
.contact-info-list li{ margin: 0.6rem 0; color: #0f172a; }
.contact-info-list a{ color: #1e40af; text-decoration: none; }

.contact-right .map-wrap{ width: 100%; height: 100%; min-height: 220px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.contact-right iframe{ width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }

.contact-left .cta-button{ display: inline-block; margin-top: 1rem; }

/* Footer semplice */
.site-footer{ background: #3b82f6; color: #fff; padding: 14px 5%; text-align: center; }

/* Responsive: sezione preventivo nella landing */
@media (max-width: 900px){
  #preventivo > div{ grid-template-columns: 1fr !important; gap: 14px !important; }
}
@media (max-width: 600px){
  #preventivo{ padding-left: 5%; padding-right: 5%; }
  #preventivo select,
  #preventivo input[type="number"]{ font-size: 16px; /* evita zoom iOS */ }
  #preventivo .cta-button2{ width: 100%; text-align: center; padding: 12px 18px; }
}
.site-footer .footer-inner{ max-width:1200px; margin:0 auto; }

@media (max-width: 900px){
    .contact-grid{ grid-template-columns: 1fr; }
    .contact-right{ order: -1; }
}

footer a:hover {
  opacity: 0.7;            /* effetto leggero al passaggio del mouse */
}
.service-banner {
  width: 100%;
  overflow: hidden;
}

.service-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Offerte e Sconti */
.offerte-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
}

.offerte-banner img {
  width: 100%;
  max-width: 750px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Tablet */
@media (max-width: 1024px) {
  .service-banner img {
    height: 220px;
    object-position: center;
  }
}

/* Smartphone orizzontale */
@media (max-width: 768px) {
  .service-banner img {
    height: 180px;
  }
}

/* Smartphone piccolo (iPhone SE, Galaxy Mini ecc.) */
@media (max-width: 480px) {
  .service-banner img {
    height: 150px;
    object-position: center;
  }
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.partner-logo img {
  height: 70px;
  filter: none;
  transition: all 0.3s ease;
}

/* Kyocera logo slightly larger for emphasis */
.partner-kyocera {
    height: 84px; /* larger than default */
}

.partner-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

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

        .contact-info p {
            margin: 0.5rem 0;
            transition: all 0.3s;
        }

        .contact-info p:hover {
            transform: translateX(5px);
        }

        .falling-papers {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .falling-paper {
            position: absolute;
            width: 40px;
            height: 50px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
            /* Use longhand so per-child duration/delay still override correctly */
            animation-name: falling;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
            /* Ensure the 0% keyframe applies during the delay so papers start off-screen and invisible */
            animation-fill-mode: both;
            /* Hint for the browser to optimize animations */
            will-change: transform, opacity;
        }

        .falling-paper::before {
            content: '';
            position: absolute;
            top: 10px;
            left: 8px;
            right: 8px;
            height: 2px;
            background: rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 0 rgba(255, 255, 255, 0.3), 
                       0 16px 0 rgba(255, 255, 255, 0.3),
                       0 24px 0 rgba(255, 255, 255, 0.3);
        }

        @keyframes falling {
            0% {
                transform: translateY(-100%) rotate(5deg) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 0.8;
            }
            90% {
                opacity: 0.6;
            }
            100% {
                transform: translateY(100vh) rotate(-10deg) translateX(50px);
                opacity: 0;
            }
        }

        /* Paper variations */
        .falling-paper:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; transform: scale(0.8); }
        .falling-paper:nth-child(2) { left: 25%; animation-duration: 14s; animation-delay: 2s; transform: scale(1.2); }
        .falling-paper:nth-child(3) { left: 45%; animation-duration: 12s; animation-delay: 4s; transform: scale(0.9); }
        .falling-paper:nth-child(4) { left: 65%; animation-duration: 15s; animation-delay: 1s; transform: scale(1.1); }
        .falling-paper:nth-child(5) { left: 85%; animation-duration: 13s; animation-delay: 3s; transform: scale(1); }

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



        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2rem;
            }
            
            /* Mostra burger solo su mobile */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

/* Nascondi menu normale su mobile */
.nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding-top: 2rem;
}

/* Burger animato */
.burger div {
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links.show {
    transform: translateX(0);
}

.burger.toggle div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.toggle div:nth-child(2) {
    opacity: 0;
}
.burger.toggle div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

            .nav-links {
                gap: 1rem;
                font-size: 0.9rem;
            }
            
            .logo {
                height: 40px;
            }

            header.scrolled .logo {
                height: 35px;
            }

            .printer {
                width: 160px;    /* Adjusted width */
                height: 100px;   /* Adjusted height */
            }

            .printer-top {
                height: 20px;    /* Reduced top height */
            }

            .printer-top::after {
                top: 6px;        /* Adjusted LED position */
                width: 6px;      /* Smaller LEDs */
                height: 6px;
                right: 10px;
                box-shadow: -12px 0 0 #60a5fa, -24px 0 0 #60a5fa;
            }

            .printer-slot {
                width: 110px;    /* Adjusted slot width */
                height: 6px;     /* Smaller slot height */
                margin: 0 auto 8px;
            }

            .printer-tray {
                width: 130px;    /* Adjusted tray width */
                height: 12px;    /* Smaller tray height */
            }

            .printer-paper {
                width: 80px;     /* Adjusted paper width */
                height: 50px;    /* Adjusted paper height */
                bottom: -20px;   /* Adjusted paper position */
            }

            .printer-button {
                width: 10px;     /* Smaller button */
                height: 10px;
                bottom: 15px;
                left: 15px;
            }

            .printer-paper::before {
                top: 10px;       /* Adjusted paper lines */
                left: 10px;
                right: 10px;
                height: 2px;
                box-shadow: 0 6px 0 #3b82f6, 0 12px 0 #3b82f6, 0 18px 0 #60a5fa;
            }
        }
/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 24px);
    width: min(640px, calc(100% - 32px));
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 1100;
    font-size: 0.95rem;
}

.cookie-banner--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.cookie-banner__text {
    flex: 1 1 280px;
}

.cookie-banner__text a {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner__text a:hover,
.cookie-banner__text a:focus {
    color: #fde68a;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner__btn {
    background: #22c55e;
    color: #0f172a;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

.cookie-banner__btn:hover,
.cookie-banner__btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.5);
}

.cookie-banner__btn--ghost {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: none;
}

.cookie-banner__btn--ghost:hover,
.cookie-banner__btn--ghost:focus {
    color: #f1f5f9;
    border-color: #fbbf24;
    box-shadow: none;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 50%;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        width: calc(100% - 32px);
        transform: translate(-50%, 24px);
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-banner__btn {
        width: 100%;
        text-align: center;
    }
}

.cookie-preferences-button {
    position: fixed;
    left: 24px;
    bottom: 24px;
    border: none;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.3);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1050;
}

.cookie-preferences-button--visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-preferences-button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cookie-preferences-button {
        left: 16px;
        bottom: 16px;
        width: auto;
    }
}
