/* ==========================================================================
   ZEROBYTE S.r.l. — DESIGN SYSTEM & BASE RESPONSIVE ARCHITECTURE
   Versione: 1.0.0 | Stack: HTML5 Semantico + CSS3 Modulare (Zero WordPress)
   Estratto fedelmente da https://zerobytesrl.it (Avada/Slider Revolution)
   Ottimizzato per Core Web Vitals, WCAG 2.1 AA e singola alberatura DOM.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (:root)
   -------------------------------------------------------------------------- */
:root {
  /* === Brand & Primary Palette === */
  --color-brand-blue-h: 209;
  --color-brand-blue-s: 99%;
  --color-brand-blue-l: 29%;
  --color-brand-blue: #014e94;                    /* --awb-color5: Header, Footer, CTA primarie, Icone */
  --color-brand-blue-hover: #023360;              /* hsl(209, 94%, 19%) — stato hover bottoni */
  --color-brand-blue-85: rgba(1, 78, 148, 0.85);
  --color-brand-blue-70: rgba(1, 78, 148, 0.70);
  --color-brand-blue-20: rgba(1, 78, 148, 0.20);
  --color-brand-blue-glass: rgba(0, 71, 170, 0.08); /* Colonne 4-step homepage */

  --color-brand-cyan: #5ac8fa;                    /* --awb-custom_color_1: Banner, hover nav, titoli slider, CTA 4-step */
  --color-brand-cyan-light: #caeff9;              /* Card servizi su pagine Business Unit */
  --color-brand-cyan-tint: #cfeef9;               /* Voce attiva/espansa menu mobile */

  --color-brand-yellow: #fbc62f;                  /* Box Best Seller, virgolette, highlight testo, CTA Newsletter */
  --color-brand-yellow-focus: #efdf00;            /* Focus input newsletter */
  --color-brand-yellow-focus-50: rgba(239, 223, 0, 0.5);

  --color-brand-green: #65bd7d;                   /* --awb-color4: Focus form, icone checklist, accenti */
  --color-brand-green-50: rgba(101, 189, 125, 0.5);

  /* === Neutrals & Surfaces === */
  --color-white: #ffffff;                         /* --awb-color1 */
  --color-surface-light: #f9f9fb;                 /* --awb-color2: Sfondo testimonial / superfici soft */
  --color-surface-muted: #f2f3f5;                 /* --awb-color3: Sfondo secondario, bordi, link footer */
  --color-border: #e2e5ea;
  --color-border-subtle: #f2f3f5;
  --color-border-on-dark: rgba(255, 255, 255, 0.27);
  --color-slider-backdrop: #0c0302;

  /* === Text Colors === */
  --color-text-primary: #141617;                  /* --awb-color8: Testo corpo & link default */
  --color-text-charcoal: #212326;                 /* --awb-color7: Superfici scure / titoli secondari */
  --color-text-secondary: #434549;                /* --awb-color6: Sottotitoli, titoli card, testi intro */
  --color-text-placeholder: #9e9c9c;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: #f2f3f5;
  --color-text-on-dark-soft: rgba(255, 255, 255, 0.86);

  /* === Semantic / Alert Colors === */
  --color-success: #12b878;
  --color-success-bg: rgba(18, 184, 120, 0.10);
  --color-warning: #f1ae2a;
  --color-warning-bg: rgba(241, 174, 42, 0.10);
  --color-danger: #db4b68;
  --color-danger-bg: rgba(219, 75, 104, 0.10);

  /* === Business Unit Accents & Gradients (MegaMenu + Pillar Badges) === */
  --color-bu-sicurezza: #ff4800;
  --color-bu-it: #c50048;
  --color-bu-software: #07a9f0;
  --color-bu-comunicazione: #457620;

  --gradient-bu-sicurezza: linear-gradient(92deg, #ff4800 0%, #ff9100 100%);
  --gradient-bu-it: linear-gradient(100deg, #c50048 0%, #ff5e93 100%);
  --gradient-bu-software: linear-gradient(100deg, #07a9f0 0%, #93dcfc 100%);
  --gradient-bu-comunicazione: linear-gradient(110deg, #457620 0%, #9ac554 100%);

  /* === Overlays & Widget Gradients === */
  --gradient-hero-dark: linear-gradient(180deg, rgba(19, 21, 22, 0.90) 0%, rgba(19, 21, 22, 0.50) 100%);
  --gradient-slider-scrim: linear-gradient(180deg, rgba(12, 3, 2, 0.45) 0%, rgba(12, 3, 2, 0.25) 55%, rgba(12, 3, 2, 0.65) 100%);
  --gradient-whatsapp: linear-gradient(135deg, #20b038 0%, #60d66a 100%);
  --overlay-white-80: rgba(255, 255, 255, 0.80);
  --overlay-white-54: rgba(255, 255, 255, 0.54);

  /* === Pattern SVG inline (Header 10% / Footer 12% su #014e94) === */
  --pattern-squares-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Crect x='4' y='4' width='22' height='22' rx='4' fill='rgba(0,0,0,0.3)'/%3E%3Crect x='34' y='34' width='22' height='22' rx='4' fill='rgba(0,0,0,0.3)'/%3E%3C/svg%3E");

  /* === Typography Families === */
  --font-body: 'Manrope', Arial, Helvetica, sans-serif;
  --font-display: 'Unbounded', 'Manrope', Arial, Helvetica, sans-serif;
  --font-numeric: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-ui: 'Inter', 'Manrope', Arial, Helvetica, sans-serif;

  /* === Typography Scale (Fluida con clamp — elimina duplicazione DOM Desktop/Mobile) === */
  --text-xs: 0.8125rem;                           /* 13px */
  --text-sm: 0.875rem;                            /* 14px */
  --text-base: 1rem;                              /* 16px */
  --text-md: 1.125rem;                            /* 18px */
  --text-lg: 1.25rem;                             /* 20px */
  --text-xl: 1.375rem;                            /* 22px */
  --text-2xl: 1.5rem;                             /* 24px */

  /* Heading & Display Fluid Scale */
  --text-h1: clamp(2.125rem, 1.5rem + 2.8vw, 4rem);          /* 34px -> 64px */
  --text-h1-contact: clamp(2.5rem, 1.8rem + 3.2vw, 4.6875rem); /* 40px -> 75px */
  --text-h2: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);           /* 28px -> 48px */
  --text-h3: clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem);       /* 22px -> 36px */
  --text-h4: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem);      /* 19px -> 24px */
  --text-h5: 1.25rem;                                        /* 20px */
  --text-h6: 0.8125rem;                                      /* 13px */

  /* Homepage & Hero Component Typography */
  --text-slider-eyebrow: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
  --text-slider-title: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  --text-banner: clamp(1.75rem, 1.15rem + 2.1vw, 3.125rem);  /* 30px mobile -> 50px desktop */
  --text-step-num: clamp(4.75rem, 3.5rem + 4vw, 8.125rem);   /* 76px -> 130px (Bebas Neue) */
  --text-step-title: clamp(1.5rem, 1.2rem + 1.1vw, 2.1875rem); /* 24px -> 35px (Unbounded) */
  --text-section-display: clamp(1.5rem, 1.25rem + 0.75vw, 1.875rem); /* 24px -> 30px */
  --text-quote: clamp(1.125rem, 0.95rem + 0.7vw, 1.5625rem); /* 18px -> 25px */

  /* === Font Weights === */
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* === Line Heights === */
  --lh-none: 1;
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-card: 1.4;
  --lh-normal: 1.5;
  --lh-body: 1.72;

  /* === Letter Spacing === */
  --ls-tight: -0.015em;
  --ls-normal: 0;
  --ls-body: 0.015em;
  --ls-wide: 0.06em;

  /* === Layout & Spacing === */
  --site-width: 1200px;
  --container-max: 1248px;
  --container-narrow: 920px;
  --container-gutter: clamp(1rem, 3vw, 1.875rem);            /* 16px -> 30px */
  --header-height: 114px;
  --header-height-mobile: 56px;

  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-15: 3.75rem;  /* 60px */
  --space-20: 5rem;     /* 80px */

  --section-py: clamp(2.5rem, 4vw, 3.75rem);

  /* === Radii === */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* === Elevation / Shadows === */
  --shadow-header: 0 2px 12px rgba(1, 78, 148, 0.22);
  --shadow-megamenu: 0 18px 36px rgba(20, 22, 23, 0.22);
  --shadow-card: 0 3px 15px 0 rgba(67, 69, 73, 0.55);        /* Best Seller card */
  --shadow-service-card: 0 5px 5px 0 rgba(91, 91, 91, 0.65); /* Card #caeff9 */
  --shadow-floating: 0 4px 14px rgba(20, 22, 23, 0.28);

  /* === Z-Index Layers === */
  --z-base: 1;
  --z-overlay: 10;
  --z-sticky: 100;
  --z-header: 900;
  --z-megamenu: 950;
  --z-mobile-nav: 960;
  --z-floating: 980;
  --z-skip-link: 1000;

  /* === Transitions === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. MODERN RESET & ACCESSIBILITY BASE (WCAG 2.1 AA)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-blue);
}

/* Focus tastiera visibile e ad alto contrasto */
:focus-visible {
  outline: 3px solid var(--color-brand-cyan);
  outline-offset: 2px;
}

/* Skip link accessibile per screen reader e tastiera */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-skip-link);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-brand-blue);
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-floating);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--color-white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-h1);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--text-h5);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--text-h6);
  letter-spacing: var(--ls-normal);
  margin-bottom: var(--space-2);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-card);
  color: var(--color-text-secondary);
}

