
:root {
  --blu: #0F2D5C;
  --blu-chiaro: #1E4A8C;
  --rosso: #DC2626;
  --rosso-scuro: #B91C1C;
  --giallo: #FBBF24;
  --verde: #16A34A;
  --whatsapp: #25D366;
  --bg: #FAFAFA;
  --testo: #1F2937;
  --grigio-chiaro: #F3F4F6;
  --grigio: #9CA3AF;
  --bianco: #FFFFFF;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--testo);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: 'Archivo Black', sans-serif; line-height: 1.2; letter-spacing: -0.02em; }

/* === HEADER === */
.top-bar {
  background: var(--blu);
  color: white;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

.top-bar span { margin: 0 8px; }

header {
  background: white;
  padding: 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blu) 0%, var(--rosso) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.logo-text { line-height: 1.1; }
.logo-text strong { font-family: 'Archivo Black'; font-size: 16px; color: var(--blu); display: block; }
.logo-text small { font-size: 11px; color: var(--grigio); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.btn-call-header {
  background: var(--rosso);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* === NAV === */
nav.main-nav {
  background: white;
  border-top: 1px solid var(--grigio-chiaro);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}

nav.main-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--testo);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--rosso);
  border-bottom-color: var(--rosso);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-chiaro) 100%);
  color: white;
  padding: 60px 16px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 70%);
}

.hero::after {
  content: '🔧';
  position: absolute;
  font-size: 240px;
  right: -40px;
  bottom: -60px;
  opacity: 0.05;
  transform: rotate(-15deg);
}

.hero-content { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  background: var(--giallo);
  color: var(--blu);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero h1 .accent { color: var(--giallo); }

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 32px;
  max-width: 700px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--rosso);
  color: white;
}

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

.btn-primary:hover, .btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 40px;
  max-width: 800px;
}

.hero-feature {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-feature-icon { font-size: 24px; margin-bottom: 8px; }
.hero-feature strong { display: block; font-size: 13px; color: var(--giallo); margin-bottom: 4px; }
.hero-feature small { font-size: 12px; opacity: 0.9; }

/* === SECTIONS === */
section { padding: 64px 16px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title small {
  color: var(--rosso);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--blu);
  max-width: 800px;
  margin: 0 auto;
}

/* === SERVIZI === */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.servizio-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.servizio-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--grigio-chiaro);
}

.servizio-card-content { padding: 24px; }

.servizio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--rosso) 0%, var(--giallo) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.servizio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--giallo);
}

.servizio-card:hover::before { opacity: 1; }

.servizio-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.servizio-card h3 {
  color: var(--blu);
  font-size: 20px;
  margin-bottom: 12px;
}

.servizio-card ul {
  list-style: none;
  margin-top: 12px;
}

.servizio-card li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--testo);
  padding-left: 20px;
  position: relative;
}

.servizio-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--verde);
  font-weight: bold;
}

/* === PERCHÉ NOI === */
.perche-noi {
  background: linear-gradient(135deg, var(--grigio-chiaro) 0%, white 100%);
}

.vantaggi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.vantaggio {
  background: white;
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--rosso);
}

.vantaggio:nth-child(2) { border-top-color: var(--giallo); }
.vantaggio:nth-child(3) { border-top-color: var(--verde); }
.vantaggio:nth-child(4) { border-top-color: var(--blu); }
.vantaggio:nth-child(5) { border-top-color: var(--rosso); }
.vantaggio:nth-child(6) { border-top-color: var(--giallo); }

.vantaggio-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.vantaggio h3 {
  color: var(--blu);
  font-size: 18px;
  margin-bottom: 12px;
}

.vantaggio p {
  color: var(--testo);
  font-size: 14px;
}

/* === CTA BOX === */
.cta-box {
  background: linear-gradient(135deg, var(--rosso) 0%, var(--rosso-scuro) 100%);
  color: white;
  padding: 48px 32px;
  border-radius: 20px;
  text-align: center;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '⚡';
  position: absolute;
  font-size: 200px;
  right: -30px;
  top: -30px;
  opacity: 0.1;
  transform: rotate(15deg);
}

.cta-box h3 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 17px;
  margin-bottom: 28px;
  position: relative;
  opacity: 0.95;
}

.cta-box .btn-primary {
  background: white;
  color: var(--rosso);
}

