/* ZenkeiX Automazioni AI - production-ready
   Look & feel: neon / circuit / glass + AI particles
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/shared/fonts/inter-latin-400-700.woff2") format("woff2");
}

:root{
  color-scheme: only dark;
  --bg0:#070712;
  --bg1:#0b0b1c;
  --card:#0e0f22cc;
  --stroke:#2a2f55;
  --txt:#e8e9ff;
  --muted:#b7b9db;
  --muted2:#8b8fb8;
  --aqua:#39e6ff;
  --violet:#7c5cff;
  --mag:#ff4fd8;
  --amber:#ffb24a;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box }
html,body{
  height:100%;
  forced-color-adjust: none;
}
html{
  scroll-padding-top: var(--anchor-offset, calc(var(--header-h, 72px) + 16px));
}
/* Global anchor offset — all id-targets inside <main> + <main> itself */
#top,
main [id]{
  scroll-margin-top: var(--anchor-offset, calc(var(--header-h, 72px) + 16px));
}
body{
  margin:0;
  padding-top: var(--header-h, 72px);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--txt);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(124,92,255,.18), transparent 55%),
              radial-gradient(900px 700px at 70% 15%, rgba(57,230,255,.14), transparent 50%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

body:has(.hero) {
  padding-top: 0;
}

a{ color:inherit; text-decoration:none }
a:hover{ color:var(--aqua) }
.container{
  width:min(1140px, calc(100% - 40px));
  margin:0 auto;
}

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.muted{ color:var(--muted2) }

/* Topbar */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:1000;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10,10,25,.9), rgba(10,10,25,.55));
  border-bottom: 1px solid rgba(42,47,85,.5);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 190px;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: center / contain no-repeat url("/shared/brand/zenkeix-logo-mark-96.webp");
  filter: drop-shadow(0 10px 22px rgba(34, 117, 214, 0.22));
}
.brand__name{ font-weight:700; letter-spacing:.2px }
.brand__sub{ color:var(--muted2); font-size:12px; margin-left:6px }

.nav{ display:flex; gap:16px; align-items:center; }
.nav a{ color:var(--muted); font-weight:500; font-size:14px }
.nav a:hover{ color:var(--txt) }

.topbar__cta{ display:flex; gap:10px; align-items:center; }

.hamburger{
  display:none;
  width:42px; height:42px;
  border-radius:12px;
  background: rgba(14,15,34,.6);
  border: 1px solid rgba(42,47,85,.7);
  color:var(--txt);
}
.hamburger span{
  display:block;
  width:18px; height:2px;
  margin:4px auto;
  background: var(--txt);
  border-radius:2px;
  opacity:.9;
}

.mobile{
  border-top: 1px solid rgba(42,47,85,.5);
  background: rgba(10,10,25,.75);
}
.mobile__inner{
  padding:14px 0 18px;
  display:grid;
  gap:12px;
}
.mobile__inner a{ color:var(--muted); font-weight:600 }
.mobile__inner a.btn{ color:var(--txt) }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border: 1px solid rgba(42,47,85,.8);
  background: rgba(14,15,34,.55);
  color:var(--txt);
  font-weight:600;
  font-size:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.btn:hover{ transform: translateY(-1px); transition: .15s ease; }
.btn--primary{
  border: 1px solid rgba(57,230,255,.45);
  background: linear-gradient(135deg, rgba(57,230,255,.25), rgba(124,92,255,.22), rgba(255,79,216,.16));
  box-shadow: 0 18px 60px rgba(57,230,255,.08), 0 20px 70px rgba(124,92,255,.08);
}
.btn--ghost{ background: rgba(14,15,34,.35) }
.btn--lg{ padding:12px 16px; border-radius:16px; font-size:15px }
.btn--full{ width:100% }

/* Hero */
.hero{
  position:relative;
  padding: calc(var(--header-h, 72px) + 64px) 0 28px;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:-40px -40px -40px -40px;
  z-index:0;
  background:
    radial-gradient(900px 700px at 10% 35%, rgba(255,79,216,.18), transparent 60%),
    radial-gradient(800px 650px at 30% 10%, rgba(57,230,255,.20), transparent 58%),
    radial-gradient(900px 700px at 70% 25%, rgba(124,92,255,.18), transparent 55%),
    url("/shared/media/zenkeix-service-hero.webp");
  background-size: auto, auto, auto, cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.05) brightness(.55);
  transform: scale(1.04);
}
.hero__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(7,7,18,.92) 0%, rgba(7,7,18,.78) 42%, rgba(7,7,18,.62) 70%, rgba(7,7,18,.92) 100%);
}

.fxParticles{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.68;
  z-index:1;
  mix-blend-mode: screen;
}

.hero__inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:start;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(14,15,34,.45);
  color:var(--muted);
  font-weight:600;
  font-size:13px;
}
.dot{
  width:10px; height:10px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--aqua), var(--violet));
  box-shadow: 0 0 0 3px rgba(57,230,255,.12);
}
h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.03;
  letter-spacing:-.02em;
}
.grad{
  color: #f3f8ff;
  forced-color-adjust: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad{
    background: linear-gradient(90deg, var(--aqua), var(--violet), var(--mag));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color: transparent;
  }
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}
.hero__actions{ display:flex; gap:12px; flex-wrap:wrap; margin: 18px 0 18px; }

.proof{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.proof__item{
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(14,15,34,.40);
  min-width: 140px;
}
.proof__kpi{
  font-weight:800;
  letter-spacing:-.02em;
  font-size:18px;
}
.proof__lbl{ color:var(--muted2); font-size:12px; margin-top:3px; }

/* Glass card */
.hero__card{ position:relative; }
.glass{
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14,15,34,.65), rgba(14,15,34,.38));
  border: 1px solid rgba(57,230,255,.20);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.glass__header{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom: 14px;
}
.pulse{
  width:14px; height:14px; border-radius:50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(57,230,255,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(57,230,255,.55) }
  70%{ box-shadow:0 0 0 12px rgba(57,230,255,0) }
  100%{ box-shadow:0 0 0 0 rgba(57,230,255,0) }
}
.glass__title{ font-weight:800; letter-spacing:-.01em }
.glass__subtitle{ color:var(--muted2); font-size:12px; margin-top:2px }

