/**
 * ==============================================================================
 * CIESSE SERVICE - MODERN DESIGN SYSTEM & STYLING OVERHAUL
 * Based on the official brand identity of ciesseservice.it
 * Specialisti in Porte e Automazioni dal 1993
 * ==============================================================================
 */

/* -----------------------------------------------------------------------------
 * 01. DESIGN TOKENS & CSS VARIABLES
 * -------------------------------------------------------------------------- */
:root {
  /* Corporate Palette (ciesseservice.it) */
  --cs-primary: #0071ac;
  --cs-primary-dark: #005682;
  --cs-primary-deep: #072542;
  --cs-primary-light: #e8f4fa;
  --cs-primary-soft: rgba(0, 113, 172, 0.08);
  --cs-primary-rgb: 0, 113, 172;

  /* Accent Palette (Blue / Cyan Monochromatic Hierarchy for Details & Text Highlights) */
  --cs-accent: #0071ac;
  --cs-accent-hover: #005682;
  --cs-accent-dark: #072542;
  --cs-accent-light: #e8f4fa;
  --cs-accent-soft: rgba(0, 113, 172, 0.12);
  --cs-accent-glow: rgba(0, 113, 172, 0.4);
  --cs-accent-rgb: 0, 113, 172;

  /* Contrasting Solid Pure Yellow Palette for all Buttons & CTAs (No Multi-color Gradients) */
  --cs-btn-yellow: #FFD000;
  --cs-btn-yellow-hover: #E6B800;
  --cs-btn-yellow-text: #000000;
  --cs-btn-yellow-shadow: 0 8px 22px -3px rgba(230, 184, 0, 0.45);
  --cs-btn-yellow-shadow-hover: 0 12px 28px -2px rgba(230, 184, 0, 0.65);

  /* Dark Corporate Neutrals */
  --cs-dark: #0b1c2e;
  --cs-dark-navy: #071728;
  --cs-dark-surface: #10243a;
  --cs-dark-card: rgba(11, 28, 46, 0.88);

  /* Light Neutrals & Surfaces */
  --cs-white: #ffffff;
  --cs-bg-light: #f6f9fc;
  --cs-bg-subtle: #edf3f8;
  --cs-border: #e2e8f0;
  --cs-border-card: rgba(0, 113, 172, 0.12);

  /* Typography Colors */
  --cs-text-main: #1e293b;
  --cs-text-headings: #0b1c2e;
  --cs-text-muted: #5e6d82;
  --cs-text-light: #94a3b8;

  /* Typography Families */
  --cs-font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cs-font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --cs-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --cs-shadow-md: 0 8px 24px -4px rgba(0, 45, 90, 0.08), 0 3px 8px -2px rgba(0, 0, 0, 0.03);
  --cs-shadow-lg: 0 16px 36px -6px rgba(0, 113, 172, 0.14), 0 6px 14px -2px rgba(0, 0, 0, 0.05);
  --cs-shadow-xl: 0 24px 50px -10px rgba(0, 30, 70, 0.22);
  --cs-shadow-accent: 0 10px 28px -4px rgba(0, 113, 172, 0.35);
  --cs-shadow-blue: 0 10px 28px -4px rgba(0, 113, 172, 0.35);

  /* Border Radii */
  --cs-radius-sm: 8px;
  --cs-radius-md: 14px;
  --cs-radius-lg: 20px;
  --cs-radius-xl: 28px;
  --cs-radius-pill: 9999px;

  /* Transitions */
  --cs-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --cs-transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -----------------------------------------------------------------------------
 * 02. BASE RESETS & TYPOGRAPHY
 * -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cs-font-body) !important;
  color: var(--cs-text-main) !important;
  background-color: var(--cs-white) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--cs-font-heading) !important;
  color: var(--cs-text-headings) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  font-family: var(--cs-font-body) !important;
  color: var(--cs-text-muted) !important;
  font-size: 16px;
  line-height: 1.75;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #0071ac;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cs-primary-dark);
}

/* Selection highlight */
::selection {
  background: rgba(0, 113, 172, 0.2);
  color: #0071ac;
}

.text-blue {
  color: var(--cs-primary) !important;
}

/* -----------------------------------------------------------------------------
 * 03. HEADER & NAVBAR
 * -------------------------------------------------------------------------- */
.navbar-fixed-top {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(0, 113, 172, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 20, 50, 0.05) !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  transition: var(--cs-transition) !important;
}

