.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(11,12,16,.60);
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}
.site-header.is-compact{ background: rgba(11,12,16,.80); }

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}

.brand-link{display:flex; align-items:center; gap:10px}
.brand-text{font-weight:900; letter-spacing:-.02em}

.nav .menu{
  list-style:none; padding:0; margin:0;
  display:flex; gap:14px; flex-wrap:wrap;
  color: var(--muted);
}
.nav .menu a{padding:10px 10px;border-radius:12px}
.nav .menu a:hover{background:rgba(255,255,255,.06); color:var(--text)}

.site-footer{
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer-inner{display:grid; gap:10px}
.footer-menu{list-style:none;padding:0;margin:0;display:flex;gap:14px;flex-wrap:wrap}
.footer-menu a{text-decoration:underline;text-underline-offset:3px}

/* HERO refined */
.hero{ padding: 86px 0 96px; }
.hero-inner{ max-width: 980px; }
.hero-title{
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.70));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-intro{
  font-size: 18px;
  max-width: 760px;
  margin-top: 12px;
}
.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 20px;
}
.hero-note{
  margin-top: 14px;
  color: rgba(255,255,255,.58);
  font-size: 14px;
}

/* KPI row (stile accattivente) */
.kpi-row{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin-top: 18px;
  max-width: 760px;
}
@media (min-width:920px){
  .kpi-row{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.kpi{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 14px 14px 12px;
  position:relative;
  overflow:hidden;
}
.kpi::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(340px 160px at 20% 0%, rgba(124,92,255,.20), transparent 60%),
              radial-gradient(340px 160px at 80% 20%, rgba(0,229,255,.12), transparent 55%);
  opacity:.8;
  pointer-events:none;
}
.kpi__value{
  position:relative;
  font-weight:950;
  font-size: 22px;
  letter-spacing:-.02em;
}
.kpi__label{
  position:relative;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  margin-top: 4px;
}

/* Proof logos */
.proof-logos{
  display:flex; gap:24px; flex-wrap:wrap; align-items:center; margin-top:20px;
}
.proof-logos img{
  max-height:42px;
  opacity:.85;
  filter: grayscale(1);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}
.proof-logos img:hover{ opacity:1; filter: grayscale(0); transform: translateY(-1px); }

/* Cards with media */
.card--media{ padding:0; }
.card-link{ position:absolute; inset:0; z-index:1; }
.card-media img{ width:100%; height:180px; object-fit:cover; display:block; }
.card-body{ position:relative; z-index:2; padding:16px 18px 18px; }
.meta-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.pill{
  display:inline-flex; align-items:center;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

/* Media frame inside single */
.media-frame{ border:1px solid var(--line); border-radius: 18px; overflow:hidden; background: rgba(255,255,255,.03); margin-bottom: 18px; }
.media-frame img{ width:100%; height:auto; display:block; }

/* Service list */
.list-check{ list-style:none; padding:0; margin:12px 0 0; color: rgba(255,255,255,.72); }
.list-check li{ margin: 8px 0; padding-left: 22px; position:relative; }
.list-check li::before{
  content:"";
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg,var(--brand),var(--brand2));
  position:absolute; left:0; top: 7px;
}

/* Filter chips */
.chip-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.chip{
  display:inline-flex; align-items:center;
  padding:10px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.28); }
.chip.is-active{
  border-color: transparent;
  background: linear-gradient(135deg,var(--brand),var(--brand2));
  color: #0b0c10;
  font-weight: 900;
}

/* Sticky CTA */
.sticky-cta{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.sticky-cta.is-in{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.sticky-cta__btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(11,12,16,.70);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  position:relative;
  overflow:hidden;
}
.sticky-cta__glow{
  position:absolute; inset:-2px;
  background: radial-gradient(420px 180px at 20% 0%, rgba(124,92,255,.30), transparent 60%),
              radial-gradient(420px 180px at 80% 20%, rgba(0,229,255,.20), transparent 55%);
  opacity:.9;
  pointer-events:none;
}
.sticky-cta__text{ position:relative; font-weight:900; }
.sticky-cta__arrow{ position:relative; opacity:.85; }


/* Breadcrumb */
.crumbs{margin:0 0 10px}
.crumbs__list{list-style:none;margin:0;padding:0;display:flex;gap:10px;flex-wrap:wrap;color:rgba(255,255,255,.70);font-size:13px}
.crumbs__item{display:flex;gap:10px;align-items:center}
.crumbs__item:not(:last-child)::after{content:"/";opacity:.45}
.crumbs__link{text-decoration:underline;text-underline-offset:3px}
.crumbs__current{color:rgba(255,255,255,.92)}

/* Page V2 layout + TOC */
.content-header .lead{font-size:18px;color:rgba(255,255,255,.72);max-width:760px;margin:10px 0 0}
.layout--pagev2{display:grid;gap:16px;margin-top:18px}
@media (min-width:920px){
  .layout--pagev2{grid-template-columns: 1.2fr .8fr; align-items:start;}
}
.sidebar{display:grid;gap:14px}
.toc__title{font-weight:900;margin-bottom:10px}
.toc__list{margin:0;padding-left:18px;color:rgba(255,255,255,.72)}
.toc__list a{text-decoration:underline;text-underline-offset:3px}

/* CTA band */
.cta-band{margin-top:18px}
.cta-band__inner{
  border:1px solid rgba(255,255,255,.16);
  background: radial-gradient(700px 260px at 20% 0%, rgba(124,92,255,.22), transparent 60%),
              radial-gradient(700px 260px at 80% 20%, rgba(0,229,255,.16), transparent 55%),
              rgba(255,255,255,.04);
  border-radius: 22px;
  padding: 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}
@media (max-width:919px){
  .cta-band__inner{flex-direction:column; align-items:flex-start;}
}

/* FAQ */
.faq{display:grid;gap:12px;margin-top:14px}
.faq__q{cursor:pointer; font-weight:900; list-style:none}
.faq__item summary::-webkit-details-marker{display:none}
.faq__a{margin-top:10px}

/* Steps */
.steps{display:grid;gap:12px;margin-top:14px}
.step{display:flex;gap:14px;align-items:flex-start}
.step__n{
  width:34px;height:34px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#0b0c10;font-weight:950;flex:0 0 auto;
}
.step__t{font-weight:900;margin-bottom:6px}

/* Testimonials */
.testimonial__top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.testimonial__logo{max-height:26px;opacity:.9;filter:grayscale(1)}
.testimonial__rating .star{opacity:.9}
.testimonial__text{color:rgba(255,255,255,.78);margin-bottom:10px}

.cta-band__btns{display:flex;gap:10px;flex-wrap:wrap}

/* Topbar */
.topbar{border-bottom:1px solid var(--line); background: rgba(255,255,255,.04);}
.topbar-inner{padding:10px 0; font-size:13px; color: rgba(255,255,255,.75);}
.topbar-link{text-decoration:underline;text-underline-offset:3px}

/* Footer columns */
.footer-columns{display:grid;gap:14px;margin: 10px 0 14px}
@media (min-width:920px){.footer-columns{grid-template-columns:repeat(3,1fr)}}
.footer-col__t{font-weight:900;margin-bottom:6px;color:rgba(255,255,255,.88)}
.footer-col__x{color:rgba(255,255,255,.70)}

.section-nav{padding: 18px 0 0}


/* Header logo + menu sizing fix */
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header img[alt*="Lorenzo"]{
  max-height: 34px;
  height: 34px;
  width: auto;
  display:block;
}
@media (max-width: 640px){
  .site-header .custom-logo,
  .site-header .custom-logo-link img{
    max-height: 30px;
    height: 30px;
  }
}
.nav .menu a{ font-size: 14px; line-height: 1.2; }


/* Hero media (optional image / color slab) */
.hero-media{ margin-top: 22px; }
.hero-media__inner{
  border:1px solid var(--line);
  border-radius: 22px;
  overflow:hidden;
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  position:relative;
}
.hero-media__inner::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(700px 260px at 20% 0%, rgba(124,92,255,.20), transparent 60%),
              radial-gradient(700px 260px at 80% 20%, rgba(0,229,255,.14), transparent 55%);
  opacity:.75;
  pointer-events:none;
}
.hero-media__img{ width:100%; height:auto; display:block; position:relative; z-index:1; }
.hero-media__caption{
  position:relative; z-index:2;
  padding: 12px 14px 14px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  border-top:1px solid var(--line);
  background: rgba(11,12,16,.55);
  backdrop-filter: blur(14px);
}
.hero-slab{ height: clamp(180px, 32vw, 360px); position:relative; z-index:1; }
.hero-slab::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(255,255,255,.06), transparent 50%),
    radial-gradient(900px 420px at 90% 20%, rgba(255,255,255,.05), transparent 55%);
  pointer-events:none;
}
.hero-media--full .hero-media__inner{ border-radius: 0; border-left:0; border-right:0; }
@media (min-width:920px){ .hero-media{ margin-top: 26px; } }