.meter{ display:grid; gap:10px; }
.meter__row{ display:flex; justify-content:space-between; color:var(--muted); font-weight:600; font-size:13px }
.bar{
  height:10px;
  border-radius:999px;
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(7,7,18,.6);
  overflow:hidden;
}
.bar__fill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(57,230,255,.9), rgba(124,92,255,.75), rgba(255,79,216,.65));
}
.glass__footer{
  display:flex; gap:8px; flex-wrap:wrap;
  margin-top: 14px;
}
.tag{
  font-size:12px;
  color:var(--muted);
  padding: 6px 10px;
  border-radius:999px;
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(14,15,34,.40);
}
.note{
  margin: 12px 0 0;
  color: var(--muted2);
  font-size:12px;
  line-height: 1.55;
}

/* Logos strip */
.logos{
  padding: 18px 0 26px;
  background: linear-gradient(180deg, rgba(8,9,24,.86), rgba(8,9,24,.82));
}
.logos__inner{
  border-top: 1px solid rgba(42,47,85,.45);
  border-bottom: 1px solid rgba(42,47,85,.45);
  padding: 16px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.logos__label{ margin:0; color:var(--muted2); font-weight:600; font-size:13px; }
.logos__row{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.pill{
  padding: 7px 10px;
  border-radius:999px;
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(14,15,34,.35);
  color: var(--muted);
  font-size:12px;
  font-weight:600;
}

.section--ratings{
  padding-top: 10px;
  padding-bottom: 12px;
}
.section--ratings::before{
  background: transparent;
  border: 0;
}
.ratings{
  border: 1px solid rgba(53,61,112,.62);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,11,30,.9), rgba(10,11,30,.74));
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
  padding: 20px 22px;
}
.ratings__kicker{
  margin:0 0 8px;
  color:var(--muted2);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform: uppercase;
}
.ratings__row-rate{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.ratings__value{ margin:0; line-height:1; }
.ratings__score{
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight:800;
  letter-spacing:-.03em;
}
.ratings__outof{
  margin-left:2px;
  color:var(--muted);
  font-size:.54em;
  font-weight:700;
}
.ratings__stars{
  position:relative;
  display:inline-block;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing:.12em;
  line-height:1;
  color: rgba(139,143,184,.3);
}
.ratings__stars::before{ content:"★★★★★"; }
.ratings__stars::after{
  content:"★★★★★";
  position:absolute;
  left:0;
  top:0;
  width:98%;
  overflow:hidden;
  white-space:nowrap;
  background: linear-gradient(90deg, #39e6ff, #7c5cff, #ff4fd8);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}
.ratings__note{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}
.testimonials{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.testimonial{
  border:1px solid rgba(53,61,112,.6);
  border-radius:16px;
  background: linear-gradient(180deg, rgba(11,12,30,.9), rgba(10,11,28,.84));
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  padding:16px 16px 14px;
}
.testimonial__stars{
  margin:0 0 8px;
  font-size:15px;
  letter-spacing:.08em;
  line-height:1;
  background: linear-gradient(90deg, #ffb24a, #ffe08a, #fff2b2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter: drop-shadow(0 0 6px rgba(255,178,74,.28));
}
.testimonial__quote{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.62;
}
.testimonial__author{
  margin:12px 0 0;
  font-size:14px;
  font-weight:700;
  color:#f0f3ff;
}
.testimonial__country{
  margin:2px 0 0;
  font-size:12px;
  color:var(--muted2);
  letter-spacing:.03em;
}

.ai-stack__header{
  margin-bottom: 18px;
}

.ai-stack__panel{
  padding: 20px;
}

.ai-stack__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ai-stack__group{
  display:grid;
  gap: 12px;
  align-content:start;
}
.ai-stack__group--foundation .stack-chips{
  justify-content:center;
}
.ai-stack__group--foundation .stack-chip{
  flex: 1 1 176px;
  justify-content:center;
}

.ai-stack__label{
  margin: 0;
  color: var(--muted2);
  font-size: 11px;
  letter-spacing: .09em;
}

.stack-chips{
  display:flex;
  flex-wrap:wrap;
  align-items: center;
  gap: 12px;
}

.stack-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:10px 14px;
  border-radius:999px;
  border: 1px solid rgba(53,61,112,.62);
  background: linear-gradient(180deg, rgba(10,11,30,.9), rgba(10,11,30,.74));
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.stack-chip img{
  width:auto;
  height:22px;
  max-width:118px;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
  padding:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  filter:none;
}

.stack-chip span{
  color:var(--txt);
  font-size:13px;
  font-weight:700;
  line-height:1.2;
}

/* Sections */
.section{
  position: relative;
  isolation: isolate;
  padding: 64px 0;
}
.section > .container{
  position: relative;
  z-index: 2;
}
.section::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,9,24,.78), rgba(8,9,24,.62));
  border-top: 1px solid rgba(42,47,85,.22);
  border-bottom: 1px solid rgba(42,47,85,.16);
}
.section--alt::before{
  background: radial-gradient(900px 680px at 22% 0%, rgba(124,92,255,.10), transparent 58%),
              radial-gradient(900px 680px at 78% 6%, rgba(57,230,255,.08), transparent 58%),
              linear-gradient(180deg, rgba(11,12,30,.84), rgba(10,11,28,.72));
  border-top: 1px solid rgba(42,47,85,.36);
  border-bottom: 1px solid rgba(42,47,85,.28);
}
.section__header{ margin-bottom: 28px; }
.section__header h2{
  margin:0 0 8px;
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing:-.02em;
}
.section__header p{ margin:0; color:var(--muted); line-height:1.6; }

/* AI insights articles (scoped) */
.zx-articles{
  position: relative;
}
.zx-articles__header{
  margin-bottom: 16px;
}
.zx-articles__scope{
  margin-top: 8px !important;
  color: var(--muted2) !important;
  font-size: 14px;
}
.zx-articles__scope a{
  color: var(--aqua);
  text-decoration: none;
  font-weight: 700;
}
.zx-articles__scope a:hover{
  color: #7cf0ff;
}
.zx-articles__controls{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.zx-articles__filters{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.zx-articles__search{
  position: relative;
  flex: 0 1 320px;
  min-width: min(100%, 280px);
}
.zx-articles__search-input{
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(57,230,255,.28);
  background: rgba(14,15,34,.56);
  color: var(--txt);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.zx-articles__search-input::placeholder{
  color: rgba(169,203,221,.82);
}
.zx-articles__search-input:focus{
  outline: none;
  border-color: rgba(121,227,255,.78);
  box-shadow: 0 0 0 4px rgba(44,177,255,.12);
  background: rgba(7,25,42,.82);
}
.zx-articles__search::before{
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(169,203,221,.84);
  border-radius: 999px;
  transform: translateY(-60%);
  pointer-events: none;
}
.zx-articles__search::after{
  content: "";
  position: absolute;
  left: 28px;
  top: calc(50% + 5px);
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(169,203,221,.84);
  transform: rotate(45deg);
  pointer-events: none;
}
.zx-articles__filter{
  border: 1px solid rgba(57,230,255,.28);
  background: rgba(14,15,34,.48);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.zx-articles__filter:hover{
  color: var(--txt);
  border-color: rgba(57,230,255,.46);
}
.zx-articles__filter.is-active{
  color: #eff8ff;
  background: linear-gradient(135deg, rgba(57,230,255,.26), rgba(124,92,255,.21));
  border-color: rgba(57,230,255,.55);
}
.zx-articles__all{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--aqua);
  font-weight: 700;
  text-decoration: none;
}
.zx-articles__all:hover{
  color: #7cf0ff;
}
.zx-articles__all::after{
  content: "→";
  font-size: 13px;
}

.zx-articles__featured{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(53,61,112,.66);
  background: linear-gradient(180deg, rgba(10,11,30,.9), rgba(10,11,30,.7));
  box-shadow: 0 20px 56px rgba(0,0,0,.28);
  overflow: hidden;
  margin-bottom: 14px;
}
.zx-articles__featured-media{
  position: relative;
  min-height: 240px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(17,45,91,.78), rgba(8,18,46,.94));
}
.zx-articles__featured-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  z-index: 0;
}
.zx-articles__featured-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(700px 380px at 0% 100%, color-mix(in srgb, var(--zx-featured-accent, #39e6ff) 22%, transparent), transparent 70%),
    linear-gradient(150deg, rgba(7,10,26,.42), rgba(7,10,26,.16) 48%, rgba(7,10,26,.48));
}
.zx-articles__featured-tag{
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(57,230,255,.4);
  background: rgba(8,12,34,.62);
  color: #d7f6ff;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.zx-articles__featured-copy{
  position: relative;
  z-index: 2;
  padding: 16px;
  background: rgba(10,11,30,.92);
}
.zx-articles__featured-meta{
  margin: 0 0 8px;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: .02em;
}
.zx-articles__featured-title{
  margin: 0 0 10px;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.18;
  letter-spacing: -.018em;
}
.zx-articles__featured-title a{
  color: #eef6ff;
  text-decoration: none;
}
.zx-articles__featured-title a:hover{
  color: var(--aqua);
}
.zx-articles__featured-excerpt{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.66;
  max-width: 65ch;
}
.zx-articles__featured-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aqua);
  font-weight: 700;
  text-decoration: none;
}
.zx-articles__featured-cta::after{
  content: "→";
  font-size: 13px;
}
.zx-articles__featured-cta:hover{
  color: #7cf0ff;
}
.zx-articles__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(57,230,255,.45);
  background: rgba(8,12,34,.84);
  color: #d7f6ff;
  font-size: 27px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.zx-articles__nav:hover{
  background: rgba(8,12,34,.95);
}
.zx-articles__nav--prev{
  left: 10px;
}
.zx-articles__nav--next{
  right: 10px;
}

.zx-articles__tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.zx-articles__tab{
  border: 1px solid rgba(53,61,112,.75);
  border-radius: 999px;
  background: rgba(10,11,30,.52);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  cursor: pointer;
}
.zx-articles__tab.is-active{
  color: #eef6ff;
  border-color: rgba(57,230,255,.46);
  background: linear-gradient(135deg, rgba(57,230,255,.23), rgba(124,92,255,.2));
}
.zx-articles__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.zx-articles--all-mode .zx-articles__grid{
  grid-template-columns: none;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: clamp(360px, 34vw, 440px);
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.zx-articles--all-mode .zx-articles__grid::-webkit-scrollbar{
  display: none;
}
.zx-articles--all-mode .zx-articles__card{
  min-height: 100%;
  scroll-snap-align: start;
}
.zx-articles__scroller-controls{
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.zx-articles--all-mode .zx-articles__scroller-controls{
  display: flex;
}
.zx-articles__scroll-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(57,230,255,.38);
  background: rgba(10,11,30,.72);
  color: #d7f6ff;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, opacity .16s ease, background .16s ease;
}
.zx-articles__scroll-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(57,230,255,.58);
  background: rgba(10,11,30,.9);
}
.zx-articles__scroll-btn:disabled{
  opacity: .34;
  cursor: default;
  transform: none;
}
.zx-articles__empty{
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 14px;
}
.zx-articles__card{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(53,61,112,.66);
  background: linear-gradient(180deg, rgba(10,11,30,.82), rgba(10,11,30,.66));
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  padding: 14px;
  display: grid;
  gap: 9px;
  cursor: pointer;
}
.zx-articles__card--modern{
  position: relative;
  padding: 24px;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(14,15,34,0.9), rgba(10,11,30,0.95)) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.zx-articles__card--modern::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--violet), var(--mag));
}
.zx-articles__card--modern:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(124,92,255, 0.15);
}
.zx-articles__card--modern .zx-articles__card-glow{
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  /* Slightly opaque versions of the hero automated workflows gradient colors */
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(124,92,255,0.08), transparent 50%),
    radial-gradient(circle at 60% 0%, rgba(57,230,255,0.08), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.zx-articles__card--modern .zx-articles__tag{
  color: #f3f8ff;
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
  background: linear-gradient(rgba(14,15,34,0.9), rgba(14,15,34,0.9)) padding-box,
              linear-gradient(90deg, var(--aqua), var(--violet), var(--mag)) border-box;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(124,92,255, 0.15);
}
.zx-articles__card--modern .zx-articles__title{
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.35;
}
.zx-articles__card--modern .zx-articles__excerpt{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.zx-articles__card--split{
  --card-accent: 78, 203, 255; /* Default fallback rgb */
  padding: 0;
  overflow: hidden;
}
.zx-articles__split{
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 28%) minmax(0, 1fr);
  column-gap: 0;
  min-height: 100%;
}
/* Left background painted as pseudo */
.zx-articles__split::before{
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -10%;
  width: calc(38% + 22px); /* Extends exactly behind the divider */
  background:
    radial-gradient(180px 120px at 40% 40%, rgba(var(--card-accent), .26), transparent 70%),
    linear-gradient(165deg, rgba(16, 42, 72, .95), rgba(11, 24, 43, .92));
  transform: skewX(-11deg);
  transform-origin: center center;
  z-index: 0;
}
.zx-articles__split-left{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 40px 10px 10px;
  background: transparent;
  min-width: 0;
}
.zx-articles__split-divider{
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 28%;
  width: 22px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(192, 224, 245, .92), rgba(163, 207, 233, .85));
  transform: skewX(-11deg);
  transform-origin: center center;
  box-shadow: 0 0 10px rgba(170, 215, 240, .3);
  pointer-events: none;
}
.zx-articles__split-kicker{
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(207, 236, 255, .9);
}
.zx-articles__split-title{
  margin: 0;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: #f1f9ff;
  overflow-wrap: anywhere;
}
.zx-articles__split-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #9ef3ff, #4ecbff);
  box-shadow: 0 0 0 5px rgba(78,203,255,.15), 0 0 18px rgba(78,203,255,.45);
}
.zx-articles__split-right{
  position: relative;
  z-index: 1;
  padding: 18px 20px 18px 36px;
  display: grid;
  gap: 9px;
  align-content: center;
  min-width: 0;
}
.zx-articles__card--split .zx-articles__title{
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.28;
}
.zx-articles__card--split .zx-articles__excerpt{
  font-size: 13.5px;
}
.zx-articles__card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color .18s ease;
  pointer-events: none;
}
.zx-articles__card:hover::after,
.zx-articles__card.is-featured::after{
  border-color: rgba(57,230,255,.52);
}
.zx-articles__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.zx-articles__tag{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(57,230,255,.3);
  background: rgba(57,230,255,.1);
  color: #d7f6ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.zx-articles__time{
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: .02em;
}
.zx-articles__title{
  margin: 0;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -.015em;
}
.zx-articles__title a{
  color: var(--txt);
  text-decoration: none;
}
/* Allow featured title to keep hover state on desktop if needed, but remove from modern grid cards */
.zx-articles__card--modern .zx-articles__title a{
  color: var(--txt);
}
.zx-articles__card--modern .zx-articles__title a:hover{
  color: var(--txt);
}
.zx-articles__featured-title a:hover{
  color: var(--txt);
}
.zx-articles__excerpt{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}
@media (min-width: 760px){
  .zx-articles__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zx-articles--all-mode .zx-articles__grid{
    grid-template-columns: none;
  }
}
@media (min-width: 1100px){
  .zx-articles__featured{
    grid-template-columns: 2fr 3fr;
    min-height: 320px;
  }
  .zx-articles__featured-media{
    min-height: auto;
  }
  .zx-articles__featured-copy{
    display: grid;
    align-content: center;
    padding: 22px 26px 22px 24px;
  }
  .zx-articles__nav--prev{
    left: calc(40% - 22px);
  }
  .zx-articles__nav--next{
    right: 12px;
  }
  .zx-articles__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .zx-articles--all-mode .zx-articles__grid{
    grid-template-columns: none;
  }
}
@media (max-width: 880px){
  .zx-articles--all-mode .zx-articles__grid{
    grid-auto-columns: minmax(300px, 84vw);
  }
  .zx-articles__split{
    grid-template-columns: 1fr;
  }
  .zx-articles__split::before{
    display: none;
  }
  .zx-articles__split-left{
    background:
      radial-gradient(180px 120px at 20% 22%, rgba(78,203,255,.26), transparent 70%),
      linear-gradient(165deg, rgba(16, 42, 72, .95), rgba(11, 24, 43, .92));
    border-bottom: 1px solid rgba(78,203,255,.22);
    padding: 16px 18px 12px;
  }
  .zx-articles__split-divider{
    display: none;
  }
  .zx-articles__split-right{
    padding: 14px 18px 16px;
  }
}
@media (max-width: 759px){
  .zx-articles__controls{
    align-items: stretch;
  }
  .zx-articles__search{
    flex-basis: 100%;
    min-width: 100%;
  }
  .zx-articles__all{
    justify-content: flex-end;
  }
}

