/* ==========================================================================
   SOS GUASTI SUBITO 24H - ENTERPRISE LIGHT UX DESIGN SYSTEM
   High Trust, Light Background, Ultra-Legible Typography & High-Contrast CTAs
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* High-Trust Light Enterprise Color System */
  --bg-dark: #0f172a;           /* Deep Slate Navy for Navbar/Footer */
  --bg-body: #f8fafc;           /* Crisp Light Slate Body Background */
  --bg-surface: #ffffff;        /* Pure White Section Background */
  --bg-subtle: #f1f5f9;         /* Soft Cool Gray Alternate Background */
  
  --border-light: #e2e8f0;      /* Hairline border */
  --border-subtle: #cbd5e1;     /* Distinct border */
  --border-brand: #0284c7;      /* Primary accent border */

  --primary-navy: #0f172a;      /* Deep Slate Navy */
  --primary-blue: #1d4ed8;      /* Royal Trust Blue */
  --primary-cyan: #0284c7;      /* Ocean Blue Accent */
  
  --accent-amber: #b45309;      /* Dark Amber for Legible Badges */
  --accent-amber-bg: #fffbe6;   /* Soft amber tint */
  
  --emergency-red: #dc2626;     /* High Contrast Urgent Red CTA */
  --emergency-red-hover: #b91c1c;
  --success-green: #15803d;     /* High Contrast Green */
  --success-green-bg: #ecfdf5;

  --text-primary: #0f172a;      /* Deep slate font for 100% legibility */
  --text-secondary: #334155;    /* Slate text for descriptions */
  --text-muted: #64748b;        /* Caption slate text */
  --text-white: #ffffff;

  /* Typography */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Radius & Shadows */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Clean subtle shadows - No dark heavy glowing cards */
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-red: 0 4px 14px rgba(220, 38, 38, 0.35);

  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Scroll behavior */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
.text-gradient-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Top Emergency Announcement Bar */
.top-bar {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e40af;
}

.top-bar-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 8px #16a34a;
  animation: pulse-glow 1.6s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Header & Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 0.85rem 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
}

.logo-badge-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--emergency-red), #b91c1c);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-subtext {
  display: block;
  font-size: 0.72rem;
  color: #38bdf8;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: #38bdf8;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emergency-red), #b91c1c);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-red);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-header-call:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

/* Mobile Header & Top-Bar Compact Optimization */
@media (max-width: 767px) {
  .top-bar {
    padding: 0.3rem 0;
    font-size: 0.74rem;
  }

  .top-bar-flex > div:last-child {
    display: none; /* Hide secondary time text on mobile to maximize vertical viewing space */
  }

  .status-badge {
    padding: 2px 8px;
    font-size: 0.7rem;
  }

  .navbar {
    padding: 0.4rem 0;
  }

  .logo {
    font-size: 1rem;
    gap: 8px;
  }

  .logo-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-badge-icon svg {
    width: 16px;
    height: 16px;
  }

  .logo-subtext {
    display: none; /* Hide subtitle text on small screens for ultra-sleek header height */
  }

  .btn-header-call {
    min-height: 34px;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
  }
  
  .hero {
    padding: 2rem 0 2.5rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
  line-height: 1.65;
}

.hero-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--primary-cyan);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: #0369a1;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-subtle);
}

.hero-cta-group {
  display: flex;
  width: 100%;
  max-width: 480px;
  margin-bottom: 1.8rem;
}

.btn-cta-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--emergency-red), #b91c1c);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  min-height: 56px;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-red);
  transition: var(--transition-smooth);
}

.btn-cta-main:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.hero-bullet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-bullet-item span {
  color: var(--primary-cyan);
  font-weight: 900;
}

/* Operational Dispatch Center Panel (No dark heavy glowing cards) */
.dispatch-widget-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.hero-image-wrapper {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-light);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.dispatch-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #15803d;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
}

.widget-timer-display {
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}

.widget-timer-numbers {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}

.widget-timer-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 700;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-subtitle {
  color: var(--primary-cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

/* Tab Selector Control */
.services-tab-control {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  border-color: var(--primary-cyan);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

/* Service Items - Clean Flat Layout (No Heavy Floating Cards) */
.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Service Image Wrapper */
.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-light);
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.04);
}

