/*
 * EON Works — Flat Design Override
 * 3 colori: azzurro #65caf2, bianco #fff, nero #191919
 * Font unico: DM Sans
 * Zero gradienti.
 */

/* ── Spacing/utility helpers (subset of legacy elpath.css, only what's used) ── */
.d_block { display: block; }
.p_relative { position: relative; }
.mb_16 { margin-bottom: 16px; }
.mb_20 { margin-bottom: 20px; }
.mb_40 { margin-bottom: 40px; }
.mb_60 { margin-bottom: 60px; }
.mb_110 { margin-bottom: 110px; }
.ml_40 { margin-left: 40px; }
.mr_30 { margin-right: 30px; }
.pt_0 { padding-top: 0; }
.pt_100 { padding-top: 100px; }
.pb_0 { padding-bottom: 0; }
.pb_40 { padding-bottom: 40px; }
.pb_60 { padding-bottom: 60px; }
.pb_150 { padding-bottom: 150px; }
.pb_200 { padding-bottom: 200px; }
.pl_100 { padding-left: 100px; }
.pr_100 { padding-right: 100px; }

:root {
  --eon-azzurro: #65caf2;            /* brand accent — eccezione AAA documentata per testo enfatizzato (vedi CLAUDE.md) */
  --eon-bianco: #ffffff;
  --eon-nero: #191919;
  --eon-grigio: #5a5a5a;          /* WCAG 1.4.6 AAA — 7.04:1 su bianco (era #7c7c7c) */
  --eon-grigio-chiaro: #e8e8e8;   /* uso decorativo/reveal muted — non per testo principale */
  --eon-grigio-chiarissimo: #f5f5f5;
  --eon-bordo: #bdbdbd;           /* WCAG 1.4.11 — 3.0:1 su bianco, per border input/UI */

  /* Override Innovatex template vars */
  --theme-color: #65caf2;
  --secondary-color: #191919;
  --text-color: #5a5a5a;          /* WCAG 1.4.6 AAA */
  --title-color: #191919;
  --text-font: 'DM Sans', system-ui, sans-serif;
  --title-font: 'DM Sans', system-ui, sans-serif;

  /* Lock Bootstrap font stack to DM Sans */
  --bs-font-sans-serif: 'DM Sans', system-ui, -apple-system, sans-serif;
  --bs-body-font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}


/* ── GLOBAL ── */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: var(--eon-bianco);
  color: var(--eon-grigio);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.boxed_wrapper {
  background: var(--eon-bianco);
  border-radius: 0;
  overflow: hidden !important;
  margin: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.dark body,
.dark .boxed_wrapper {
  background: var(--eon-nero);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--eon-nero);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--eon-grigio);
  font-weight: 400;
}

a {
  transition: color 300ms ease;
}


/* ── KILL ALL GRADIENTS GLOBALLY ── */

.banner-section .content-box h2,
.sec-title h2,
.sec-title h2 span,
.banner-style-two .content-box h2 span,
.banner-style-three .title-box .title h2,
.banner-style-four .content-box h2,
.banner-style-four .content-box h2 span,
.about-style-three .upper-box h2 span,
.feature-block-one .content-box h2 span,
.service-block-two .inner-box h2,
.service-block-two.active .inner-box h2,
.page-title .content-box h1 span,
.error-section .content-box h1 span,
.error-section .content-box h2 span {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: var(--eon-nero) !important;
}

/* Kill sub-title gradient bg */
.sub-title {
  background: var(--eon-grigio-chiarissimo) !important;
  box-shadow: none !important;
}

/* ── TEXT ROTATE HERO ── */

.text-rotate-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eon-bianco);
  overflow: hidden;
  padding: 0 24px;
}

.text-rotate-hero__content {
  position: relative;
  z-index: 1;
}

.text-rotate-hero__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--eon-nero);
  line-height: 1.2;
  white-space: pre;
}

.text-rotate-hero__static {
  padding-top: 2px;
}

.text-rotate-hero__slot {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  background: var(--eon-azzurro);
  color: var(--eon-bianco);
  padding: 4px 12px;
  border-radius: 10px;
  font-weight: 500;
  min-width: 80px;
  justify-content: center;
}

.text-rotate-hero__slot .tr-word {
  display: inline-flex;
}

.text-rotate-hero__slot .tr-char {
  display: inline-block;
  will-change: transform, opacity;
}

.text-rotate-hero__slot .tr-space {
  white-space: pre;
  width: 0.3em;
}

@media (max-width: 640px) {
  .text-rotate-hero__line {
    font-size: 1.6rem;
  }

  .text-rotate-hero__slot {
    padding: 3px 10px;
    border-radius: 8px;
  }
}


/* ── KILL GSAP REVEAL ANIMATIONS ── */

.reveal-me:not(.portfolio-wrapper),
.reveal-me-2,
.reveal-me .reveal-me:not(.portfolio-wrapper),
[class*="reveal"]:not(.portfolio-wrapper):not(.reveal-text) {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

/* Scroll-highlight: words start muted, reveal on scroll */
.reveal-text .word {
  color: var(--eon-grigio-chiaro);
  transition: color 0.25s ease;
}
.reveal-text .word.highlighted {
  color: var(--eon-nero);
}
.reveal-text .word.key.highlighted {
  color: var(--eon-azzurro); /* eccezione AAA documentata — vedi CLAUDE.md */
}
.reveal-text em {
  font-style: normal;
}


/* Kill any remaining gradient overlays */
.about-style-five .content-box::after,
.testimonial-section .outer-container::before {
  background: none !important;
}

/* Kill marquee shadow gradients */
.scroll-text-section .outer-container .shadow-left,
.scroll-text-section .outer-container .shadow-right {
  background: none !important;
}


/* ── EDITORIAL HERO ── */

.hero-editorial {
  position: relative;
  padding: 200px 0 0;
  background: var(--eon-bianco);
  overflow: hidden;
}

.hero-editorial__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* Floating keywords — cosa facciamo, a colpo d'occhio */
.hero-editorial__keywords {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ── Hero scene: scroll-driven SVG illustration ── */
.hero-scene {
  --hero-progress: 0;          /* 0 at top of hero, 1 when hero has scrolled out */
  --hero-enter: 0;             /* 0→1 on load */
  position: absolute;
  top: 40px;
  right: 3%;
  width: clamp(240px, 30vw, 380px);
  aspect-ratio: 1 / 1;
  color: var(--eon-grigio-chiaro);
  pointer-events: none;
  z-index: 0;
}

.dark .hero-scene { color: rgba(255,255,255,0.18); }

.hero-scene__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  /* Gentle overall rotation driven by scroll */
  transform: rotate(calc(var(--hero-progress) * 60deg));
  transition: transform 80ms linear;
}

.hero-scene__doodle {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: translateY(calc(var(--hero-progress) * -12px));
  transition: transform 120ms linear;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-scene__doodle {
    animation: hero-doodle-bob 2.4s ease-in-out infinite;
  }
}
@keyframes hero-doodle-bob {
  0%, 100% { transform: translateY(calc(var(--hero-progress) * -12px)) rotate(-1deg); }
  50%      { transform: translateY(calc(var(--hero-progress) * -12px - 6px)) rotate(1deg); }
}

/* Rings: draw stroke from 0 to full as the hero comes in, then bloom on scroll */
.hero-scene__ring {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--hero-enter));
  transform-origin: 210px 210px;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-scene__ring--outer {
  opacity: calc(0.35 + var(--hero-progress) * 0.5);
  transform: scale(calc(1 + var(--hero-progress) * 0.08));
}
.hero-scene__ring--mid {
  opacity: calc(0.55 + var(--hero-progress) * 0.35);
  transform: scale(calc(1 - var(--hero-progress) * 0.1));
}
.hero-scene__ring--inner {
  opacity: calc(0.8 - var(--hero-progress) * 0.3);
  transform: scale(calc(1 - var(--hero-progress) * 0.35));
  transition-delay: 0.2s;
}

/* Orbits rotate opposite directions with scroll */
.hero-scene__orbit {
  transform-origin: 210px 210px;
  transform: rotate(calc(var(--hero-progress) * 180deg));
  transition: transform 80ms linear;
}
.hero-scene__orbit--mid {
  transform: rotate(calc(var(--hero-progress) * -240deg));
}

/* Each node sits at its own angle around the center */
.hero-scene__node {
  transform-origin: 210px 210px;
  transform: rotate(var(--angle));
  opacity: var(--hero-enter);
  transition: opacity 0.6s ease;
}

/* Spokes: draw on scroll */
.hero-scene__spokes {
  opacity: calc(var(--hero-progress) * 1.1);
}
.hero-scene__spoke {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--hero-progress));
  transform-origin: 210px 210px;
}

/* Central asterisk: scales + spins as you scroll */
.hero-scene__asterisk {
  transform-origin: 210px 210px;
  transform:
    rotate(calc(var(--hero-progress) * 360deg))
    scale(calc(1 + var(--hero-progress) * 0.5));
  transition: transform 80ms linear;
  opacity: var(--hero-enter);
}

/* Gentle ambient float (independent of scroll) */
@media (prefers-reduced-motion: no-preference) {
  .hero-scene__ring--inner {
    animation: hero-pulse 4s ease-in-out infinite;
  }
}
@keyframes hero-pulse {
  0%, 100% { stroke-width: 1.5; }
  50%      { stroke-width: 2.2; }
}

