/* Custom CSS per RC SISTEMI */

/* 🚀 OTTIMIZZAZIONI PERFORMANCE IMMAGINI - CARICAMENTO IMMEDIATO */
img {
  max-width: 100%;
  height: auto;
  image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  will-change: transform;
  transform: translateZ(0); /* GPU acceleration */
}

/* Lazy loading ottimizzato */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Force hardware acceleration per sezioni con immagini */
.hero-section, .cta-section {
  backface-visibility: hidden;
  perspective: 1000px;
}

:root {
  --rc-primary: #1a1a1a;
  --rc-secondary: #333333;
  --rc-accent: #17a2b8;
  --rc-light: #f8f9fa;
  --rc-text: #2b2b2b;
  --rc-gray: #6c757d;
  --rc-border: #dee2e6;
  --transition: all 0.3s ease-in-out;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Base Mobile Optimizations */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px !important; /* Compensazione per navbar fixed */
  width: 100%;
  overflow-x: hidden;
  margin: 0;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 65px !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px !important;
  }
}

/* Mobile-first approach */
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Touch-friendly buttons */
.btn,
.btn-rc,
a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Improve text readability on mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }
  
  p {
    line-height: 1.6;
  }
}

/* ============================================================
   NAVBAR — Premium dark glass / hero-transparent variant
   ============================================================ */

/* Default: dark frosted glass (all pages except hero) */
.navbar-rc {
  background: rgba(8, 14, 26, 0.93) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 0 !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000 !important;
  width: 100vw !important;
  height: 72px !important;
  display: flex !important;
  align-items: center !important;
  border: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: background .4s ease, height .3s ease, box-shadow .3s ease !important;
}

/* Hero pages: transparent gradient at very top */
.navbar-rc.navbar-hero {
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Scrolled (both default and hero) → dark glass */
.navbar-rc.scrolled,
.navbar-rc.navbar-hero.scrolled {
  background: rgba(8, 14, 26, 0.93) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  height: 62px !important;
  box-shadow: 0 2px 32px rgba(0,0,0,.35) !important;
}

.navbar-rc .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1400px !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
}

/* Brand */
.navbar-brand-rc {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  flex-shrink: 0 !important;
}

.navbar-brand-rc img {
  height: 44px !important;
  width: auto !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.12) !important;
  padding: 5px 12px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  transition: all .3s ease !important;
}

.navbar-rc.scrolled .navbar-brand-rc img {
  height: 38px !important;
}

/* Desktop Menu */
.desktop-menu {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  flex-shrink: 0 !important;
}

.navbar-nav {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  flex-wrap: nowrap !important;
}

/* Nav links — uppercase, no icons, animated underline */
.nav-link-rc {
  color: rgba(255,255,255,.85) !important;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45rem .85rem !important;
  transition: color .25s ease !important;
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  background: none !important;
  border-radius: 0 !important;
}

.nav-link-rc i { display: none; }

.nav-link-rc::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: #00c2e8;
  transition: left .25s ease, right .25s ease;
  border-radius: 1px;
}

.nav-link-rc:hover,
.nav-link-rc.active {
  color: #00c2e8 !important;
  background: none !important;
}

.nav-link-rc:hover::after,
.nav-link-rc.active::after {
  left: .85rem;
  right: .85rem;
}

/* Area Cliente — solid cyan CTA */
.btn-area-cliente {
  background: #00c2e8 !important;
  color: #fff !important;
  padding: .48rem 1.15rem !important;
  border-radius: 8px !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  margin-left: .75rem !important;
  display: flex !important;
  align-items: center !important;
  gap: .35rem !important;
  transition: background .25s ease, transform .2s ease !important;
}

