/* CleanPro - Professional Cleaning Services Theme */
:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --success: #10b981;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray-bg: #f8fafc;
  --border: #e2e8f0;
  --text: #334155;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(2, 132, 199, 0.15);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Top bar */
.top-emergency-bar {
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.825rem;
  padding: 8px 0;
}
.top-emergency-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-emergency-bar .highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.top-contacts {
  display: flex;
  gap: 20px;
}
.top-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}
.top-contacts a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.brand-title {
  display: flex;
  flex-direction: column;
}
.brand-title .logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.brand-title .logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.main-nav a:hover {
  color: var(--primary);
}
.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
}
.phone-cta svg {
  color: var(--primary);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1eb855;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}
.btn-outline {
  border: 2px solid var(--border);
  background: #ffffff;
  color: var(--dark);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* ==========================================================================
   HERO SLIDER FULL-WIDTH (ORIGINAL SITI SHOP TEMPLATE #307 LAYOUT)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  min-height: 520px;
  max-height: 660px;
}

.hero-slide-item {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.hero-slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.50) 0%, rgba(15, 23, 42, 0.68) 100%);
  z-index: 2;
}

.hero-slide-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-slide-content {
  max-width: 920px;
  margin: 0 auto;
  color: #ffffff;
  padding: 0 20px;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slide-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-slide-subtitle {
  font-size: 1.25rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-slide-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Original yellow accent button (#ffc600) from template 307 */
.btn-hero-quote {
  background: #ffc600;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 34px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 198, 0, 0.4);
  transition: var(--transition);
  text-decoration: none;
}
.btn-hero-quote:hover {
  background: #e6b200;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 198, 0, 0.5);
  color: #0f172a;
}

.btn-hero-phone {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-hero-phone:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Slider Controls */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.25rem;
}
.hero-slider-arrow.prev {
  left: 28px;
}
.hero-slider-arrow.next {
  right: 28px;
}
.hero-slider-arrow:hover {
  background: #ffc600;
  color: #0f172a;
  border-color: #ffc600;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-slider-dots {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.active {
  background: #ffc600;
  transform: scale(1.25);
  border-color: #ffffff;
}

/* Floating Stats Strip Under Slider */
.hero-stats-container {
  margin-top: -45px;
  position: relative;
  z-index: 20;
  margin-bottom: 45px;
}
.hero-stats-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px 36px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.hero-stat-box:not(:last-child) {
  border-right: 1px solid var(--border);
  padding-right: 15px;
}
.hero-stat-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.hero-stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 992px) {
  .hero-slider-container {
    height: 520px;
  }
  .hero-slide-title {
    font-size: 2.3rem;
  }
  .hero-slide-subtitle {
    font-size: 1.05rem;
  }
  .hero-stats-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
  .hero-stat-box:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .hero-slider-container {
    height: 480px;
  }
  .hero-slide-title {
    font-size: 1.75rem;
  }
  .hero-slider-arrow {
    display: none;
  }
  .hero-stats-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-stat-box {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  .hero-stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* SECTION COMMON */
.section {
  padding: 90px 0;
}
.section-gray {
  background: var(--gray-bg);
}
.section-dark {
  background: var(--dark);
  color: #ffffff;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}
.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #bae6fd;
}
.service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}
.service-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.service-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}
.service-features {
  list-style: none;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.service-features li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--text);
}
.service-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}
.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.service-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* INTERACTIVE CALCULATOR SECTION */
.calc-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e0f2fe;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}
.calc-field-group {
  margin-bottom: 28px;
}
.calc-field-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.property-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.type-card-radio {
  border: 2px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: var(--gray-bg);
}
.type-card-radio:hover {
  border-color: #7dd3fc;
}
.type-card-radio.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

/* Range Slider */
.range-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slider-val-bubble {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #cbd5e1;
  outline: none;
  transition: opacity .2s;
}
.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  transition: transform 0.15s ease;
}
.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Frequency Select */
.freq-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.freq-pill {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition);
}
.freq-pill.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

/* Extras checkboxes */
.extras-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.extra-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition);
}
.extra-check-item:hover {
  background: var(--gray-bg);
}
.extra-check-item.active {
  border-color: var(--primary);
  background: #f0fdf4;
}
.extra-check-item input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Estimate Summary Card */
.estimate-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.estimate-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}
.est-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.est-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.25);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.est-price-box {
  margin-bottom: 24px;
}
.est-price-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 4px;
}
.est-price-range {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1px;
}
.est-price-period {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
}
.est-breakdown {
  list-style: none;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 28px;
}
.est-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.est-btn-whatsapp {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* ADVANTAGES & BADGES */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.advantage-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  transition: var(--transition);
}
.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.adv-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.adv-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.adv-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* REALIZZAZIONI / GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.68) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  transition: opacity 0.3s ease;
}
.gallery-overlay .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 4px;
}
.gallery-overlay .title {
  font-size: 1.1rem;
  font-weight: 700;
}