/* Typography vars */
.h1{font-size: var(--h1, clamp(36px,4.6vw,66px)); letter-spacing: var(--ls, -0.02em);}
.h2{font-size: var(--h2, clamp(24px,2.6vw,38px)); letter-spacing: var(--ls, -0.02em);}
.h3{font-size: var(--h3, 22px); letter-spacing: var(--ls, -0.02em);}
.prose{max-width: var(--prose, 68ch);}


/* Hero background media (optional) */
.wf-hero{position:relative; overflow:hidden;}
.wf-hero--bg::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 15% 10%, color-mix(in srgb, var(--hero-c1, var(--brand)) 35%, transparent), transparent 58%),
    radial-gradient(900px 420px at 85% 20%, color-mix(in srgb, var(--hero-c2, var(--brand2)) 28%, transparent), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.wf-hero--bg::after{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hero-bg, none);
  background-image: var(--hero-bg-image, none);
background-size: cover;
  background-position: center;
  opacity: var(--hero-bg-opacity, .18);
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
  pointer-events:none;
}
.wf-hero--bg .container{position:relative; z-index:1;}

/* =========================
   Header + Navigation (v1.6)
   ========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8,9,12,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-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: 160px;
}
.brand .site-title{font-weight:900; letter-spacing: -0.02em; font-size: 16px}
.brand .site-desc{font-size:12px; color: rgba(255,255,255,.65)}
.nav-desktop{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav-desktop .menu{
  display:flex;
  align-items:center;
  gap: 8px;
  list-style:none;
  padding:0; margin:0;
}
.nav-desktop .menu > li{ position:relative; }
.nav-desktop .menu a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  text-decoration:none;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.nav-desktop .menu a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  transform: translateY(-1px);
}
.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a{
  background: rgba(124,92,255,.14);
  border-color: rgba(124,92,255,.35);
  color: rgba(255,255,255,.95);
}

/* dropdown (desktop) */
.nav-desktop .menu li ul{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: rgba(8,9,12,.92);
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  list-style:none;
  margin:0;
  box-shadow: var(--shadow);
  display:none;
}
.nav-desktop .menu li:hover > ul{ display:block; }
.nav-desktop .menu li ul a{
  width:100%;
  border-radius: 10px;
  padding:10px 10px;
}

/* mobile button */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
}
.nav-toggle:active{ transform: translateY(1px); }
.nav-toggle svg{ width:18px; height:18px; }

/* Mobile nav drawer */
@media (max-width: 920px){
  .nav-desktop{ display:none; }
  .nav-toggle{ display:inline-flex; }
}

.nav-drawer{
  position: fixed;
  inset: 0;
  z-index: 80;
  display:none;
}
.nav-drawer[data-open="1"]{ display:block; }
.nav-drawer__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
}
.nav-drawer__panel{
  position:absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: rgba(8,9,12,.96);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  padding: 18px;
  gap: 14px;
  transform: translateX(8px);
}
.nav-drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.nav-drawer__title{
  font-weight:900;
  letter-spacing: -0.02em;
}
.nav-drawer__close{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.nav-drawer__menu .menu{
  list-style:none;
  padding:0; margin:0;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.nav-drawer__menu .menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration:none;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.nav-drawer__menu .menu a:hover{
  background: rgba(255,255,255,.06);
}
.nav-drawer__menu .menu .current-menu-item > a,
.nav-drawer__menu .menu .current_page_item > a{
  background: rgba(124,92,255,.14);
  border-color: rgba(124,92,255,.35);
}
.nav-drawer__cta{
  margin-top:auto;
  border-top:1px solid var(--line);
  padding-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* Hero background element (robust, works even if classes are missing) */
.hero-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity: var(--hero-bg-opacity, .18);
  background-image: var(--hero-bg-image, none);
background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}
.hero-bg::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 15% 10%, color-mix(in srgb, var(--hero-c1, var(--brand)) 35%, transparent), transparent 58%),
    radial-gradient(900px 420px at 85% 20%, color-mix(in srgb, var(--hero-c2, var(--brand2)) 28%, transparent), transparent 60%);
  opacity:.9;
}
.wf-hero, .hero{position:relative; overflow:hidden;}
.wf-hero .container, .hero .container{position:relative; z-index:1;}

/* Hero background fade (avoid hard cut) */
.hero-bg::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 140px;
  background: linear-gradient(to bottom, rgba(8,9,12,0), rgba(8,9,12,1));
  pointer-events:none;
}
@media (min-width: 920px){
  .hero-bg::after{ height: 180px; }
}

/* Header transparency modes */
.site-header[data-bg="transparent"]{
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header[data-bg="transparent"] .nav-toggle,
.site-header[data-bg="transparent"] .nav-desktop .menu a{
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.12);
}

/* Use mobile header bg setting */
@media (max-width: 920px){
  .site-header[data-bg-mobile="transparent"]{
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
  }
  .site-header[data-bg-mobile="transparent"] .nav-toggle{
    background: rgba(0,0,0,.18);
    border-color: rgba(255,255,255,.12);
  }
}