.btn-area-cliente i { display: flex !important; color: #fff !important; font-size: .9rem; }
.btn-area-cliente::after { display: none !important; }

.btn-area-cliente:hover {
  background: #0099bb !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* Area Personale — ghost outline CTA */
.btn-area-personale {
  background: transparent !important;
  color: rgba(255,255,255,.88) !important;
  padding: .43rem 1.15rem !important;
  border: 1.5px solid rgba(255,255,255,.5) !important;
  border-radius: 8px !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  margin-left: .5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: .35rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: border-color .25s ease, color .25s ease, transform .2s ease !important;
}

.btn-area-personale i { font-size: .9rem; color: rgba(255,255,255,.88) !important; }
.btn-area-personale::after { display: none !important; }

.btn-area-personale:hover {
  border-color: #00c2e8 !important;
  color: #00c2e8 !important;
  background: transparent !important;
  transform: translateY(-2px) !important;
}

.btn-area-personale:hover i { color: #00c2e8 !important; }

/* Hamburger */
.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  z-index: 998 !important;
  position: relative !important;
  transition: background .25s ease !important;
}

.navbar-toggler:hover { background: rgba(255,255,255,.18); }

.hamburger-line {
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
  transition: transform .3s ease, opacity .3s ease;
  border-radius: 2px;
}

.navbar-toggler.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggler.active .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggler.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.navbar-toggler.menu-open {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,.75) !important;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-menu-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  width: 320px !important;
  max-width: 90vw !important;
  height: 100vh !important;
  background: rgba(8,14,26,.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: right .35s cubic-bezier(.4,0,.2,1) !important;
  overflow-y: auto !important;
  box-shadow: -5px 0 40px rgba(0,0,0,.5) !important;
  z-index: 10000 !important;
  border-left: 1px solid rgba(255,255,255,.08) !important;
}

.mobile-menu-overlay.active .mobile-menu { right: 0 !important; }

.mobile-menu-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1.75rem 1.5rem !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  background: transparent !important;
}

.mobile-logo {
  height: 44px !important;
  width: auto !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.1) !important;
  padding: 4px 10px !important;
}

.mobile-close {
  width: 44px !important;
  height: 44px !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease !important;
  color: rgba(255,255,255,.8) !important;
}

.mobile-close:hover {
  background: rgba(0,194,232,.15) !important;
  border-color: #00c2e8 !important;
  color: #00c2e8 !important;
}

.mobile-close i { font-size: 1.4rem; color: inherit; }

.mobile-nav {
  list-style: none !important;
  padding: 1.5rem 0 !important;
  margin: 0 !important;
}

.mobile-nav li { margin: 0 !important; }

.mobile-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding: 1rem 1.75rem !important;
  color: rgba(255,255,255,.78) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  transition: color .2s ease, background .2s ease, border-left-color .2s ease !important;
  border-left: 3px solid transparent !important;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(0,194,232,.08) !important;
  color: #00c2e8 !important;
  border-left-color: #00c2e8 !important;
}

.mobile-nav-link i {
  font-size: 1.25rem;
  width: 22px;
  text-align: center;
  color: rgba(0,194,232,.75);
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i { color: #00c2e8 !important; }
.mobile-nav-link span { flex: 1; }

/* Mobile CTAs */
.mobile-nav-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .75rem !important;
  padding: .95rem 1.75rem !important;
  margin: 1.5rem 1.25rem .75rem !important;
  background: #00c2e8 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  border-radius: 12px !important;
  border: 1.5px solid transparent !important;
  transition: background .2s ease, transform .2s ease, border-color .2s ease !important;
}

.mobile-nav-cta:hover {
  background: #0099bb !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

.mobile-nav-cta i { font-size: 1.1rem; }

.mobile-nav-cta.mobile-nav-cta-ghost {
  background: transparent !important;
  border-color: rgba(255,255,255,.3) !important;
  margin-top: 0 !important;
}

.mobile-nav-cta.mobile-nav-cta-ghost:hover {
  background: rgba(0,194,232,.1) !important;
  border-color: #00c2e8 !important;
  color: #00c2e8 !important;
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-rc {
    height: 64px !important;
    max-height: 64px !important;
    min-height: 64px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  .navbar-rc .container {
    padding: 0 1.25rem !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .desktop-menu { display: none !important; }
  .navbar-toggler { display: flex !important; flex-shrink: 0 !important; }
  .navbar-brand-rc img { height: 38px !important; max-height: 38px !important; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-link-rc { padding: .45rem .65rem !important; font-size: .78rem !important; }
  .btn-area-cliente { padding: .43rem .85rem !important; font-size: .78rem !important; margin-left: .5rem !important; }
  .btn-area-personale { padding: .38rem .85rem !important; font-size: .78rem !important; }
  .navbar-brand-rc img { height: 38px !important; }
}

@media (max-width: 768px) {
  .navbar-rc {
    height: 58px !important;
    max-height: 58px !important;
    min-height: 58px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  .navbar-rc .container { padding: 0 1rem !important; height: 100% !important; width: 100% !important; max-width: 100% !important; }
  .navbar-brand-rc img { height: 32px !important; max-height: 32px !important; }
  .navbar-rc.scrolled { height: 52px !important; max-height: 52px !important; min-height: 52px !important; }
  .navbar-rc.scrolled .navbar-brand-rc img { height: 30px !important; max-height: 30px !important; }
  .mobile-menu { width: 285px !important; }
  .mobile-nav-link { font-size: .88rem !important; padding: .85rem 1.5rem !important; }
  .mobile-nav-cta { font-size: .88rem !important; padding: .85rem 1.5rem !important; margin: 1.25rem 1rem .5rem !important; }
}

/* Typography */
.pre-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rc-accent);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--rc-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Performance mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform; /* GPU acceleration */
  transform: translateZ(0); /* Force hardware acceleration */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 162, 184, 0.5);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 162, 184, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 2rem;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content .pre-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 1.5rem 0;
  color: white;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    padding-top: 2rem;
  }
  
  .hero-content {
    padding: 2rem 1rem;
  }
  
  .hero-content .pre-title {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 1rem 0;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
  }
  
  .hero-buttons {
    justify-content: center;
    gap: 1rem;
  }
  
  .hero-buttons .btn-rc {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn-rc {
    width: 100%;
    max-width: 280px;
  }
}

/* Trust / Stats Section */
.trust-section {
  padding: 5.5rem 0;
  background: #0f1724;
  position: relative;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,194,232,.45), transparent);
}

/* Stats row */
.ts-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4.5rem;
  flex-wrap: wrap;
}