.navbar-fixed-top.opaque {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 30px rgba(0, 20, 50, 0.08) !important;
  border-bottom: 1px solid rgba(0, 113, 172, 0.15) !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Logo image styling */
.navbar img {
  max-height: 56px;
  width: auto;
  transition: var(--cs-transition);
}

.navbar img:hover {
  transform: scale(1.02);
}

/* Nav links */
.navbar-fixed-top .navbar-nav>li>a {
  font-family: var(--cs-font-heading) !important;
  color: var(--cs-text-headings) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  position: relative;
  transition: var(--cs-transition) !important;
}

.navbar-fixed-top .navbar-nav>li>a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--cs-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.navbar-fixed-top .navbar-nav>li>a:hover {
  color: var(--cs-primary) !important;
}

.navbar-fixed-top .navbar-nav>li>a:hover::after,
.navbar-fixed-top.opaque .navbar-nav .current a::after {
  transform: scaleX(1);
}

.navbar-fixed-top.opaque .navbar-nav .current a {
  color: var(--cs-primary) !important;
}

/* Discover button in navbar */
.navbar-fixed-top .navbar-nav>li>a.discover-btn,
.navbar-fixed-top.opaque .navbar-nav>li>a.discover-btn {
  background: var(--cs-btn-yellow) !important;
  border: none !important;
  color: var(--cs-btn-yellow-text) !important;
  border-radius: var(--cs-radius-pill) !important;
  padding: 10px 24px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  box-shadow: var(--cs-btn-yellow-shadow) !important;
  transition: var(--cs-transition-bounce) !important;
  margin-left: 12px;
}

.navbar-fixed-top .navbar-nav>li>a.discover-btn:hover,
.navbar-fixed-top.opaque .navbar-nav>li>a.discover-btn:hover {
  background: var(--cs-btn-yellow-hover) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: var(--cs-btn-yellow-shadow-hover) !important;
  color: var(--cs-btn-yellow-text) !important;
}

.navbar-fixed-top .navbar-nav>li>a.discover-btn::after {
  display: none !important;
}

/* Mobile Toggler */
.navbar-toggler {
  border: 1.5px solid var(--cs-primary) !important;
  border-radius: 8px;
  padding: 6px 12px;
}

.navbar-toggler-icon i {
  color: var(--cs-primary) !important;
  font-size: 20px;
}

/* -----------------------------------------------------------------------------
 * 04. HERO SECTION (.home-section)
 * -------------------------------------------------------------------------- */
.home-section {
  position: relative;
  z-index: 10;
  padding-top: 150px !important;
  padding-bottom: 120px !important;
  background-image: url('../images/hero-bg.jpg') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  overflow: hidden;
}

/* Remove decorative blue mesh and floating blue orb */
.home-section::before,
.home-section::after {
  display: none !important;
}

/* Soft neutral overlay to ensure maximum text contrast without altering image colors */
.home-section-overlay {
  display: block !important;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.18) 80%, rgba(0, 0, 0, 0.08) 100%) !important;
  opacity: 1 !important;
  z-index: 1;
  pointer-events: none;
}

.home-section .container {
  position: relative;
  z-index: 3;
}

/* Hero Headline */
.home-section h1 {
  font-size: 44px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75) !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.03em !important;
}

.home-section h1 span {
  display: inline-block;
  color: #ffffff;
  background: linear-gradient(135deg, #00b4d8 0%, #0071ac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  font-weight: 800;
  text-shadow: none;
}

/* Hero Paragraph & Advantages */
.home-section p.hero-text {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #f1f5f9 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8) !important;
  margin-bottom: 30px !important;
}

.home-section p.hero-text em {
  font-style: normal;
  display: block;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 3px solid var(--cs-primary);
  border-radius: 0 12px 12px 0;
  padding: 14px 20px;
  margin: 16px 0;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.8;
}

.home-section p.hero-text>span>span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin: 2px 3px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Hero Call Button (Chiama Ora) */
.home-section .btn-red,
.home-section .btn-red.scrool {
  background: var(--cs-btn-yellow) !important;
  border: none !important;
  color: var(--cs-btn-yellow-text) !important;
  border-radius: var(--cs-radius-pill) !important;
  padding: 16px 36px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  box-shadow: var(--cs-btn-yellow-shadow) !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: var(--cs-transition-bounce) !important;
  animation: pulseCta 2.8s infinite;
  text-transform: uppercase;
}

.home-section .btn-red:hover,
.home-section .btn-red.scrool:hover {
  background: var(--cs-btn-yellow-hover) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: var(--cs-btn-yellow-shadow-hover) !important;
  color: var(--cs-btn-yellow-text) !important;
}

@keyframes pulseCta {

  0%,
  100% {
    box-shadow: 0 8px 22px -3px rgba(230, 184, 0, 0.45);
  }

  50% {
    box-shadow: 0 10px 32px 0 rgba(230, 184, 0, 0.75);
  }
}

/* -----------------------------------------------------------------------------
 * 05. HERO LEAD GENERATION FORM (.register-form-wrapper)
 * -------------------------------------------------------------------------- */
.register-form-wrapper {
  margin-top: 10px !important;
  padding: 40px 36px !important;
  background:
    linear-gradient(90deg, #0071ac 0%, #00b4d8 100%) top left / 100% 4px no-repeat,
    rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-radius: var(--cs-radius-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: none !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  overflow: visible !important;
}

/* Pseudo-element disabled: gradient accent is natively integrated in background to avoid any overflow */
.register-form-wrapper::before {
  display: none !important;
}

/* Override inline red title */
.register-form-wrapper h3,
.register-form-wrapper h3[style] {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.02em !important;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Override inline whitesmoke subtitle */
.register-form-wrapper p,
.register-form-wrapper p[style] {
  color: #cbd5e1 !important;
  font-size: 15px !important;
  margin-bottom: 22px !important;
  font-weight: 500 !important;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Form input fields */
.register-form-wrapper .form-group {
  margin-bottom: 14px;
}

.register-form-wrapper .form-control {
  height: 50px !important;
  background-color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--cs-radius-sm) !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
  color: #0b1c2e !important;
  font-family: var(--cs-font-body) !important;
  transition: var(--cs-transition) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.register-form-wrapper .form-control:focus {
  background-color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.3) !important;
  outline: none !important;
  color: #0b1c2e !important;
}

.register-form-wrapper .form-control::placeholder {
  color: #64748b !important;
  font-size: 14px;
}

/* Privacy Checkbox area */
.register-form-wrapper p[style*="font-size: 12px"],
.register-form-wrapper p[style*="12px"] {
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #e2e8f0 !important;
  margin-top: 14px !important;
  margin-bottom: 20px !important;
  text-align: left !important;
}

.register-form-wrapper span[style*="whitesmoke"],
.register-form-wrapper span[style] {
  color: #e2e8f0 !important;
  font-size: 12px !important;
}

.register-form-wrapper input[type="checkbox"] {
  accent-color: #FFCC00;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: sub;
  cursor: pointer;
}

.register-form-wrapper a {
  color: #ff851b !important;
  text-decoration: underline !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

.register-form-wrapper a:hover {
  color: #ffa040 !important;
}

/* Submit Button Container & Concentric Pulsing Ripples */
.submit-btn-container {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin-top: 15px !important;
  margin-bottom: 5px !important;
  text-align: center;
}

/* Concentric Rings Underneath the Button (expanding from center and fading out at relaxed frequency) */
.submit-btn-container .ripple-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255, 204, 0, 0.85);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6), inset 0 0 15px rgba(255, 204, 0, 0.35);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: ripplePulseExpand 6s infinite cubic-bezier(0.22, 0.61, 0.36, 1);
}

.submit-btn-container .ripple-circle.ripple-1 {
  animation-delay: 0s;
}

.submit-btn-container .ripple-circle.ripple-2 {
  animation-delay: 1.5s;
}

.submit-btn-container .ripple-circle.ripple-3 {
  animation-delay: 3s;
}

.submit-btn-container .ripple-circle.ripple-4 {
  animation-delay: 4.5s;
}

@keyframes ripplePulseExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0.95;
    border-color: rgba(255, 204, 0, 0.95);
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.8);
  }

  25% {
    opacity: 0.75;
    border-color: rgba(255, 204, 0, 0.8);
  }

  60% {
    opacity: 0.35;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.35);
  }

  85% {
    opacity: 0.12;
  }

  100% {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
    border-color: rgba(255, 204, 0, 0);
    box-shadow: 0 0 45px rgba(255, 204, 0, 0);
  }
}

