/* ==========================================================================
   H2O IMPIANTI TERMOIDRAULICI DI SGHERRI DEVIS
   Foglio di Stile Istituzionale & Responsive
   Version: 2.0 (Modern Luxury & Clean Craftsmanship)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN SYSTEM
   -------------------------------------------------------------------------- */
:root {
  /* Brand Institutional Colors */
  --color-primary: #004c76;          /* Blu Istituzionale H2O */
  --color-primary-dark: #072a44;     /* Navy Profondo */
  --color-primary-light: #0b69a3;    /* Blu Brillante */
  --color-accent: #e31c23;           /* Rosso Logo H2O */
  --color-accent-hover: #c4141a;     /* Rosso Scuro Hover */
  --color-cyan: #009ee3;             /* Ciano Acqua */
  --color-cyan-light: #e0f2fe;       /* Ciano Chiarissimo */
  --color-orange: #f59e0b;           /* Arancio Termoidraulico */

  /* Neutral & Base Colors */
  --color-dark: #0f172a;             /* Testo Primario Slate 900 */
  --color-body: #334155;             /* Testo Body Slate 700 */
  --color-muted: #64748b;            /* Testo Muted Slate 500 */
  --color-border: #e2e8f0;           /* Bordi Slate 200 */
  --color-border-light: #f1f5f9;     /* Bordi Chiarissimi Slate 100 */
  --color-bg-light: #f8fafc;         /* Sfondo Sezioni Neutre */
  --color-white: #ffffff;            /* Bianco Puro */
  --color-surface: #ffffff;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing System */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2.5rem;    /* 40px */
  --spacing-2xl: 4rem;     /* 64px */
  --spacing-3xl: 6rem;     /* 96px */

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 76, 118, 0.08), 0 4px 6px -4px rgba(0, 76, 118, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 76, 118, 0.12), 0 8px 10px -6px rgba(0, 76, 118, 0.08);
  --shadow-xl: 0 25px 50px -12px rgba(0, 30, 50, 0.25);
  --shadow-glow: 0 0 25px rgba(0, 158, 227, 0.35);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1240px;
  --container-padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   2. CSS RESET & GLOBAL BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background-color: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.text-accent {
  color: var(--color-accent) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-cyan {
  color: var(--color-cyan) !important;
}

.text-white {
  color: var(--color-white) !important;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  max-width: 860px;
}

.section {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  position: relative;
}

.section-sm {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-bg-light {
  background-color: var(--color-bg-light);
}

.section-bg-dark {
  background-color: var(--color-primary-dark);
  color: #cbd5e1;
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: var(--color-white);
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header.text-center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background-color: rgba(0, 76, 118, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-badge-accent {
  color: var(--color-accent);
  background-color: rgba(227, 28, 35, 0.09);
}

.section-badge-white {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & UI INTERACTIVE
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  box-shadow: var(--shadow-md), 0 0 15px rgba(0, 76, 118, 0.3);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  box-shadow: var(--shadow-md), 0 0 20px rgba(227, 28, 35, 0.4);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
}

.btn-white:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.btn-outline-white:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
/* Top bar */
.top-bar {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
}

/* Main Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 0.2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  position: relative;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.85rem);
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Modern Flat Dropdown Menu */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
  display: inline-block;
  color: var(--color-muted);
}

.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown:focus-within .dropdown-arrow,
.nav-item-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -6px rgba(0, 40, 80, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  z-index: 1000;
  pointer-events: none;
  margin-top: 4px;
}

/* Invisible Hover Tunnel: Bridges the gap between trigger link and dropdown */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -24px;
  left: -12px;
  right: -12px;
  height: 28px;
  background: transparent;
  pointer-events: auto;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  color: var(--color-dark);
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
}

.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(0, 76, 118, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.dropdown-item-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

.dropdown-item:hover .dropdown-item-icon {
  background-color: var(--color-primary);
}

.dropdown-item:hover .dropdown-item-icon img {
  filter: brightness(0) invert(1);
}

.dropdown-item-text strong {
  display: block;
  font-size: 0.88rem;
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.25;
}

.dropdown-item-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.3;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--color-border-light);
  margin: 0.4rem 0;
}

.dropdown-item-all {
  justify-content: center;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.5rem;
  text-align: center;
  display: flex;
}

.dropdown-item-all:hover {
  color: var(--color-accent);
}

/* Mobile Drawer components - completely hidden on desktop */
.mobile-drawer-header,
.mobile-drawer-footer,
.dropdown-toggle-btn {
  display: none !important;
}

.dropdown-trigger-row {
  display: inline-flex;
  align-items: center;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Hamburger mobile button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1020;
}

.nav-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary-dark);
  border-radius: 4px;
  transition: all var(--transition-fast);
  transform-origin: 1px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #072a44 0%, #004c76 60%, #033c5e 100%);
  color: var(--color-white);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7.5rem);
  overflow: hidden;
}