/* Cards grid */
.grid{ display:grid; gap:18px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }

.card{
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,11,30,.86), rgba(10,11,30,.72));
  border: 1px solid rgba(53,61,112,.62);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.card::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(57,230,255,.035), transparent 38%, rgba(124,92,255,.03));
}
.card > *{
  position: relative;
  z-index: 1;
}
.card__icon{
  width:42px; height:42px;
  border-radius:14px;
  display:grid; place-items:center;
  background: rgba(57,230,255,.10);
  border: 1px solid rgba(57,230,255,.18);
  margin-bottom: 10px;
}
.card h3{ margin: 0 0 8px; letter-spacing:-.01em }
.card p{ margin:0 0 12px; color:var(--muted); line-height:1.58; }
.list{ margin:0; padding-left: 18px; color:var(--muted2); line-height: 1.7; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.step{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(14,15,34,.30);
}
.step__n,
.step__icon{
  width:38px; height:38px;
  border-radius: 14px;
  display:grid; place-items:center;
  font-weight:900;
  background: linear-gradient(135deg, rgba(57,230,255,.18), rgba(124,92,255,.18));
  border: 1px solid rgba(57,230,255,.25);
  margin-bottom: 10px;
}
.step__icon{
  color: #c8f6ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 28px rgba(57,230,255,.08);
}
.step__icon svg{
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step h3{ margin:0 0 6px }
.step p{ margin:0; color:var(--muted); line-height:1.6 }

/* Pricing */
.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.price{
  position:relative;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(42,47,85,.75);
  background: linear-gradient(180deg, rgba(14,15,34,.50), rgba(14,15,34,.30));
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}
.price__top{ margin-bottom: 12px; }
.price h3{ margin:0 0 6px }
.price__desc{ margin:0 0 10px; color:var(--muted); }
.price__value{
  font-size: 34px;
  font-weight: 900;
  letter-spacing:-.02em;
}
.price__note{ color:var(--muted2); font-size: 12px; margin-top: 2px; }
.price--featured{
  border: 1px solid rgba(57,230,255,.36);
  background: linear-gradient(180deg, rgba(57,230,255,.12), rgba(124,92,255,.10), rgba(14,15,34,.30));
}
.ribbon{
  position:absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  background: rgba(57,230,255,.14);
  border: 1px solid rgba(57,230,255,.22);
  color: var(--txt);
}
.check{
  margin:0 0 12px;
  padding-left: 0;
  list-style:none;
  display:grid;
  gap:8px;
  color:var(--muted);
}
.check li{
  padding-left: 26px;
  position:relative;
  line-height:1.5;
}
.check li::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  position:absolute;
  left: 4px;
  top: .52em;
  background: radial-gradient(circle at 30% 30%, #cbbcff 0%, #7c5cff 55%, #39e6ff 100%);
  box-shadow: 0 0 0 1px rgba(124,92,255,.45), 0 0 10px rgba(124,92,255,.6), 0 0 16px rgba(57,230,255,.35);
}

.callout{
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(14,15,34,.30);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Form */
.formwrap{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:14px;
  align-items:start;
}
.form{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(42,47,85,.75);
  background: rgba(14,15,34,.35);
}
.form label{ display:grid; gap:8px; margin-bottom: 12px; color:var(--muted); font-weight:600; font-size:13px; }
.form__row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(42,47,85,.8);
  background: rgba(7,7,18,.55);
  color: var(--txt);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(57,230,255,.45);
  box-shadow: 0 0 0 4px rgba(57,230,255,.10);
}
textarea{ resize: vertical; min-height: 110px; }

.switch{
  display:flex;
  gap:12px;
  align-items:center;
  font-weight:600;
  color:var(--muted);
  margin: 8px 0 0;
}
.switch input{ width:1px; height:1px; opacity:0; position:absolute; }
.switch__ui{
  width:44px; height:26px;
  border-radius:999px;
  background: rgba(7,7,18,.75);
  border:1px solid rgba(42,47,85,.8);
  position:relative;
  flex: 0 0 auto;
}
.switch__ui::after{
  content:"";
  position:absolute;
  top:3px; left:3px;
  width:20px; height:20px;
  border-radius:50%;
  background: rgba(232,233,255,.9);
  transition: .18s ease;
}
.switch input:checked + .switch__ui{
  border-color: rgba(57,230,255,.45);
  background: rgba(57,230,255,.12);
}
.switch input:checked + .switch__ui::after{
  transform: translateX(18px);
  background: linear-gradient(135deg, rgba(57,230,255,.95), rgba(124,92,255,.75));
}
.switch__txt{ color:var(--muted) }

.aside{
  display:grid;
  gap:14px;
}
.aside__box{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(42,47,85,.75);
  background: rgba(14,15,34,.28);
}
.aside__box h3{ margin:0 0 10px }
.stack{ display:flex; gap:10px; flex-wrap:wrap; }

/* FAQ */
.faq{
  display:grid;
  gap:10px;
}
details{
  border-radius: var(--radius);
  border: 1px solid rgba(42,47,85,.75);
  background: rgba(14,15,34,.30);
  padding: 12px 14px;
}
summary{
  cursor:pointer;
  font-weight:800;
  color:var(--txt);
}
details p{ color:var(--muted); line-height:1.6; margin: 10px 0 0; }
details ul{
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}
details li{ margin: 4px 0; }

/* Toast */
.toast{
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: min(360px, calc(100% - 36px));
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(57,230,255,.26);
  background: rgba(14,15,34,.70);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  z-index: 70;
}
.toast__title{ font-weight:900; margin-bottom: 4px; }
.toast__body{ color:var(--muted); font-size: 13px; line-height:1.5; }

/* Footer */
.footer{
  border-top: 1px solid rgba(42,47,85,.45);
  padding: 34px 0 18px;
  background: rgba(7,7,18,.35);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.brand--footer .brand__sub{ display:none; }
.footer__txt{ margin: 10px 0 0; color:var(--muted2) }
.footer__cols{ display:flex; gap:40px; flex-wrap:wrap; }
.footer__cols h4{ margin:0 0 10px; color:var(--txt) }
.footer__cols a{ display:block; color:var(--muted); margin: 6px 0; }
.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(42,47,85,.35);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted2);
  font-size: 12px;
}

.footer__location{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted2);
}