/* Submit Button - #FFCC00, Radiant Luminous Glow & Thicker Lighter Border */
.register-form-wrapper input[type="submit"].btn-red,
.register-form-wrapper input.btn-red {
  width: 100% !important;
  height: 56px !important;
  background: #FFCC00 !important;
  border: 3.5px solid #E6B800 !important;
  border-radius: var(--cs-radius-sm) !important;
  color: #06152b !important;
  font-family: var(--cs-font-heading) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.75), 0 8px 24px -2px rgba(230, 184, 0, 0.5) !important;
  transition: var(--cs-transition-bounce) !important;
  position: relative !important;
  z-index: 2 !important;
  overflow: hidden;
  animation: submitLuminousGlow 2.8s infinite ease-in-out !important;
}

.register-form-wrapper input[type="submit"].btn-red:hover {
  background: #FFD633 !important;
  border-color: #CCA300 !important;
  color: #000000 !important;
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 0 38px rgba(255, 204, 0, 0.95), 0 12px 30px 0 rgba(230, 184, 0, 0.7) !important;
  animation: none !important;
}

@keyframes submitLuminousGlow {

  0%,
  100% {
    box-shadow: 0 0 22px rgba(255, 204, 0, 0.65), 0 8px 22px -3px rgba(230, 184, 0, 0.45);
    filter: brightness(1.02);
  }

  50% {
    box-shadow: 0 0 38px rgba(255, 204, 0, 0.95), 0 10px 30px 0 rgba(255, 204, 0, 0.75);
    filter: brightness(1.08);
  }
}

/* Terms / Secure notice below form */
.register-form-wrapper .register-form-terms,
.register-form-wrapper .register-form-terms[style] {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin-top: 15px !important;
  margin-bottom: 0 !important;
  text-align: left !important;
}

.register-form-wrapper .register-form-terms a {
  color: #ff851b !important;
}

.register-form-wrapper .register-form-terms a:hover {
  color: #ffa040 !important;
}

/* -----------------------------------------------------------------------------
 * 06. TRUSTED PARTNERS / SOCIAL PROOF (.partners-section)
 * -------------------------------------------------------------------------- */
.cs-partners-marquee-section {
  background-color: #0b1118 !important;
  border-top: 2px solid var(--cs-primary) !important;
  border-bottom: 2px solid var(--cs-primary) !important;
  padding: 38px 0 34px 0 !important;
  position: relative;
  overflow: hidden;
}

/* Disabled orange line in favor of universal blue divider border */
.cs-partners-marquee-section::before {
  display: none !important;
}

.cs-partner-heading-wrap {
  margin-bottom: 22px;
}

.cs-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cs-primary);
  background: rgba(0, 113, 172, 0.12);
  border: 1px solid rgba(0, 113, 172, 0.35);
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 8px;
  box-shadow: 0 0 15px rgba(0, 113, 172, 0.2);
}

.cs-partner-badge i {
  color: var(--cs-primary);
  font-size: 12px;
}

.cs-partner-title {
  font-family: var(--cs-font-heading) !important;
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* Marquee Container with edge fades */
.cs-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
}

.cs-marquee-container::before,
.cs-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.cs-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #0b1118 0%, rgba(11, 17, 24, 0) 100%);
}

.cs-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #0b1118 0%, rgba(11, 17, 24, 0) 100%);
}

.cs-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: cs-marquee-animation 35s linear infinite;
}

.cs-marquee-track:hover {
  animation-play-state: paused;
}

.cs-marquee-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  flex-shrink: 0;
}

@keyframes cs-marquee-animation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Individual Partner Box */
.cs-partner-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 72px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.cs-partner-card img {
  max-height: 40px;
  max-width: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.85);
  opacity: 0.85;
  transition: all 0.3s ease;
}

/* Hover state with Blue Accent Glow */
.cs-partner-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--cs-primary);
  box-shadow: 0 4px 20px rgba(0, 113, 172, 0.35);
  transform: translateY(-3px);
}

.cs-partner-card:hover img {
  filter: brightness(0) invert(1);
  opacity: 1;
  transform: scale(1.06);
}