/* === ZONE === */
.zone-section {
  background: var(--blu);
  color: white;
}

.zone-section .section-title h2 { color: white; }
.zone-section .section-title small { color: var(--giallo); }

.comuni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 32px;
}

.comune-tag {
  background: rgba(255,255,255,0.1);
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
  display: block;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.comune-tag:hover {
  background: var(--giallo);
  color: var(--blu);
  border-color: var(--giallo);
  transform: translateY(-2px);
}

a.marca-tag {
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

/* === MARCHE === */
.marche-section { background: white; }

.marche-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.marca-tag {
  background: var(--grigio-chiaro);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--testo);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.marca-tag:hover {
  background: var(--blu);
  color: white;
  transform: translateY(-2px);
}

/* === BANNER GIRANTE === */
.banner-scrolling {
  background: linear-gradient(90deg, var(--rosso) 0%, #B91C1C 50%, var(--rosso) 100%);
  color: white;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  border-top: 3px solid var(--giallo);
  border-bottom: 3px solid var(--giallo);
}

.banner-scrolling-track {
  display: flex;
  white-space: nowrap;
  animation: slideLeft 8s linear infinite;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.banner-scrolling-track span {
  margin: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.banner-scrolling-track span::after {
  content: '⚡';
  font-size: 16px;
  color: var(--giallo);
  margin-left: 8px;
}

@keyframes slideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.banner-scrolling-track {
  animation-duration: 8s !important;
}

/* === OROLOGIO TASTO GRANDE LAMPEGGIANTE LUCIDO === */
.live-clock {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-chiaro) 50%, var(--blu) 100%);
  padding: 20px 16px;
}

.clock-mega-button {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 50%, #16A34A 100%);
  background-size: 200% 200%;
  color: white;
  padding: 22px 24px;
  border-radius: 22px;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(22,163,74,0.5), inset 0 2px 0 rgba(255,255,255,0.3), inset 0 -3px 0 rgba(0,0,0,0.15);
  animation: clockShine 3s ease-in-out infinite, clockPulse 1.6s ease-in-out infinite, clockGradient 4s ease-in-out infinite;
  border: 3px solid var(--giallo);
}

/* Effetto LUCIDO che scorre */
.clock-mega-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shineMove 2.5s ease-in-out infinite;
  pointer-events: none;
}

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

@keyframes clockShine {
  0%, 100% { 
    box-shadow: 0 12px 35px rgba(22,163,74,0.5), inset 0 2px 0 rgba(255,255,255,0.3), inset 0 -3px 0 rgba(0,0,0,0.15);
  }
  50% { 
    box-shadow: 0 16px 50px rgba(22,163,74,0.8), inset 0 2px 0 rgba(255,255,255,0.5), inset 0 -3px 0 rgba(0,0,0,0.15);
  }
}

@keyframes clockPulse {
  0%, 100% { 
    transform: scale(1);
    border-color: var(--giallo);
  }
  50% { 
    transform: scale(1.02);
    border-color: #FFEB3B;
  }
}

@keyframes clockGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.clock-status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--giallo);
  color: var(--blu);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.clock-status-row .pulse-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #DC2626;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(220,38,38,0.9), 0 0 0 0 rgba(220,38,38,0.6);
  animation: pulseDotFast 0.8s ease-in-out infinite;
}

@keyframes pulseDotFast {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 12px rgba(220,38,38,0.9), 0 0 0 0 rgba(220,38,38,0.6);
  }
  50% { 
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(220,38,38,1), 0 0 0 8px rgba(220,38,38,0);
  }
}

.clock-datetime {
  display: block;
  font-family: 'Archivo Black', monospace;
  font-size: clamp(20px, 4vw, 30px);
  letter-spacing: 1.5px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin: 8px 0;
}

.clock-orari {
  display: block;
  background: rgba(0,0,0,0.25);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  letter-spacing: 1px;
}