/* Mobile: doodle hero ridimensionato in alto a destra, sopra il titolo */
@media (max-width: 991px) {
  .hero-scene {
    position: relative;
    top: auto;
    right: auto;
    width: clamp(260px, 75vw, 420px);
    margin: 0 auto 24px 0;
    z-index: 1;
  }
}

.hero-editorial__headline {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--eon-nero);
  margin: 0 0 48px;
  text-transform: none;
}

@media (min-width: 992px) {
  .hero-editorial__headline {
    max-width: calc(100% - 440px);
  }
}

.hero-editorial__asterisk {
  color: var(--eon-azzurro);
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  vertical-align: 0.35em;
  margin-left: 0.06em;
  line-height: 0;
}

.hero-editorial__asterisk svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-asterisk {
  color: var(--eon-azzurro);
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 0 32px;
}

.section-asterisk svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-editorial__intro {
  margin-bottom: 64px;
}

.hero-editorial__subtitle {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  color: var(--eon-nero);
  margin-bottom: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero-editorial__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.hero-editorial__desc {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: #2a2a2a;
  font-weight: 500;
  max-width: 34ch;
  margin: 0;
  padding-right: 48px;
}

.hero-editorial__mark {
  background: var(--eon-azzurro);
  color: var(--eon-bianco);
  padding: 0.05em 0.28em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: 600;
}

.dark .hero-editorial__mark {
  color: var(--eon-bianco);
}

/* Inline text accent for hero desc — colore brand + peso, no background */
.hero-editorial__accent {
  color: var(--eon-azzurro);
  font-weight: 600;
}

.dark .hero-editorial__accent {
  color: var(--eon-azzurro);
}

/* Reusable highlight (same visual as hero mark, usable across sections) */
.eon-mark,
.sec-title h2 span.eon-mark,
.sec-title h2 span span.eon-mark {
  background: var(--eon-azzurro) !important;
  color: var(--eon-bianco) !important;
  -webkit-text-fill-color: var(--eon-bianco) !important;
  padding: 0.05em 0.28em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: inherit;
}

.dark .eon-mark,
.dark .sec-title h2 span.eon-mark,
.dark .sec-title h2 span span.eon-mark {
  color: var(--eon-bianco) !important;
  -webkit-text-fill-color: var(--eon-bianco) !important;
}

.hero-editorial__cta-wrap {
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .hero-editorial__cta-wrap {
    margin-top: -120px;
  }
}

.hero-editorial__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--eon-azzurro);
  color: var(--eon-bianco);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 22px 44px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background 300ms ease, transform 200ms ease, box-shadow 400ms ease;
  box-shadow: 0 4px 24px rgba(69, 198, 242, 0.3);
  animation: cta-glow 3s ease-in-out infinite;
}

/* Shimmer sweep */
.hero-editorial__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  animation: cta-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-shimmer {
  0%, 100% { left: -100%; }
  50%      { left: 100%; }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 24px rgba(69, 198, 242, 0.3); }
  50%      { box-shadow: 0 8px 40px rgba(69, 198, 242, 0.5), 0 0 60px rgba(69, 198, 242, 0.15); }
}

.hero-editorial__cta:hover {
  background: var(--eon-nero);
  color: var(--eon-bianco);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 48px rgba(26, 26, 26, 0.35);
  animation: none;
}

.hero-editorial__cta svg {
  width: 18px;
  height: 18px;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-editorial__cta:hover svg {
  transform: translate(4px, -4px);
}

.hero-editorial__divider {
  width: 100%;
  height: 1px;
  background: var(--eon-grigio-chiaro);
  margin-bottom: 48px;
}

/* Editorial hero — animation-ready initial states */
.hero-editorial__headline .hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.hero-editorial__headline .hero-line .hero-line__inner {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

.hero-editorial__asterisk {
  display: inline-block;
  transform-origin: bottom left;
  will-change: transform, opacity;
}

/* Asterisco volante: contrasto auto-invertito sopra fondi accent */
.hero-asterisk-flight {
  transition: color 180ms ease;
}
.hero-asterisk-flight.is-on-accent {
  color: var(--eon-bianco);
}

.hero-editorial__subtitle,
.hero-editorial__desc,
.hero-editorial__cta-wrap {
  will-change: transform, opacity;
}

.hero-editorial__divider {
  transform-origin: left center;
  will-change: transform;
}

/* CTA magnetic hover */
.hero-editorial__cta {
  will-change: transform;
  transition: background 400ms cubic-bezier(0.16, 1, 0.3, 1), color 300ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 400ms ease;
}

/* Editorial hero responsive */
@media (max-width: 768px) {
  .hero-editorial {
    padding: 120px 0 40px;
  }

  .hero-editorial__container {
    padding: 0 24px;
  }

  .hero-editorial__intro {
    margin-bottom: 32px;
  }

  .hero-editorial__row {
    flex-direction: column;
    gap: 24px;
  }

  .hero-transition {
    padding: 20px 0 40px;
  }
}

/* Editorial hero dark mode */
.dark .hero-editorial {
  background: var(--eon-nero) !important;
}

.dark .hero-editorial__headline {
  color: var(--eon-bianco);
}

.dark .hero-editorial__subtitle {
  color: var(--eon-bianco);
}

.dark .hero-editorial__desc {
  color: rgba(255,255,255,0.88);
}

.dark .hero-editorial__divider {
  background: rgba(255,255,255,0.1);
}

.dark .hero-editorial__cta {
  background: var(--eon-azzurro);
  color: var(--eon-bianco);
  box-shadow: 0 4px 24px rgba(69, 198, 242, 0.4);
}

.dark .hero-editorial__cta:hover {
  background: var(--eon-bianco);
  color: var(--eon-nero);
  box-shadow: 0 12px 48px rgba(69, 198, 242, 0.35), 0 0 80px rgba(69, 198, 242, 0.15);
}



/* ── OLD BANNER (kept for other pages) ── */

.banner-section {
  padding-top: 260px;
  padding-bottom: 60px;
}

.banner-section .content-box h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--eon-nero) !important;
}

.banner-section .content-box h2 .dot {
  background-color: var(--eon-azzurro);
}

.banner-section .content-box p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--eon-grigio);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.banner-section .content-box .btn-box {
  gap: 14px;
}


/* ── SUB-TITLE PILL — hidden ── */

.sub-title {
  display: none !important;
}


/* ── SEC-TITLE ── */

.sec-title {
  margin-bottom: 56px;
}

.sec-title h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--eon-nero) !important;
}


/* ── BUTTONS ── */

.theme-btn .static-text,
.theme-btn .overlay-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  padding: 15px 26px;
  gap: 8px;
}

/* Primary: azzurro bg, bianco text */
.theme-btn.theme-bg .static-text {
  background-color: var(--eon-azzurro);
  color: var(--eon-bianco);
}

.theme-btn.theme-bg .overlay-text {
  background-color: var(--eon-nero);
  color: var(--eon-bianco);
}

.theme-btn.theme-bg .static-text i,
.theme-btn.theme-bg .overlay-text i {
  background-color: rgba(255,255,255,0.2);
  color: var(--eon-bianco);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 13px;
}

/* Outlined */
.theme-btn.border-btn .static-text {
  border: 1.5px solid var(--eon-bordo);
  border-radius: 10px;
  color: var(--eon-nero);
}

.theme-btn.border-btn .overlay-text {
  background-color: var(--eon-azzurro);
  color: var(--eon-bianco);
  border-radius: 10px;
}

.theme-btn.border-btn .static-text i {
  background-color: var(--eon-nero);
  color: var(--eon-bianco);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  line-height: 32px;
}

.banner-btn {
  border: 1.5px solid var(--eon-bordo) !important;
  border-radius: 10px !important;
}


/* ── HEADER ── */

.main-header .outer-box .menu-right-content .btn-box .theme-btn .static-text,
.main-header .outer-box .menu-right-content .btn-box .theme-btn .overlay-text {
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
}


/* ── VIDEO ── */

.video-section .outer-container {
  border-radius: 20px;
  overflow: hidden;
}


/* ── ABOUT ── */

.about-section {
  padding: 80px 0 60px;
}

.about-section .content-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--eon-nero);
  max-width: 52ch;
}

/* Laptop range (~1200–1700px): doodle top-right ~280px occupa parte destra del
   container 1320px. Cap h2 per evitare collisione con illustrazione. */
@media (min-width: 992px) {
  .about-section .content-box h2 {
    max-width: min(52ch, calc(100% - 300px));
  }
}

.about-section .content-box .designation {
  color: var(--eon-grigio);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-section .content-box .author-box h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--eon-nero);
}

.about-section .content-box .author-box {
  border-top: 1px solid var(--eon-grigio-chiaro);
  padding-top: 40px;
}

/* About stats row */
.about-stats {
  flex-wrap: wrap;
  gap: 24px;
}

/* Più aria tra fine about (stats) e inizio portfolio */
.portfolio-section {
  padding-top: 120px;
}

.about-stats__grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  width: 100%;
}

.about-stats__item {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}

/* Annulla overflow:hidden + max-width della regola generica .about-section .content-box h2 */
.about-section .content-box .about-stats__item h2 {
  overflow: visible;
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  line-height: 1.25;
}

.about-stats__item + .about-stats__item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--eon-grigio-chiaro);
}

.come-lavoriamo-stats .about-stats__item h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-top: 12px;
}