.footer__dot{
  width:3px;
  height:3px;
  border-radius:999px;
  background:rgba(115,152,194,.58);
  flex:0 0 3px;
}

.footer__vat{
  color:inherit;
  font-weight:inherit;
}

.footer__legal{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__legal-btn{
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

/* CMP (Cookie Banner) */
.cmp-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(5,7,18,.66);
  backdrop-filter: blur(3px);
  z-index: 95;
}
.cmp-banner{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 28px));
  border-radius: 18px;
  border: 1px solid rgba(42,47,85,.9);
  background: linear-gradient(180deg, rgba(9,11,30,.95), rgba(9,11,30,.84));
  box-shadow: 0 26px 80px rgba(0,0,0,.42);
  padding: 16px;
  z-index: 110;
}
.cmp-banner h3{
  margin: 0 0 6px;
  font-size: 18px;
}
.cmp-banner p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.cmp-banner__actions{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cmp-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(42,47,85,.9);
  background: linear-gradient(180deg, rgba(9,11,30,.96), rgba(9,11,30,.86));
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
  padding: 18px;
  z-index: 120;
}
.cmp-modal h3{
  margin: 0 0 6px;
  font-size: 19px;
}
.cmp-modal p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}
.cmp-opt{
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(14,15,34,.36);
  margin-bottom: 9px;
}
.cmp-opt input{ margin-top: 2px; }
.cmp-opt strong{ color: var(--txt); }
.cmp-opt--locked{ opacity: .92; }
.cmp-modal__actions{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cmp-thirdparty-denied #chatFab{
  opacity: .55;
  filter: saturate(.55);
}
/* Floating contact widgets (snello, stabile, allineato a destra) */
.contact-fabs{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 80;
  justify-items: end;   /* allineamento a destra */
  align-items: end;
}