/* nav-drawer logo sizing */
.nav-drawer__head .custom-logo,
.nav-drawer__head .custom-logo-link img,
.nav-drawer__head img.custom-logo{
  max-height: 34px !important;
  height: 34px !important;
  width: auto !important;
  display:block;
}

.brand__logo img{max-height:34px;height:34px;width:auto;display:block}

/* Header overlays hero background */
.site-header[data-bg="transparent"],
@media (max-width: 920px){
  .site-header[data-bg-mobile="transparent"]{
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom-color: transparent !important;
  }
}

/* Hero bg fade v2 (no hard edge) */
.hero-bg{
  /* default fade using mask when supported */
}
@supports (mask-image: linear-gradient(#000, transparent)){
  .hero-bg{
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .hero-bg::after{ display:none; }
}
/* fallback fade layer */
.hero-bg::after{
  height: 200px;
  background: linear-gradient(to bottom, rgba(8,9,12,0), rgba(8,9,12,.92), rgba(8,9,12,1));
}
@media (min-width: 920px){
  .hero-bg::after{ height: 260px; }
}

/* Pull hero background under transparent header (so image starts from top) */
body.lz-header-transparent .site-main > section.hero:first-child,
body.lz-header-transparent .site-main > section.wf-hero:first-child,
body.lz-header-transparent .site-main > section.section.hero:first-child{
  margin-top: calc((var(--header-h, 72px) + var(--topbar-h, 0px)) * -1);
  padding-top: calc(var(--header-h, 72px) + var(--topbar-h, 0px) + 22px);
}
@media (max-width: 920px){
  body.lz-header-transparent-mobile .site-main > section.hero:first-child,
  body.lz-header-transparent-mobile .site-main > section.wf-hero:first-child,
  body.lz-header-transparent-mobile .site-main > section.section.hero:first-child{
    margin-top: calc((var(--header-h, 64px) + var(--topbar-h, 0px)) * -1);
    padding-top: calc(var(--header-h, 64px) + var(--topbar-h, 0px) + 18px);
  }
}

/* Hero bg position vars */
.hero-bg{
  background-position: var(--hero-bg-pos, center);
  background-repeat: no-repeat;
}
@media (max-width: 920px){
  .hero-bg{
    background-position: var(--hero-bg-pos-m, var(--hero-bg-pos, center));
  }
}

/* nav-drawer close visibility */
.nav-drawer__close{
  color: rgba(255,255,255,.96) !important;
}
.nav-drawer__close svg path{
  stroke: currentColor !important;
}

/* =========================
   Logos (grid / marquee)
   ========================= */
.logos{margin-top:14px;}
.logos-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  align-items:center;
}
.logo-item{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 72px;
}
.logo-item img{
  max-height: 36px;
  width:auto;
  opacity:.9;
  filter: grayscale(1);
  transition: opacity .15s ease, filter .15s ease, transform .15s ease;
}
.logo-item:hover img{opacity:1; filter: grayscale(0); transform: translateY(-1px);}

/* Marquee */
.logos-marquee{
  position:relative;
  border:1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
  overflow:hidden;
  padding: 10px 0;
}
.logos-marquee::before,
.logos-marquee::after{
  content:"";
  position:absolute; top:0; bottom:0;
  width: 64px;
  pointer-events:none;
  z-index:2;
  background: linear-gradient(to right, rgba(8,9,12,1), rgba(8,9,12,0));
}
.logos-marquee::after{
  right:0;
  transform: rotate(180deg);
}
.logos-marquee::before{ left:0; }

.logos-track{
  display:flex;
  gap: 16px;
  align-items:center;
  will-change: transform;
  animation: lzMarquee var(--marquee-dur, 38s) linear infinite;
}
.logos-marquee:hover .logos-track{ animation-play-state: paused; }
.logos-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  min-height: 52px;
}
.logos-pill img{ max-height: 28px; width:auto; opacity:.9; filter: grayscale(1); }
@keyframes lzMarquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================
   Assistance (WhatsApp)
   ========================= */
.assistenza{
  border:1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  gap: 18px;
  align-items:flex-start;
  justify-content:space-between;
}
.assistenza__left{max-width: 60ch;}
.assistenza__title{margin:0 0 8px 0;}
.assistenza__text{color: rgba(255,255,255,.78); margin:0;}
.assistenza__actions{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.assistenza__hint{font-size:12px; color: rgba(255,255,255,.60); margin-top:8px;}
@media (max-width: 920px){
  .assistenza{flex-direction:column; align-items:stretch;}
}

/* =========================
   Split section (text + image)
   ========================= */
.split{
  display:grid;
  gap: 18px;
  grid-template-columns: 1.1fr .9fr;
  align-items:center;
}
.split--rev{ grid-template-columns: .9fr 1.1fr; }
.split__media{
  border:1px solid var(--line);
  border-radius: 22px;
  overflow:hidden;
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.split__media img{
  width:100%;
  height:auto;
  display:block;
}
.split__media .caption{
  padding: 12px 14px;
  border-top:1px solid var(--line);
  background: rgba(11,12,16,.55);
  color: rgba(255,255,255,.72);
  font-size: 13px;
}
@media (max-width: 920px){
  .split{ grid-template-columns: 1fr; }
  .split--rev{ grid-template-columns: 1fr; }
}

/* =========================
   Assistenza premium (v2.9)
   ========================= */
.assistenza{
  position:relative;
  overflow:hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 20px;
}
.assistenza::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 420px at 10% 10%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 60%),
    radial-gradient(900px 420px at 90% 20%, color-mix(in srgb, var(--brand2) 32%, transparent), transparent 62%),
    radial-gradient(700px 360px at 50% 110%, rgba(255,255,255,.08), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.assistenza::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(8,9,12,.35), rgba(8,9,12,.78));
  pointer-events:none;
}
.assistenza > *{position:relative; z-index:1;}
.assistenza__kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  margin-bottom: 10px;
}
.assistenza__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items:start;
}
.assistenza__title{margin:0 0 8px 0;}
.assistenza__text{color: rgba(255,255,255,.80); margin:0;}
.assistenza__hint{font-size:12px; color: rgba(255,255,255,.62); margin-top:10px;}
.assistenza__actions{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.assistenza__actions .btn{
  justify-content: space-between;
  width: 100%;
}
.assistenza__actions .btn::after{
  content:"→";
  opacity:.85;
}
@media (max-width: 920px){
  .assistenza__grid{ grid-template-columns: 1fr; }
}

/* =========================
   Testimonials (default)
   ========================= */
.testimonials{
  border:1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: rgba(255,255,255,.03);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow:hidden;
  position:relative;
}
.testimonials::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 420px at 15% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%),
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--brand2) 26%, transparent), transparent 62%);
  opacity:.9;
  pointer-events:none;
}
.testimonials > *{position:relative; z-index:1;}
.testimonials__head{padding: 18px 20px 4px 20px;}
.testimonials__title{margin:0 0 6px 0;}
.testimonials__sub{margin:0; color: rgba(255,255,255,.72); max-width: 70ch;}
.testimonials__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 20px 20px 20px;
}
.t-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(0,0,0,.18);
  padding: 14px;
  min-height: 160px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.t-card__quote{color: rgba(255,255,255,.84); margin:0; line-height:1.5;}