.come-lavoriamo-stats .about-stats__item h2 .hash,
h2 .hash,
.hash {
  color: #65caf2 !important; /* eccezione AAA documentata — vedi CLAUDE.md */
}

@media (max-width: 767px) {
  .about-stats__grid {
    gap: 32px;
    flex-wrap: wrap;
  }
  .about-stats__item + .about-stats__item::before {
    display: none;
  }
  .about-stats {
    gap: 32px;
  }
  .come-lavoriamo-stats .about-stats__item h2 {
    font-size: 44px;
  }
}


/* ── PORTFOLIO ── */

.portfolio-block-one .inner-box .lower-content h3 a {
  color: var(--eon-nero);
  font-weight: 500;
  font-size: 18px;
}

.portfolio-block-one .inner-box .lower-content span {
  color: var(--eon-grigio);
  font-size: 14px;
}

.portfolio-block-one .inner-box .image-box,
.portfolio-block-one .inner-box .image-box img {
  border-radius: 12px;
}


/* ── SERVICE ── */

.service-section {
  padding-bottom: 80px;
}

.service-section .content-box .service-list li {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.25;
  font-weight: 500;
  color: var(--eon-grigio-chiaro);
  opacity: 1;
  transition: color 400ms ease;
  padding: 8px 0;
}

.service-section .content-box .service-list li.active-btn {
  color: var(--eon-nero);
}

.service-section .content-box .service-list li:hover {
  color: var(--eon-azzurro); /* eccezione AAA documentata — vedi CLAUDE.md */
}

.service-section .image-box .image,
.service-section .image-box .image img {
  border-radius: 16px;
}

.service-section .image-box .image img {
  transition: none;
}

.service-section .image-box .image:hover img {
  transform: none;
}


/* ── MARQUEE ── */

.scroll-text-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.scroll-text-section .single-text-box h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--eon-nero);
  letter-spacing: -0.02em;
}

/* Reset all shape spans — hide the 8 individual lines */
.scroll-text-section .single-text-box .shape span {
  background-color: transparent !important;
  width: 0 !important;
  height: 0 !important;
}

/* Repurpose 4 spans as rounded corner brackets */
.scroll-text-section .single-text-box .shape .shape-1,
.scroll-text-section .single-text-box .shape .shape-3,
.scroll-text-section .single-text-box .shape .shape-5,
.scroll-text-section .single-text-box .shape .shape-7 {
  width: 40px !important;
  height: 40px !important;
  background-color: transparent !important;
  border-color: var(--eon-azzurro);
  border-style: solid;
  border-width: 0;
}

/* Top-left corner */
.scroll-text-section .single-text-box .shape .shape-1 {
  left: 0; top: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 10px;
}

/* Bottom-left corner */
.scroll-text-section .single-text-box .shape .shape-3 {
  left: 0; bottom: 0; top: auto !important;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: 10px;
}

/* Top-right corner */
.scroll-text-section .single-text-box .shape .shape-5 {
  right: 0; top: 0;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 10px;
}

/* Bottom-right corner */
.scroll-text-section .single-text-box .shape .shape-7 {
  right: 0; bottom: 0; top: auto !important;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 10px;
}


/* ── TESTIMONIALS ── */

.testimonial-section {
  padding-top: 180px;
  padding-bottom: 80px;
}

/* Kill card-in-card: remove inner-box border */
.testimonial-block-one .inner-box {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 32px !important;
  min-height: auto !important;
  overflow: visible !important;
}

/* Static content: minimal, left accent line */
.testimonial-block-one .static-content {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  border-left: 4px solid var(--eon-azzurro) !important;
  padding-left: 28px !important;
}

.testimonial-block-one .static-content .text p {
  color: var(--eon-grigio);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.testimonial-block-one .author-box .thumb-box {
  width: 36px !important;
  height: 36px !important;
}

.testimonial-block-one .author-box .thumb-box img {
  filter: grayscale(100%);
}

.testimonial-block-one .author-box .author-info h5 {
  color: var(--eon-nero);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.testimonial-block-one .author-box .author-info .designation {
  color: var(--eon-grigio);
  font-size: 12px;
}

/* Kill hover overlay — not minimal */
.testimonial-block-one .overlay-content {
  display: none !important;
}

.testimonial-block-one:hover .static-content {
  opacity: 1 !important;
  transform: none !important;
}

/* Nav arrows — minimal */
.testimonial-section .owl-nav .owl-prev,
.testimonial-section .owl-nav .owl-next {
  border-color: var(--eon-bordo) !important;
  color: var(--eon-grigio) !important;
  transition: border-color 300ms ease, color 300ms ease;
}

.testimonial-section .owl-nav .owl-prev:hover,
.testimonial-section .owl-nav .owl-next:hover {
  border-color: var(--eon-azzurro) !important;
  color: var(--eon-azzurro) !important; /* eccezione AAA documentata — vedi CLAUDE.md */
}

/* Dots — azzurro accent */
.testimonial-section .owl-dots button {
  background-color: var(--eon-bordo);
}

.testimonial-section .owl-dots button.active,
.testimonial-section .owl-dots button:hover {
  background-color: var(--eon-azzurro);
}


/* ── FAQ ── */

.faq-section {
  padding-bottom: 260px;
}

.accordion .acc-btn h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.35;
  color: var(--eon-nero);
}

.accordion .acc-content p {
  color: var(--eon-grigio);
  line-height: 1.75;
}

.accordion.active-block .acc-btn {
  border-color: var(--eon-azzurro);
}


/* ── CONTACT ── */

.contact-section {
  padding-bottom: 180px;
}

.contact-content h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--eon-nero);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 40px;
}

.contact-content label {
  color: var(--eon-grigio);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-content input,
.contact-content textarea {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--eon-nero);
  border: 1.5px solid var(--eon-grigio-chiaro);
  border-radius: 10px;
}

.contact-content input:focus,
.contact-content textarea:focus {
  border-color: var(--eon-azzurro);
}

.contact-content .check-box label {
  color: var(--eon-grigio);
}

.contact-image .image,
.contact-image .image img {
  border-radius: 16px;
}


/* ── CONVERSATIONAL FORM ── */

.conv-form {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 80px 48px 48px;
  justify-content: center;
}

/* Progress — thin accent line */
.conv-form__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 40px 48px 0;
  transition: opacity 600ms ease;
}

.conv-form__progress-track {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
}

.conv-form__progress-bar {
  width: 25%;
  height: 100%;
  background: var(--eon-azzurro);
  border-radius: 1px;
  transition: width 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.conv-form__step-count {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7); /* WCAG 1.4.6 AAA — testo "x di y" leggibile */
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-width: 36px;
  text-align: right;
}

/* Steps container */
.conv-form__steps {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-start;
}

.conv-form__step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.conv-form__step.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Step number — accent */
.conv-form__label {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--eon-azzurro);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* Question — big, white, bold */
.conv-form__question {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--eon-bianco);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 48px;
}

.conv-form__name-echo {
  color: var(--eon-azzurro);
}

/* Hint text */
.conv-form__hint {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.75) !important; /* WCAG 1.4.6 AAA */
  margin-top: -28px;
  margin-bottom: 36px;
  line-height: 1.5;
}

/* Fields */
.conv-form__field {
  position: relative;
  max-width: 520px;
}

.conv-form__field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 600px;
}

.conv-form__field-group label {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85); /* WCAG 1.4.6 AAA */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Input — underline only, big text */
.conv-form__input {
  display: block;
  width: 100%;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--eon-bianco);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  transition: border-color 500ms cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
  -webkit-appearance: none;
}

.conv-form__input:focus {
  border-color: var(--eon-azzurro);
}

.conv-form__input:focus-visible {
  outline: 2px solid var(--eon-azzurro);
  outline-offset: 4px;
}

.conv-form__input::placeholder {
  color: rgba(255,255,255,0.7); /* WCAG 1.4.6 AAA — 7.7:1 su #191919 */
}

/* Textarea */
.conv-form__textarea {
  display: block;
  width: 100%;
  max-width: 600px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--eon-bianco);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  min-height: 140px;
  resize: none;
  transition: border-color 500ms cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
  -webkit-appearance: none;
}

.conv-form__textarea:focus {
  border-color: var(--eon-azzurro);
}

.conv-form__textarea:focus-visible {
  outline: 2px solid var(--eon-azzurro);
  outline-offset: 4px;
}

.conv-form__textarea::placeholder {
  color: rgba(255,255,255,0.7); /* WCAG 1.4.6 AAA — 7.7:1 su #191919 */
}

/* Pills — ghost, refined */
.conv-form__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.conv-form__pill {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 11px 22px;
  cursor: pointer;
  transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.conv-form__pill:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.conv-form__pill.is-selected {
  background: var(--eon-bianco);
  border-color: var(--eon-bianco);
  color: var(--eon-nero);
}

/* "Altro" — campo specifica */
.conv-form__other {
  margin-top: 22px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1), transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.conv-form__other.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.conv-form__other-label {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .conv-form__other { transition: none; transform: none; }
}

/* Navigation — clean bottom bar */
.conv-form__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 0;
  border-top: none;
}

.conv-form__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease, color 400ms ease;
}

.conv-form__back.is-visible {
  opacity: 1;
  visibility: visible;
}

.conv-form__back:hover {
  color: rgba(255,255,255,0.7);
}

.conv-form__back svg {
  width: 18px;
  height: 18px;
}