/* -----------------------------------------------------------------------------
 * 06B. UNIVERSAL SECTION BLUE DIVIDERS (2PX AT START & END OF EVERY SECTION)
 * -------------------------------------------------------------------------- */
.home-section,
.cs-partners-marquee-section,
section.section-grey,
section.section-white,
section.section-bg-1,
section.section-bg-2,
footer.footer {
  border-top: 2px solid var(--cs-primary) !important;
  border-bottom: 2px solid var(--cs-primary) !important;
  position: relative;
}

/* Seamless collapse of adjacent section borders to maintain uniform 2px thickness */
.cs-partners-marquee-section,
section.section-grey,
section.section-white,
section.section-bg-1,
section.section-bg-2,
footer.footer {
  margin-top: -2px !important;
}

/* -----------------------------------------------------------------------------
 * 07. PROBLEM & SOLUTION SECTION (#about) + CREATIVE STEP BOXES
 * -------------------------------------------------------------------------- */
.section-grey {
  background-color: var(--cs-bg-light) !important;
  padding: 100px 0 !important;
  position: relative;
}

.section-white {
  background-color: #ffffff !important;
  padding: 100px 0 !important;
  position: relative;
}

/* Titles */
h2.section-title {
  font-size: 38px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: var(--cs-dark) !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.02em;
}

/* Override inline darkred tags on problem/solution */
h2.section-title span[style*="darkred"],
h2.section-title span[style*="red"],
h2.section-title span[style] {
  color: var(--cs-primary) !important;
  background: var(--cs-primary-light);
  padding: 2px 10px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 800;
}

p.section-subtitle {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--cs-text-muted) !important;
  max-width: 820px;
  margin: 0 auto 35px auto !important;
}

/* CREATIVE STEP BOXES (.main-services) */
.services-wrapper {
  margin-top: 40px;
}

.main-services {
  background: #ffffff !important;
  border: 1px solid var(--cs-border-card) !important;
  border-radius: var(--cs-radius-lg) !important;
  padding: 42px 28px 36px 28px !important;
  margin: 15px 0 !important;
  text-align: center;
  box-shadow: var(--cs-shadow-md) !important;
  transition: var(--cs-transition-bounce) !important;
  position: relative;
  overflow: hidden;
  height: calc(100% - 30px);
}

/* Decorative gradient bar on top of each card */
.main-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.main-services.blue::before {
  background: linear-gradient(90deg, #0071ac, #00b4d8);
}

.main-services.red::before {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.main-services.green::before {
  background: linear-gradient(90deg, #072542, #0071ac);
}

/* Step Number watermark */
.main-services::after {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(0, 113, 172, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.main-services:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--cs-shadow-lg) !important;
  border-color: rgba(0, 113, 172, 0.3) !important;
}

.main-services:hover::before {
  height: 6px;
}

/* Step Icons */
.main-services i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 72px !important;
  height: 72px !important;
  font-size: 32px !important;
  line-height: 1 !important;
  border-radius: var(--cs-radius-md) !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  transition: var(--cs-transition-bounce) !important;
  padding: 0 !important;
}

.main-services.blue i {
  background: linear-gradient(135deg, var(--cs-primary) 0%, #0098e6 100%) !important;
  box-shadow: 0 10px 22px rgba(0, 113, 172, 0.35) !important;
}

.main-services.red i {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.35) !important;
}

.main-services.green i {
  background: linear-gradient(135deg, var(--cs-primary-deep) 0%, #0071ac 100%) !important;
  box-shadow: 0 10px 22px rgba(7, 37, 66, 0.35) !important;
}

.main-services:hover i {
  transform: scale(1.1) rotate(4deg);
}

.main-services h4 {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: var(--cs-dark) !important;
  margin-bottom: 14px !important;
}

.main-services p {
  color: var(--cs-text-muted) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
}

/* -----------------------------------------------------------------------------
 * 08. BENEFITS & OFFER DETAILS (.section-white)
 * -------------------------------------------------------------------------- */
.section-white {
  position: relative;
  padding: 85px 0 !important;
  background: #ffffff;
}

.section-white .product-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-white .product-flagship-img {
  width: 100% !important;
  max-width: 480px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.section-white .product-flagship-img:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.18) !important;
}

.section-white .product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 113, 172, 0.08);
  color: var(--cs-primary);
  border: 1px solid rgba(0, 113, 172, 0.22);
  padding: 6px 16px;
  border-radius: var(--cs-radius-pill);
  font-family: var(--cs-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-white .product-badge i {
  color: var(--cs-primary);
}

.section-white h3.product-flagship-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--cs-dark) !important;
  margin-bottom: 16px !important;
}

.section-white .product-flagship-intro {
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: var(--cs-text-muted) !important;
  margin-bottom: 24px !important;
}

.section-white .product-benefits-block {
  margin-bottom: 20px;
}

.section-white .product-group-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--cs-dark) !important;
  margin-bottom: 12px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-white .product-group-title .text-accent {
  color: var(--cs-primary);
}

/* Benefits list */
ul.benefits {
  margin-bottom: 20px !important;
  padding-left: 0 !important;
  list-style: none !important;
}

ul.benefits li {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--cs-text-main) !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: flex-start !important;
}

ul.benefits li i {
  color: var(--cs-primary) !important;
  background: var(--cs-primary-light);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px !important;
  margin-right: 12px !important;
  margin-top: 3px !important;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 113, 172, 0.15);
}

ul.benefits li strong {
  color: var(--cs-dark);
}

/* -----------------------------------------------------------------------------
 * 09. GENERAL BUTTONS OVERHAUL (YELLOW CONTRAST)
 * -------------------------------------------------------------------------- */