.lang-header-switch{
  position: fixed;
  top: 18px;
  right: 18px;
  left: auto;
  bottom: auto;
  z-index: 81;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(90,125,155,.64);
  border-radius: 14px;
  background: rgba(14,15,34,.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.lang-header-switch a{
  font-weight: 700;
  text-decoration: none;
}

.fab{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42,47,85,.8);
  background: rgba(14,15,34,.62);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  font-weight: 900;
  letter-spacing: .4px;
  cursor: pointer;
}
.fab:hover{ transform: translateY(-2px); transition: .15s ease; }

.fab svg{ width:22px; height:22px; display:block; fill: currentColor; }

.fab--wa{
  width: 44px;
  height: 44px;
  border-color: transparent;
  background: transparent;
  color:#25D366;
  box-shadow: none;
}
.fab--tg{
  width: 44px;
  height: 44px;
  border-color: transparent;
  background: transparent;
  color:#229ED9;
  box-shadow: none;
}
.fab--wa svg,
.fab--tg svg{ width: 28px; height: 28px; filter: drop-shadow(0 0 10px currentColor); }

/* AI pill (86x52) */
.fab--chat-pill{
  width: 86px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border-color: rgba(255,79,216,.75);
  background: linear-gradient(135deg, rgba(255,79,216,.16), rgba(14,15,34,.60));
  color: var(--txt);
  box-shadow: 0 0 0 1px rgba(255,79,216,.35), 0 18px 60px rgba(0,0,0,.25), 0 0 22px rgba(255,79,216,.28);
}
.fab--chat-pill .fab__icon{ width: 22px; height: 22px; fill: currentColor; }
.fab--chat-pill .fab__label{ font-size: 12px; font-weight: 900; letter-spacing: .35px; }

/* Backdrop (chiusura click fuori) */
.chat-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  z-index: 229;
}
.chat-overlay[hidden]{ display:none !important; }