.t-card__meta{display:flex; gap:10px; align-items:center; margin-top:auto;}
.t-card__avatar{
  width:34px; height:34px; border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  overflow:hidden;
  flex:0 0 auto;
}
.t-card__avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.t-card__name{font-weight:700; font-size:13px; margin:0;}
.t-card__role{font-size:12px; color: rgba(255,255,255,.65); margin:0;}
@media (max-width: 920px){
  .testimonials__grid{grid-template-columns: 1fr; padding: 12px 14px 16px 14px;}
  .testimonials__head{padding: 16px 14px 0 14px;}
}

/* =========================
   Case studies (default)
   ========================= */
.cases{margin-top: 0;}
.cases__head{margin-bottom: 10px;}
.cases__sub{color: rgba(255,255,255,.72); margin: 0; max-width: 70ch;}
.cases__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.case-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  transition: transform .15s ease, border-color .15s ease;
}
.case-card:hover{transform: translateY(-2px); border-color: rgba(255,255,255,.20);}
.case-card__media{aspect-ratio: 16/10; background: rgba(0,0,0,.2); overflow:hidden;}
.case-card__media img{width:100%;height:100%;object-fit:cover;display:block;}
.case-card__body{padding: 14px;}
.case-card__title{margin:0 0 6px 0; font-size: 16px;}
.case-card__excerpt{margin:0; color: rgba(255,255,255,.70); font-size: 13px; line-height:1.5;}
@media (max-width: 920px){
  .cases__grid{grid-template-columns: 1fr;}
}

/* =========================
   Testimonials carousel (v3.2)
   ========================= */
.t-carousel{position:relative;padding:0 54px 0 0;}
@media (max-width:920px){.t-carousel{padding-right:0;}}
.t-track{
  display:flex;gap:12px;overflow-x:auto;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  padding:14px 20px 20px 20px;
  scrollbar-width:none;
}
.t-track::-webkit-scrollbar{display:none;}
.t-slide{scroll-snap-align:start;flex:0 0 calc((100% - 24px)/3);}
@media (max-width:1200px){.t-slide{flex-basis:calc((100% - 12px)/2);}}
@media (max-width:920px){.t-track{padding:12px 14px 16px 14px;}.t-slide{flex-basis:86%;}}
.t-nav{position:absolute;right:14px;top:18px;display:flex;gap:8px;z-index:2;}
@media (max-width:920px){.t-nav{position:static;margin:10px 14px 0 14px;justify-content:flex-end;}}
.t-btn{
  width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.20);
  color:rgba(255,255,255,.92);
  display:inline-flex;align-items:center;justify-content:center;
  transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
.t-btn:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.22);background:rgba(0,0,0,.28);}
.t-btn:disabled{opacity:.4;transform:none;}
.t-btn svg{width:18px;height:18px;}

/* =========================
   Logos mobile layout (v3.2)
   ========================= */