.btn-red,
.btn-red.small,
.btn-blue,
.btn-blue.small,
.btn-white,
.btn-white.small {
  background: var(--cs-btn-yellow) !important;
  border: none !important;
  color: #000000 !important;
  border-radius: var(--cs-radius-pill) !important;
  padding: 14px 32px !important;
  font-family: var(--cs-font-heading) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  box-shadow: var(--cs-btn-yellow-shadow) !important;
  display: inline-block !important;
  transition: var(--cs-transition-bounce) !important;
  text-decoration: none !important;
  cursor: pointer;
}

.btn-red:hover,
.btn-red.small:hover,
.btn-blue:hover,
.btn-blue.small:hover,
.btn-white:hover,
.btn-white.small:hover {
  background: var(--cs-btn-yellow-hover) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: var(--cs-btn-yellow-shadow-hover) !important;
  color: #000000 !important;
}

.btn-red.small,
.btn-blue.small,
.btn-white.small {
  padding: 12px 28px !important;
  font-size: 14px !important;
}

/* Ensure button text stays pure black across all link states */
a.btn-red,
a.btn-red:visited,
a.btn-red:focus,
a.btn-red:active,
a.btn-red:hover,
a.btn-blue,
a.btn-blue:visited,
a.btn-blue:focus,
a.btn-blue:active,
a.btn-blue:hover,
a.btn-white,
a.btn-white:visited,
a.btn-white:focus,
a.btn-white:active,
a.btn-white:hover {
  color: #000000 !important;
}

/* -----------------------------------------------------------------------------
 * 10. OPTIMIZED SOLUTION SCHEMATIC & ACTION BOXES (.services-wrapper)
 * -------------------------------------------------------------------------- */

/* Box 1: Schematic Solution Description Card */
.services-wrapper .row > .col-md-12.text-center.margin-bottom-10 {
  background: #ffffff !important;
  border: 1px solid var(--cs-border-card) !important;
  border-radius: var(--cs-radius-lg) !important;
  padding: 24px 34px !important;
  margin-top: 25px !important;
  margin-bottom: 0 !important;
  box-shadow: var(--cs-shadow-sm) !important;
  text-align: left !important;
  position: relative !important;
  overflow: hidden !important;
}

.services-wrapper .row > .col-md-12.text-center.margin-bottom-10::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cs-primary), #00b4d8);
  border-radius: var(--cs-radius-lg) 0 0 var(--cs-radius-lg);
}

.services-wrapper .row > .col-md-12.text-center.margin-bottom-10 br {
  display: none !important;
}

.services-wrapper .row > .col-md-12.text-center.margin-bottom-10 p.section-subtitle {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  color: #334155 !important;
  font-weight: 500 !important;
  text-align: left !important;
}

/* Centered Call-to-Action Action Button (Free-standing, no box) */
.services-wrapper > .container > .col-md-12.text-center.margin-bottom-10 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 28px !important;
  margin-bottom: 20px !important;
  text-align: center !important;
  display: block !important;
}

.services-wrapper > .container > .col-md-12.text-center.margin-bottom-10::before {
  display: none !important;
}

.services-wrapper > .container > .col-md-12.text-center.margin-bottom-10 a.btn-red {
  margin: 0 auto !important;
  color: #000000 !important;
  font-weight: 800 !important;
  display: inline-block !important;
}

/* -----------------------------------------------------------------------------
 * 11. STRUCTURED SEO PARAGRAPHS CARD (.section-white)
 * -------------------------------------------------------------------------- */
.section-white .col-md-12.text-center.margin-bottom-10 {
  background: #ffffff;
  border: 1px solid var(--cs-border-card);
  border-radius: var(--cs-radius-lg);
  padding: 38px 32px;
  margin-top: 30px;
  box-shadow: var(--cs-shadow-sm);
  text-align: left !important;
  position: relative;
}

.section-white .col-md-12.text-center.margin-bottom-10::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cs-primary), #00b4d8);
  border-radius: var(--cs-radius-lg) 0 0 var(--cs-radius-lg);
}

.section-white .col-md-12.text-center.margin-bottom-10 h2 {
  font-size: 24px !important;
  color: var(--cs-dark) !important;
  margin-bottom: 12px !important;
}

.section-white .col-md-12.text-center.margin-bottom-10 h3 {
  font-size: 19px !important;
  color: var(--cs-primary) !important;
  margin-top: 22px !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
}