.text-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: var(--lh-none);
}

.text-highlight-yellow {
  color: var(--color-brand-yellow);
  font-weight: var(--fw-bold);
}

.text-highlight-cyan {
  color: var(--color-brand-cyan);
}

.text-highlight-blue {
  color: var(--color-brand-blue);
}

.text-center {
  text-align: center;
}

/* Numeri 01.-04. (NON usare H1: usa <span class="step-number" aria-hidden="true">) */
.step-number {
  display: block;
  font-family: var(--font-numeric);
  font-size: var(--text-step-num);
  font-weight: var(--fw-regular);
  line-height: var(--lh-none);
  color: var(--color-white);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   4. LAYOUT CONTAINERS, SECTIONS & RESPONSIVE GRID
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.container--site {
  max-width: var(--site-width);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-py);
}

.section--tight {
  padding-block: clamp(1.5rem, 2.5vw, 2.5rem);
}

.section--light {
  background-color: var(--color-surface-light);
}

.section--muted {
  background-color: var(--color-surface-muted);
}

.section--cyan {
  background-color: var(--color-brand-cyan);
  color: var(--color-white);
}

/* Superficie Blu Brand (#014e94) con pattern SVG geometrico sottile */
.surface-brand-pattern {
  position: relative;
  background-color: var(--color-brand-blue);
  color: var(--color-text-on-dark);
}

