/* ==========================================================================
   PIXEL INFORMATICA DI GIANLUCA DONATI - DESIGN SYSTEM & STYLESHEET
   Design Language: Ubiquiti Industrial Minimal / Dark Titanium & Electric Blue
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0a0c10;
  --bg-secondary: #11141c;
  --bg-tertiary: #181d28;
  --bg-card: rgba(22, 28, 40, 0.75);
  --bg-card-hover: rgba(28, 36, 52, 0.9);
  --bg-glass: rgba(13, 17, 26, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-active: #006fff;
  --border-glow: rgba(0, 111, 255, 0.35);

  --accent-ui-blue: #006fff;
  --accent-ui-blue-light: #338eff;
  --accent-ui-blue-dark: #0050b3;
  --accent-ui-glow: rgba(0, 111, 255, 0.25);
  
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --text-inverse: #0a0c10;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-blue-glow: 0 0 30px rgba(0, 111, 255, 0.3);

  /* Transitions */
  --trans-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacings */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   UTILITY & ACCENTS
   ========================================================================== */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-blue-gradient {
  background: linear-gradient(135deg, #338eff 0%, #006fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-blue {
  color: var(--accent-ui-blue-light);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 111, 255, 0.12);
  border: 1px solid rgba(0, 111, 255, 0.35);
  color: var(--accent-ui-blue-light);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  display: inline-block;
}

.badge-ubiquiti {
  background: rgba(0, 111, 255, 0.15);
  border: 1px solid rgba(0, 111, 255, 0.4);
  color: #fff;
  padding: 0.4rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--trans-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(180deg, #0077ff 0%, #005cd6 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 111, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 111, 255, 0.55);
  background: linear-gradient(180deg, #1a85ff 0%, #0065ea 100%);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-medium);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--trans-normal);
}

.site-header.scrolled {
  background: rgba(10, 12, 16, 0.95);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #006fff 0%, #003b8e 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 111, 255, 0.4);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-name span {
  color: var(--accent-ui-blue-light);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--trans-fast);
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-ui-blue);
  transition: width var(--trans-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-drawer {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(0, 111, 255, 0.15), transparent 60%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 111, 255, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.feature-pill svg {
  color: var(--accent-ui-blue-light);
  flex-shrink: 0;
}

/* ==========================================================================
   HERO PORTFOLIO STATS CARD (REAL UBIQUITI INSTALLATIONS)
   ========================================================================== */
.hero-portfolio-card {
  background: linear-gradient(160deg, rgba(20, 26, 38, 0.95) 0%, rgba(13, 17, 25, 0.98) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg), var(--shadow-blue-glow);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.portfolio-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.portfolio-total-wrap {
  display: flex;
  flex-direction: column;
}

.portfolio-total-number {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1;
}

.portfolio-total-number span {
  color: var(--accent-ui-blue-light);
}

.portfolio-total-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.portfolio-growth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.portfolio-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.breakdown-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all var(--trans-fast);
}

.breakdown-item:hover {
  background: rgba(0, 111, 255, 0.08);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.breakdown-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0, 111, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ui-blue-light);
  flex-shrink: 0;
}

.breakdown-icon svg {
  width: 20px;
  height: 20px;
}

.breakdown-content {
  display: flex;
  flex-direction: column;
}

.breakdown-count {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1.1;
}

.breakdown-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.portfolio-rack-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.8rem;
}

.portfolio-rack-img {
  width: 90px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-medium);
}

.portfolio-rack-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.portfolio-rack-text strong {
  color: #ffffff;
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

/* ==========================================================================
   OFFICIAL UBIQUITI CERTIFICATIONS STRIP
   ========================================================================== */
.certifications-section {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cert-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.cert-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  transition: all var(--trans-normal);
}

.cert-badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-ui-blue);
  box-shadow: 0 8px 24px rgba(0, 111, 255, 0.25);
}

.cert-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-badge-code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-ui-blue-light);
  letter-spacing: 0.04em;
}

.cert-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 111, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(0, 111, 255, 0.35);
  text-transform: uppercase;
}

.cert-badge-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.cert-badge-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.section-tag {
  color: var(--accent-ui-blue-light);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   VIDEO REELS & YOUTUBE SHOWCASE
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), 0 0 25px var(--accent-ui-glow);
}

.video-thumbnail-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.video-card:hover .video-thumbnail-wrap img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans-fast);
}

.video-card:hover .play-overlay {
  background: rgba(0, 111, 255, 0.3);
}