.ts-stat {
  text-align: center;
  padding: 0 3rem;
  flex: 1;
  min-width: 150px;
}

.ts-num {
  display: inline;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: #00c2e8;
  line-height: 1;
  letter-spacing: -.02em;
}

.ts-plus {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: #00c2e8;
  vertical-align: super;
}

.ts-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: .6rem;
}

.ts-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* Section heading */
.ts-heading { text-align: center; margin-bottom: 3rem; }

.ts-pretitle {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #00c2e8;
  margin-bottom: .7rem;
}

.ts-title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
}

/* Glass cards */
.ts-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
}

.ts-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00c2e8, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.ts-card:hover {
  background: rgba(0,194,232,.06);
  border-color: rgba(0,194,232,.3);
  transform: translateY(-6px);
}

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

.ts-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(0,194,232,.18), rgba(0,153,187,.18));
  border: 1px solid rgba(0,194,232,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ts-card-icon i { font-size: 1.65rem; color: #00c2e8; }

.ts-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .7rem;
}

.ts-card p {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 768px) {
  .trust-section { padding: 4rem 0; }
  .ts-stats { gap: 2rem 0; margin-bottom: 3rem; }
  .ts-stat { min-width: 140px; padding: 0 1.5rem; }
  .ts-divider { display: none; }
  .ts-card { padding: 1.75rem 1.5rem; }
}

@media (max-width: 480px) {
  .trust-section { padding: 3rem 0; }
  .ts-stat { min-width: 120px; padding: 0 1rem; }
}

/* Servizi Section */
.servizi-section {
  padding: 6rem 0;
  background: #0a101e;
  position: relative;
}

.servizi-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,194,232,.25), transparent);
}

.servizi-section .section-title { color: #fff; }

.servizio-card {
  background: rgba(255,255,255,.04);
  padding: 2.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: none;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.servizio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #00c2e8, #0099bb);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s ease;
  border-radius: 0 0 0 0;
}

.servizio-card:hover {
  background: rgba(0,194,232,.06);
  border-color: rgba(0,194,232,.3);
  transform: translateY(-5px);
}

.servizio-card:hover::before { transform: scaleY(1); }

.servizio-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.servizio-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0,194,232,.12), rgba(0,153,187,.12));
  border: 1px solid rgba(0,194,232,.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
  flex-shrink: 0;
}

.servizio-card:hover .servizio-icon {
  background: linear-gradient(135deg, rgba(0,194,232,.2), rgba(0,153,187,.2));
}

.servizio-icon i {
  font-size: 1.7rem;
  color: #00c2e8;
}

.servizio-num {
  font-size: 1rem;
  font-weight: 800;
  color: rgba(0,194,232,.28);
  letter-spacing: .05em;
  padding-top: .2rem;
}

.servizio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .65rem;
  color: #fff;
  line-height: 1.35;
}

.servizio-card p {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

.servizio-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #00c2e8;
  text-decoration: none;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: gap .25s ease, color .25s ease;
  margin-top: auto;
}

.servizio-link i { font-size: .85rem; }

.servizio-link:hover {
  gap: .85rem;
  color: #0099bb;
}