.clock-mega-button.closed {
  background: linear-gradient(135deg, #6B7280 0%, #4B5563 50%, #6B7280 100%);
  background-size: 200% 200%;
  border-color: var(--giallo);
  animation: clockGradient 4s ease-in-out infinite;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.clock-mega-button.closed .clock-status-row {
  background: #FCD34D;
  color: var(--testo);
}

.clock-mega-button.closed .clock-status-row .pulse-dot {
  background: #6B7280;
  box-shadow: none;
  animation: none;
}

/* === TASTO CHIAMA LAMPEGGIANTE GRANDE === */
.big-call-button {
  display: block;
  background: linear-gradient(135deg, var(--rosso) 0%, var(--rosso-scuro) 100%);
  color: white;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  text-align: center;
  margin: 16px auto;
  max-width: 420px;
  box-shadow: 0 6px 18px rgba(220,38,38,0.4);
  animation: bigPulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.big-call-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% { width: 0; height: 0; opacity: 1; }
  100% { width: 400px; height: 400px; opacity: 0; }
}

.big-call-button .label-top {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.big-call-button .number {
  display: block;
  font-size: clamp(20px, 4.5vw, 28px);
  letter-spacing: 1px;
}

.big-call-button .label-bottom {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

@keyframes bigPulse {
  0%, 100% { 
    box-shadow: 0 6px 18px rgba(220,38,38,0.4), 0 0 0 0 rgba(220,38,38,0.7);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 8px 24px rgba(220,38,38,0.6), 0 0 0 12px rgba(220,38,38,0);
    transform: scale(1.01);
  }
}

/* === 3 TASTI LAMPEGGIANTI === */
.flash-buttons-section {
  background: var(--bg);
  padding: 48px 16px;
}

.flash-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* === FLASH SECTION CON 3 TASTI LAMPEGGIANTI === */
@keyframes footerPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(220,38,38,0.4), 0 0 0 0 rgba(220,38,38,0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 24px rgba(220,38,38,0.6), 0 0 0 12px rgba(220,38,38,0);
    transform: scale(1.03);
  }
}

.flash-section {
  padding: 24px 16px;
}

.flash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .flash-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flash-btn {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  border: 2px solid white;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.flash-btn:hover { 
  transform: scale(1.08) rotate(-1deg); 
}

/* Effetto LUCIDO che scorre su tutti i tasti */
.flash-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: flashShine 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes flashShine {
  0% { left: -150%; }
  100% { left: 150%; }
}

.flash-btn-1 {
  background: linear-gradient(135deg, #DC2626 0%, #FF6B35 50%, #FBBF24 100%);
  background-size: 200% 200%;
  color: white;
  animation: flash1 0.9s ease-in-out infinite, gradientMove1 3s ease infinite, wobble 2.5s ease-in-out infinite;
}

.flash-btn-2 {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #06B6D4 100%);
  background-size: 200% 200%;
  color: white;
  animation: flash2 0.9s ease-in-out infinite, gradientMove2 3s ease infinite, wobble 2.5s ease-in-out infinite;
  animation-delay: 0s, 0s, 0.4s;
}

.flash-btn-3 {
  background: linear-gradient(135deg, #16A34A 0%, #84CC16 50%, #FACC15 100%);
  background-size: 200% 200%;
  color: white;
  animation: flash3 0.9s ease-in-out infinite, gradientMove3 3s ease infinite, wobble 2.5s ease-in-out infinite;
  animation-delay: 0s, 0s, 0.8s;
}

@keyframes flash1 {
  0%, 100% { 
    box-shadow: 0 8px 25px rgba(220,38,38,0.5), 0 0 0 0 rgba(220,38,38,0.8), inset 0 0 20px rgba(255,255,255,0.1);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 14px 40px rgba(220,38,38,0.8), 0 0 0 18px rgba(220,38,38,0), inset 0 0 30px rgba(255,255,255,0.3);
    transform: scale(1.05);
  }
}

@keyframes flash2 {
  0%, 100% { 
    box-shadow: 0 8px 25px rgba(30,64,175,0.5), 0 0 0 0 rgba(30,64,175,0.8), inset 0 0 20px rgba(255,255,255,0.1);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 14px 40px rgba(30,64,175,0.8), 0 0 0 18px rgba(30,64,175,0), inset 0 0 30px rgba(255,255,255,0.3);
    transform: scale(1.05);
  }
}

@keyframes flash3 {
  0%, 100% { 
    box-shadow: 0 8px 25px rgba(22,163,74,0.5), 0 0 0 0 rgba(22,163,74,0.8), inset 0 0 20px rgba(255,255,255,0.1);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 14px 40px rgba(22,163,74,0.8), 0 0 0 18px rgba(22,163,74,0), inset 0 0 30px rgba(255,255,255,0.3);
    transform: scale(1.05);
  }
}

/* Movimento sfondo gradient */
@keyframes gradientMove1 {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
@keyframes gradientMove2 {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes gradientMove3 {
  0%, 100% { background-position: 100% 0%; }
  50% { background-position: 0% 100%; }
}

/* Effetto wobble (ondeggio) */
@keyframes wobble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.02) rotate(-1deg); }
  50% { transform: scale(1.04) rotate(0deg); }
  75% { transform: scale(1.02) rotate(1deg); }
}

.flash-btn-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  animation: iconBounce 0.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.15); }
}

.flash-btn-title {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.flash-btn-sub {
  font-size: 13px;
  opacity: 0.95;
  font-weight: 700;
  display: block;
  position: relative;
  z-index: 2;
}

/* === 2 TASTI MEZZO PAGINA === */
.middle-cta-section {
  padding: 48px 16px;
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-chiaro) 100%);
}

.middle-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.middle-cta-btn {
  background: white;
  color: var(--blu);
  padding: 32px 28px;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  border: 4px solid transparent;
  display: block;
}

.middle-cta-btn.rapido {
  border-color: var(--giallo);
}

.middle-cta-btn.pronto {
  border-color: var(--rosso);
  background: linear-gradient(135deg, var(--rosso) 0%, var(--rosso-scuro) 100%);
  color: white;
  animation: prontoFlash 2s infinite;
}

.middle-cta-btn:hover {
  transform: scale(1.04);
}

@keyframes prontoFlash {
  0%, 100% { box-shadow: 0 10px 30px rgba(220,38,38,0.4); }
  50% { box-shadow: 0 10px 40px rgba(220,38,38,0.7), 0 0 0 12px rgba(220,38,38,0); }
}

.middle-cta-btn .ico-big {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
}

.middle-cta-btn h3 {
  font-size: 22px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.middle-cta-btn p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 16px;
  font-weight: 600;
}

.middle-cta-btn .btn-inside {
  display: inline-block;
  background: var(--giallo);
  color: var(--blu);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
}

.middle-cta-btn.pronto .btn-inside {
  background: white;
  color: var(--rosso);
}

/* === 2 TASTI LAMPEGGIANTI UNIVERSALI (PER TUTTE LE PAGINE) === */
.universal-flash-section {
  padding: 18px 16px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
}

.universal-flash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
}