.section-white .col-md-12.text-center.margin-bottom-10 p {
  color: var(--cs-text-muted) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.section-white .col-md-12.text-center.margin-bottom-10 a {
  color: var(--cs-primary) !important;
  font-weight: 700;
  background: var(--cs-primary-light);
  padding: 4px 12px;
  border-radius: var(--cs-radius-sm);
  display: inline-block;
  margin: 4px 2px;
  transition: var(--cs-transition);
}

.section-white .col-md-12.text-center.margin-bottom-10 a:hover {
  background: var(--cs-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
 * 11. NUMBERS & STATS COUNTER (.section-bg-1)
 * -------------------------------------------------------------------------- */
.section-bg-1 {
  background: linear-gradient(180deg, #080b0e 0%, #12161d 50%, #080b0e 100%) !important;
  position: relative;
  padding: 100px 0 !important;
  overflow: hidden;
}

.section-bg-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.section-bg-overlay {
  display: none !important;
}

.section-bg-1 h2.white-text {
  font-size: 38px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

/* Modern Glass Stats Cards on Carbon Black */
.fun-facts-box {
  background: rgba(255, 255, 255, 0.045) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--cs-radius-lg) !important;
  padding: 38px 20px 32px 20px !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45) !important;
  transition: var(--cs-transition-bounce) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.fun-facts-box:hover {
  transform: translateY(-8px) scale(1.02) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(0, 113, 172, 0.65) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 113, 172, 0.25) !important;
}

.fun-facts-box i {
  font-size: 40px !important;
  color: var(--cs-primary) !important;
  margin-bottom: 18px !important;
  display: inline-block;
  transition: var(--cs-transition);
}

.fun-facts-box:hover i {
  transform: scale(1.15);
}

.facts-numbers {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  display: block;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  margin-bottom: 8px !important;
}

.fun-facts-title {
  color: #cbd5e1 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin-bottom: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.4 !important;
}

/* -----------------------------------------------------------------------------
 * 12. TESTIMONIALS & REVIEWS ACCORDION (#testimonials)
 * -------------------------------------------------------------------------- */
#testimonials h2 {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: var(--cs-dark) !important;
  margin-bottom: 16px !important;
}

/* Review Platforms */
.testim-platform {
  background: #ffffff;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-md);
  padding: 16px 12px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--cs-shadow-sm);
  transition: var(--cs-transition);
}

.testim-platform:hover {
  transform: translateY(-4px);
  box-shadow: var(--cs-shadow-md);
  border-color: var(--cs-primary);
}

.testim-platform p {
  font-weight: 800 !important;
  color: var(--cs-dark) !important;
  font-size: 15px !important;
  margin-bottom: 4px !important;
}

.testim-rating {
  margin-bottom: 0 !important;
}

.testim-rating i {
  color: #f59e0b !important;
  font-size: 13px !important;
}

/* Testimonials Accordion Cards */
#accordionFAQ .card {
  border: 1px solid var(--cs-border) !important;
  border-radius: var(--cs-radius-md) !important;
  box-shadow: var(--cs-shadow-sm) !important;
  margin-bottom: 16px !important;
  overflow: hidden;
  transition: var(--cs-transition) !important;
}

#accordionFAQ .card:hover {
  box-shadow: var(--cs-shadow-md) !important;
  border-color: rgba(0, 113, 172, 0.25) !important;
}

#accordionFAQ .card-header {
  background: #ffffff !important;
  border-left: 4px solid var(--cs-primary) !important;
  padding: 16px 20px !important;
  cursor: pointer;
}

#accordionFAQ .card-header h5 .btn-link {
  width: 100%;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  padding: 0 !important;
}

#accordionFAQ .testim-img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  border: 2px solid var(--cs-primary-light);
  margin-right: 16px !important;
}

#accordionFAQ .testim-name {
  font-family: var(--cs-font-heading) !important;
  font-weight: 700 !important;
  color: var(--cs-dark) !important;
  font-size: 16px !important;
  margin: 0 !important;
}

#accordionFAQ .testim-name span {
  font-size: 13px !important;
  color: var(--cs-primary) !important;
  font-weight: 600 !important;
}

#accordionFAQ .card-body {
  border-left: 4px solid var(--cs-primary) !important;
  padding: 20px 24px !important;
  background: var(--cs-bg-light) !important;
  font-style: normal !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--cs-text-muted) !important;
}

#accordionFAQ .card-body p strong {
  color: var(--cs-dark);
  display: block;
  margin-bottom: 8px;
  font-size: 15.5px;
  line-height: 1.5;
}

.testim-stars-row {
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
}

.testim-stars-row i.fas.fa-star {
  color: #f59e0b !important;
  font-size: 14px !important;
  margin-right: 3px !important;
}

.testim-stars-row .badge-google {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #047857 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  margin-left: 10px !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.3px;
}

.testim-stars-row .badge-google i {
  margin-right: 4px;
  font-size: 11px;
}

/* -----------------------------------------------------------------------------
 * 13. PORTFOLIO / REALIZZAZIONI (#portfolio)
 * -------------------------------------------------------------------------- */
figure.gallery-insta {
  margin: 0 !important;
  position: relative;
  display: block !important;
  width: 100% !important;
}

.popup-gallery,
.popup-gallery-rounded,
.portfolio-pic {
  display: block !important;
  width: 100% !important;
}

.popup-gallery-rounded {
  border-radius: var(--cs-radius-lg) !important;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
  border: none !important;
  background: transparent !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
  position: relative;
}

.popup-gallery-rounded:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 113, 172, 0.16) !important;
  border: none !important;
}

.portfolio-pic a {
  display: block !important;
  width: 100% !important;
  height: 265px !important;
  position: relative !important;
}