@media (max-width:920px){
  .logos-grid{
    display:flex;overflow-x:auto;gap:10px;padding:4px 2px;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .logos-grid::-webkit-scrollbar{display:none;}
  .logo-item{flex:0 0 62%;scroll-snap-align:start;min-height:64px;padding:12px;}
  .logo-item img{max-height:32px;}
}

/* Testimonials spacing fix (v3.3) */
@media (max-width: 920px){
  .testimonials{
    border-radius: 24px;
  }
  }

/* Logos marquee background fix (v3.3) */
.logos-marquee::before,
.logos-marquee::after{
  background: linear-gradient(to right, var(--bg, #08090c), rgba(8,9,12,0));
}

/* Case studies carousel (v3.3) */
@media (max-width: 1200px){
  .cases__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px){
  .cases__grid{
    display:flex;
    overflow-x:auto;
    gap: 12px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width:none;
  }
  .cases__grid::-webkit-scrollbar{display:none;}
  .case-card{
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  .case-card__media{ aspect-ratio: 16/9; }
}

/* Testimonials nav mobile spacing (v3.3) */
@media (max-width: 920px){
  .t-nav{ margin: 12px 0 0 0; }
}

/* Targeted testimonials edge padding (v3.4) */
.testimonials .t-track{
  padding-left: 16px;
  padding-right: 16px;
}

/* Logos mode toggle (v3.4) */
[data-logos="marquee"], [data-logos="grid"]{ display:none; }
[data-logos].is-active{ display:block; }
@media (max-width: 920px){
  [data-logos="grid"]{ display:none !important; }
  [data-logos="marquee"]{ display:block !important; }
}

/* Marquee inner padding (v3.4) */
.logos-marquee{ padding: 10px 8px; }

/* Testimonials edge spacer (v3.5) - prevents first/last slide touching box */
.testimonials .t-track{
  scroll-padding-left: 20px;
  scroll-padding-right: 20px;
}
.testimonials .t-track::before,
.testimonials .t-track::after{
  content:"";
  flex: 0 0 20px;
}
@media (max-width: 920px){
  .testimonials .t-track{ scroll-padding-left: 16px; scroll-padding-right: 16px; }
  .testimonials .t-track::before,
  .testimonials .t-track::after{ flex-basis: 16px; }
}

/* Logos marquee animation (v3.5) */
.logos-marquee{
  position:relative;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.03);
}
.logos-marquee .logos-track{
  display:flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
  animation: lz_marquee var(--marquee-dur, 38s) linear infinite;
  padding: 10px 16px;
}
.logos-marquee:hover .logos-track{ animation-play-state: paused; }
@keyframes lz_marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .logos-marquee .logos-track{ animation: none; }
}

/* =========================
   Logos loop (scroll-based) v3.6
   Autoplay + swipe
   ========================= */
.logos-loop{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(255,255,255,.03);box-shadow:0 18px 50px rgba(0,0,0,.28);}
.logos-loop::before,.logos-loop::after{content:"";position:absolute;top:0;bottom:0;width:70px;pointer-events:none;z-index:2;}
.logos-loop::before{left:0;background:linear-gradient(90deg,var(--bg,#08090c),rgba(8,9,12,0));}
.logos-loop::after{right:0;background:linear-gradient(270deg,var(--bg,#08090c),rgba(8,9,12,0));}
.logos-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.logos-scroll::-webkit-scrollbar{display:none;}
.logos-track{display:flex;gap:14px;width:max-content;padding:12px 18px;}
.logos-pill{flex:0 0 auto;display:flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.16);min-height:58px;}
.logos-pill img{display:block;max-height:34px;width:auto;opacity:.92;filter:saturate(1.05) contrast(1.05);}
[data-logos-noswipe]{overflow:hidden;}
@media (max-width:920px){
  .logos-loop::before,.logos-loop::after{width:46px;}
  .logos-track{padding:10px 14px;}
  .logos-pill{padding:12px 14px;min-height:56px;}
  .logos-pill img{max-height:30px;}
}
@media (prefers-reduced-motion: reduce){
  .logos-loop{scroll-behavior:auto;}
}

/* Proof logos free style (v3.9) */
.proof-logos-loop{
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.proof-logos-loop::before,
.proof-logos-loop::after{
  /* keep soft fade but lighter */
  width: 64px;
  opacity: .75;
}
@media (max-width: 920px){
  .proof-logos-loop::before,
  .proof-logos-loop::after{ width: 44px; }
}
.proof-logos-loop .logos-track{
  gap: 26px;
  padding: 8px 0;
}
.proof-logos-loop .logos-pill{
  border: 0;
  background: transparent;
  padding: 0;
  min-height: unset;
}
.proof-logos-loop .logos-pill img{
  max-height: 46px;
  opacity: .92;
  filter: none;
}
@media (max-width: 920px){
  .proof-logos-loop .logos-track{ gap: 22px; padding: 6px 0; }
  .proof-logos-loop .logos-pill img{ max-height: 38px; }
}


/* =========================
   Case study – cover image
   ========================= */
.case-cover,
.case-study-cover,
.case-hero-image {
  max-width: 1100px;
  margin: 48px auto 64px;
  border-radius: 22px;
  overflow: hidden;
}

.case-cover img,
.case-study-cover img,
.case-hero-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

@media (max-width: 920px){
  .case-cover,
  .case-study-cover,
  .case-hero-image {
    margin: 32px auto 40px;
    max-width: 100%;
    border-radius: 16px;
  }

  .case-cover img,
  .case-study-cover img,
  .case-hero-image img {
    max-height: none;
  }
}


/* =========================
   Case study – cover image (STRONG FIX)
   ========================= */
.case-cover,
.case-study-cover,
.case-hero-image {
  max-width: 960px !important;
  margin: 32px auto 48px !important;
  border-radius: 20px;
  overflow: hidden;
}

.case-cover img,
.case-study-cover img,
.case-hero-image img {
  width: 100%;
  height: 320px !important;
  max-height: 320px !important;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px){
  .case-cover img,
  .case-study-cover img,
  .case-hero-image img {
    height: 260px !important;
  }
}

@media (max-width: 768px){
  .case-cover,
  .case-study-cover,
  .case-hero-image {
    max-width: 100% !important;
    border-radius: 16px;
  }

  .case-cover img,
  .case-study-cover img,
  .case-hero-image img {
    height: auto !important;
    max-height: none !important;
  }
}


/* =========================
   About / Punti di forza – layout refinement
   ========================= */

.about-grid,
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: start;
}

@media (max-width: 1024px){
  .about-grid,
  .chi-siamo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-points,
.punti-forza {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.about-point,
.punto-forza {
  padding: 26px 30px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.about-point + .about-point,
.punto-forza + .punto-forza {
  margin-top: 0;
}


/* =========================
   Section system v4.2
   Visual spacing + separation (excluding #proof)
   ========================= */
.section{
  padding: 96px 0;
  position: relative;
}

@media (max-width: 920px){
  .section{ padding: 72px 0; }
}

.section--surface{
  background: rgba(255,255,255,0.03);
}

.section--surface::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.10), rgba(255,255,255,0));
}

.section--surface::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.07), rgba(255,255,255,0));
}

/* Ensure proof (logos band) keeps its own style */
#proof.section--surface{ background: transparent; }
#proof.section--surface::before,
#proof.section--surface::after{ display:none; }

/* =========================
   Services cards
   ========================= */
.card--service{
  padding: 26px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
  overflow: hidden;
  position: relative;
}

.card--service::before{
  content:"";
  position:absolute;
  inset: -60px -60px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(100,242,199,0.22), rgba(100,242,199,0.00) 70%);
  pointer-events:none;
  filter: blur(1px);
}

.card--service .h3{
  display:flex;
  align-items:center;
  gap: 10px;
}

.card--service .h3::before{
  content:"";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(100,242,199,0.18);
  box-shadow: 0 0 0 4px rgba(100,242,199,0.08);
}

.card--service .btn{
  margin-top: 10px;
}

/* =========================
   About / points cards
   ========================= */
.card--point{
  padding: 18px 18px;
  border-radius: 16px;
}

.card--point p{
  margin: 0;
  position: relative;
  padding-left: 22px;
}

.card--point p::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent, #64f2c7);
  box-shadow: 0 0 0 4px rgba(100,242,199,0.10);
}

/* =========================
   Form block
   ========================= */
.card--form{
  padding: 26px 26px;
  border-radius: 20px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
}

/* =========================
   Testimonials + section content spacing
   ========================= */
.section .h2 + .muted,
.section .h2 + .prose,
.section .h2 + p{
  margin-top: 10px;
}



/* =========================
   Case Study – Snapshot blocks
   ========================= */
.cs-snapshot{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.cs-card{
  border-radius: 18px;
  padding: 22px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.cs-card__label{
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 10px;
  opacity: .95;
}

.cs-card__text{
  opacity: .92;
  line-height: 1.6;
}

.cs-checklist{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.cs-checklist li{
  position: relative;
  padding-left: 22px;
  opacity: .92;
  line-height: 1.5;
}

.cs-checklist li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent, #64f2c7);
  box-shadow: 0 0 0 4px rgba(100,242,199,0.12);
}

@media (max-width: 920px){
  .cs-snapshot{ grid-template-columns: 1fr; gap: 14px; }
  .cs-card{ padding: 18px 18px; }
}


/* =========================
   Hero fades + subtle dividers (v4.2.1)
   ========================= */

/* Keep hero with soft gradient + no hard line cuts */
.wf-hero,
.cs-hero,
.hero {
  position: relative;
  overflow: hidden;
}

/* Bottom fade so hero doesn't end with a hard edge */
.wf-hero::after,
.cs-hero::after,
.hero::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 140px;
  pointer-events:none;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg, #08090c));
}

/* If hero has background image, keep it behind the fade */
.wf-hero .wf-hero__bg,
.wf-hero [data-hero-bg],
.hero [data-hero-bg]{
  z-index: 1;
}

/* Subtle section separators (not hard lines).
   Applies between major sections but stays very soft. */
main > section + section,
main .section + .section{
  position: relative;
}

main > section + section::before,
main .section + .section::before{
  content:"";
  position:absolute;
  left: max(16px, calc((100% - 1200px)/2));
  right: max(16px, calc((100% - 1200px)/2));
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.06),
    rgba(255,255,255,0)
  );
  opacity: .9;
}

/* don't show divider right after hero (keep clean) */
.wf-hero + section::before,
.hero + section::before,
.cs-hero + section::before{
  display:none;
}

/* On surface sections, divider even softer */
.section--surface::before{
  opacity: .6;
}

@media (max-width: 920px){
  .wf-hero::after, .cs-hero::after, .hero::after{ height: 110px; }
  main > section + section::before,
  main .section + .section::before{
    left: 16px; right: 16px;
  }
}


/* =========================
   Hero -> first section: NO divider, only fade (v4.2.2)
   ========================= */

/* Ensure absolutely no line appears between hero and first section */
.wf-hero + section::before,
.hero + section::before,
.cs-hero + section::before{
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Increase bottom fade so transition feels continuous */
.wf-hero::after,
.hero::after,
.cs-hero::after{
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.15) 35%,
    var(--bg, #08090c) 100%
  );
}


/* =========================
   Homogeneous backgrounds + hero->services smooth transition (v4.2.3)
   ========================= */

/* Reduce contrast between alternating section backgrounds */
:root{
  --bg: var(--bg, #08090c);
  --surface: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.018);
}

/* Ensure main page background is consistent */
body{
  background: var(--bg);
}

/* Make "surface" sections subtle (no hard color blocks) */
.section--surface,
.surface,
.bg-surface{
  background: linear-gradient(180deg, var(--surface-2), var(--surface)) !important;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Remove any strong solid backgrounds that create harsh jumps */
.section[style*="background"],
main > section[style*="background"]{
  background-color: transparent !important;
}

/* HERO -> first section (services): avoid any hard edge */
.wf-hero::after,
.hero::after,
.cs-hero::after{
  /* fade into a slightly lifted surface instead of a hard bg */
  height: 220px !important;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.10) 30%,
    rgba(8,9,12,0.80) 70%,
    var(--bg) 100%
  ) !important;
}