.surface-brand-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-squares-svg);
  background-size: 60px 60px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.surface-brand-pattern > * {
  position: relative;
  z-index: 1;
}

/* Divisore inferiore bianco a effetto strappo (come su Home e Contatti) */
.has-grunge-bottom {
  position: relative;
  padding-bottom: calc(var(--section-py) + 43px);
}

.grunge-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 43px;
  pointer-events: none;
  z-index: 2;
  fill: var(--color-white);
}

/* Grid System Mobile-First */
.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.grid--gap-sm { gap: var(--space-4); }
.grid--gap-lg { gap: var(--space-8); }
.grid--gap-none { gap: 0; }

@media (min-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid--sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: var(--space-10);
  }
}

/* --------------------------------------------------------------------------
   5. HEADER, UTILITY BAR, MEGAMENU & MOBILE NAVIGATION (DOM UNICO)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--header-height-mobile);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height-mobile);
  padding-block: var(--space-2);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo-desktop {
  display: none;
  width: 180px;
  height: auto;
}

.site-header__logo-mobile {
  display: block;
  width: 152px;
  height: auto;
}

.site-header__nav-col {
  display: none;
}

/* Utility Top Row (Desktop) */
.header-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.header-utility a {
  color: var(--color-white);
}

.header-utility a:hover,
.header-utility a:focus-visible {
  color: var(--color-brand-cyan);
}