/* Mobile Sections */
@media (max-width: 768px) {
  .servizi-section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .servizio-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }

  .servizio-card h3 {
    font-size: 1.3rem;
  }

  .servizio-icon {
    width: 60px;
    height: 60px;
  }

  .servizio-icon i {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .servizi-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .servizio-card {
    padding: 1.5rem;
  }
  
  .servizio-link {
    justify-content: center;
    padding: 0.8rem;
    background: var(--rc-light);
    border-radius: 8px;
    margin-top: 1rem;
  }
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 8rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Performance ottimizzata */
  will-change: transform; /* GPU acceleration */
  transform: translateZ(0); /* Force hardware acceleration */
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: white;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 700;
}

.cta-container p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

/* Mobile CTA */
@media (max-width: 768px) {
  .cta-section {
    padding: 5rem 0;
    background-attachment: scroll;
  }
  
  .cta-container {
    text-align: center;
  }
  
  .cta-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .cta-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .cta-container .btn-rc {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 4rem 0;
  }
  
  .cta-container h2 {
    font-size: 1.8rem;
  }
  
  .cta-container p {
    font-size: 1rem;
  }
  
  .cta-container .btn-rc {
    width: 100%;
    max-width: 280px;
  }
}

/* Buttons */
.btn-rc {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-rc i {
  font-size: 1.2rem;
}

.btn-rc-primary {
  background: var(--rc-accent);
  color: white;
  border: none;
}

.btn-rc-primary:hover {
  background: var(--rc-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-rc-outline {
  background: transparent;
  color: var(--rc-primary);
  border: 2px solid var(--rc-border);
}

.btn-rc-outline:hover {
  border-color: var(--rc-accent);
  color: var(--rc-accent);
  transform: translateY(-2px);
}

.btn-rc-light {
  background: white;
  color: var(--rc-primary);
  border: none;
}

.btn-rc-light:hover {
  background: var(--rc-accent);
  color: white;
  transform: translateY(-2px);
}

/* Footer */
.footer-rc {
  background: var(--rc-primary);
  color: white;
  padding: 4rem 0 1rem;
  margin-top: auto;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  height: 80px;
  margin-bottom: 1rem;
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--rc-accent);
  color: white;
  transform: translateY(-2px);
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  text-align: left;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--rc-accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: block;
  padding: 0.2rem 0;
}

.footer-links a:hover {
  color: var(--rc-accent);
  padding-left: 0.5rem;
}

.footer-contact {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.8rem;
}

.contact-item i {
  color: var(--rc-accent);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  min-width: 20px;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--rc-accent);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-cta .btn-rc {
  justify-content: center;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--rc-accent);
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-rc {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-logo {
    height: 45px;
    margin-bottom: 0.8rem;
  }
  
  .footer-desc {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-social {
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
  }
  
  /* Layout mobile: Servizi e Azienda affiancati */
  .footer-rc .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .footer-rc .col-lg-4:first-child {
    order: 1;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .footer-rc .col-lg-2:nth-child(2) {
    order: 2;
    width: 50%;
    padding-right: 0.5rem;
  }
  
  .footer-rc .col-lg-2:nth-child(3) {
    order: 3;
    width: 50%;
    padding-left: 0.5rem;
  }
  
  .footer-rc .col-lg-4:last-child {
    order: 4;
    width: 100%;
    margin-top: 1rem;
  }
  
  .footer-section {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  /* Sezioni servizi e azienda più compatte */
  .footer-rc .col-lg-2 .footer-section {
    margin-bottom: 0.5rem;
  }
  
  .footer-rc .col-lg-2 .footer-title {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  
  .footer-rc .col-lg-2 .footer-links a {
    font-size: 0.8rem;
    padding: 0.1rem 0;
  }
  
  .footer-rc .col-lg-2 .footer-links li {
    margin-bottom: 0.2rem;
  }
  
  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact {
    text-align: center;
    max-width: 300px;
    margin: 0 auto 1rem;
  }
  
  .contact-item {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    justify-content: center;
  }
  
  .contact-item i {
    margin-right: 0.5rem;
    font-size: 1rem;
  }
  
  .contact-item span,
  .contact-item a {
    font-size: 0.85rem;
  }
  
  .footer-cta {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-cta .btn-rc {
    width: 100%;
    max-width: 250px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    margin: 0 auto;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .copyright {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-legal {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-legal a {
    font-size: 0.8rem;
    padding: 0.4rem 0;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .footer-rc {
    padding: 1rem 0 0.8rem;
  }
  
  .footer-brand {
    margin-bottom: 1rem;
  }
  
  .footer-logo {
    height: 40px;
    margin-bottom: 0.6rem;
  }
  
  .footer-desc {
    font-size: 0.8rem;
    line-height: 1.3;
    max-width: 220px;
    margin-bottom: 0.8rem;
  }
  
  .footer-social {
    margin-bottom: 1rem;
    gap: 0.3rem;
  }
  
  .social-link {
    width: 32px;
    height: 32px;
  }
  
  /* Layout ancora più compatto per mobile piccolo */
  .footer-rc .col-lg-2:nth-child(2),
  .footer-rc .col-lg-2:nth-child(3) {
    width: 50%;
    padding: 0 0.3rem;
  }
  
  .footer-rc .col-lg-2 .footer-title {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .footer-rc .col-lg-2 .footer-links a {
    font-size: 0.75rem;
    padding: 0.05rem 0;
  }
  
  .footer-rc .col-lg-2 .footer-links li {
    margin-bottom: 0.1rem;
  }
  
  .footer-section {
    margin-bottom: 0.8rem;
  }
  
  .footer-contact {
    max-width: 280px;
    margin-bottom: 0.8rem;
  }
  
  .contact-item {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }
  
  .contact-item span,
  .contact-item a {
    font-size: 0.8rem;
  }
  
  .footer-cta .btn-rc {
    max-width: 220px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    padding-top: 0.8rem;
    margin-top: 0.8rem;
  }
  
  .copyright {
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    max-width: 260px;
  }
  
  .footer-legal {
    flex-direction: row;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-legal a {
    font-size: 0.7rem;
    padding: 0.3rem 0;
    white-space: nowrap;
  }
}

/* Pagina Servizi */
.servizi-hero {
  padding: 5.5rem 0;
  background-image:
    linear-gradient(135deg, rgba(8,14,26,.92) 0%, rgba(0,153,187,.18) 100%),
    url('assets/img/servizi/impianti-industriali.jpg');
  background-size: cover;
  background-position: center 40%;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  position: relative;
}

.servizi-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,194,232,.35), transparent);
}

.servizi-hero .hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.servizi-hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.72);
  margin: 0 auto;
  max-width: 580px;
  line-height: 1.7;
}

.servizi-intro {
  padding: 6rem 0;
  background: var(--rc-light);
}

.servizi-intro .lead {
  font-size: 1.2rem;
  color: var(--rc-gray);
  line-height: 1.7;
  margin: 0;
}

.servizi-grid {
  padding: 6rem 0;
  background: white;
}

.servizio-card-detailed {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--rc-border);
}

.servizio-card-detailed:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rc-accent);
}

.servizio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.servizio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.servizio-card-detailed:hover .servizio-image img {
  transform: scale(1.1);
}

.servizio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.servizio-card-detailed:hover .servizio-overlay {
  opacity: 1;
}

.servizio-overlay .servizio-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: var(--transition);
}

.servizio-card-detailed:hover .servizio-overlay .servizio-icon {
  transform: scale(1);
}

.servizio-overlay .servizio-icon i {
  font-size: 2.5rem;
  color: var(--rc-accent);
}

.servizio-content {
  padding: 2.5rem;
}

.servizio-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rc-primary);
  margin-bottom: 1rem;
}

.servizio-content p {
  color: var(--rc-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.servizio-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.servizio-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--rc-text);
}

.servizio-features i {
  color: var(--rc-accent);
  font-size: 1.1rem;
  font-weight: bold;
}

.servizio-content .btn-rc {
  width: 100%;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 6rem 0;
  background: var(--rc-light);
}

.why-content {
  padding-right: 2rem;
}

.why-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rc-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.why-content p {
  font-size: 1.1rem;
  color: var(--rc-gray);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.feature-icon {
  width: 60px;
    height: 60px;
  background: var(--rc-accent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.8rem;
  color: white;
}

.feature-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rc-primary);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--rc-gray);
  line-height: 1.5;
  margin: 0;
    font-size: 1rem;
  }
  
.why-image {
  position: relative;
}

.why-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

/* Contact Link Styles */
.contact-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.contact-link:hover {
  color: var(--rc-accent);
  transform: translateX(5px);
}

.contact-link span {
  color: inherit;
}

/* Mobile Servizi */
@media (max-width: 768px) {
  .servizi-hero {
    padding: 3.5rem 0;
    min-height: 38vh;
  }

  .servizi-hero .hero-title {
    font-size: 2.2rem;
  }

  .servizi-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .servizi-intro {
    padding: 4rem 0;
  }
  
  .servizi-intro .section-title {
    font-size: 2.2rem;
  }
  
  .servizi-intro .lead {
    font-size: 1.1rem;
  }
  
  .servizi-grid {
    padding: 4rem 0;
  }
  
  .servizio-card-detailed {
    margin-bottom: 2rem;
  }
  
  .servizio-image {
    height: 200px;
  }
  
  .servizio-content {
    padding: 2rem;
  }
  
  .servizio-content h3 {
    font-size: 1.3rem;
  }
  
  .servizio-features {
    margin-bottom: 1.5rem;
  }
  
  .servizio-features li {
    font-size: 0.9rem;
  }
  
  .why-choose-us {
    padding: 4rem 0;
  }
  
  .why-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .why-content h2 {
    font-size: 2rem;
    text-align: center;
  }
  
  .why-content p {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .why-features {
    gap: 1.5rem;
  }
  
  .why-feature {
    gap: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
  
  .feature-content h4 {
    font-size: 1.1rem;
  }
  
  .feature-content p {
    font-size: 0.95rem;
  }
  
  .why-image img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .servizi-hero {
    padding: 1.5rem 0;
    min-height: 15vh;
  }
  
  .servizi-hero .hero-title {
    font-size: 2rem;
  }
  
  .servizi-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .servizi-intro {
    padding: 3rem 0;
  }
  
  .servizi-intro .section-title {
    font-size: 1.8rem;
  }
  
  .servizi-grid {
    padding: 3rem 0;
  }
  
  .servizio-content {
    padding: 1.5rem;
  }
  
  .servizio-content h3 {
    font-size: 1.2rem;
  }
  
  .servizio-content p {
    font-size: 0.95rem;
  }
  
  .servizio-features li {
    font-size: 0.85rem;
  }
  
  .why-choose-us {
    padding: 3rem 0;
  }
  
  .why-content h2 {
    font-size: 1.8rem;
  }
  
  .why-content p {
    font-size: 1rem;
  }
  
  .why-image img {
    height: 250px;
  }
}

/* Service Detail Pages */
.service-page-hero {
  padding: 2rem 0;
  background: var(--rc-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
}

.service-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.service-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.service-breadcrumb a:hover {
  color: var(--rc-accent);
}

.service-breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0.8rem;
}

.service-breadcrumb > span:last-child {
  color: white;
  font-weight: 600;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

.service-hero {
  padding: 6rem 0;
  background: var(--rc-light);
}

.service-hero-content {
  padding-right: 2rem;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--rc-accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.service-badge i {
  font-size: 1.2rem;
}

.service-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--rc-primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.service-hero .lead {
  font-size: 1.2rem;
  color: var(--rc-gray);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.service-stats {
  display: flex;
  gap: 3rem;
}

.stat-item {
    text-align: center;
  }
  
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rc-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--rc-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.service-hero-image:hover .hero-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button i {
  font-size: 2rem;
  color: var(--rc-accent);
  margin-left: 0.3rem;
}

/* Service Offerings */
.service-offerings {
  padding: 6rem 0;
  background: white;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--rc-gray);
  line-height: 1.6;
  margin-bottom: 4rem;
}

.offering-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid var(--rc-border);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.offering-card:hover {
  border-color: var(--rc-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.offering-icon {
  width: 70px;
  height: 70px;
  background: var(--rc-light);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.offering-card:hover .offering-icon {
  background: var(--rc-accent);
}

.offering-icon i {
  font-size: 2rem;
  color: var(--rc-accent);
  transition: var(--transition);
}

.offering-card:hover .offering-icon i {
  color: white;
}

.offering-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--rc-primary);
  margin-bottom: 1rem;
}

.offering-card p {
  color: var(--rc-gray);
  line-height: 1.6;
  margin: 0;
}

/* Service Process */
.service-process {
  padding: 6rem 0;
  background: var(--rc-light);
}

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem;
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--rc-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 2;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--rc-border);
  margin-top: 1.5rem;
}

.step-icon i {
  font-size: 2rem;
  color: var(--rc-accent);
}

.process-step h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rc-primary);
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--rc-gray);
  line-height: 1.6;
  margin: 0;
}

/* Service Why Us */
.service-why-us {
  padding: 6rem 0;
  background: white;
}

.why-us-image {
  position: relative;
}

.why-us-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.experience-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--rc-accent);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.badge-content .years {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.badge-content .text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.why-us-content {
  padding-left: 2rem;
}

.why-us-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rc-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.why-us-content p {
  font-size: 1.1rem;
  color: var(--rc-gray);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.why-features {
  margin-bottom: 3rem;
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-check {
  width: 30px;
  height: 30px;
  background: var(--rc-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feature-check i {
  font-size: 1rem;
  color: white;
  font-weight: bold;
}

.feature-text {
  color: var(--rc-text);
  line-height: 1.6;
}

.feature-text strong {
  color: var(--rc-primary);
}

.why-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.call-info {
  display: flex;
    flex-direction: column;
  gap: 0.3rem;
}

.call-info span {
  font-size: 0.9rem;
  color: var(--rc-gray);
}

.phone-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rc-accent);
  text-decoration: none;
}

.phone-number:hover {
  color: var(--rc-primary);
}

/* Related Services */
.related-services {
  padding: 6rem 0;
  background: var(--rc-light);
}

.related-service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--rc-border);
  height: 100%;
}

.related-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--rc-accent);
}