/* Chat drawer */
.chat-drawer{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 36px));
  height: min(640px, calc(100% - 36px));
  border-radius: 18px;
  border: 1px solid rgba(57,230,255,.22);
  background: rgba(14,15,34,.85);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 230;
  display: grid;
  grid-template-rows: auto 1fr;
}
.chat-drawer[hidden]{ display:none !important; }

.chat-drawer__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42,47,85,.55);
  background: rgba(7,7,18,.55);
}

.chat-drawer__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  font-size: 13px;
  color: var(--txt);
}
.chat-drawer__robot{
  width: 28px;
  height: 28px;
  display:inline-grid;
  place-items:center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(42,47,85,.45);
}

.chat-drawer__close{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(42,47,85,.7);
  background: rgba(14,15,34,.6);
  color: var(--txt);
  cursor: pointer;
}

.chat-drawer__body{ position:relative; overflow:hidden; }
#ai-chat{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#aiChatFrame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  background: transparent;
}

.zkx-chat{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: linear-gradient(180deg, rgba(10, 12, 30, .10), rgba(10, 12, 30, .34));
}

.zkx-chat__messages{
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zkx-chat__msg{
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, .24);
  color: #e8e9ff;
  line-height: 1.45;
  font-size: 14px;
  white-space: pre-wrap;
}

.zkx-chat__msg--bot{
  align-self: flex-start;
  background: rgba(124, 92, 255, .16);
}

.zkx-chat__msg--user{
  align-self: flex-end;
  background: rgba(57, 230, 255, .16);
  border-color: rgba(57, 230, 255, .24);
}

.zkx-chat__msg--pending{
  opacity: .85;
  font-style: italic;
}

.zkx-chat__composer{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(57, 230, 255, .14);
  background: rgba(10, 11, 28, .55);
}

.zkx-chat__input{
  width: 100%;
  min-height: 44px;
  max-height: 140px;
  resize: none;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, .34);
  background: rgba(32, 35, 67, .75);
  color: #e8e9ff;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.35;
  outline: none;
}

.zkx-chat__input::placeholder{
  color: rgba(232, 233, 255, .58);
}

.zkx-chat__input:focus{
  border-color: rgba(57, 230, 255, .62);
  box-shadow: 0 0 0 1px rgba(57, 230, 255, .26);
}

.zkx-chat__send{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(57, 230, 255, .42);
  background: linear-gradient(135deg, rgba(57, 230, 255, .28), rgba(124, 92, 255, .32));
  color: #e8e9ff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.zkx-chat__send:hover{
  filter: brightness(1.1);
}

.zkx-chat__send:disabled,
.zkx-chat__input:disabled{
  opacity: .65;
  cursor: not-allowed;
}


/* =========================
   AI CHAT - glass / trasparente (solo nel drawer)
   Dove agisce: solo dentro #chatDrawer (quindi non cambia il resto del sito)
   ========================= */
#chatDrawer{

  /* -------------------------
     1) Dimensioni finestra chat
     (qui la chat si adatta al contenitore drawer)
     ------------------------- */
  --chat--window--width: 100%;   /* larghezza chat = 100% del drawer */
  --chat--window--height: 100%;  /* altezza chat = 100% del drawer */


  /* -------------------------
     2) Palette base (colori "globali" usati dal tema chat widget)
     In pratica influenzano highlight, bottoni, icone, accenti.
     ------------------------- */
  --chat--color--primary: #7c5cff;                 /* colore principale (accent) */
  --chat--color--secondary: #39e6ff;               /* colore secondario (accent) */
  --chat--color-dark: #0b0b1c;                     /* colore "scuro" di base */
  --chat--color-light: rgba(14,15,34,.25);         /* variante chiara/trasparente */
  --chat--color-white: #e8e9ff;                    /* "bianco" testo (in realtà off-white) */


  /* -------------------------
     3) Sfondo generale della chat + header
     Questi sono quelli che ti danno l'effetto "screen 1" (glass/trasparente)
     ------------------------- */
  --chat--body--background: rgba(14,15,34,.25);    /* sfondo area conversazione (dietro i messaggi) */
  --chat--header--background: rgba(7,7,18,.65);    /* sfondo barra superiore (titolo/chat header) */
  --chat--header--color: #e8e9ff;                  /* colore testo/icone nel header */


  /* -------------------------
     4) Messaggi del BOT (a sinistra)
     ------------------------- */
  --chat--message--bot--background: #7c5cff;       /* sfondo bubble del BOT (violaceo nel tuo test) */
  --chat--message--bot--color: #e8e9ff;            /* colore testo nei messaggi del BOT */


  /* -------------------------
     5) Messaggi dell'UTENTE (a destra)
     ------------------------- */
  --chat--message--user--background: rgba(57,230,255,.18); /* sfondo bubble utente (aqua trasparente) */
  --chat--message--user--color: #e8e9ff;                   /* colore testo bubble utente */


  /* -------------------------
     6) Input in basso (barra di scrittura)
     ------------------------- */
  --chat--input--background: #34354D;     /* sfondo della barra input */
  --chat--input--text-color: #e8e9ff;              /* colore testo digitato + placeholder (se supportato) */
}


/* -------------------------
   7) EXTRA "glass"
   Forza i wrapper principali del widget ad essere trasparenti
   (serve quando vedi blocchi pieni che coprono il background)
   ------------------------- */
#chatDrawer .n8n-chat__window,
#chatDrawer .n8n-chat__layout{
  background: transparent !important; /* elimina eventuale sfondo pieno dei wrapper chat */
}

/* =========================================
   MOBILE / RESPONSIVE PATCH (append at end)
   Obiettivo: layout 1-colonna, CTA leggibili,
   nav compatta, griglie che collassano, chat ok
   ========================================= */