.header-utility__sep {
  opacity: 0.45;
  user-select: none;
}

/* Main Navigation (Desktop) */
.main-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.25rem, 2.2vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__link,
.main-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding-block: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-body);
  color: var(--color-white);
}

.main-nav__link:hover,
.main-nav__link[aria-current="page"],
.main-nav__trigger:hover,
.main-nav__trigger[aria-expanded="true"] {
  color: var(--color-brand-cyan);
}

/* Full-Width 4-Column Colored MegaMenu ("Soluzioni") */
.megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: var(--z-megamenu);
  background-color: var(--color-white);
  box-shadow: var(--shadow-megamenu);
  border-top: 3px solid var(--color-brand-cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.megamenu.is-open,
.main-nav__item--has-mega:hover > .megamenu,
.main-nav__item--has-mega:focus-within > .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.megamenu__col {
  padding: var(--space-6);
  color: var(--color-white);
}

.megamenu__col--sicurezza { background: var(--gradient-bu-sicurezza); }
.megamenu__col--it { background: var(--gradient-bu-it); }
.megamenu__col--software { background: var(--gradient-bu-software); }
.megamenu__col--comunicazione { background: var(--gradient-bu-comunicazione); }

.megamenu__col-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--color-white);
}

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

.megamenu__list a {
  display: block;
  padding-block: 0.35rem;
  font-size: var(--text-sm);
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.megamenu__list a:hover {
  color: var(--color-white);
  padding-left: var(--space-2);
  background-color: rgba(0, 0, 0, 0.10);
}

/* Mobile Toggle Button & Accordion Drawer (<= 1024px) */
.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile-nav);
  background-color: var(--color-white);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition-base), visibility var(--transition-base);
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer__item {
  border-bottom: 1px solid var(--color-surface-muted);
}

.mobile-drawer__link,
.mobile-drawer__accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 55px;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  text-align: left;
}

.mobile-drawer__accordion-btn[aria-expanded="true"],
.mobile-drawer__link[aria-current="page"] {
  background-color: var(--color-brand-cyan-tint);
  color: var(--color-brand-blue);
}

@media (min-width: 1025px) {
  .site-header {
    min-height: var(--header-height);
  }

  .site-header__inner {
    min-height: var(--header-height);
    padding-block: var(--space-3);
  }

  .site-header__logo-desktop {
    display: block;
  }

  .site-header__logo-mobile,
  .mobile-nav-toggle,
  .mobile-drawer {
    display: none;
  }

  .site-header__nav-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   6. HERO SLIDER BASE (Sostituzione leggera Slider Revolution)
   -------------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(540px, calc(100svh - var(--header-height-mobile)), 760px);
  background-color: var(--color-slider-backdrop);
  overflow: hidden;
  color: var(--color-white);
}

@media (min-width: 1025px) {
  .hero-slider {
    height: clamp(620px, calc(100vh - var(--header-height)), 760px);
  }
}

.hero-slider__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: var(--z-overlay);
}

.hero-slider__progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--color-brand-cyan);
  transition: width 100ms linear;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-8) var(--container-gutter);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

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

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-slide__scrim {
  position: absolute;
  inset: 0;
  background: var(--gradient-slider-scrim);
  z-index: 1;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero-slide__eyebrow {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-slider-eyebrow);
  font-style: italic;
  font-weight: var(--fw-regular);
  color: var(--color-white);
}

.hero-slide__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-slider-title);
  font-weight: var(--fw-black);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--color-brand-cyan);
}

/* --------------------------------------------------------------------------
   7. BUTTONS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 29px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-body);
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn--primary {
  background-color: var(--color-brand-blue);
  color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-brand-blue-hover);
  color: var(--color-white);
}

/* CTA Quadrata Cyan dei 4 Pilastri Homepage */
.btn--cyan-square {
  padding: 17px 40px;
  background-color: var(--color-brand-cyan);
  color: var(--color-text-primary);
  border-radius: var(--radius-none);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
}