.related-service-card .service-icon {
  width: 60px;
  height: 60px;
  background: var(--rc-light);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.related-service-card .service-icon i {
  font-size: 1.8rem;
  color: var(--rc-accent);
}

.related-service-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rc-primary);
  margin-bottom: 1rem;
}

.related-service-card p {
  color: var(--rc-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--rc-accent);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--rc-primary);
    gap: 0.8rem;
  }
  
/* Mobile Service Detail */
@media (max-width: 768px) {
  .service-page-hero {
    padding: 1.5rem 0;
    min-height: 15vh;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .service-hero {
    padding: 4rem 0;
  }
  
  .service-hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .service-hero h1 {
    font-size: 2.2rem;
  }
  
  .service-hero .lead {
    font-size: 1.1rem;
  }
  
  .service-stats {
    justify-content: center;
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .service-hero-image img {
    height: 300px;
  }
  
  .service-offerings,
  .service-process,
  .service-why-us,
  .related-services {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .offering-card,
  .process-step {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .why-us-content {
    padding-left: 0;
    text-align: center;
  }
  
  .why-us-content h2 {
    font-size: 2rem;
  }
  
  .why-us-image {
    margin-bottom: 3rem;
  }
  
  .why-us-image img {
    height: 300px;
  }
  
  .experience-badge {
    bottom: 1rem;
    left: 1rem;
    padding: 1rem;
  }
  
  .badge-content .years {
    font-size: 2rem;
  }
  
  .why-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 3rem;
  }
  
  .why-cta {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .service-page-hero {
    padding: 1rem 0;
    min-height: 12vh;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .service-hero {
    padding: 3rem 0;
  }
  
  .service-hero h1 {
    font-size: 1.8rem;
  }
  
  .service-hero .lead {
    font-size: 1rem;
  }
  
  .service-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .service-offerings,
  .service-process,
  .service-why-us,
  .related-services {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .offering-card {
    padding: 1.5rem;
  }
  
  .why-us-content h2 {
    font-size: 1.8rem;
  }
  
  .why-us-content p {
    font-size: 1rem;
  }
}

/* Pagina Chi Siamo */
.chi-siamo-hero {
  padding: 5.5rem 0;
  background-image:
    linear-gradient(135deg, rgba(8,14,26,.9) 0%, rgba(0,153,187,.15) 100%),
    url('assets/img/about-hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  position: relative;
}

.chi-siamo-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,194,232,.35), transparent);
}

.chi-siamo-hero .hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.chi-siamo-hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.72);
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.6;
}

.chi-siamo-intro {
  padding: 6rem 0;
  background: white;
}

.intro-content {
  padding-right: 2rem;
}

.intro-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rc-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.intro-content p {
  font-size: 1.1rem;
  color: var(--rc-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.intro-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.intro-stats .stat-item {
  text-align: center;
}

.intro-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rc-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.intro-stats .stat-label {
  font-size: 0.9rem;
  color: var(--rc-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.intro-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

/* Our Values */
.our-values {
  padding: 6rem 0;
  background: var(--rc-light);
}

.value-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rc-border);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--rc-accent);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: var(--rc-light);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--rc-accent);
}

.value-icon i {
  font-size: 2rem;
  color: var(--rc-accent);
  transition: var(--transition);
}

.value-card:hover .value-icon i {
  color: white;
}

.value-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--rc-primary);
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--rc-gray);
  line-height: 1.6;
  margin: 0;
}