.service-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.service-icon-box {
  width: 40px;
  height: 40px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

.service-price-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.82rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.service-features-list {
  list-style: none;
  margin-bottom: 1.4rem;
}

.service-features-list li {
  font-size: 0.86rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.service-features-list li::before {
  content: '✓';
  color: var(--primary-cyan);
  font-weight: 900;
}

.btn-card-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--primary-navy);
  color: #ffffff;
  border: 1px solid var(--primary-navy);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

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

/* Location / City Selector Section */
.location-section {
  padding: 4rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.search-box-wrapper {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.search-input-group {
  position: relative;
  margin: 1.8rem 0 2rem;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.2rem 1.1rem 3.4rem;
  background: #ffffff;
  border: 1.5px solid var(--primary-cyan);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 1.05rem;
  outline: none;
  box-shadow: var(--shadow-subtle);
}

.search-icon-inside {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-cyan);
}

.popular-cities-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.6rem;
}

.city-pill {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.city-pill:hover, .city-pill.active {
  background: var(--primary-navy);
  color: #ffffff;
  font-weight: 800;
  border-color: var(--primary-navy);
}

.city-pill.search-highlight {
  border-color: var(--primary-cyan) !important;
  background: #f0f9ff !important;
  color: #0369a1 !important;
  transform: scale(1.06);
}

/* Autocomplete Dropdown List */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--primary-cyan);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  text-align: left;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease;
  cursor: pointer;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover, .search-dropdown-item.focused {
  background: #f0f9ff;
}

.search-dropdown-item .city-name-txt {
  font-weight: 700;
  color: var(--text-primary);
}

.search-dropdown-item .city-tag-txt {
  font-size: 0.8rem;
  color: #0284c7;
  background: #f0f9ff;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Customer Reviews & FAQ */
.reviews-section {
  padding: 4rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 1.6rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #d97706;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.2rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author h5, .review-author-name {
  color: var(--text-primary) !important;
  font-size: 0.95rem;
  font-weight: 800;
}

.author-avatar {
  width: 42px;
  height: 42px;
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: none;
  line-height: 1.65;
}

.faq-item.active {
  border-color: var(--primary-cyan);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.footer {
  background: #0f172a;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.8rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
  color: #64748b;
}

/* Mobile-Only Floating Call Button (Bottom Right Corner Icon-Only FAB) */
.mobile-floating-bar {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 9999;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 0;
  display: flex;
  box-shadow: none;
}

.floating-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emergency-red), #b91c1c);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
  animation: fab-pulse 2.2s infinite;
  transition: transform 0.2s ease;
}

.floating-btn-call:hover {
  transform: scale(1.08);
}

@keyframes fab-pulse {
  0% { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5), 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5), 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5), 0 0 0 0 rgba(220, 38, 38, 0); }
}

@media (min-width: 768px) {
  .mobile-floating-bar {
    display: none !important;
  }
}

/* ==========================================================================
   Dedicated Premium Search Banner Section (Clean Full Width)
   ========================================================================== */
.search-banner-section {
  padding: 1.8rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.search-banner-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.8rem;
  color: #ffffff;
}

.search-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #38bdf8;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.search-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .search-banner-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.search-input-box {
  position: relative;
  width: 100%;
}

.search-input-box input {
  width: 100%;
  height: 50px;
  padding: 0 1.2rem 0 3.2rem;
  background: #ffffff;
  border: 2px solid var(--primary-cyan);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.search-select-box select {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  background: #ffffff;
  border: 2px solid var(--primary-cyan);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   Ricerca Perdite & Gas Technical Showcase Grid
   ========================================================================== */
.perdite-tech-section {
  padding: 4rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.perdite-tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .perdite-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .perdite-tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.perdite-tech-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.perdite-tech-card:hover {
  border-color: var(--primary-cyan);
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.perdite-tech-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #f0f9ff;
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.perdite-tech-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.perdite-tech-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}


/* ==========================================================================
   Vertical City Services Silo Matrix Section
   ========================================================================== */
.city-services-silo-section {
  padding: 3.5rem 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
}

.city-services-silo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .city-services-silo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .city-services-silo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.silo-service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.silo-service-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.silo-service-card.active {
  border: 2px solid var(--primary-cyan);
  background: #f0f9ff;
}

.silo-icon-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #f0f9ff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

.silo-service-info h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.silo-service-info span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0284c7;
}

/* ==========================================================================
   National Services & Cities Directory Crawl Hub
   ========================================================================== */
.national-directory-section {
  padding: 4rem 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
}

.directory-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.2rem;
}

.directory-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.directory-tab-btn:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-navy);
  transform: translateY(-1px);
}

.directory-tab-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.directory-tab-btn.active svg {
  stroke: var(--primary-cyan);
}

.directory-service-panel {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  animation: fadeInDir 0.25s ease-in-out;
}

.directory-service-panel.active {
  display: block;
}

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

.directory-panel-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.directory-panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.directory-panel-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.directory-cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

@media (min-width: 992px) {
  .directory-cities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.directory-city-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.directory-city-link:hover {
  background: #f0f9ff;
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  transform: translateX(2px);
}

.directory-city-link span.prov-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.service-card-link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-decoration: none;
}

.service-card-link-more:hover {
  text-decoration: underline;
}