/* CTA button — accent, bold */
.conv-form__next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--eon-nero);
  background: var(--eon-azzurro);
  border: none;
  border-radius: 12px;
  padding: 16px 30px;
  cursor: pointer;
  transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.conv-form__next:hover {
  background: var(--eon-bianco);
  color: var(--eon-nero);
  transform: translateY(-2px);
}

.conv-form__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.conv-form__next:disabled:hover {
  background: var(--eon-azzurro);
}

.conv-form__next svg {
  width: 18px;
  height: 18px;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.conv-form__next:hover .conv-form__next-arrow {
  transform: translateX(3px);
}

.conv-form__next-spinner {
  display: none;
  animation: convFormSpin 700ms linear infinite;
  transform-origin: 50% 50%;
}

.conv-form__next.is-loading .conv-form__next-arrow { display: none; }
.conv-form__next.is-loading .conv-form__next-spinner { display: inline-block; }
.conv-form__next.is-loading:hover { transform: none; }

@keyframes convFormSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .conv-form__next-spinner { animation: none; }
}

/* Keyboard hint */
.conv-form__hint-key {
  text-align: right;
  margin-top: 20px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.15);
}

.conv-form__hint-key kbd {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 3px 8px;
  margin: 0 2px;
}

/* Success state */
.conv-form__success {
  display: none;
  text-align: center;
  padding: 80px 0;
}

.conv-form__success.is-visible {
  display: block;
}

.conv-form__success-icon {
  color: var(--eon-azzurro);
  margin-bottom: 36px;
}

.conv-form__success .conv-form__question {
  margin-bottom: 16px;
}

.conv-form__success .conv-form__hint {
  margin-top: 0;
}

/* Error shake */
@keyframes conv-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.conv-form__input.has-error,
.conv-form__textarea.has-error {
  border-color: #e53e3e;
  animation: conv-shake 400ms ease;
}

/* Responsive — drawer form */
@media (max-width: 767px) {
  .conv-form {
    padding: 60px 24px 36px;
  }

  .conv-form__progress {
    padding: 28px 24px 0;
  }

  .conv-form__field--row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .conv-form__nav {
    margin-top: 48px;
  }

  .conv-form__hint-key {
    display: none;
  }

  .conv-form__pills {
    gap: 8px;
  }

  .conv-form__pill {
    padding: 9px 16px;
    font-size: 13px;
  }

  .contact-drawer__panel {
    width: calc(100vw - 24px);
    max-height: 82vh;
    border-radius: 18px;
  }
}

.dark .conv-form__next {
  background: var(--eon-azzurro);
  color: var(--eon-nero);
}

.dark .conv-form__next:hover {
  background: var(--eon-bianco);
  color: var(--eon-nero);
}


/* ── FOOTER ── */

.main-footer {
  background: var(--eon-bianco);
}

.main-footer .widget-section {
  border-bottom: 1px solid var(--eon-grigio-chiaro);
}

.main-footer .logo-widget p {
  color: var(--eon-grigio);
  font-size: 15px;
  line-height: 1.65;
}

.main-footer .widget-title h4 {
  color: var(--eon-nero);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-footer .links-widget .links-list li a {
  color: var(--eon-grigio);
}

.main-footer .links-widget .links-list li a:hover {
  color: var(--eon-azzurro);
}

.footer-bottom p {
  color: var(--eon-grigio);
  font-size: 14px;
}


/* ── SCROLL TO TOP ── */

.scroll-to-top {
  box-shadow: inset 0 0 0 2px var(--eon-nero);
}

.scroll-to-top::after {
  color: var(--eon-azzurro);
}

.scroll-to-top .scroll-top-inner path {
  stroke: var(--eon-azzurro);
}


/* ── PRELOADER ── */

.handle-preloader {
  background: var(--eon-azzurro);
}

.logo-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 220px;
  height: auto;
  animation: logo-pulse 1.8s ease-in-out infinite;
}

.preloader-logo .logo-part {
  opacity: 0;
  animation: logo-fade-in 0.6s ease forwards;
}

.preloader-logo .logo-eon {
  animation-delay: 0.1s;
}

.preloader-logo .logo-icon {
  animation-delay: 0.35s;
}

.preloader-logo .logo-works {
  animation-delay: 0.6s;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes logo-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ── MOUSE POINTER ── */

html, body {
  cursor: none !important;
}

a, button, input, textarea, select,
[role="button"], .cursor-pointer,
label, summary, .tab-btn, .acc-btn,
[style*="cursor"], .owl-nav button {
  cursor: pointer !important;
}

.mouse-pointer {
  background-color: var(--eon-azzurro) !important;
  mix-blend-mode: normal !important;
  transition: width 200ms ease-out, height 200ms ease-out, opacity 200ms ease-out, background-color 250ms ease;
}

.mouse-pointer.is-dark {
  background-color: var(--eon-nero) !important;
}

/* Touch devices: ripristina cursore nativo, nascondi puntino custom */
@media (hover: none), (pointer: coarse) {
  html, body { cursor: auto !important; }
  .mouse-pointer { display: none !important; }
}


/* ── MOBILE MENU ── */

.mobile-menu .content-box {
  background: var(--eon-nero);
}

/* Tab buttons */
.mobile-menu .tab-btns .tab-btn span {
  color: rgba(255,255,255,0.35);
  transition: color 0.35s ease, transform 0.35s ease;
}

.mobile-menu .tab-btns .tab-btn:hover span {
  color: rgba(255,255,255,0.7);
}

.mobile-menu .tab-btns .tab-btn:hover span::before {
  width: 40px;
  background-color: rgba(255,255,255,0.2);
}

.mobile-menu .tab-btns .tab-btn.active-btn span {
  color: var(--eon-bianco);
}

/* Menu links — slide + underline on hover */
.mobile-menu .sidebar-menu-list li a {
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mobile-menu .sidebar-menu-list li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--eon-azzurro);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu .sidebar-menu-list li a:hover {
  color: var(--eon-bianco);
  transform: translateX(10px);
}

.mobile-menu .sidebar-menu-list li a:hover::after {
  width: 100%;
}

.mobile-menu .sidebar-menu-list li a.current {
  color: var(--eon-azzurro);
}

.mobile-menu .sidebar-menu-list li a.current::after {
  width: 100%;
  background: var(--eon-azzurro);
}

/* Close button — rotate on hover */
.mobile-menu .top-area .close-btn {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu .top-area .close-btn:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Bottom area */
.mobile-menu .bottom-area p {
  color: rgba(255,255,255,0.5) !important;
}

.mobile-menu .bottom-area .links-list li a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
  position: relative;
}

.mobile-menu .bottom-area .links-list li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--eon-azzurro);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu .bottom-area .links-list li a:hover {
  color: var(--eon-bianco);
}

.mobile-menu .bottom-area .links-list li a:hover::after {
  width: 100%;
}


/* ── DARK MODE ── */

.dark body,
.dark section {
  background-color: var(--eon-nero) !important;
  background: var(--eon-nero) !important;
}

.dark .banner-section .content-box h2,
.dark .sec-title h2,
.dark .sec-title h2 span {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: var(--eon-bianco) !important;
}

.dark p {
  color: rgba(255,255,255,0.6) !important;
}

.dark h1, .dark h2, .dark h3,
.dark h4, .dark h5, .dark h6 {
  color: var(--eon-bianco) !important;
}

.dark .sub-title {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--eon-azzurro);
}

.dark .sub-title span::before {
  background-color: var(--eon-azzurro);
}

.dark .main-footer {
  background-color: var(--eon-nero);
}

.dark .main-footer .widget-section {
  border-color: rgba(255,255,255,0.1);
}

.dark .testimonial-block-one .static-content {
  background: transparent !important;
  border-color: transparent !important;
  border-left-color: var(--eon-azzurro) !important;
}

.dark .testimonial-block-one .author-box .thumb-box img {
  filter: grayscale(100%) brightness(0.9);
}

.dark .testimonial-block-one .author-box .author-info h5 {
  color: var(--eon-bianco) !important;
}

.dark .service-section .content-box .service-list li {
  color: rgba(255,255,255,0.2) !important;
}

.dark .service-section .content-box .service-list li.active-btn {
  color: var(--eon-bianco) !important;
}

.dark .service-section .content-box .service-list li:hover {
  color: var(--eon-azzurro) !important;
}

.dark .theme-btn.theme-bg .static-text {
  background-color: var(--eon-azzurro);
  color: var(--eon-bianco);
}

.dark .theme-btn.theme-bg .overlay-text {
  background-color: var(--eon-bianco);
  color: var(--eon-nero);
}

.dark .theme-btn.border-btn .static-text {
  border-color: rgba(255,255,255,0.2);
  color: var(--eon-bianco);
}

.dark .theme-btn.border-btn .static-text i {
  background-color: var(--eon-bianco);
  color: var(--eon-nero);
}

.dark .theme-btn.border-btn .overlay-text {
  background-color: var(--eon-azzurro);
  color: var(--eon-bianco);
}

.dark .accordion .acc-btn h3 {
  color: var(--eon-bianco) !important;
}

.dark .contact-content input,
.dark .contact-content textarea {
  border-color: rgba(255,255,255,0.15);
  color: var(--eon-bianco);
}

.dark .contact-content input:focus,
.dark .contact-content textarea:focus {
  border-color: var(--eon-azzurro);
}

.dark .contact-content label {
  color: rgba(255,255,255,0.5);
}

.dark .scroll-to-top {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}