/* Add a top fade on the first section after hero to blend further */
.wf-hero + section,
.hero + section,
.cs-hero + section{
  position: relative;
  background: transparent !important; /* prevent hard block */
}

.wf-hero + section::after,
.hero + section::after,
.cs-hero + section::after{
  content:"";
  position:absolute;
  left:0; right:0; top:-1px;
  height: 140px;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(8,9,12,0.85) 35%,
    rgba(8,9,12,0) 100%
  );
}

/* Ensure section content stays above the fade */
.wf-hero + section > *,
.hero + section > *,
.cs-hero + section > *{
  position: relative;
  z-index: 1;
}

/* Ensure no divider line appears at the hero/services boundary */
.wf-hero + section::before,
.hero + section::before,
.cs-hero + section::before{
  display:none !important;
}

/* Mobile tune */
@media (max-width: 920px){
  .wf-hero::after,.hero::after,.cs-hero::after{ height: 170px !important; }
  .wf-hero + section::after,.hero + section::after,.cs-hero + section::after{ height: 110px; }
}


/* =========================
   Global color refinement – blu/viola gradient (v4.2.5)
   ========================= */

:root{
  --bg: #0b0f1a;
  --bg-soft: #10162a;
  --bg-gradient: radial-gradient(1200px 600px at 10% -10%, rgba(120,90,255,0.25), transparent 60%),
                 radial-gradient(1000px 500px at 90% 10%, rgba(80,160,255,0.20), transparent 55%),
                 linear-gradient(180deg, #0b0f1a, #10162a);
}

/* applicazione uniforme */
body{
  background: var(--bg-gradient);
}

/* superfici: solo variazione minima */
.section--surface,
.surface,
.bg-surface{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.035)
  ) !important;
}

/* hero fade coerente con il nuovo gradiente */
.wf-hero::after,
.hero::after{
  background: linear-gradient(
    to bottom,
    rgba(11,15,26,0) 0%,
    rgba(11,15,26,0.35) 40%,
    #0b0f1a 100%
  ) !important;
}


/* =========================
   Gradient tuning (more violet) + hero/services black strip fix (v4.2.7)
   ========================= */

:root{
  --bg: #0a0d18;
  --bg-soft: #0f1630;
  --bg-gradient: radial-gradient(1200px 700px at 12% -10%, rgba(150,90,255,0.32), transparent 60%),
                 radial-gradient(1100px 650px at 88% 8%, rgba(90,170,255,0.22), transparent 55%),
                 radial-gradient(900px 520px at 55% 22%, rgba(190,120,255,0.12), transparent 62%),
                 linear-gradient(180deg, #0a0d18 0%, #0f1630 55%, #0a0d18 100%);
}

body{ background: var(--bg-gradient) !important; }

/* Hero bottom fade: blend into next section, no dark bar */
.wf-hero::after,
.hero::after,
.cs-hero::after{
  height: 240px !important;
  background: linear-gradient(
    to bottom,
    rgba(10,13,24,0) 0%,
    rgba(10,13,24,0.20) 35%,
    rgba(10,13,24,0.55) 68%,
    rgba(10,13,24,0.0) 100%
  ) !important;
}

/* Pull first section slightly into hero fade */
.wf-hero + section,
.hero + section,
.cs-hero + section{
  background: transparent !important;
  margin-top: -40px;
  padding-top: 40px;
}

/* Softer top blend on the first section after hero */
.wf-hero + section::after,
.hero + section::after,
.cs-hero + section::after{
  content:"";
  position:absolute;
  left:0; right:0; top:-1px;
  height: 160px;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,13,24,0.90) 0%,
    rgba(10,13,24,0.55) 35%,
    rgba(10,13,24,0.0) 100%
  );
}

.wf-hero + section > *,
.hero + section > *,
.cs-hero + section > *{ position:relative; z-index:1; }

@media (max-width: 920px){
  .wf-hero::after,.hero::after,.cs-hero::after{ height: 190px !important; }
  .wf-hero + section,.hero + section,.cs-hero + section{
    margin-top: -26px;
    padding-top: 26px;
  }
  .wf-hero + section::after,.hero + section::after,.cs-hero + section::after{ height: 120px; }
}


/* =========================
   Hero height + smoother blend + stronger primary CTA (v4.2.8)
   ========================= */

/* Make hero taller (responsive) */
.wf-hero,
.hero{
  min-height: 78vh;
}
@media (max-width: 920px){
  .wf-hero,
  .hero{
    min-height: 64vh;
  }
}

/* Smooth transition: remove any perceived hard edge by overlapping fades */
.wf-hero::after,
.hero::after,
.cs-hero::after{
  height: 300px !important;
  background: linear-gradient(
    to bottom,
    rgba(10,13,24,0) 0%,
    rgba(10,13,24,0.10) 30%,
    rgba(10,13,24,0.32) 55%,
    rgba(10,13,24,0.65) 78%,
    rgba(10,13,24,0.0) 100%
  ) !important;
}

/* Ensure first section sits inside the fade without creating a strip */
.wf-hero + section,
.hero + section,
.cs-hero + section{
  margin-top: -56px !important;
  padding-top: 56px !important;
}

/* Stronger CTA in hero (Prenota ora): more contrast + glow */
.wf-hero a.btn-primary,
.wf-hero .btn-primary,
.wf-hero a.button-primary,
.wf-hero .wf-btn--primary,
.wf-hero .wf-btn.primary,
.wf-hero .btn--primary{
  opacity: 1 !important;
  filter: none !important;
  background: linear-gradient(135deg, rgba(150,90,255,0.95), rgba(90,170,255,0.95)) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35), 0 0 0 6px rgba(150,90,255,0.14) !important;
}