.uf-btn {
  display: block;
  padding: 14px 10px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  position: relative;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* Effetto LUCIDO che scorre */
.uf-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: flashShine 1.8s ease-in-out infinite;
  pointer-events: none;
}

/* Tasto 1 - TECNICO A CASA */
.uf-tecnico {
  background: linear-gradient(135deg, #DC2626 0%, #F97316 50%, #FBBF24 100%);
  background-size: 200% 200%;
  color: white;
  animation: ufFlashRed 1s ease-in-out infinite, ufGradient1 3.5s ease infinite, ufWobble 2.5s ease-in-out infinite;
}

/* Tasto 2 - CHIAMA SUBITO */
.uf-chiama {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 50%, #84CC16 100%);
  background-size: 200% 200%;
  color: white;
  animation: ufFlashGreen 1s ease-in-out infinite, ufGradient2 3.5s ease infinite, ufWobble 2.5s ease-in-out infinite;
  animation-delay: 0s, 0s, 0.5s;
}

@keyframes ufFlashRed {
  0%, 100% { 
    box-shadow: 0 4px 14px rgba(220,38,38,0.5), 0 0 0 0 rgba(220,38,38,0.7);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 8px 22px rgba(220,38,38,0.7), 0 0 0 8px rgba(220,38,38,0);
    transform: scale(1.02);
  }
}

@keyframes ufFlashGreen {
  0%, 100% { 
    box-shadow: 0 4px 14px rgba(22,163,74,0.5), 0 0 0 0 rgba(22,163,74,0.7);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 8px 22px rgba(22,163,74,0.7), 0 0 0 8px rgba(22,163,74,0);
    transform: scale(1.02);
  }
}

@keyframes ufGradient1 {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
@keyframes ufGradient2 {
  0%, 100% { background-position: 100% 0%; }
  50% { background-position: 0% 100%; }
}

@keyframes ufWobble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.01) rotate(-0.5deg); }
  50% { transform: scale(1.02) rotate(0deg); }
  75% { transform: scale(1.01) rotate(0.5deg); }
}