/* WORKFLOW STEPS */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.workflow-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.workflow-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.workflow-step {
  font-size: 2.2rem;
  font-weight: 900;
  color: #e0f2fe;
  line-height: 1;
  margin-bottom: 14px;
  font-family: monospace;
}
.workflow-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.workflow-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-stars {
  color: #f59e0b;
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.testi-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.6;
}
.testi-author h5 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.testi-author p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ ACCORDION */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active {
  border-color: var(--primary);
}
.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  user-select: none;
}
.faq-question:hover {
  background: var(--gray-bg);
}
.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  padding: 0 22px 20px;
  max-height: 300px;
}

/* CALL TO ACTION BANNER */
.cta-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.15rem;
  color: #e0f2fe;
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* FOOTER */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 30px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .logo-name {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.footer-brand p {
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}
.footer-contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalScale 0.25s ease-out;
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  color: #ffffff;
  font-size: 1.25rem;
}
.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-body {
  padding: 24px;
}
.modal-form-group {
  margin-bottom: 16px;
}
.modal-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
  border-color: var(--primary);
}

/* FLOATING WHATSAPP BUTTON */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #ffffff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-contacts {
    display: none;
  }
  .header-actions .phone-cta {
    display: none;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.mobile-open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-banner {
    padding: 40px 20px;
  }
  .cta-banner h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .freq-pills {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 1440px) {
  .container {
    max-width: 1440px !important;
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* ==========================================================================
   PAGE SPECIFIC STYLES (Consolidated from in-page <style> tags)
   ========================================================================== */

/* Extracted from chi-siamo.php */
.about-hero {
      background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.92)), url('images/41627.jpg') center/cover no-repeat;
      color: #fff;
      padding: 70px 0 60px;
      text-align: center;
    }
    .about-hero h1 {
      font-size: 2.6rem;
      font-weight: 800;
      margin-bottom: 12px;
      letter-spacing: -0.02em;
    }
    .about-hero p {
      font-size: 1.1rem;
      color: #cbd5e1;
      max-width: 720px;
      margin: 0 auto;
      line-height: 1.6;
    }

    .about-content-section {
      padding: 60px 0;
    }
    .about-story-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: center;
      margin-bottom: 70px;
    }
    @media (max-width: 900px) {
      .about-story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
      }
    }
    .about-story-img {
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      position: relative;
    }
    .about-story-img img {
      width: 100%;
      height: 420px;
      object-fit: cover;
      display: block;
    }
    .about-badge-exp {
      position: absolute;
      bottom: 24px;
      right: 24px;
      background: var(--primary);
      color: #fff;
      padding: 16px 22px;
      border-radius: var(--radius-md);
      box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
      text-align: center;
    }
    .about-badge-exp strong {
      display: block;
      font-size: 2.2rem;
      font-weight: 900;
      line-height: 1;
    }
    .about-badge-exp span {
      font-size: 0.82rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .about-story-text h2 {
      font-size: 2rem;
      font-weight: 800;
      color: var(--text-dark);
      margin-bottom: 16px;
      line-height: 1.25;
    }
    .about-story-text p {
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 16px;
      font-size: 1rem;
    }

    .cert-cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
      margin-top: 30px;
    }
    .cert-card {
      background: #fff;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      padding: 30px 24px;
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
    }
    .cert-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
    }
    .cert-card-icon {
      width: 56px;
      height: 56px;
      border-radius: 14px;
      background: var(--primary-light);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
    }
    .cert-card h3 {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 10px;
    }
    .cert-card p {
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.6;
    }

    .stats-bar-strip {
      background: linear-gradient(135deg, var(--primary-dark), #0f172a);
      color: #fff;
      padding: 45px 0;
      border-radius: var(--radius-lg);
      margin: 60px 0;
    }
    .stats-bar-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      text-align: center;
    }
    @media (max-width: 768px) {
      .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
      }
    }
    .stat-bar-num {
      font-size: 2.6rem;
      font-weight: 900;
      color: #38bdf8;
      line-height: 1;
      margin-bottom: 6px;
    }
    .stat-bar-lbl {
      font-size: 0.9rem;
      color: #cbd5e1;
      font-weight: 600;
    }