/* Team Section */
.team-section {
  padding: 6rem 0;
  background: white;
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--rc-border);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--rc-accent);
}

.team-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-content {
  padding: 2rem;
  text-align: center;
}

.team-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--rc-primary);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--rc-accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
}

.team-content p {
  color: var(--rc-gray);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Mobile Chi Siamo */
@media (max-width: 768px) {
  .chi-siamo-hero {
    padding: 2rem 0;
    min-height: 20vh;
  }
  
  .chi-siamo-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .chi-siamo-hero .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .chi-siamo-intro,
  .our-values,
  .team-section {
    padding: 4rem 0;
  }
  
  .intro-content {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .intro-content h2 {
    font-size: 2rem;
  }
  
  .intro-stats {
    justify-content: center;
    gap: 2rem;
  }
  
  .intro-stats .stat-number {
    font-size: 2rem;
  }
  
  .intro-image img {
    height: 300px;
  }
  
  .value-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .team-image {
    height: 250px;
  }
  
  .team-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .chi-siamo-hero {
    padding: 1.5rem 0;
    min-height: 15vh;
  }
  
  .chi-siamo-hero .hero-title {
    font-size: 2rem;
  }
  
  .chi-siamo-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .chi-siamo-intro,
  .our-values,
  .team-section {
    padding: 3rem 0;
  }
  
  .intro-content h2 {
    font-size: 1.8rem;
  }
  
  .intro-content p {
    font-size: 1rem;
  }
  
  .intro-stats {
    gap: 1.5rem;
  }
  
  .intro-stats .stat-number {
    font-size: 1.8rem;
  }
  
  .intro-stats .stat-label {
    font-size: 0.8rem;
  }
  
  .value-card {
    padding: 2rem;
  }
  
  .team-image {
    height: 200px;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .servizi-section {
    padding: 4rem 0;
  }

  .cta-section {
    padding: 6rem 0;
  }
}

/* ============================================================
   LIGHT THEME — sfondo chiaro / bianco
   ============================================================ */

/* Navbar chiara */
.navbar-rc {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.10) !important;
}
.navbar-rc.scrolled,
.navbar-rc.navbar-hero.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,.12) !important;
}
.nav-link-rc { color: #1a1a1a !important; }
.nav-link-rc:hover, .nav-link-rc.active { color: #00c2e8 !important; }
.btn-area-personale { color: #1a1a1a !important; border-color: rgba(0,0,0,.28) !important; }
.btn-area-personale i { color: #1a1a1a !important; }
.btn-area-personale:hover { color: #00c2e8 !important; border-color: #00c2e8 !important; background: transparent !important; }
.btn-area-personale:hover i { color: #00c2e8 !important; }
.hamburger-line { background: #1a1a1a; }

/* Trust section */
.trust-section { background: #ffffff; }
.ts-title { color: #1a1a1a; }
.ts-label { color: #6c757d; }
.ts-divider { background: rgba(0,0,0,.12); }
.ts-card { background: #f4f6f9; border: 1px solid #e0e4ea; }
.ts-card:hover { background: rgba(0,194,232,.05); border-color: rgba(0,194,232,.35); }
.ts-card h3 { color: #1a1a1a; }
.ts-card p { color: #6c757d; }

/* Servizi section */
.servizi-section { background: #f4f6f9; }
.servizi-section .section-title { color: #1a1a1a; }
.servizio-card { background: #ffffff; border: 1px solid rgba(0,0,0,.09); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.servizio-card:hover { background: rgba(0,194,232,.04); border-color: rgba(0,194,232,.35); }
.servizio-card h3 { color: #1a1a1a; }
.servizio-card p { color: #555; }
.servizio-num { color: rgba(0,194,232,.45); }

/* Footer chiaro */
.footer-rc { background: #f4f6f9; color: #1a1a1a; }
.footer-desc { color: #555; }
.footer-title { color: #1a1a1a; }
.footer-links a { color: #555; }
.footer-links a:hover { color: #00c2e8; }
.contact-item span, .contact-item a { color: #555; }
.contact-item a:hover { color: #00c2e8; }
.social-link { background: rgba(0,0,0,.08); color: #1a1a1a; }
.social-link:hover { background: #00c2e8; color: #fff; }
.footer-bottom { border-top-color: rgba(0,0,0,.12); }
.copyright { color: #888; }
.footer-legal a { color: #888; }
.footer-legal a:hover { color: #00c2e8; }
.footer-logo { background: #fff; border: 1px solid #dee2e6; }