.uf-icon {
  font-size: 22px;
  margin-bottom: 4px;
  display: block;
  animation: iconBounce 0.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.uf-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
  display: block;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.uf-sub {
  font-size: 10px;
  font-weight: 700;
  display: block;
  position: relative;
  z-index: 2;
  opacity: 0.95;
  line-height: 1.3;
}

.uf-number {
  font-family: 'Archivo Black', monospace;
  font-size: 16px;
  letter-spacing: 0.5px;
  margin: 3px 0;
  display: block;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}

/* === GPS TECNICO DI ZONA - COMPATTO === */
.gps-section {
  padding: 16px 16px;
  background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%);
}

.gps-tecnico-box {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(22,163,74,0.2);
  border: 2px solid #16A34A;
  text-decoration: none;
  display: block;
  padding: 14px 16px;
  color: var(--testo);
}

.gps-info-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gps-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #16A34A;
  font-weight: 700;
}

.gps-live-dot {
  width: 10px;
  height: 10px;
  background: #16A34A;
  border-radius: 50%;
  display: inline-block;
  animation: gpsBlink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes gpsBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.gps-data-row {
  font-size: 14px;
  color: var(--testo);
  font-weight: 600;
}

.gps-call-compact {
  font-size: 13px;
  color: var(--rosso);
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px solid #DCFCE7;
}

/* === WIDGET COMUNI UNIVERSALE === */
.comuni-widget-section {
  padding: 32px 16px;
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  border-top: 4px solid var(--blu);
  border-bottom: 4px solid var(--blu);
}

.comuni-widget-title {
  text-align: center;
  margin-bottom: 20px;
}

.comuni-widget-title h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--blu);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comuni-widget-title p {
  color: var(--grigio);
  font-size: 14px;
  font-weight: 600;
}

.comuni-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.comune-widget-btn {
  background: white;
  padding: 14px 8px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--testo);
  font-weight: 800;
  font-size: 14px;
  border: 2px solid var(--blu);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: block;
  cursor: pointer;
  transition: all 0.2s;
}

.comune-widget-btn:hover, .comune-widget-btn:active {
  background: var(--blu);
  color: white;
  border-color: var(--giallo);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15,45,92,0.3);
}

.comune-widget-btn span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.6;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comune-widget-btn:hover span, .comune-widget-btn:active span {
  opacity: 0.9;
}

/* === WIDGET MARCHE UNIVERSALE === */
.marche-widget-section {
  padding: 32px 16px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border-top: 4px solid var(--giallo);
  border-bottom: 4px solid var(--giallo);
}

.marche-widget-title {
  text-align: center;
  margin-bottom: 20px;
}

.marche-widget-title h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--blu);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.marche-widget-title p {
  color: var(--grigio);
  font-size: 14px;
  font-weight: 600;
}

.marche-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.marca-widget-btn {
  background: white;
  padding: 14px 8px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--testo);
  font-weight: 800;
  font-size: 14px;
  border: 2px solid #FBBF24;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: block;
  cursor: pointer;
  transition: all 0.2s;
}

.marca-widget-btn:hover, .marca-widget-btn:active {
  background: var(--blu);
  color: white;
  border-color: var(--giallo);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15,45,92,0.3);
}

.marca-widget-btn span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.6;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === CONTATTI === */
.contatto-card {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  padding: 20px;
  border-radius: 16px;
  border-left: 5px solid var(--giallo);
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.contatto-card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  color: var(--blu);
  margin-bottom: 10px;
}

.contatto-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.orari-tabella {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.orari-tabella th {
  background: var(--blu);
  color: white;
  padding: 12px;
  text-align: left;
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.orari-tabella td {
  padding: 12px;
  background: white;
  border-bottom: 1px solid #F3F4F6;
  font-size: 15px;
}

.orari-tabella tr:nth-child(even) td {
  background: #FAFAFA;
}

.orari-tabella tr:last-child td {
  border-bottom: none;
}

.orari-tabella tr:last-child td {
  background: #FEF3C7;
  font-weight: 700;
  color: var(--blu);
}

/* === FAQ === */
.faq-section { background: var(--grigio-chiaro); }

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--blu);
  font-size: 16px;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 28px;
  color: var(--rosso);
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--testo);
  font-size: 15px;
}

.faq-item.open .faq-answer { padding: 0 24px 20px; max-height: 500px; }