/* 0) Migliora rendering testo su mobile */
html{
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Chat periodic pulse (soft+) === */
@keyframes chatPulseSoft {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05); /* leggermente più evidente di 1.03 */
  }
}

#chatFab.chat-pulse-active{
  animation: chatPulseSoft 2.1s ease-in-out infinite !important; /* più lenta = più premium */
  transform-origin: center;
  will-change: transform;

  /* glow leggermente aumentato ma ancora raffinato */
  filter:
    drop-shadow(0 0 14px rgba(255,79,216,.24))
    drop-shadow(0 0 20px rgba(57,230,255,.14));
}
/* ===== RESPONSIVE (force at end) ===== */

/* Tablet */
@media (max-width: 980px){
  .container{ width: min(980px, calc(100% - 28px)); }

  .hero__inner{ grid-template-columns: 1fr; gap: 16px; }
  .hero{ padding: calc(var(--header-h, 72px) + 52px) 0 20px; }

  .hero__actions{ gap: 10px; }

  .grid--3, .pricing, .steps{ grid-template-columns: repeat(2, 1fr); }
  .testimonials{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-stack__grid{ grid-template-columns: 1fr; }

  .formwrap{ grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 680px){
  .nav, .topbar__cta{ display: none !important; }
  .hamburger{ display: inline-grid !important; place-items: center; }

  h1{ font-size: clamp(28px, 8vw, 40px); line-height: 1.06; }
  .lead{ font-size: 15px; line-height: 1.65; }

  .badge{ font-size: 12px; padding: 7px 10px; }
  .proof{ gap: 10px; }
  .proof__item{ min-width: 0; flex: 1 1 140px; }

  .glass{ padding: 14px; }

  .grid--3, .pricing, .steps{ grid-template-columns: 1fr; }

  .section{ padding: 44px 0; }

  .logos__inner, .logos__row{ justify-content: flex-start; gap: 10px; }
  .testimonials{ grid-template-columns: 1fr; }

  .form__row{ grid-template-columns: 1fr; }

  .callout{ flex-direction: column; align-items: stretch; }
  .callout .btn{ width: 100%; }

  .footer__bottom{ flex-direction: column; align-items: flex-start; }
  .cmp-banner{
    bottom: 14px;
    padding: 14px;
  }
  .cmp-modal{
    padding: 14px;
  }

  .contact-fabs{ right: 14px; bottom: 14px; gap: 8px; }
  .lang-header-switch{
    left: 12px;
    right: auto;
    bottom: 14px;
    top: auto;
    padding: 8px 10px;
    border-radius: 12px;
    gap: 6px;
  }
  .fab{ width: 48px; height: 48px; border-radius: 16px; }
  .fab--chat-pill{ width: 78px; height: 48px; border-radius: 16px; }

  .chat-drawer{
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    height: min(86vh, 640px);
  }
}

/* Mobile menu */
@media (max-width: 680px){
  .mobile[hidden]{ display:none !important; }
  .mobile{ display:block; }
}

/* Language switch hard override: desktop top-right, mobile bottom-left */
.lang-header-switch {
  position: fixed !important;
  z-index: 130 !important;
}

@media (max-width: 900px) {
  .lang-header-switch {
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
    top: auto !important;
  }
}

@media (min-width: 901px) {
  .lang-header-switch {
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
  }
}

/* Language switch absolute position: always bottom-right */
.lang-header-switch {
  position: fixed !important;
  right: 12px !important;
  bottom: 12px !important;
  left: auto !important;
  top: auto !important;
  z-index: 130 !important;
}

/* Language switch final rule: mobile bottom-left, desktop top-right */
.lang-header-switch {
  position: fixed !important;
  z-index: 130 !important;
}

@media (max-width: 768px) {
  .lang-header-switch {
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
    top: auto !important;
  }
}

@media (min-width: 769px) {
  .lang-header-switch {
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
  }
}

/* Language switch canonical rule: mobile bottom-left by default, desktop top-right */
.lang-header-switch {
  position: fixed !important;
  left: 12px !important;
  bottom: 12px !important;
  right: auto !important;
  top: auto !important;
  z-index: 130 !important;
}

@media (min-width: 769px) {
  .lang-header-switch {
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
  }
}

/* Language switch desktop alignment: center line with header/menu */
.lang-header-switch {
  transform: none !important;
}

@media (max-width: 768px) {
  .lang-header-switch {
    left: 12px !important;
    bottom: 12px !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }
}

@media (min-width: 769px) {
  .lang-header-switch {
    top: 28px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}
/* Language switch canonical placement (FINAL):
   - non-mobile: vertically centered to header midline
   - mobile: fixed bottom-left */
.lang-header-switch,
.lang-switch {
  position: fixed !important;
  z-index: 130 !important;
  right: 18px !important;
  left: auto !important;
  top: var(--lang-header-center-y, 39px) !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}
@media (max-width: 768px) {
  .lang-header-switch,
  .lang-switch {
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
    top: auto !important;
    transform: none !important;
  }
}

/* Language switch canonical placement (FINAL):
   - non-mobile: toggle center aligned with header midline
   - mobile only: fixed bottom-left */
.lang-header-switch,
.lang-switch {
  position: fixed !important;
  z-index: 130 !important;
  right: 18px !important;
  left: auto !important;
  top: var(--lang-header-center-y, 39px) !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 768px) {
  .lang-header-switch,
  .lang-switch {
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
    top: auto !important;
    transform: none !important;
  }
}

/* Language switch canonical placement (FINAL v2):
   - desktop wide only (>=1200): centered on header midline
   - tablet/mobile (<1200): fixed bottom-left */
.lang-header-switch,
.lang-switch {
  position: fixed !important;
  z-index: 130 !important;
  left: 12px !important;
  right: auto !important;
  bottom: 12px !important;
  top: auto !important;
  transform: none !important;
}

@media (min-width: 1200px) {
  .lang-header-switch,
  .lang-switch {
    right: 18px !important;
    left: auto !important;
    top: var(--lang-header-center-y, 39px) !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}
/* ZKX Desktop scale (1200+): visual size calibration */
@media (min-width: 1200px) {
  :root {
    --zx-desktop-body-size: 15px;
    --zx-desktop-content-max: 1120px;
    --zx-desktop-gutter: 36px;
    --zx-desktop-h1-size: clamp(30px, 3.6vw, 54px);
    --zx-desktop-h2-size: clamp(24px, 2.1vw, 34px);
    --zx-desktop-h3-size: clamp(20px, 1.35vw, 28px);
    --zx-desktop-section-pad-y: 54px;
    --zx-desktop-grid-gap: 12px;
    --zx-desktop-compact-gap: 10px;
  }

  body {
    font-size: var(--zx-desktop-body-size);
  }

  .container {
    width: min(var(--zx-desktop-content-max), calc(100% - var(--zx-desktop-gutter)));
  }

  h1 {
    font-size: var(--zx-desktop-h1-size);
  }

  .section__header h2 {
    font-size: var(--zx-desktop-h2-size);
  }

  .card h3,
  .step h3,
  .price h3,
  .aside__box h3,
  .glass__title {
    font-size: var(--zx-desktop-h3-size);
  }

  .hero {
    padding: calc(var(--header-h, 72px) + 58px) 0 24px;
  }

  .hero__inner {
    gap: 18px;
  }

  .hero__actions,
  .proof,
  .logos__row {
    gap: var(--zx-desktop-compact-gap);
  }

  .section {
    padding: var(--zx-desktop-section-pad-y) 0;
  }

  .section__header {
    margin-bottom: 22px;
  }

  .grid,
  .steps,
  .pricing,
  .faq,
  .formwrap,
  .form__row {
    gap: var(--zx-desktop-grid-gap);
  }

  .card,
  .step,
  .price,
  .form,
  .aside__box,
  .glass,
  .ratings,
  .testimonial {
    padding: 14px;
  }

  .btn {
    min-height: 44px;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
/* ZKX-Toggle-DesktopGap-Global START */
@media (min-width: 1200px) {
  .topbar .container {
    width: calc(100% - 42px) !important;
    max-width: none !important;
  }

  .topbar__inner {
    padding-right: 0 !important;
  }

  .topbar__inner .nav {
    margin-left: auto !important;
    margin-right: 0 !important;
    padding-right: clamp(128px, 7vw, 170px) !important;
  }

  .topbar__inner .topbar__cta {
    margin-right: clamp(128px, 7vw, 170px) !important;
  }
}
/* ZKX-Toggle-DesktopGap-Global END */

/* ZKX-Footer-Wide-Alignment START
   Keep the AI footer aligned with the wider /web footer layout. */
.footer > .container.footer__inner {
  width: min(1680px, calc(100vw - 80px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
  gap: 16px !important;
}

.footer .footer__services-panel,
.footer .footer__services-grid,
.footer .footer__info-row,
.footer .footer__bottom {
  width: 100% !important;
  max-width: none !important;
}

.footer .footer__services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 760px) {
  .footer > .container.footer__inner {
    width: min(100% - 28px, 980px) !important;
  }

  .footer .footer__services-grid,
  .footer .footer__info-row,
  .footer .footer__bottom {
    grid-template-columns: 1fr !important;
  }
}
/* ZKX-Footer-Wide-Alignment END */

/* ZKX-Continuous-Section-Background START
   Single premium gradient system for AI pages: no hard seams between sections. */
main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 900px at 12% 10%, rgba(124, 92, 255, .13), transparent 62%),
    radial-gradient(1100px 820px at 86% 18%, rgba(57, 230, 255, .10), transparent 60%),
    linear-gradient(180deg, #070712 0%, #090a19 34%, #070b18 68%, #080816 100%);
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% 22%, rgba(255, 79, 216, .08), transparent 70%),
    radial-gradient(980px 720px at 92% 44%, rgba(57, 230, 255, .075), transparent 72%),
    radial-gradient(860px 680px at 22% 78%, rgba(124, 92, 255, .085), transparent 70%);
  filter: blur(4px);
  opacity: .9;
}

main > * {
  position: relative;
  z-index: 1;
}

.logos,
.section {
  background: transparent !important;
}

.logos__inner {
  border-top-color: rgba(42, 47, 85, .16);
  border-bottom-color: rgba(42, 47, 85, .14);
}

.section::before {
  inset: -2px 0;
  border: 0 !important;
  background:
    radial-gradient(1100px 760px at var(--section-glow-x, 18%) var(--section-glow-y, 8%), var(--section-glow-a, rgba(124, 92, 255, .105)), transparent 68%),
    radial-gradient(1000px 720px at var(--section-glow-x2, 82%) var(--section-glow-y2, 82%), var(--section-glow-b, rgba(57, 230, 255, .075)), transparent 70%),
    linear-gradient(180deg, rgba(8, 9, 24, .76), rgba(8, 10, 25, .58) 46%, rgba(8, 9, 24, .74));
}

main > .section:nth-of-type(4n + 1) {
  --section-glow-x: 12%;
  --section-glow-y: 0%;
  --section-glow-x2: 88%;
  --section-glow-y2: 78%;
  --section-glow-a: rgba(124, 92, 255, .12);
  --section-glow-b: rgba(57, 230, 255, .07);
}

main > .section:nth-of-type(4n + 2) {
  --section-glow-x: 86%;
  --section-glow-y: 12%;
  --section-glow-x2: 18%;
  --section-glow-y2: 90%;
  --section-glow-a: rgba(57, 230, 255, .095);
  --section-glow-b: rgba(255, 79, 216, .07);
}

main > .section:nth-of-type(4n + 3) {
  --section-glow-x: 26%;
  --section-glow-y: 100%;
  --section-glow-x2: 76%;
  --section-glow-y2: 6%;
  --section-glow-a: rgba(255, 79, 216, .075);
  --section-glow-b: rgba(124, 92, 255, .105);
}

main > .section:nth-of-type(4n) {
  --section-glow-x: 72%;
  --section-glow-y: 48%;
  --section-glow-x2: 10%;
  --section-glow-y2: 18%;
  --section-glow-a: rgba(57, 230, 255, .085);
  --section-glow-b: rgba(124, 92, 255, .075);
}

.section--alt::before,
.section--ratings::before {
  border: 0 !important;
}

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 0 !important;
  box-shadow: none !important;
  background:
    radial-gradient(1180px 820px at 14% 4%, rgba(124, 92, 255, .13), transparent 66%),
    radial-gradient(1080px 760px at 88% 24%, rgba(57, 230, 255, .10), transparent 68%),
    linear-gradient(180deg, #080816 0%, #070b18 54%, #080816 100%) !important;
}

.footer::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.footer::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.footer > .container {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.footer__services-panel,
.footer__info-row,
.footer__bottom {
  background: transparent !important;
  border-color: rgba(103, 146, 188, .10) !important;
}

.footer__service-col {
  box-shadow: none !important;
  background: transparent !important;
}

main > .section {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
/* ZKX-Continuous-Section-Background END */