.dark .scroll-to-top::after {
  color: var(--eon-azzurro);
}

.dark .scroll-to-top .scroll-top-inner path {
  stroke: var(--eon-azzurro);
}

.dark .reveal-text .word {
  color: rgba(255,255,255,0.15);
}
.dark .reveal-text .word.highlighted {
  color: var(--eon-bianco);
}
.dark .reveal-text .word.key.highlighted {
  color: var(--eon-azzurro);
}

.dark .about-section .content-box .author-box {
  border-color: rgba(255,255,255,0.1);
}

.dark .about-stats__item + .about-stats__item::before {
  background: rgba(255,255,255,0.1);
}

.dark .portfolio-block-one .inner-box .lower-content h3 a {
  color: var(--eon-bianco);
}

.dark .portfolio-block-one .inner-box .lower-content span {
  color: rgba(255,255,255,0.5);
}

.dark .banner-btn {
  border-color: rgba(255,255,255,0.2) !important;
}

.dark .scroll-text-section .single-text-box h2 {
  color: var(--eon-bianco) !important;
}

.dark .scroll-text-section .outer-container .shadow-left,
.dark .scroll-text-section .outer-container .shadow-right {
  background: none !important;
}


/* ── SELECTION ── */

::selection {
  background: rgba(69, 198, 242, 0.2);
  color: var(--eon-nero);
}


/* ── SCROLLBAR ── */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--eon-azzurro);
  border-radius: 2px;
}


/* ── GENERIC ACCENT OVERRIDES ── */

.owl-dots button.active,
.owl-dots button:hover {
  background-color: var(--eon-azzurro) !important;
}

.progress-bar,
.count-bar {
  background-color: var(--eon-azzurro);
}


/* ── CONTACT DRAWER MODAL ── */

.contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 10010;
  pointer-events: none;
  opacity: 0;
}

.contact-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

/* pointer-events non ereditano: fissare su figli per non bloccare i click quando drawer chiuso */
.contact-drawer__overlay,
.contact-drawer__panel {
  pointer-events: none;
}

.contact-drawer.is-open .contact-drawer__overlay,
.contact-drawer.is-open .contact-drawer__panel {
  pointer-events: auto;
}

/* Overlay */
.contact-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0.01px);
  -webkit-backdrop-filter: blur(0.01px);
  transform: translateZ(0);
  will-change: background-color, backdrop-filter;
  transition: background 500ms ease, backdrop-filter 500ms ease, -webkit-backdrop-filter 500ms ease;
}

.contact-drawer.is-open .contact-drawer__overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Panel — floating card, anchored above trigger button */
.contact-drawer__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 92vw);
  max-height: min(82vh, 760px);
  background: var(--eon-nero);
  border-radius: 24px;
  transform: translate(-50%, -50%) scale(0.92);
  transform-origin: 50% 100%;
  opacity: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  will-change: transform, opacity;
}

.contact-drawer__panel.is-anchored {
  top: 0;
  left: 0;
  transform: scale(0.92);
}

.contact-drawer__panel .conv-form {
  height: auto;
  min-height: 440px;
  justify-content: flex-start;
}

/* Success auto-close timer */
.conv-form__success-timer {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 28px auto 0;
  opacity: 0;
}
.conv-form__success-timer svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.conv-form__success-timer-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}
.conv-form__success-timer-bar {
  fill: none;
  stroke: var(--eon-azzurro);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 125.664;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 50ms linear;
}
.conv-form__success-timer.is-running {
  opacity: 1;
  transition: opacity 300ms ease;
}
.conv-form__success-timer.is-running .conv-form__success-timer-bar {
  animation: convTimerDrain var(--timer-dur, 5s) linear forwards;
}
@keyframes convTimerDrain {
  to { stroke-dashoffset: 125.664; }
}
.conv-form__success-timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

/* Close button — positioned above progress bar */
.contact-drawer__close {
  position: absolute;
  top: 32px;
  right: 48px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

/* Make room for close button in progress bar */
.contact-drawer .conv-form__progress {
  padding-right: 110px;
}

.contact-drawer__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--eon-bianco);
  transform: scale(1.08);
}

/* Body scroll lock when drawer open */
body.drawer-open {
  overflow: hidden;
}

/* Nasconde scroll-line globale quando drawer aperto (evita flash azzurro) */
body.drawer-open .eon-scroll-line {
  display: none;
}

/* Header altrimenti trapassa il backdrop-filter dell'overlay su iOS WebView (Telegram, in-app).
   Stesso z-index 9999 + will-change:transform crea stacking context che salta il blur layer. */
body.drawer-open .main-header {
  visibility: hidden;
  pointer-events: none;
}

/* Nasconde scrollbar azzurra dentro al drawer (evita flash all'apertura) */
.contact-drawer,
.contact-drawer *,
.contact-drawer__panel,
.contact-drawer__panel * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.contact-drawer ::-webkit-scrollbar,
.contact-drawer__panel ::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Force dark colors inside drawer */
.contact-drawer .conv-form__question {
  color: var(--eon-bianco);
}

.contact-drawer .conv-form__label {
  color: var(--eon-azzurro);
}

.contact-drawer .conv-form__hint {
  color: rgba(255, 255, 255, 0.45);
}

.contact-drawer .conv-form__input,
.contact-drawer .conv-form__textarea {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--eon-bianco);
}

.contact-drawer .conv-form__input:focus,
.contact-drawer .conv-form__textarea:focus {
  border-color: var(--eon-azzurro);
}

.contact-drawer .conv-form__input::placeholder,
.contact-drawer .conv-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.contact-drawer .conv-form__field-group label {
  color: rgba(255, 255, 255, 0.45);
}

.contact-drawer .conv-form__pill {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

.contact-drawer .conv-form__pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--eon-bianco);
}

.contact-drawer .conv-form__pill.is-selected {
  background: var(--eon-azzurro);
  border-color: var(--eon-azzurro);
  color: var(--eon-bianco);
}

.contact-drawer .conv-form__back {
  color: rgba(255, 255, 255, 0.4);
}

.contact-drawer .conv-form__back:hover {
  color: var(--eon-bianco);
}

.contact-drawer .conv-form__next {
  background: var(--eon-bianco);
  color: var(--eon-nero);
}

.contact-drawer .conv-form__next:hover {
  background: var(--eon-azzurro);
  color: var(--eon-bianco);
}

.contact-drawer .conv-form__hint-key {
  color: rgba(255, 255, 255, 0.2);
}

.contact-drawer .conv-form__hint-key kbd {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
}

.contact-drawer .conv-form__success-icon {
  color: var(--eon-azzurro);
}


/* ── NEW CONTENT SECTIONS ── */

/* Service descriptions — inline sotto al titolo, visibili solo su tab attiva */
.service-section .content-box .service-list li .service-desc {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  line-height: 1.6;
  color: var(--eon-grigio);
  margin: 14px 0 0;
  max-width: 52ch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
  pointer-events: none;
}

.service-section .content-box .service-list li.active-btn .service-desc {
  max-height: 400px;
  opacity: 1;
  margin-top: 14px;
  pointer-events: auto;
}

.dark .service-section .content-box .service-list li .service-desc {
  color: rgba(255,255,255,0.6);
}

.service-section .content-box .service-list li .service-desc strong {
  font-weight: 700;
  color: var(--eon-nero);
}

.dark .service-section .content-box .service-list li .service-desc strong {
  color: #fff;
}

.service-section .content-box .service-list li .service-desc .wcag-badge {
  display: inline-block;
  margin-top: 14px;
  width: 114px;
  height: auto;
}

/* "Scopri di più" link inside service-desc */
.service-section .content-box .service-list li .service-desc .wcag-badge {
  margin-top: 28px;
  margin-bottom: 4px;
}
.service-section .content-box .service-list li .service-desc .service-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 12px 22px;
  background: var(--eon-azzurro) !important;
  color: var(--eon-bianco) !important;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none !important;
  border-radius: 999px;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 2px 12px rgba(101,202,242,0.28);
}
.service-section .content-box .service-list li .service-desc .service-more:hover {
  background: var(--eon-nero) !important;
  color: var(--eon-bianco) !important;
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(25,25,25,0.22);
}
.service-section .content-box .service-list li .service-desc .service-more svg {
  width: 14px !important;
  height: 14px !important;
  transition: transform 250ms ease;
}
.service-section .content-box .service-list li .service-desc .service-more:hover svg {
  transform: translate(2px, -2px);
}
.dark .service-section .content-box .service-list li .service-desc .service-more {
  background: var(--eon-azzurro) !important;
  color: var(--eon-bianco) !important;
}
.dark .service-section .content-box .service-list li .service-desc .service-more:hover {
  background: var(--eon-bianco) !important;
  color: var(--eon-nero) !important;
}

/* ── Come lavoriamo — editorial (riusa stile .about-section) ── */
.come-lavoriamo-section.about {
  padding: 40px 0 100px;
  background: var(--eon-bianco);
}
.dark .come-lavoriamo-section.about { background: var(--eon-nero); }

.come-lavoriamo-section .content-box h2 {
  max-width: 58ch;
}

/* (Come lavoriamo rail removed — editorial style defined above.) */

/* AI automation */
.ai-automation-section {
  padding: 100px 0;
}

.ai-automation-section .text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--eon-grigio);
}

.dark .ai-automation-section .text p {
  color: rgba(255,255,255,0.6);
}

/* ── AI AUTOMATION — editorial layout ── */