/* Subtle background architectural pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(0, 158, 227, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(227, 28, 35, 0.15) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.4;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero-subtitle-block {
  display: block;
  margin-top: 0.65rem;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.75rem;
}

.hero-stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-stat-item .stat-num span {
  color: var(--color-cyan);
}

.hero-stat-item .stat-label {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Hero Media card */
.hero-media {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 35px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-card:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(7, 42, 68, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-floating-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.25rem;
}

.hero-floating-text h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.hero-floating-text p {
  font-size: 0.825rem;
  color: #cbd5e1;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. CORE BRAND PILLARS BAR (THE 4 ICONS FROM BROCHURE)
   -------------------------------------------------------------------------- */
.pillars-bar {
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 76, 118, 0.3);
}

.pillar-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: rgba(0, 76, 118, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.pillar-icon-wrap img,
.pillar-icon-wrap svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.pillar-card:hover .pillar-icon-wrap {
  background-color: var(--color-primary);
  transform: scale(1.05);
}

.pillar-card:hover .pillar-icon-wrap img {
  filter: brightness(0) invert(1);
}

.pillar-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--color-dark);
}

.pillar-info p {
  font-size: 0.825rem;
  color: var(--color-muted);
  line-height: 1.4;
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. INTERACTIVE BEFORE & AFTER SLIDER (RISTRUTTURAZIONE BAGNO)
   -------------------------------------------------------------------------- */
.ba-section {
  position: relative;
}

.ba-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--color-border);
  user-select: none;
  cursor: ew-resize;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid var(--color-white);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.25);
}

.ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.ba-badge {
  position: absolute;
  top: 18px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.ba-badge-before {
  right: 18px;
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--color-white);
  backdrop-filter: blur(6px);
}

.ba-badge-after {
  left: 18px;
  background-color: var(--color-accent);
  color: var(--color-white);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.ba-handle::before,
.ba-handle::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 220px;
  background-color: var(--color-white);
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.ba-handle::before {
  top: -220px;
}

.ba-handle::after {
  bottom: -220px;
}

/* 5 Steps Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.step-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 76, 118, 0.3);
}

.step-card:nth-child(even) .step-number {
  background: var(--color-accent);
  box-shadow: 0 4px 10px rgba(227, 28, 35, 0.3);
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. SERVICES CARDS & GRID
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 76, 118, 0.3);
}

.service-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 76, 118, 0.88);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card-body p {
  font-size: 0.925rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-features-list {
  margin-bottom: 1.5rem;
}

.service-features-list li {
  font-size: 0.875rem;
  color: var(--color-dark);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features-list li::before {
  content: '✓';
  color: var(--color-cyan);
  font-weight: 800;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   11. HIGH-TECH EQUIPMENT (PARCO ATTREZZATURE)
   -------------------------------------------------------------------------- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.equipment-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition-normal);
}

.equipment-card:hover {
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.equipment-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(0, 76, 118, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.equipment-icon img,
.equipment-icon svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

.equipment-card:hover .equipment-icon {
  background-color: var(--color-primary);
}

.equipment-card:hover .equipment-icon img {
  filter: brightness(0) invert(1);
}

.equipment-details h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}

.equipment-details .brand-tag {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(227, 28, 35, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}

.equipment-details p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. WHY CHOOSE US (TRUST & STATS)
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  background-color: rgba(0, 76, 118, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.trust-icon img,
.trust-icon svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

.trust-card:hover .trust-icon {
  background-color: var(--color-primary);
}

.trust-card:hover .trust-icon img {
  filter: brightness(0) invert(1);
}

.trust-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS / RECENSIONI
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.review-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  color: #fbbf24;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.review-card blockquote {
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.review-author-info span {
  font-size: 0.775rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   14. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  background: transparent;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  color: var(--color-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.35rem;
}

.faq-answer p {
  font-size: 0.925rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 158, 227, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   16. FORMS & INPUTS (SECURE CONTACT)
   -------------------------------------------------------------------------- */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-bg-light);
  color: var(--color-dark);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  background-color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 76, 118, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.form-check input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--color-primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