.wf-hero a.btn-primary:hover,
.wf-hero .btn-primary:hover,
.wf-hero a.button-primary:hover,
.wf-hero .wf-btn--primary:hover,
.wf-hero .wf-btn.primary:hover,
.wf-hero .btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.42), 0 0 0 6px rgba(90,170,255,0.18) !important;
}


/* =========================
   Hero mobile height fix (v4.2.9)
   ========================= */

/* Mobile hero needs more vertical presence */
@media (max-width: 920px){
  .wf-hero,
  .hero{
    min-height: 82vh !important;
    padding-top: 14vh; /* keeps title vertically centered */
    padding-bottom: 12vh;
  }
}

/* Small phones */
@media (max-width: 480px){
  .wf-hero,
  .hero{
    min-height: 88vh !important;
    padding-top: 16vh;
    padding-bottom: 14vh;
  }
}


/* =========================
   Mobile hero: more breathing room + homogeneous fade (v4.3.0)
   ========================= */

@media (max-width: 920px){

  /* Give more space from top (status bar / header) so nothing feels glued */
  .wf-hero,
  .hero{
    min-height: 84vh !important;
    padding-top: clamp(84px, 14vh, 140px) !important;
    padding-bottom: clamp(48px, 10vh, 120px) !important;
  }

  /* Stronger, smoother bottom fade on mobile (no harsh edge) */
  .wf-hero::after,
  .hero::after,
  .cs-hero::after{
    height: 320px !important;
    background: linear-gradient(
      to bottom,
      rgba(10,13,24,0) 0%,
      rgba(10,13,24,0.08) 22%,
      rgba(10,13,24,0.22) 45%,
      rgba(10,13,24,0.48) 70%,
      rgba(10,13,24,0.00) 100%
    ) !important;
  }

  /* Blend hero into services: reduce the visible "step" */
  .wf-hero + section,
  .hero + section,
  .cs-hero + section{
    margin-top: -64px !important;
    padding-top: 64px !important;
  }

  /* Top blend on first section: make it softer and longer */
  .wf-hero + section::after,
  .hero + section::after,
  .cs-hero + section::after{
    height: 180px !important;
    background: linear-gradient(
      to bottom,
      rgba(10,13,24,0.92) 0%,
      rgba(10,13,24,0.55) 35%,
      rgba(10,13,24,0.0) 100%
    ) !important;
  }
}

/* Smaller phones */
@media (max-width: 480px){
  .wf-hero,
  .hero{
    min-height: 88vh !important;
    padding-top: clamp(96px, 16vh, 150px) !important;
    padding-bottom: clamp(56px, 12vh, 140px) !important;
  }
  .wf-hero::after,
  .hero::after,
  .cs-hero::after{
    height: 340px !important;
  }
}


/* =========================
   Mobile hero top spacing – apply to inner container (v4.3.1)
   ========================= */

@media (max-width: 920px){

  /* Ensure safe area + header are accounted for */
  .wf-hero,
  .hero{
    padding-top: 0 !important; /* reset previous rule */
  }

  /* Push actual hero content down (not the background) */
  .wf-hero .wf-container,
  .wf-hero .container,
  .wf-hero .hero-inner,
  .wf-hero .hero__inner,
  .wf-hero .hero-inner,
  .hero .container,
  .hero .hero-inner,
  .hero .hero__inner{
    padding-top: calc(env(safe-area-inset-top, 0px) + 110px) !important;
    padding-bottom: 70px !important;
  }

  /* Give a bit more breathing room under the mini-pill/ticker if present */
  .wf-hero .wf-ticker,
  .hero .wf-ticker,
  .wf-hero .hero-kicker,
  .hero .hero-kicker{
    margin-top: 12px !important;
    margin-bottom: 18px !important;
  }

  /* Slightly taller hero so it doesn't feel cramped */
  .wf-hero,
  .hero{
    min-height: 90vh !important;
  }
}

@media (max-width: 480px){
  .wf-hero .wf-container,
  .wf-hero .container,
  .wf-hero .hero-inner,
  .wf-hero .hero__inner,
  .hero .container,
  .hero .hero-inner,
  .hero .hero__inner{
    padding-top: calc(env(safe-area-inset-top, 0px) + 125px) !important;
    padding-bottom: 80px !important;
  }
  .wf-hero,
  .hero{
    min-height: 92vh !important;
  }
}


/* =========================
   Hero mobile: real fix (targets .hero--home) + seamless blend to #servizi (v4.3.2)
   ========================= */

/* Reset any overly aggressive previous mobile hero spacing */
@media (max-width: 920px){
  .hero.hero--home{
    min-height: 86vh !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .hero.hero--home .hero-inner{
    padding-top: calc(env(safe-area-inset-top, 0px) + 92px) !important;
    padding-bottom: 64px !important;
  }
}
@media (max-width: 480px){
  .hero.hero--home{
    min-height: 88vh !important;
  }
  .hero.hero--home .hero-inner{
    padding-top: calc(env(safe-area-inset-top, 0px) + 104px) !important;
    padding-bottom: 72px !important;
  }
}

/* Strong, homogeneous fade at the bottom of the hero (all devices) */
.hero.hero--home{
  position: relative;
  overflow: hidden;
}
.hero.hero--home::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 320px;
  pointer-events:none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(10,13,24,0) 0%,
    rgba(10,13,24,0.12) 30%,
    rgba(10,13,24,0.30) 55%,
    rgba(10,13,24,0.55) 78%,
    rgba(10,13,24,0.00) 100%
  );
}

/* If there's a hero background layer, keep it under the fade */
.hero.hero--home .hero-bg,
.hero.hero--home .hero-bg-img,
.hero.hero--home .hero-bg-image,
.hero.hero--home .hero-bg-overlay,
.hero.hero--home .hero-bg-video,
.hero.hero--home .hero-bg,
.hero.hero--home [data-hero-bg],
.hero.hero--home .hero-bg{
  z-index: 1;
}
.hero.hero--home .hero-inner,
.hero.hero--home .hero-content{
  position: relative;
  z-index: 3;
}

/* Services section: remove the hard top edge and blend with hero fade */
#servizi{
  position: relative;
  background: transparent !important; /* avoid a hard block */
  padding-top: 84px; /* keeps spacing even with blend */
}

/* Soft top veil to eliminate the black "strip" */
#servizi::before{
  content:"";
  position:absolute;
  left:0; right:0; top:-140px;
  height: 180px;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,13,24,0.0) 0%,
    rgba(10,13,24,0.22) 40%,
    rgba(10,13,24,0.42) 70%,
    rgba(10,13,24,0.0) 100%
  );
}

/* Keep services content above the veil */
#servizi > .container{ position: relative; z-index: 1; }