.ai-automation__row {
  align-items: flex-start;
  gap: 0;
}

.ai-automation__text {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--eon-azzurro);
}

.ai-automation__lead {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--eon-nero);
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  max-width: 46ch;
}

.ai-automation__lead i.claim {
  font-weight: 500;
}

.ai-automation__divider {
  width: 56px;
  height: 2px;
  background: var(--eon-nero);
  margin-bottom: 40px;
}

.ai-automation__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--eon-grigio);
  margin: 0;
  max-width: 52ch;
}

/* Aside pull quote */
.ai-automation__aside {
  padding-left: 48px;
  display: flex;
  align-items: center;
}

.ai-automation__pullquote {
  position: relative;
  margin: 0;
  padding: 56px 0 40px 0;
  border: 0;
}

.ai-automation__quote-mark {
  position: absolute;
  top: -12px;
  left: -8px;
  width: clamp(90px, 10vw, 140px);
  height: auto;
  color: var(--eon-azzurro);
  opacity: 1;
  z-index: 0;
}

.ai-automation__pullquote blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--eon-nero);
  letter-spacing: -0.035em;
}

.ai-automation__pullquote blockquote i.claim {
  display: inline;
  font-style: italic;
  font-weight: 700;
  color: var(--eon-azzurro);
  background: linear-gradient(transparent 62%, rgba(47, 181, 232, 0.18) 62%, rgba(47, 181, 232, 0.18) 92%, transparent 92%);
  padding: 0 2px;
}

/* Dark mode */
.dark .ai-automation__lead {
  color: var(--eon-bianco);
}

.dark .ai-automation__divider {
  background: var(--eon-bianco);
}

.dark .ai-automation__body {
  color: rgba(255,255,255,0.6);
}

.dark .ai-automation__pullquote blockquote {
  color: var(--eon-bianco);
}

/* Responsive */
@media (max-width: 991px) {
  .ai-automation__aside {
    padding-left: 32px;
    margin-top: 48px;
  }
}

@media (max-width: 767px) {
  .ai-automation__text {
    padding-left: 20px;
  }
  .ai-automation__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ai-automation__aside {
    padding-left: 20px;
    margin-top: 40px;
  }
}

/* Perché section */
.perche-section {
  padding: 100px 0;
}

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

.reasons-list li {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--eon-nero);
  line-height: 1.5;
  padding: 16px 0;
  border-bottom: 1px solid var(--eon-grigio-chiaro);
}

.reasons-list li:first-child {
  border-top: 1px solid var(--eon-grigio-chiaro);
}

.dark .reasons-list li {
  color: var(--eon-bianco);
  border-color: rgba(255,255,255,0.1);
}


/* ── "WORKS" CLAIM TREATMENT ── */

i.claim,
.reveal-text em.claim,
.reveal-text .word.key.claim {
  font-style: italic;
  letter-spacing: 0.01em;
}

i.claim {
  color: var(--eon-azzurro) !important;
}

.reveal-text .word.key.claim {
  color: var(--eon-grigio-chiaro) !important;
}
.reveal-text .word.key.claim.highlighted {
  color: var(--eon-azzurro) !important;
}

.dark i.claim {
  color: var(--eon-azzurro) !important;
}
.dark .reveal-text .word.key.claim {
  color: var(--eon-grigio-chiaro) !important;
}
.dark .reveal-text .word.key.claim.highlighted {
  color: var(--eon-azzurro) !important;
}

/* ── "WORKS" con W del logo ── */
.works-with-logo {
  font-style: italic;
  color: var(--eon-azzurro);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
}

.works-with-logo .works-logo-w {
  height: 0.78em;
  width: auto;
  display: inline-block;
  fill: var(--eon-azzurro);
  transform: translateY(0.12em);
  flex-shrink: 0;
}

.works-with-logo .works-orks {
  font-style: italic;
}

.works-with-logo .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;
}

.dark .works-with-logo .works-logo-w {
  fill: var(--eon-azzurro);
}

/* ── Doodles decorativi ──────────────────────────────────────────── */
.doodle-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.92;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.04));
  transition: transform 200ms ease-out;
}

.doodle-deco img,
.doodle-deco svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.doodle-deco--top-right    { top: 24px;    right: 4%;  }
.doodle-deco--top-left     { top: 24px;    left: 4%;   }
.doodle-deco--bottom-right { bottom: 24px; right: 4%;  }
.doodle-deco--bottom-left  { bottom: 24px; left: 4%;   }
.doodle-deco--mid-right    { top: 50%;     right: 2%; transform: translateY(-50%); }
.doodle-deco--mid-left     { top: 50%;     left: 2%;  transform: translateY(-50%); }

.doodle-deco--sm  { width: clamp(120px, 12vw, 180px); aspect-ratio: 1/1; }
.doodle-deco--md  { width: clamp(180px, 18vw, 280px); aspect-ratio: 1/1; }
.doodle-deco--lg  { width: clamp(220px, 24vw, 360px); aspect-ratio: 1/1; }

.doodle-deco--flip img { transform: scaleX(-1); }

@media (prefers-reduced-motion: no-preference) {
  .doodle-deco--bob    { animation: doodle-bob    4.2s ease-in-out infinite; }
  .doodle-deco--sway   { animation: doodle-sway   6s   ease-in-out infinite; }
  .doodle-deco--float  { animation: doodle-float  5s   ease-in-out infinite; }
}

@keyframes doodle-bob {
  0%, 100% { transform: translateY(0)    rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1deg);  }
}
@keyframes doodle-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg);  }
}
@keyframes doodle-float {
  0%, 100% { transform: translateY(0)    translateX(0); }
  50%      { transform: translateY(-10px) translateX(4px); }
}

/* mid-right/mid-left + animation: keep translateY centered */
.doodle-deco--mid-right.doodle-deco--bob,
.doodle-deco--mid-left.doodle-deco--bob {
  animation: doodle-bob-mid 4.2s ease-in-out infinite;
}
@keyframes doodle-bob-mid {
  0%, 100% { transform: translateY(-50%) rotate(-1deg); }
  50%      { transform: translateY(calc(-50% - 8px)) rotate(1deg); }
}

/* Hide doodles on small screens to avoid overlap */
@media (max-width: 991px) {
  .doodle-deco { display: none; }
}

/* Sezioni che ospitano doodle: garantire stacking context */
.about-section,
.service-section,
.come-lavoriamo-section,
.ai-automation-section,
.perche-section,
.faq-section,
.approach-section,
.cta-section,
.contact-style-two,
.about-style-six {
  position: relative;
  overflow: hidden;
}

/* Tema scuro: doodle un filo più tenui */
.dark .doodle-deco { opacity: 0.78; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.4)); }

/* Fix descender (es. "g" di #progettare) troncato con line-height:1 */
.come-lavoriamo-stats .about-stats__item h2 {
  line-height: 1.1;
  padding-bottom: 0.08em;
}

/* FAQ: margini laterali più generosi su desktop medio */
@media (min-width: 992px) {
  .faq-section .large-container {
    padding-left: clamp(32px, 5vw, 80px);
    padding-right: clamp(32px, 5vw, 80px);
  }
}


/* ── SCROLL PROGRESS LINE ── */
.eon-scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 100vh;
  background: rgba(124, 124, 124, 0.15);
  z-index: 9999;
  pointer-events: none;
}
.eon-scroll-line__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--eon-azzurro);
  transform-origin: top center;
  transform: scaleY(var(--eon-scroll, 0));
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .eon-scroll-line__fill {
    animation: eon-scroll-fill linear both;
    animation-timeline: scroll(root);
    transform: scaleY(0);
  }
  @keyframes eon-scroll-fill {
    to { transform: scaleY(1); }
  }
}
.dark .eon-scroll-line {
  background: rgba(255, 255, 255, 0.1);
}

/* ── PORTFOLIO: card sizing fit viewport (horizontal scroll pin) ── */
.portfolio-section .portfolio-block-one {
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 460px);
}

.portfolio-block-one .inner-box .image-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
}

.portfolio-block-one .inner-box .image-box a,
.portfolio-block-one .inner-box .image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-block-one .inner-box .lower-content h3 {
  font-size: 18px;
  line-height: 24px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .portfolio-section .portfolio-block-one {
    width: 72vw;
  }
  .portfolio-block-one .inner-box .image-box {
    max-height: 58vh;
  }
}

/* Anchor navbar in header */
.main-header .outer-box .eon-anchor-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: 6px;
}

.main-header .outer-box .eon-anchor-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header .outer-box .eon-anchor-nav li {
  margin: 0;
}

.main-header .outer-box .eon-anchor-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.main-header .outer-box .eon-anchor-nav a:hover,
.main-header .outer-box .eon-anchor-nav a:focus-visible {
  background-color: var(--theme-color);
  color: #fff;
}

@media (max-width: 1100px) {
  .main-header .outer-box .eon-anchor-nav {
    display: none;
  }
}


/* ──────────────────────────────────────────────────────────
   UNIFORM ROUNDED CORNERS
   Single radius token for every rectangle / button.
   Kept out of scope: circles (50%), long pills (100px),
   thin dividers (1–2px bars), scrollbar thumb, hard resets (0).
   ────────────────────────────────────────────────────────── */

:root {
  --eon-radius: 10px;
  --eon-radius-sm: 6px; /* inline text highlights */
}