/* Honeypot field (hidden from legitimate users, filled by bots) */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Alert messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: none;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   17. CONTACT PAGE LAYOUT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: transform var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(0, 76, 118, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.contact-card-icon img,
.contact-card-icon svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

.contact-card:hover .contact-card-icon {
  background-color: var(--color-primary);
}

.contact-card:hover .contact-card-icon img {
  filter: brightness(0) invert(1);
}

.contact-card-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-card-info p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.contact-card-info a {
  font-weight: 700;
  color: var(--color-primary);
}

.contact-card-info a:hover {
  color: var(--color-accent);
}

.map-wrapper {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 250px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #94a3b8;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #cbd5e1;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.footer-contact-list li strong {
  color: var(--color-white);
}

.footer-contact-list a {
  color: var(--color-white);
}

.footer-contact-list a:hover {
  color: var(--color-cyan);
}

.footer-cert-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   19. FLOATING MOBILE BAR & WIDGETS
   -------------------------------------------------------------------------- */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 999;
  padding: 0.6rem 0.8rem;
}

.mobile-action-bar .grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.mobile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.2rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  gap: 0.2rem;
  text-align: center;
}

.mobile-action-btn.call {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.mobile-action-btn.whatsapp {
  background-color: #25d366;
  color: var(--color-white);
}

.mobile-action-btn.quote {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* WhatsApp Floating Bubble */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25d366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-floating:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 980;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.cookie-banner a {
  color: var(--color-cyan);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   20. ANIMATIONS & SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   21. RESPONSIVE BREAKPOINTS (MOBILE & TABLET OPTIMIZATIONS)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-content {
    max-width: 100%;
  }

  .hero-card img {
    height: 380px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ba-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flagship-duo {
    grid-template-columns: 1fr;
  }

  .real-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .designer-callout {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .bathroom-stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   FLAGSHIP DUO SHOWCASE (Ristrutturazione Bagno & Ricerca Perdite)
   -------------------------------------------------------------------------- */
.flagship-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.flagship-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.flagship-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.flagship-card-accent {
  border-top: 5px solid var(--color-accent);
}

.flagship-card-primary {
  border-top: 5px solid var(--color-primary);
}

.flagship-media {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: var(--color-border-light);
}

.flagship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.flagship-card:hover .flagship-media img {
  transform: scale(1.05);
}

.flagship-badge-floating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.flagship-badge-accent {
  background: var(--color-accent);
}

.flagship-badge-niche {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
}

.flagship-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.flagship-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.flagship-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.flagship-desc {
  font-size: 0.98rem;
  color: var(--color-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.flagship-bullets {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.flagship-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-dark);
}

.flagship-bullets li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.flagship-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   REAL PROJECTS GALLERY (New WhatsApp photos from client)
   -------------------------------------------------------------------------- */
.real-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.real-project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.real-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.real-project-thumb {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #0f172a;
}

.real-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.real-project-card:hover .real-project-thumb img {
  transform: scale(1.06);
}

.real-project-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(7, 42, 68, 0.9);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.real-project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.real-project-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.real-project-info p {
  font-size: 0.88rem;
  color: var(--color-body);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.real-project-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.real-project-meta strong {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   TARGET SECTORS GRID (Privati, Condomini, Imprese, Ipermercati)
   -------------------------------------------------------------------------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.sector-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.sector-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.sector-icon img,
.sector-icon svg {
  width: 28px;
  height: 28px;
}

.sector-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.6rem;
}

.sector-card p {
  font-size: 0.88rem;
  color: var(--color-body);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   DESIGNER COLLABORATION BANNER (Bathroom 3D Layout & Planning)
   -------------------------------------------------------------------------- */
.designer-callout {
  background: linear-gradient(135deg, #072a44 0%, #004c76 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.designer-callout::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 158, 227, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.designer-callout h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.designer-callout p {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.designer-callout-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
}

.designer-callout-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.designer-callout-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #f1f5f9;
}

.designer-callout-card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.designer-callout-card ul li::before {
  content: "★";
  color: #38bdf8;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   BATHROOM STOCK GALLERY
   -------------------------------------------------------------------------- */
.bathroom-stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stock-gallery-item {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #f1f5f9;
}

.stock-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.stock-gallery-item:hover img {
  transform: scale(1.06);
}

.stock-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 100%);
  color: var(--color-white);
  padding: 1.5rem 1.25rem 1rem;
}

.stock-gallery-overlay h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stock-gallery-overlay span {
  font-size: 0.8rem;
  color: #cbd5e1;
}

@media (max-width: 1040px) {
  body.nav-open .site-header,
  .site-header:has(.nav-menu.open) {
    z-index: 2500;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  body.nav-open .brand-logo,
  body.nav-open .nav-toggle,
  .site-header:has(.nav-menu.open) .brand-logo,
  .site-header:has(.nav-menu.open) .nav-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .nav-toggle {
    display: flex;
    z-index: 1020;
  }

  .nav-cta {
    display: none; /* Replaced by drawer CTA & floating mobile bar */
  }

  /* Desktop-only nav items hidden on mobile to avoid duplicate links */
  .nav-item-desktop-only {
    display: none !important;
  }

  /* Full-height sleek slide-in drawer */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(105%);
    width: 86%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    box-shadow: -10px 0 35px rgba(0, 30, 60, 0.2);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2500;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 76, 118, 0.25) transparent;
  }

  .nav-menu::-webkit-scrollbar {
    width: 4px;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 76, 118, 0.25);
    border-radius: 4px;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 42, 68, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer Header */
  .mobile-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
  }

  .drawer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .drawer-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
  }

  .drawer-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
  }

  .drawer-close-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    flex-shrink: 0;
  }

  .drawer-close-btn:hover,
  .drawer-close-btn:active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: rotate(90deg);
  }

  /* Drawer Navigation Links */
  .nav-menu > li:not(.mobile-drawer-header):not(.mobile-drawer-footer) {
    width: 100%;
    padding: 0 1.25rem;
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-dark);
  }

  .nav-link::after {
    display: none !important;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-primary);
  }

  .nav-link.active {
    font-weight: 700;
  }

  /* Dropdown Trigger Row (Servizi + Chevron Button) */
  .dropdown-trigger-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid var(--color-border-light);
  }

  .dropdown-trigger-row .nav-link {
    border-bottom: none !important;
    flex: 1;
    cursor: pointer;
  }

  .dropdown-arrow {
    display: none !important;
  }

  .dropdown-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    border: 1px solid var(--color-border-light);
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    margin: 0.35rem 0;
    flex-shrink: 0;
  }

  .dropdown-toggle-btn:hover,
  .dropdown-toggle-btn:active {
    background: rgba(0, 76, 118, 0.1);
  }

  .dropdown-toggle-icon {
    transition: transform 0.25s ease;
  }

  .nav-item-dropdown.expanded .dropdown-toggle-icon {
    transform: rotate(180deg);
  }

  .nav-item-dropdown.expanded .dropdown-toggle-btn {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
  }

  /* Accordion Sub-services */
  .nav-item-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin: 0.5rem 0 0.85rem;
    padding: 0.4rem;
    width: 100%;
    min-width: 0 !important;
    pointer-events: auto;
  }

  .dropdown-menu::before {
    display: none !important;
  }

  .nav-item-dropdown.expanded .dropdown-menu {
    display: flex;
    flex-direction: column;
    animation: drawerAccordionOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes drawerAccordionOpen {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dropdown-item {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    margin-bottom: 0.35rem;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .dropdown-item:last-child {
    margin-bottom: 0;
  }

  .dropdown-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background-color: rgba(0, 76, 118, 0.08);
  }

  .dropdown-item-icon img {
    width: 16px;
    height: 16px;
  }

  .dropdown-item-text strong {
    font-size: 0.88rem;
    color: var(--color-dark);
  }

  /* Hide long subtitles on mobile for clear single-line scan */
  .dropdown-item-text span {
    display: none !important;
  }

  .dropdown-divider {
    display: none;
  }

  .dropdown-item-all {
    background: transparent;
    border: none;
    box-shadow: none;
    justify-content: flex-start;
    padding: 0.6rem 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
  }

  /* Drawer Footer */
  .mobile-drawer-footer {
    display: block !important;
    margin-top: auto;
    padding: 1.25rem 1.25rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
  }

  .drawer-cta {
    margin-bottom: 0.85rem;
  }

  .btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .drawer-contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .drawer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-dark);
    transition: all var(--transition-fast);
  }

  .drawer-contact-item:hover,
  .drawer-contact-item:active {
    border-color: var(--color-primary);
    background: #f1f5f9;
  }

  .drawer-contact-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
  }

  .drawer-contact-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .drawer-contact-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    font-weight: 600;
  }

  .drawer-contact-info strong {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-dark);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .drawer-badge {
    text-align: center;
    font-size: 0.72rem;
    color: var(--color-muted);
    font-weight: 500;
    padding-top: 0.15rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  body {
    padding-bottom: 60px; /* Space for floating mobile action bar */
  }

  .top-bar {
    display: none; /* Keep mobile view clean and fast */
  }

  .pillars-bar {
    margin-top: -2rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .flagship-duo {
    grid-template-columns: 1fr;
  }

  .real-projects-grid {
    grid-template-columns: 1fr;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .bathroom-stock-grid {
    grid-template-columns: 1fr;
  }

  .designer-callout {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .designer-callout .btn-group,
  .cta-banner .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .designer-callout .btn,
  .cta-banner .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .flagship-media {
    height: 220px;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mobile-action-bar {
    display: block;
  }

  .whatsapp-floating {
    bottom: 74px; /* Above mobile action bar */
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 135px;
    right: 16px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