.portfolio-pic img {
  width: 100% !important;
  max-width: 100% !important;
  height: 265px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border: none !important;
  padding: 0 !important;
  border-radius: var(--cs-radius-lg) !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.popup-gallery:hover img {
  transform: scale(1.05) !important;
  opacity: 0.95 !important;
}

/* Caption bar at the bottom of each portfolio card */
.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 12px 16px;
  background: linear-gradient(to top, rgba(11, 17, 24, 0.92) 0%, rgba(11, 17, 24, 0.65) 65%, transparent 100%);
  color: #ffffff;
  z-index: 12;
  pointer-events: none;
  border-radius: 0 0 var(--cs-radius-lg) var(--cs-radius-lg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-caption h5 {
  font-family: var(--cs-font-heading);
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 3px 0 !important;
  line-height: 1.3 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.portfolio-caption span {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: block;
}

.popup-gallery a span.eye-wrapper {
  background: linear-gradient(135deg, rgba(0, 113, 172, 0.75) 0%, rgba(7, 25, 45, 0.85) 100%) !important;
  border-radius: var(--cs-radius-lg);
  border: none !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 15 !important;
}

.popup-gallery a span.eye-wrapper i.eye-icon {
  color: #ffffff !important;
  background: var(--cs-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  position: static !important;
  box-shadow: 0 4px 15px rgba(0, 113, 172, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-gallery:hover a span.eye-wrapper i.eye-icon {
  transform: scale(1.15);
}

@media (max-width: 991px) {
  .portfolio-pic img {
    height: 240px !important;
  }
}

/* -----------------------------------------------------------------------------
 * 14. CERTIFICAZIONI & GARANZIE (#team-garanzie)
 * -------------------------------------------------------------------------- */
#team-garanzie {
  background-color: #f8fafc !important;
}

#team-garanzie .row {
  display: flex;
  flex-wrap: wrap;
}

#team-garanzie .col-md-4 {
  display: flex;
  flex-direction: column;
}

.cs-cert-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 34px 28px 28px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.cs-cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0071ac 0%, #00b4d8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(17, 24, 39, 0.12);
  border-color: rgba(0, 113, 172, 0.55);
}

.cs-cert-card:hover::before {
  opacity: 1;
}

.cs-cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cs-cert-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 26px;
  flex-shrink: 0;
}

.cs-cert-icon-gold {
  background: linear-gradient(135deg, #FFF9DB 0%, #FFF3B0 100%);
  color: #b45309;
  border: 1px solid #FDE68A;
}

.cs-cert-icon-blue {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1e40af;
  border: 1px solid #BFDBFE;
}

.cs-cert-icon-dark {
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  color: #111827;
  border: 1px solid #D1D5DB;
}

.cs-cert-mini-badge {
  position: absolute;
  bottom: -6px;
  right: -8px;
  background: #FFCC00;
  color: #000000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.cs-cert-ce-symbol {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.cs-cert-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 30px;
}

.cs-cert-tag-gold {
  background: #FEF3C7;
  color: #92400E;
}

.cs-cert-tag-blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.cs-cert-tag-dark {
  background: #E5E7EB;
  color: #374151;
}

.cs-cert-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.cs-cert-desc {
  font-size: 0.935rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 22px;
  min-height: 70px;
}

.cs-cert-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0 0 18px 0;
  width: 100%;
}

.cs-cert-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-cert-list li {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.cs-cert-list li i {
  color: #16a34a;
  font-size: 15px;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
 * 15. CREATIVE BENTO FEATURE BOXES (#features)
 * -------------------------------------------------------------------------- */
#features {
  background: var(--cs-bg-light) !important;
}

.feature-box {
  background: #ffffff !important;
  border: 1px solid var(--cs-border) !important;
  border-radius: var(--cs-radius-lg) !important;
  padding: 32px 24px !important;
  margin-top: 24px !important;
  box-shadow: var(--cs-shadow-sm) !important;
  transition: var(--cs-transition-bounce) !important;
  position: relative;
  overflow: hidden;
  height: calc(100% - 24px);
  display: flex;
  align-items: flex-start;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cs-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--cs-shadow-lg) !important;
  border-color: rgba(0, 113, 172, 0.25) !important;
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-box i {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 58px !important;
  height: 58px !important;
  border-radius: var(--cs-radius-md) !important;
  font-size: 24px !important;
  color: #ffffff !important;
  flex-shrink: 0;
  margin-right: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: var(--cs-transition-bounce);
}

.feature-box:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Specific Feature Card Accents */
.feature-box.light-green i {
  background: linear-gradient(135deg, #0071ac, #00b4d8) !important;
  box-shadow: 0 8px 18px rgba(0, 113, 172, 0.3) !important;
}

.feature-box.light-blue i {
  background: linear-gradient(135deg, #005682, #0071ac) !important;
  box-shadow: 0 8px 18px rgba(0, 86, 130, 0.3) !important;
}

.feature-box.orange i {
  background: linear-gradient(135deg, #0284c7, #0071ac) !important;
  box-shadow: 0 8px 18px rgba(0, 113, 172, 0.35) !important;
}

.feature-box.dark-blue i {
  background: linear-gradient(135deg, #072542, #103b66) !important;
  box-shadow: 0 8px 18px rgba(7, 37, 66, 0.3) !important;
}

.feature-box.light-red i {
  background: linear-gradient(135deg, #0071ac, #00b4d8) !important;
  box-shadow: 0 8px 18px rgba(0, 113, 172, 0.3) !important;
}

.feature-box.dark-green i {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.3) !important;
}

.feature-box-text {
  float: none !important;
  width: auto !important;
  margin-left: 0 !important;
}

.feature-box h4 {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: var(--cs-dark) !important;
  margin-bottom: 8px !important;
}

.feature-box p {
  font-size: 14px !important;
  color: var(--cs-text-muted) !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

/* -----------------------------------------------------------------------------
 * 16. TEAM SECTION (#team)
 * -------------------------------------------------------------------------- */
.team-item {
  border-radius: 0 0 var(--cs-radius-md) var(--cs-radius-md) !important;
  border: 1px solid var(--cs-border) !important;
  border-top: none !important;
  box-shadow: var(--cs-shadow-sm) !important;
  transition: var(--cs-transition) !important;
}

.team-img {
  border-radius: var(--cs-radius-md) var(--cs-radius-md) 0 0 !important;
  border: 1px solid var(--cs-border);
  border-bottom: none;
}

.team-item:hover {
  box-shadow: var(--cs-shadow-lg) !important;
  transform: translateY(-6px);
}

.team-item h3 {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--cs-dark) !important;
}

.team-info::after {
  background: var(--cs-primary) !important;
}

/* -----------------------------------------------------------------------------
 * 17. FAQ SECTION (#faq)
 * -------------------------------------------------------------------------- */
.faq-equal-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.faq-equal-row > [class*="col-"] {
  display: flex !important;
  margin-bottom: 24px !important;
}

.faq-equal-row .faq-box {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: 100% !important;
}

.faq-equal-row .faq-box p {
  flex-grow: 1 !important;
}

.faq-box {
  background: #ffffff !important;
  border: 1px solid var(--cs-border) !important;
  border-radius: var(--cs-radius-md) !important;
  padding: 26px 28px !important;
  margin-top: 20px !important;
  box-shadow: var(--cs-shadow-sm) !important;
  transition: var(--cs-transition-bounce) !important;
  position: relative;
  overflow: hidden;
}

.faq-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cs-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--cs-shadow-md) !important;
  border-color: rgba(0, 113, 172, 0.25) !important;
}

.faq-box:hover::before {
  opacity: 1;
}

.faq-box h5 {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--cs-dark) !important;
  margin-bottom: 12px !important;
  display: flex;
  align-items: flex-start;
  line-height: 1.45 !important;
}

.faq-box h5::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--cs-primary-light);
  color: var(--cs-primary);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.faq-box p {
  color: var(--cs-text-muted) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
  padding-left: 36px;
}

/* -----------------------------------------------------------------------------
 * 18. CALL TO ACTION BANNERS (.section-bg-2)
 * -------------------------------------------------------------------------- */
.section-bg-2 {
  background: linear-gradient(180deg, #080b0e 0%, #12161d 50%, #080b0e 100%) !important;
  position: relative;
  padding: 100px 0 !important;
  overflow: hidden;
}

.section-bg-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.section-bg-2 h2.white-text {
  font-size: 38px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.02em;
}

.section-bg-2 p.white-text,
.section-bg-2 p.section-subtitle.white {
  font-size: 18px !important;
  color: #e2e8f0 !important;
  margin-bottom: 32px !important;
}

.section-bg-2 h2.section-title.white-text span {
  color: #38bdf8 !important;
  font-weight: 800;
}

/* -----------------------------------------------------------------------------
 * 19. FOOTER (.footer)
 * -------------------------------------------------------------------------- */
.footer {
  background-color: #06080b !important;
  color: #94a3b8 !important;
  padding: 60px 0 30px 0 !important;
}

.footer p {
  color: #94a3b8 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.footer span.template-name {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.footer img {
  max-height: 60px;
  width: auto;
  filter: brightness(1.1);
  margin-bottom: 15px;
}

.footer .footer_social {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer .footer_social li {
  margin: 0 !important;
  display: inline-block !important;
}

.footer .btn-blue {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--cs-btn-yellow) !important;
  color: var(--cs-btn-yellow-text) !important;
  box-shadow: var(--cs-btn-yellow-shadow) !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: var(--cs-radius-pill) !important;
  margin: 0 !important;
  transition: var(--cs-transition-bounce) !important;
  text-decoration: none !important;
}

.footer .btn-blue i {
  margin-right: 8px !important;
}

.footer .btn-blue:hover {
  background: var(--cs-btn-yellow-hover) !important;
  box-shadow: var(--cs-btn-yellow-shadow-hover) !important;
  color: var(--cs-btn-yellow-text) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 991px) {
  .footer .footer_social {
    justify-content: center !important;
    margin-top: 20px !important;
  }
  .footer .col-md-5,
  .footer .col-md-2 {
    text-align: center !important;
    margin-bottom: 15px !important;
  }
}

/* Footer bottom copyright */
.footer>.container>p[align="center"] {
  margin-top: 40px !important;
  padding-top: 25px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #64748b !important;
  font-size: 13px !important;
}

/* -----------------------------------------------------------------------------
 * 20. RESPONSIVE OPTIMIZATIONS
 * -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .home-section {
    padding-top: 140px !important;
    padding-bottom: 80px !important;
    background-attachment: scroll !important;
  }

  .home-section h1 {
    font-size: 34px !important;
  }

  .register-form-wrapper {
    margin-top: 35px !important;
    padding: 30px 24px !important;
  }

  h2.section-title {
    font-size: 30px !important;
  }

  .main-services {
    margin-bottom: 25px !important;
  }
}

@media (max-width: 768px) {
  .home-section {
    padding-top: 110px !important;
    padding-bottom: 60px !important;
  }

  .home-section h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  .fun-facts-box {
    margin-bottom: 15px;
  }

  .feature-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .feature-box i {
    margin-right: 0 !important;
    margin-bottom: 16px !important;
  }

  .section-grey,
  .section-white,
  .section-bg-1,
  .section-bg-2 {
    padding: 60px 0 !important;
  }
}

/* -----------------------------------------------------------------------------
 * 21. CREATIVE MICRO-INTERACTIONS & SHIMMER ANIMATIONS
 * -------------------------------------------------------------------------- */
@keyframes buttonPulseShine {

  0%,
  100% {
    box-shadow: 0 10px 25px -3px rgba(245, 158, 11, 0.45);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 14px 34px 0 rgba(245, 158, 11, 0.7);
    filter: brightness(1.05);
  }
}

a.btn-red,
a.discover-btn,
a.btn-blue,
a.btn-white {
  position: relative !important;
  overflow: hidden !important;
}

a.btn-red::after,
a.discover-btn::after,
a.btn-blue::after,
a.btn-white::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -120% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  transform: skewX(-20deg) !important;
  transition: none !important;
  display: block !important;
}

a.btn-red:hover::after,
a.discover-btn:hover::after,
a.btn-blue:hover::after,
a.btn-white:hover::after {
  left: 150% !important;
  transition: all 0.75s ease-in-out !important;
}

/* Submit button active luminous aura glow */
.register-form-wrapper input[type="submit"].btn-red {
  animation: submitLuminousGlow 2.6s infinite ease-in-out !important;
}

.register-form-wrapper input[type="submit"].btn-red:hover {
  animation: none !important;
}