/* === CODICI ERRORE === */
.codici-section { background: white; }

.marche-codici-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.marca-codice-card {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-chiaro) 100%);
  color: white;
  padding: 28px 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s;
  display: block;
}

.marca-codice-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.marca-codice-card.bosch { background: linear-gradient(135deg, #16A34A 0%, #15803D 100%); }
.marca-codice-card.miele { background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%); }
.marca-codice-card.whirlpool { background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%); }
.marca-codice-card.samsung { background: linear-gradient(135deg, #1428A0 0%, #0C1F7C 100%); }
.marca-codice-card.lg { background: linear-gradient(135deg, #A50034 0%, #780028 100%); }

.marca-codice-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: white;
}

.marca-codice-card p {
  font-size: 13px;
  opacity: 0.9;
}

.marca-codice-card .arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 20px;
}

/* === FOOTER === */
footer {
  background: var(--blu);
  color: white;
  padding: 48px 16px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

footer h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--giallo);
}

footer ul { list-style: none; }
footer li { padding: 4px 0; font-size: 14px; }
footer a { color: white; text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; color: var(--giallo); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  opacity: 0.7;
}

/* === MOBILE FLOAT BUTTONS === */
.float-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}

.float-btn:hover { transform: scale(1.1); }

.float-btn.call { background: var(--rosso); animation: pulse 2s infinite; }
.float-btn.whatsapp { background: var(--whatsapp); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* === MOBILE === */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 60px; }
  section { padding: 48px 16px; }
  .servizi-grid { grid-template-columns: 1fr; }
  .header-content { flex-direction: row; }
  .btn-call-header span { display: none; }
  .btn-call-header::after { content: '329 8511737'; }
  nav.main-nav ul { padding: 0 8px; }
  nav.main-nav a { padding: 12px; font-size: 13px; }
}

@media (min-width: 769px) {
  .float-buttons { display: none; }
}

/* Animation on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === PAGINE === */
.page { display: block; }
.page.active { display: block; }

.page-hero {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-chiaro) 100%);
  color: white;
  padding: 48px 16px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 24px;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: 16px;
  opacity: 0.85;
}

.breadcrumb a { color: var(--giallo); text-decoration: none; }

.contenuto-pagina {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 16px;
}

.contenuto-pagina h2 {
  color: var(--blu);
  font-size: 26px;
  margin: 32px 0 16px;
}

.contenuto-pagina h3 {
  color: var(--rosso);
  font-size: 19px;
  margin: 24px 0 12px;
}

.contenuto-pagina p { margin-bottom: 16px; font-size: 16px; }

.contenuto-pagina ul { margin: 16px 0 16px 24px; }
.contenuto-pagina li { margin-bottom: 8px; }

.errore-card {
  background: white;
  border-left: 4px solid var(--rosso);
  padding: 20px;
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.errore-card h4 {
  color: var(--rosso);
  font-size: 17px;
  margin-bottom: 8px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
}

.errore-card p { font-size: 14px; margin-bottom: 8px; }

.tabella-prezzi {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tabella-prezzi th {
  background: var(--blu);
  color: white;
  padding: 14px;
  text-align: left;
  font-size: 14px;
}

.tabella-prezzi td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--grigio-chiaro);
  font-size: 14px;
}

.tabella-prezzi tr:last-child td { border-bottom: none; }
.tabella-prezzi tr:nth-child(even) { background: var(--grigio-chiaro); }