/* Extracted from contatti.php */
.contacts-hero {
      background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.92)), url('images/41628.jpg') center/cover no-repeat;
      color: #fff;
      padding: 70px 0 60px;
      text-align: center;
    }
    .contacts-hero h1 {
      font-size: 2.6rem;
      font-weight: 800;
      margin-bottom: 12px;
      letter-spacing: -0.02em;
    }
    .contacts-hero p {
      font-size: 1.1rem;
      color: #cbd5e1;
      max-width: 680px;
      margin: 0 auto;
      line-height: 1.6;
    }

    .contacts-grid {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 45px;
      margin-top: 50px;
      margin-bottom: 70px;
    }
    @media (max-width: 900px) {
      .contacts-grid {
        grid-template-columns: 1fr;
        gap: 35px;
      }
    }

    .contact-info-panel {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 36px 30px;
      box-shadow: var(--shadow-sm);
    }
    .contact-info-panel h3 {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--text-dark);
      margin-bottom: 24px;
    }
    .contact-row-item {
      display: flex;
      gap: 16px;
      margin-bottom: 24px;
      align-items: flex-start;
    }
    .contact-icon-bubble {
      width: 46px;
      height: 46px;
      border-radius: 12px;
      background: var(--primary-light);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--primary);
    }
    .contact-row-text h5 {
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 4px;
    }
    .contact-row-text p, .contact-row-text a {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-dark);
      text-decoration: none;
      line-height: 1.4;
    }
    .contact-row-text a:hover {
      color: var(--primary);
    }

    .form-panel {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 40px 36px;
      box-shadow: var(--shadow-md);
    }
    .form-panel h3 {
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--text-dark);
      margin-bottom: 8px;
    }
    .form-panel p {
      color: var(--text-muted);
      font-size: 0.95rem;
      margin-bottom: 28px;
    }
    .form-row-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    @media (max-width: 600px) {
      .form-row-2 {
        grid-template-columns: 1fr;
      }
    }
    .field-group {
      margin-bottom: 20px;
    }
    .field-group label {
      display: block;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 8px;
    }
    .field-group input, .field-group select, .field-group textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 0.95rem;
      transition: var(--transition);
      background: #f8fafc;
    }
    .field-group input:focus, .field-group select:focus, .field-group textarea:focus {
      outline: none;
      border-color: var(--primary);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    }

    .success-alert {
      background: #ecfdf5;
      border: 1px solid #10b981;
      color: #065f46;
      padding: 18px 22px;
      border-radius: var(--radius-md);
      margin-bottom: 24px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .emergency-banner {
      background: #fef2f2;
      border: 1px solid #fecaca;
      border-radius: var(--radius-md);
      padding: 18px 20px;
      margin-top: 24px;
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .emergency-banner svg {
      color: #dc2626;
      flex-shrink: 0;
    }
    .emergency-banner div h6 {
      font-size: 0.95rem;
      font-weight: 800;
      color: #991b1b;
      margin-bottom: 2px;
    }
    .emergency-banner div p {
      font-size: 0.85rem;
      color: #7f1d1d;
      margin: 0;
    }

/* Extracted from preventivo.php */
.page-hero-clean {
      background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('images/41627.jpg') center/cover no-repeat;
      color: #fff;
      padding: 65px 0 50px;
      text-align: center;
    }
    .page-hero-clean h1 {
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 10px;
    }
    .page-hero-clean p {
      font-size: 1.05rem;
      color: #cbd5e1;
      max-width: 680px;
      margin: 0 auto;
    }

/* Extracted from servizi.php */
.page-hero-clean {
      background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('images/41626.jpg') center/cover no-repeat;
      color: #fff;
      padding: 65px 0 50px;
      text-align: center;
    }
    .page-hero-clean h1 {
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 10px;
    }
    .page-hero-clean p {
      font-size: 1.05rem;
      color: #cbd5e1;
      max-width: 680px;
      margin: 0 auto;
    }

    .clean-search-bar {
      max-width: 680px;
      margin: -25px auto 35px;
      background: #fff;
      padding: 10px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      display: flex;
      gap: 10px;
      border: 1px solid var(--border);
      position: relative;
      z-index: 10;
    }
    .clean-search-bar input {
      flex: 1;
      border: none;
      padding: 10px 16px;
      font-size: 1rem;
      outline: none;
      font-family: inherit;
    }
    .clean-search-bar button {
      background: var(--primary);
      color: #fff;
      border: none;
      padding: 12px 24px;
      border-radius: var(--radius-sm);
      font-weight: 700;
      cursor: pointer;
    }

    .cat-pill-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-bottom: 40px;
    }
    .cat-pill-item {
      padding: 9px 18px;
      border-radius: var(--radius-full);
      background: #fff;
      border: 1px solid var(--border);
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text);
      transition: var(--transition);
    }
    .cat-pill-item:hover, .cat-pill-item.active {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
      box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    }

/* Extracted from servizio.php */
.detail-breadcrumb {
      padding: 16px 0;
      font-size: 0.88rem;
      color: #64748b;
    }
    .detail-breadcrumb a {
      color: var(--primary);
    }
    .detail-breadcrumb a:hover {
      text-decoration: underline;
    }

    .service-detail-layout {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 36px;
      margin-bottom: 50px;
    }
    @media (max-width: 992px) {
      .service-detail-layout {
        grid-template-columns: 1fr;
      }
    }

    .service-hero-img {
      width: 100%;
      height: 400px;
      object-fit: cover;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
    }

    .content-box-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 30px;
      margin-bottom: 24px;
      box-shadow: var(--shadow-sm);
    }

    .features-checklist {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
      margin: 16px 0;
      padding: 0;
    }
    .features-checklist li {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
      background: #f8fafc;
      padding: 10px 14px;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .features-checklist li svg {
      color: var(--primary);
      flex-shrink: 0;
    }

    .booking-quote-card {
      background: #fff;
      border: 2px solid var(--primary-light);
      border-radius: var(--radius-md);
      padding: 26px;
      box-shadow: var(--shadow-md);
      position: sticky;
      top: 20px;
    }


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