.btn--cyan-square:hover,
.btn--cyan-square:focus-visible {
  background-color: var(--color-brand-blue-hover);
  color: var(--color-white);
}

/* CTA Gialla Newsletter Footer */
.btn--yellow {
  background-color: var(--color-brand-yellow);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
}

.btn--yellow:hover,
.btn--yellow:focus-visible {
  background-color: var(--color-white);
  color: var(--color-brand-blue);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-brand-blue);
  color: var(--color-white);
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   8. FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
}

.form-control {
  width: 100%;
  min-height: 50px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-control::placeholder {
  color: var(--color-text-placeholder);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 3px var(--color-brand-green-50);
}

/* Input compatti Newsletter Footer */
.form-control--newsletter {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.form-control--newsletter:focus {
  border-color: var(--color-brand-yellow-focus);
  box-shadow: 0 0 0 2px var(--color-brand-yellow-focus-50);
}

/* --------------------------------------------------------------------------
   9. CARDS, PILLARS, TESTIMONIALS & GEO SEMANTIC BLOCKS
   -------------------------------------------------------------------------- */
/* Card Servizi sulle Pagine Hub (#caeff9) */
.card-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-5);
  background-color: var(--color-brand-cyan-light);
  box-shadow: var(--shadow-service-card);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-service:hover {
  transform: translateY(-4px);
}

.card-service__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  color: var(--color-brand-blue);
}

.card-service__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.card-service__desc {
  font-size: var(--text-xs);
  line-height: var(--lh-normal);
  color: var(--color-text-secondary);
}

/* Card Best Seller con sovrapposizione bianca */
.card-bestseller {
  display: flex;
  flex-direction: column;
}

.card-bestseller__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card-bestseller__body {
  position: relative;
  z-index: 2;
  margin: -110px var(--space-4) 0;
  padding: var(--space-5) var(--space-4);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
  text-align: center;
}

/* Testimonial Classic Box */
.testimonial-box {
  padding: var(--space-6) var(--space-8);
  background-color: var(--color-surface-light);
  border-left: 4px solid var(--color-brand-blue);
  border-radius: var(--radius-sm);
}

.testimonial-box__quote {
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.testimonial-box__author {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-brand-blue);
}

/* Breadcrumb SEO/Accessibile */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.breadcrumb__sep {
  opacity: 0.5;
}

/* Blocco "Cos'è?" & Trascrizioni "Zero Filtri" ottimizzati per GEO / LLM */
.geo-answer-box {
  padding: var(--space-6);
  background-color: var(--color-surface-light);
  border-left: 4px solid var(--color-brand-cyan);
  border-radius: var(--radius-md);
  margin-block: var(--space-6);
}

.transcript-details {
  margin-top: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-light);
}

.transcript-details summary {
  padding: var(--space-4) var(--space-5);
  font-weight: var(--fw-semibold);
  color: var(--color-brand-blue);
  cursor: pointer;
}

.transcript-details__body {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   10. FOOTER STRUCTURE
   -------------------------------------------------------------------------- */
.site-footer.surface-brand-pattern::before {
  opacity: 0.12;
}

.site-footer {
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  line-height: var(--lh-normal);
}

.site-footer__logo {
  max-width: 150px;
  height: auto;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: var(--space-2);
}

.site-footer a {
  color: var(--color-text-on-dark-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-brand-cyan);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.10);
  color: var(--color-white);
}

.site-footer__social a:hover {
  background-color: var(--color-brand-cyan);
  color: var(--color-text-primary);
}

.site-footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  color: var(--color-text-on-dark-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. FLOATING WHATSAPP CTA (Copilot.live rimosso per specifica progetto)
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: var(--z-floating);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--gradient-whatsapp);
  color: var(--color-white);
  box-shadow: var(--shadow-floating);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  color: var(--color-white);
  transform: scale(1.06);
}