/* === BANNER GIRANTE B2B (per pagine pulizie/aziende) === */
.banner-girante-b2b {
  background: linear-gradient(135deg, #DC2626 0%, #1E40AF 50%, #DC2626 100%);
  background-size: 300% 300%;
  animation: gradiente-mosso 4s ease infinite;
  color: white;
  padding: 14px 12px;
  text-align: center;
  margin: 16px 0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
@keyframes gradiente-mosso {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.banner-girante-b2b-content {
  display: flex;
  animation: scorri-banner 25s linear infinite;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
}
@keyframes scorri-banner {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.banner-girante-b2b-content span {
  padding: 0 30px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* === OROLOGIO LIVE B2B === */
.live-clock-b2b {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #1E40AF 100%);
  padding: 16px 12px;
  margin: 16px 0;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: pulsa-clock 2s ease infinite;
}
@keyframes pulsa-clock {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.live-clock-b2b-button {
  display: block;
  background: white;
  color: #1E40AF;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}
.live-clock-b2b .status-aperto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  color: #16A34A;
  margin-bottom: 6px;
}
.live-clock-b2b .pallino-verde {
  width: 14px;
  height: 14px;
  background: #16A34A;
  border-radius: 50%;
  animation: pulse-verde 1s ease infinite;
}
@keyframes pulse-verde {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.live-clock-b2b .data-ora {
  font-size: 14px;
  color: #1E40AF;
  font-weight: 700;
  margin-bottom: 4px;
}
.live-clock-b2b .telefono {
  font-size: 22px;
  color: #DC2626;
  font-weight: 900;
}

/* === 4 TASTI FLASH B2B (per contratti aziende) === */
.flash-btn-b2b-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.flash-btn-b2b {
  display: block;
  padding: 14px 10px;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: flash-b2b 1.8s ease infinite;
}
@keyframes flash-b2b {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  50% { transform: scale(1.04); box-shadow: 0 8px 24px rgba(255,215,0,0.5); }
}
.flash-btn-b2b-1 {
  background: linear-gradient(135deg, #DC2626 0%, #F97316 100%);
  animation-delay: 0s;
}
.flash-btn-b2b-2 {
  background: linear-gradient(135deg, #1E40AF 0%, #06B6D4 100%);
  animation-delay: 0.4s;
}
.flash-btn-b2b-3 {
  background: linear-gradient(135deg, #16A34A 0%, #84CC16 100%);
  animation-delay: 0.8s;
}
.flash-btn-b2b-4 {
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  animation-delay: 1.2s;
}
.flash-btn-b2b-icon {
  font-size: 32px;
  margin-bottom: 6px;
  display: block;
}
.flash-btn-b2b-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  display: block;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  margin-bottom: 3px;
}
.flash-btn-b2b-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.95;
  display: block;
}

/* === BANNER OFFERTA CONTRATTI === */
.banner-offerta-contratti {
  background: linear-gradient(135deg, #FACC15 0%, #F59E0B 50%, #DC2626 100%);
  background-size: 200% 200%;
  animation: gradiente-mosso 3s ease infinite;
  color: white;
  padding: 16px;
  margin: 16px 0;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 3px solid #FBBF24;
}
.banner-offerta-contratti h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}
.banner-offerta-contratti p {
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 600;
}
.banner-offerta-contratti a {
  display: inline-block;
  background: white;
  color: #DC2626;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



/* === IMMAGINI HERO E GRID === */
.hero-image-wrap {
  max-width: 1100px;
  margin: 28px auto 8px;
  padding: 0 16px;
}
.hero-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: block;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 28px auto 8px;
  padding: 0 16px;
}
.image-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bianco);
}
.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.image-grid figcaption {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--testo);
  text-align: center;
  background: var(--grigio-chiaro);
}
@media (max-width: 600px) {
  .hero-image-wrap img { max-height: 280px; border-radius: 12px; }
  .image-grid img { height: 180px; }
}


/* === MENU NAVIGAZIONE === */
.main-nav {
  background: #fff;
  border-bottom: 2px solid var(--grigio-chiaro);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.main-nav .container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.main-nav .container::-webkit-scrollbar { display: none; }
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  white-space: nowrap;
  min-width: max-content;
}
.main-nav li { flex: 0 0 auto; }
.main-nav a {
  display: inline-block;
  padding: 14px 14px;
  color: var(--blu);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--rosso);
  border-bottom-color: var(--rosso);
  background: var(--grigio-chiaro);
}
@media (max-width: 768px) {
  .main-nav a { padding: 12px 10px; font-size: 13px; }
}


/* === TABELLA CODICI === */
.codici-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.codici-table thead {
  background: var(--blu);
  color: white;
}
.codici-table th {
  padding: 12px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.codici-table td {
  padding: 12px;
  border-bottom: 1px solid var(--grigio-chiaro);
  vertical-align: top;
}
.codici-table tbody tr:hover {
  background: var(--grigio-chiaro);
}
.codici-table tbody tr:last-child td {
  border-bottom: none;
}
.codici-table td:first-child {
  font-weight: 700;
  color: var(--rosso);
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}
@media (max-width: 600px) {
  .codici-table { font-size: 13px; }
  .codici-table th, .codici-table td { padding: 8px; }
  .codici-table td:first-child { font-size: 12px; }
}