@media (max-width: 920px){
  .hero.hero--home::after{ height: 360px; }
  #servizi{ padding-top: 72px; }
  #servizi::before{ top:-160px; height: 210px; }
}


/* =========================
   Home header overlay (back to "hero behind header") – v4.3.2.1
   ========================= */

/* When home/front: header must overlay hero and be truly transparent */
body.home header.site-header.is-hero-overlay,
body.home .site-header.is-hero-overlay{
  position: absolute !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Kill any inner wrapper tint on transparent state */
body.home header.site-header.is-hero-overlay[data-bg="transparent"] .header-inner,
body.home header.site-header.is-hero-overlay[data-bg="transparent"] .container,
body.home header.site-header.is-hero-overlay[data-bg="transparent"] nav,
body.home header.site-header.is-hero-overlay[data-bg="transparent"]::before,
body.home header.site-header.is-hero-overlay[data-bg="transparent"]::after{
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* When it becomes solid (e.g. script flips data-bg), keep it readable */
body.home header.site-header.is-hero-overlay[data-bg="solid"],
body.home .site-header.is-hero-overlay[data-bg="solid"]{
  position: fixed !important;
  background: rgba(8, 9, 12, 0.72) !important;
  background-color: rgba(8, 9, 12, 0.72) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
}

/* Push hero content below header/topbar while keeping background under it */
body.home .section.hero.hero--home .hero-inner,
body.home .hero.hero--home .hero-inner,
body.home .section.hero.hero--home .container.hero-inner,
body.home .hero.hero--home .container.hero-inner{
  /* uses inline vars already present on <html>: --header-h and --topbar-h */
  padding-top: calc(var(--topbar-h, 0px) + var(--header-h, 72px) + 22px) !important;
}

/* Mobile spacing */
@media (max-width: 920px){
  body.home .section.hero.hero--home .hero-inner,
  body.home .hero.hero--home .hero-inner,
  body.home .section.hero.hero--home .container.hero-inner,
  body.home .hero.hero--home .container.hero-inner{
    padding-top: calc(var(--topbar-h, 0px) + var(--header-h, 72px) + 18px) !important;
  }
}


/* =========================
   Home topbar + header overlay alignment (v4.3.2.2)
   - prevent header overlapping topbar
   - allow hero background under topbar as well
   ========================= */

body.home .topbar{
  position: absolute !important;
  top: 0; left: 0; right: 0;
  z-index: 1001; /* above hero, same layer as header */
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* push the overlay header below the topbar */
body.home header.site-header.is-hero-overlay,
body.home .site-header.is-hero-overlay{
  top: var(--topbar-h, 0px) !important;
  z-index: 1000;
}

/* when header becomes solid/fixed, keep it below topbar too */
body.home header.site-header.is-hero-overlay[data-bg="solid"],
body.home .site-header.is-hero-overlay[data-bg="solid"]{
  top: var(--topbar-h, 0px) !important;
}

/* Ensure main content doesn't get pushed down by absolute topbar/header */
body.home .site-main{
  padding-top: 0 !important;
}


/* =========================
   Definitive Home overlay for TOPBAR + HEADER (v4.3.2.3)
   Fixes:
   1) Header must NOT overlap topbar -> header top = --topbar-h
   2) Hero background must be visible under topbar + header -> both fully transparent at top
   Notes: Use fixed positioning to avoid sticky/absolute edge cases.
   ========================= */

html body.home .topbar{
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1100 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body.home .topbar::before,
html body.home .topbar::after{
  background: transparent !important;
  background-color: transparent !important;
}

/* kill any background tint inside topbar */
html body.home .topbar *{
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Header overlays hero but sits BELOW topbar */
html body.home header.site-header.is-hero-overlay,
html body.home .site-header.is-hero-overlay{
  position: fixed !important;
  top: var(--topbar-h, 0px) !important;
  left: 0 !important; right: 0 !important;
  z-index: 1050 !important;
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Ensure inner wrapper cannot tint the hero behind */
html body.home header.site-header.is-hero-overlay .header-inner,
html body.home header.site-header.is-hero-overlay .container.header-inner,
html body.home header.site-header.is-hero-overlay .container,
html body.home header.site-header.is-hero-overlay nav,
html body.home header.site-header.is-hero-overlay::before,
html body.home header.site-header.is-hero-overlay::after{
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Solid state on scroll (keep below topbar) */
html body.home header.site-header.is-hero-overlay[data-bg="solid"],
html body.home .site-header.is-hero-overlay[data-bg="solid"]{
  top: var(--topbar-h, 0px) !important;
  background: rgba(8, 9, 12, 0.72) !important;
  background-color: rgba(8, 9, 12, 0.72) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
}

/* Make sure the hero really starts at the very top (no artificial top padding/margin) */
html body.home main.site-main,
html body.home .site-main{
  padding-top: 0 !important;
}
html body.home .section.hero.hero--home,
html body.home .hero.hero--home{
  margin-top: 0 !important;
}

/* Push hero content below both bars (topbar + header) */
html body.home .section.hero.hero--home .hero-inner,
html body.home .hero.hero--home .hero-inner,
html body.home .section.hero.hero--home .container.hero-inner,
html body.home .hero.hero--home .container.hero-inner{
  padding-top: calc(var(--topbar-h, 0px) + var(--header-h, 72px) + 22px) !important;
}


/* =========================
   Mobile menu overlay fixes (v4.3.2.4)
   - Drawer must cover header/topbar (z-index)
   - Hide topbar + header while drawer is open
   - Fix close button visibility
   - Normalize drawer logo size
   - Fix admin-bar offsets on desktop/mobile
   ========================= */

/* Drawer above everything */
.nav-drawer{
  z-index: 3000 !important;
}

/* When drawer open: hide header + topbar (so hamburger/logo don't stay visible) */
html.nav-open body .site-header,
html.nav-open body .topbar{
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Ensure drawer close icon is always visible */
.nav-drawer__close{
  color: rgba(255,255,255,.95) !important;
}
.nav-drawer__close svg{
  width: 22px; height: 22px;
  display:block;
}

/* Drawer logo sizing */
.nav-drawer__head .brand__logo img,
.nav-drawer__head .custom-logo{
  max-height: 34px !important;
  width: auto !important;
  height: auto !important;
  max-width: 180px !important;
  object-fit: contain;
}

/* If someone uploaded a huge SVG, prevent it from blowing up */
.nav-drawer__head .brand__logo{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Admin bar offsets (logged-in) */
body.admin-bar.home .topbar{
  top: 32px !important;
}
body.admin-bar.home header.site-header.is-hero-overlay,
body.admin-bar.home .site-header.is-hero-overlay{
  top: calc(var(--topbar-h, 0px) + 32px) !important;
}
@media (max-width: 782px){
  body.admin-bar.home .topbar{ top: 46px !important; }
  body.admin-bar.home header.site-header.is-hero-overlay,
  body.admin-bar.home .site-header.is-hero-overlay{
    top: calc(var(--topbar-h, 0px) + 46px) !important;
  }
}