/* Buttons */
.theme-btn .static-text,
.theme-btn .overlay-text,
.theme-btn.theme-bg .static-text,
.theme-btn.theme-bg .overlay-text,
.theme-btn.border-btn .static-text,
.theme-btn.border-btn .overlay-text,
.banner-btn,
.main-header .outer-box .menu-right-content .btn-box .theme-btn .static-text,
.main-header .outer-box .menu-right-content .btn-box .theme-btn .overlay-text,
.hero-editorial__cta,
button,
.btn,
input[type="button"],
input[type="submit"] {
  border-radius: var(--eon-radius) !important;
}

/* Button icon chips */
.theme-btn .static-text i,
.theme-btn .overlay-text i,
.theme-btn.theme-bg .static-text i,
.theme-btn.theme-bg .overlay-text i,
.theme-btn.border-btn .static-text i {
  border-radius: var(--eon-radius) !important;
}

/* Cards / media / containers */
.video-section .outer-container,
.portfolio-block-one .inner-box .image-box,
.portfolio-block-one .inner-box .image-box img,
.service-section .image-box .image,
.service-section .image-box .image img,
.contact-image .image,
.contact-image .image img {
  border-radius: var(--eon-radius) !important;
}

/* Form inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
input.form-control,
textarea.form-control,
select.form-control {
  border-radius: var(--eon-radius) !important;
}

/* Inline text highlights — softer smaller radius so they still feel tight on text */
.hero-editorial__mark,
.eon-mark,
.sec-title h2 span.eon-mark,
.sec-title h2 span span.eon-mark,
.text-rotate-hero__slot {
  border-radius: var(--eon-radius-sm) !important;
}


/* ── TRUST BADGES (testimonial) ── */

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(25, 25, 25, 0.1);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  line-height: 1;
  color: var(--eon-nero);
  white-space: nowrap;
}

.trust-badge__g {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.trust-badge__stars {
  color: #fbbc05;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.trust-badge__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--eon-grigio);
  letter-spacing: 0.2px;
}

.dark .trust-badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dark .trust-badge__label {
  color: rgba(255, 255, 255, 0.65);
}


/* ── TRUST SUMMARY (sotto titolo sezione) ── */

.sec-title .trust-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(25, 25, 25, 0.12);
  border-radius: 999px;
  background: #fff;
  font-family: var(--text-font);
}