.play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-ui-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--trans-fast);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-card:hover .play-btn {
  transform: scale(1.12);
  background: #ffffff;
  color: var(--accent-ui-blue);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.video-platform-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-youtube {
  color: #ff0033;
}

.badge-instagram {
  color: #e1306c;
}

.video-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-topic {
  font-size: 0.75rem;
  color: var(--accent-ui-blue-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.video-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.video-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Channels Banner */
.channels-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, rgba(24, 29, 40, 0.9) 0%, rgba(17, 20, 28, 0.9) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.channel-cta-text h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.channel-cta-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.channel-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BEFORE / AFTER INTERACTIVE SLIDER
   ========================================================================== */
.before-after-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #000;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.before-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
  overflow: hidden;
  z-index: 2;
}

.before-layer .slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-label {
  position: absolute;
  bottom: 20px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.label-before {
  left: 20px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.label-after {
  right: 20px;
  background: rgba(0, 111, 255, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 111, 255, 0.5);
  color: #0a0c10;
}

.slider-handle svg {
  width: 20px;
  height: 20px;
}

.before-after-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.legend-col h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.legend-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.legend-col li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   SERVICES MATRIX (UBIQUITI ECOSYSTEM)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: all var(--trans-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), 0 0 30px var(--accent-ui-glow);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 111, 255, 0.2) 0%, rgba(0, 111, 255, 0.05) 100%);
  border: 1px solid rgba(0, 111, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ui-blue-light);
}

.service-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.88rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
}

.service-features li svg {
  color: var(--accent-ui-blue);
  flex-shrink: 0;
}

.service-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   SECTORS SOLUTIONS
   ========================================================================== */
.sectors-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.sector-tab-btn {
  padding: 0.75rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sector-tab-btn.active, .sector-tab-btn:hover {
  background: rgba(0, 111, 255, 0.15);
  border-color: var(--border-active);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 111, 255, 0.25);
}

.sector-card-content {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sector-details h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.sector-details p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.sector-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.spec-title {
  font-size: 0.75rem;
  color: var(--accent-ui-blue-light);
  text-transform: uppercase;
  font-weight: 600;
}

.spec-desc {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 500;
  margin-top: 0.2rem;
}

.sector-graphic {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 111, 255, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ==========================================================================
   CALCULATOR / ESTIMATOR
   ========================================================================== */
.calc-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(22, 28, 40, 0.95) 0%, rgba(14, 18, 26, 0.98) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.calc-step {
  margin-bottom: 2.5rem;
}

.calc-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-ui-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.calc-option {
  position: relative;
}

.calc-option input[type="radio"],
.calc-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.calc-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-fast);
  gap: 0.5rem;
}

.calc-option-label svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.calc-option input:checked + .calc-option-label {
  background: rgba(0, 111, 255, 0.15);
  border-color: var(--accent-ui-blue);
  box-shadow: 0 0 16px rgba(0, 111, 255, 0.3);
}

.calc-option input:checked + .calc-option-label svg {
  color: var(--accent-ui-blue-light);
}

.calc-summary-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.summary-row span:last-child {
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   COMPARISON TABLE (PIXEL vs DIY vs GENERIC ELECTRICIAN)
   ========================================================================== */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.4);
  font-weight: 700;
  font-size: 0.95rem;
}

.th-featured {
  background: rgba(0, 111, 255, 0.18) !important;
  color: var(--accent-ui-blue-light);
  border-left: 1px solid var(--border-active);
  border-right: 1px solid var(--border-active);
}

.td-featured {
  background: rgba(0, 111, 255, 0.08);
  font-weight: 600;
  color: #fff;
  border-left: 1px solid var(--border-active);
  border-right: 1px solid var(--border-active);
}

/* ==========================================================================
   ABOUT GIANLUCA & CERTIFICATIONS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.about-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-badge-float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
}

.certifications-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.cert-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cert-card svg {
  width: 32px;
  height: 32px;
  color: var(--accent-ui-blue-light);
  flex-shrink: 0;
}

.cert-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.cert-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--trans-fast);
}

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

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--trans-normal);
  color: var(--accent-ui-blue-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-slow);
  padding: 0 1.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.4rem;
}

/* ==========================================================================
   CONTACT FORM & INFO
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 111, 255, 0.12);
  border: 1px solid rgba(0, 111, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ui-blue-light);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item p, .contact-item a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  outline: none;
  transition: all var(--trans-fast);
}

.form-control:focus {
  border-color: var(--accent-ui-blue);
  box-shadow: 0 0 14px rgba(0, 111, 255, 0.3);
  background: rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   FOOTER & FLOATING WIDGETS
   ========================================================================== */
.site-footer {
  background: #06080b;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

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

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-ui-blue-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating WhatsApp / Phone Widget */
.floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform var(--trans-fast);
  color: #fff;
}

.floating-btn svg {
  width: 26px;
  height: 26px;
}

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

.floating-whatsapp {
  background: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.floating-call {
  background: var(--accent-ui-blue);
  box-shadow: 0 6px 20px rgba(0, 111, 255, 0.45);
}

/* Video Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 900px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: background var(--trans-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.modal-video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .sector-card-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn-call {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-drawer {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-medium);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .mobile-drawer.open {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

  .calc-card {
    padding: 1.8rem;
  }

  .before-after-legend {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