.trust-summary__g {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.trust-summary__rating {
  font-size: 16px;
  font-weight: 700;
  color: var(--eon-nero);
  line-height: 1;
}

.trust-summary__stars {
  color: #fbbc05;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}

.trust-summary__meta {
  font-size: 12px;
  color: var(--eon-grigio);
  padding-left: 8px;
  border-left: 1px solid rgba(25, 25, 25, 0.12);
  line-height: 1;
}

.dark .sec-title .trust-summary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.dark .trust-summary__rating {
  color: #fff;
}

.dark .trust-summary__meta {
  color: rgba(255, 255, 255, 0.65);
  border-left-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 540px) {
  .sec-title .trust-summary {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .trust-summary__meta {
    padding-left: 0;
    border-left: 0;
    flex-basis: 100%;
  }
}




/* ── Testimonials horizontal scroll-snap (replaces owl carousel) ── */

.testimonials-scroll-wrap {
  position: relative;
}

.testimonials-scroll {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.testimonials-scroll::-webkit-scrollbar { display: none; }

.testimonials-scroll > .testimonial-block-one {
  flex: 0 0 calc((100% - 90px) / 4);
  scroll-snap-align: start;
}

@media (max-width: 1199px) {
  .testimonials-scroll > .testimonial-block-one {
    flex-basis: calc((100% - 60px) / 3);
  }
}

@media (max-width: 991px) {
  .testimonials-scroll > .testimonial-block-one {
    flex-basis: calc((100% - 30px) / 2);
  }
}

@media (max-width: 599px) {
  .testimonials-scroll > .testimonial-block-one {
    flex-basis: 100%;
  }
}

.testimonials-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--eon-grigio-chiaro);
  background: var(--eon-bianco);
  color: var(--eon-nero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.testimonials-nav:hover {
  background: var(--eon-nero);
  color: var(--eon-bianco);
  border-color: var(--eon-nero);
}

.testimonials-nav svg {
  width: 16px;
  height: 16px;
}

.testimonials-nav--prev { left: -22px; }
.testimonials-nav--next { right: -22px; }

@media (max-width: 991px) {
  .testimonials-nav { display: none; }
}

.dark .testimonials-nav {
  background: var(--eon-nero);
  color: var(--eon-bianco);
  border-color: rgba(255,255,255,0.15);
}

.dark .testimonials-nav:hover {
  background: var(--eon-bianco);
  color: var(--eon-nero);
}

/* ── Header logo swap (light-on-dark sections) ── */
.main-header .logo-box { position: relative; }
.main-header .logo-box .logo,
.main-header .logo-box .light-logo {
  transition: opacity .35s ease;
  will-change: opacity;
}
.main-header .logo-box .light-logo {
  display: block !important;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.main-header.is-light .logo-box .logo { opacity: 0; }
.main-header.is-light .logo-box .light-logo { opacity: 1; pointer-events: auto; }

.dark .main-header .logo-box .logo { display: block; opacity: 0; }
.dark .main-header .logo-box .light-logo { opacity: 1; pointer-events: auto; }



/* ── Marquee CSS-native (replaces InfiniteMarquee lib) ── */

.marquee-container.is-css-marquee {
  overflow: hidden;
  display: flex;
}

.marquee-container.is-css-marquee .marquee-track {
  display: flex;
  width: max-content;
  animation: eon-marquee-x 60s linear infinite;
  will-change: transform;
}

.marquee-container.is-css-marquee .text-inner {
  display: flex;
  flex-shrink: 0;
}

.marquee-container.is-css-marquee:hover .marquee-track,
.marquee-container.is-css-marquee:focus-within .marquee-track,
.marquee-container.is-css-marquee.is-paused .marquee-track {
  animation-play-state: paused;
}

@keyframes eon-marquee-x {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-container.is-css-marquee .marquee-track {
    animation: none;
  }
}

/* ==========================================================================
   WCAG 2.2 AAA — Focus visibile globale (2.4.7 AA + 2.4.13 AAA)
   ========================================================================== */

:root {
  --eon-focus-ring: 2px solid #65caf2;
  --eon-focus-ring-offset: 3px;
}

/* Reset focus-visible su tutti gli elementi interattivi */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible,
summary:focus-visible {
  outline: var(--eon-focus-ring);
  outline-offset: var(--eon-focus-ring-offset);
  border-radius: 2px;
}

/* Rimuove focus solo per interazione mouse (mantiene tastiera) */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Scroll-padding per evitare focus coperto da header sticky (2.4.11 AA) */
html {
  scroll-padding-top: 100px;
}

/* ==========================================================================
   Skip link — primo focusable (2.4.1 A)
   ========================================================================== */

.eon-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 14px 22px;
  background: #191919;
  color: #ffffff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.eon-skip-link:focus,
.eon-skip-link:focus-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  outline: 2px solid #65caf2;
  outline-offset: 3px;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .eon-skip-link {
    transition: none;
  }
}

/* ==========================================================================
   prefers-reduced-motion — disabilita scroll-behavior smooth (2.3.3 AAA)
   ========================================================================== */

@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;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   Conv-form: consenso GDPR + errore submit
   ========================================================================== */

.conv-form__consent {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-drawer .conv-form__check,
.conv-form__check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  user-select: none;
  padding: 4px 0;
  min-height: 44px;
  position: relative;
}

.conv-form__check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.conv-form__check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  margin-top: 1px;
}

.conv-form__check-box svg {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
  color: #fff;
}

.conv-form__check input[type="checkbox"]:checked ~ .conv-form__check-box {
  background: var(--eon-accent, #65caf2);
  border-color: var(--eon-accent, #65caf2);
}

.conv-form__check input[type="checkbox"]:checked ~ .conv-form__check-box svg {
  opacity: 1;
  transform: scale(1);
}

.conv-form__check input[type="checkbox"]:focus-visible ~ .conv-form__check-box {
  outline: 2px solid var(--eon-accent, #65caf2);
  outline-offset: 3px;
}

.conv-form__check-text {
  flex: 1;
  min-width: 0;
}

.conv-form__check-text a,
.conv-form__check-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  display: inline !important;
  border-radius: 0 !important;
}

.conv-form__check-text a:hover,
.conv-form__check-text a:focus-visible,
.conv-form__check-link:hover,
.conv-form__check-link:focus-visible {
  color: var(--eon-accent, #65caf2);
}

.conv-form__check-link:focus-visible {
  outline: 2px solid var(--eon-accent, #65caf2);
  outline-offset: 2px;
  border-radius: 2px !important;
}

.conv-form__check-required {
  color: var(--eon-accent, #65caf2);
  font-weight: 600;
  margin-left: 2px;
}

.conv-form__check.has-error .conv-form__check-box {
  border-color: #e23b3b;
  animation: convFormShake .35s cubic-bezier(.36,.07,.19,.97);
}

@keyframes convFormShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

.conv-form__consent-error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #e23b3b;
  padding-left: 34px;
}

.conv-form__submit-error {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #e23b3b;
  padding: 10px 14px;
  background: rgba(226, 59, 59, 0.08);
  border: 1px solid rgba(226, 59, 59, 0.3);
  border-radius: 8px;
}

/* hint-key e tutto sotto consenso: spaziatura */
.contact-drawer .conv-form__consent {
  margin-top: 28px;
  padding-top: 22px;
}

.contact-drawer .conv-form__check-box {
  border-color: rgba(255, 255, 255, 0.5);
}


/* ==========================================================================
   Footer: documenti legali (Privacy / Cookie / Compliance)
   ========================================================================== */

.footer-bottom .footer-legal {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  font-size: 13px;
}

.footer-bottom .footer-legal li {
  position: relative;
  padding: 4px 0;
}

.footer-bottom .footer-legal li + li::before {
  content: "·";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .5;
  pointer-events: none;
}

.footer-bottom .footer-legal a {
  color: inherit;
  opacity: .85;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity .15s ease, border-color .15s ease, color .15s ease;
  padding: 4px 2px;
  display: inline-block;
  min-height: 24px;
}

.footer-bottom .footer-legal a:hover,
.footer-bottom .footer-legal a:focus-visible {
  opacity: 1;
  color: var(--eon-accent, #65caf2);
  border-bottom-color: var(--eon-accent, #65caf2);
}

.footer-bottom .footer-legal a:focus-visible {
  outline: 2px solid var(--eon-accent, #65caf2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Utility — visually-hidden (screen-reader only) — WCAG
   ========================================================================== */

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

/* ==========================================================================
   Marquee clienti — controllo pausa accessibile (WCAG 2.2.2 A)
   ========================================================================== */

.clients-marquee {
  position: relative;
}

.clients-marquee__pause {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  background: #ffffff;
  color: #191919;
  border: 1.5px solid var(--eon-bordo);
  border-radius: 999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.clients-marquee:hover .clients-marquee__pause,
.clients-marquee:focus-within .clients-marquee__pause,
.clients-marquee.is-paused .clients-marquee__pause,
.clients-marquee__pause:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.clients-marquee__pause:hover,
.clients-marquee__pause:focus-visible {
  border-color: var(--eon-azzurro);
  background: #ffffff;
}

.clients-marquee__pause .icon-play { display: none; }
.clients-marquee__pause .icon-pause { display: inline-block; }

.clients-marquee.is-paused .clients-marquee__pause .icon-pause { display: none; }
.clients-marquee.is-paused .clients-marquee__pause .icon-play { display: inline-block; }

.clients-marquee.is-paused .clients-marquee__track {
  animation-play-state: paused !important;
}

.clients-marquee__pause-icon {
  display: inline-flex;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee__pause {
    opacity: 1;
    transform: none;
  }
}


/* ── MOBILE — about-stats + come-lavoriamo-stats: centrate + più impattanti ── */
@media (max-width: 768px) {
  .about-section .content-box .designation,
  .come-lavoriamo-stats .designation {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

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

  .about-section .content-box .about-stats__item h2 {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    line-height: 1.15;
  }

  .come-lavoriamo-stats .about-stats__item h2 {
    font-size: clamp(72px, 18vw, 96px);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
  }

  /* Footer: annulla offset ml_40 sul widget Servizi quando stacka */
  .main-footer .footer-widget.ml_40 {
    margin-left: 0 !important;
  }

  /* FAQ: chiudi voragine sotto ultimo accordion */
  .faq-section,
  .faq-section.pb_300 {
    padding-bottom: 60px !important;
  }

  /* FAQ CTA "Prenota una call": full-width + più visibile */
  .faq-section .sec-title .theme-btn.banner-btn {
    display: block;
    width: 100%;
    margin-top: 28px;
  }
  .faq-section .sec-title .theme-btn.banner-btn .static-text,
  .faq-section .sec-title .theme-btn.banner-btn .overlay-text {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
  }

  /* Marquee "con Design / Mockup": riduci spazio sopra/sotto */
  .ai-automation-section { padding-bottom: 32px; }
  .scroll-text-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  /* Marquee: ripristina parentesi stondate (override responsive.css ≤599px) */
  .scroll-text-section .single-text-box {
    padding: 0 28px;
  }
  .scroll-text-section .single-text-box .shape {
    display: block !important;
  }
}


/* ──────────────────────────────────────────────────────────
   MOBILE MENU
   Toggle in header + full-sheet modale.
   AAA: target ≥44px, contrasti su nero #191919, focus visibile.
   ────────────────────────────────────────────────────────── */

/* Toggle hamburger — nascosto a desktop */
.eon-mobile-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--eon-azzurro);
  color: var(--eon-nero);
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.eon-mobile-toggle:hover,
.eon-mobile-toggle:focus-visible {
  background: #4ab5dc;
}

.eon-mobile-toggle:focus-visible {
  outline: 2px solid var(--eon-nero);
  outline-offset: 2px;
}

.eon-mobile-toggle__bars {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
}

.eon-mobile-toggle__bars > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.eon-mobile-toggle__bars > span:nth-child(1) { top: 0; }
.eon-mobile-toggle__bars > span:nth-child(2) { top: 5px; }
.eon-mobile-toggle__bars > span:nth-child(3) { top: 10px; }

.eon-mobile-toggle[aria-expanded="true"] .eon-mobile-toggle__bars > span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.eon-mobile-toggle[aria-expanded="true"] .eon-mobile-toggle__bars > span:nth-child(2) {
  opacity: 0;
}
.eon-mobile-toggle[aria-expanded="true"] .eon-mobile-toggle__bars > span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.eon-mobile-toggle__label { white-space: nowrap; }

/* Mostra toggle dove anchor-nav è nascosta (≤1100px) */
@media (max-width: 1100px) {
  .eon-mobile-toggle { display: inline-flex; }
}

/* A schermi molto piccoli, nascondi label e mantieni icona */
@media (max-width: 380px) {
  .eon-mobile-toggle__label { display: none; }
  .eon-mobile-toggle { padding: 10px; }
}


/* ── Modale full-sheet ───────────────────────────────────── */

.eon-mm {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
}

.eon-mm[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.eon-mm__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.eon-mm[aria-hidden="false"] .eon-mm__overlay { opacity: 1; }

.eon-mm__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: var(--eon-nero, #191919);
  color: #fff;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.eon-mm[aria-hidden="false"] .eon-mm__panel {
  transform: translateX(0);
}

/* Head */
.eon-mm__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--eon-nero, #191919);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.eon-mm__brand img { display: block; }

.eon-mm__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.eon-mm__close:hover {
  background: var(--eon-azzurro);
  color: var(--eon-nero);
  border-color: var(--eon-azzurro);
}

.eon-mm__close:focus-visible {
  outline: 2px solid var(--eon-azzurro);
  outline-offset: 2px;
}

/* Body */
.eon-mm__body {
  flex: 1 1 auto;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eon-mm__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eon-azzurro);
}

.eon-mm__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.eon-mm__list li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.eon-mm__list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eon-mm__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.eon-mm__link svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, transform 0.25s ease;
}

.eon-mm__link:hover,
.eon-mm__link:focus-visible {
  color: var(--eon-azzurro);
  padding-left: 8px;
}

.eon-mm__link:hover svg,
.eon-mm__link:focus-visible svg {
  color: var(--eon-azzurro);
  transform: translate(2px, -2px);
}

.eon-mm__link:focus-visible {
  outline: 2px solid var(--eon-azzurro);
  outline-offset: 4px;
  border-radius: 4px;
}

.eon-mm__list--secondary .eon-mm__link {
  font-size: 16px;
  font-weight: 400;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.85);
}

/* CTA footer */
.eon-mm__cta {
  position: sticky;
  bottom: 0;
  padding: 20px 22px 24px;
  background: var(--eon-nero, #191919);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eon-mm__cta-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 16px;
  padding: 18px 22px;
  background: var(--eon-azzurro);
  color: var(--eon-nero);
  border-radius: 12px;
  text-decoration: none;
  min-height: 64px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.eon-mm__cta-btn:hover,
.eon-mm__cta-btn:focus-visible {
  background: #4ab5dc;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
}

.eon-mm__cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.eon-mm__cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.eon-mm__cta-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--eon-nero);
}

.eon-mm__cta-sub {
  grid-column: 1;
  grid-row: 2;
  font-size: 13px;
  font-weight: 500;
  color: rgba(25, 25, 25, 0.78);
}

.eon-mm__cta-btn svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #fff;
}

.eon-mm__cta-mail {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  padding: 8px 4px;
  min-height: 36px;
}

.eon-mm__cta-mail:hover,
.eon-mm__cta-mail:focus-visible {
  color: var(--eon-azzurro);
  text-decoration-color: var(--eon-azzurro);
}

.eon-mm__cta-mail:focus-visible {
  outline: 2px solid var(--eon-azzurro);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Body scroll lock helper (toggled via JS) */
body.eon-mm-open {
  overflow: hidden;
  touch-action: none;
}

/* Reduced motion: salta animazioni */
@media (prefers-reduced-motion: reduce) {
  .eon-mm__overlay,
  .eon-mm__panel,
  .eon-mm__link,
  .eon-mm__link svg,
  .eon-mm__cta-btn,
  .eon-mobile-toggle,
  .eon-mobile-toggle__bars > span {
    transition: none !important;
  }
  .eon-mm__panel {
    transform: translateX(0);
    visibility: hidden;
  }
  .eon-mm[aria-hidden="false"] .eon-mm__panel {
    visibility: visible;
  }
}

/* Su desktop ≥1101px modale resta inert/hidden */
@media (min-width: 1101px) {
  .eon-mm { display: none; }
}
