/* ==========================================================================
   THE WISE GUY V2 · Restyling Cinematografico & Editoriale (Dark / Light 1:1)
   Firenze / Sesto Fiorentino · Studio Italiano di Ingegneria AI-Native
   ========================================================================== */

:root {
  --twg-content-max: 1312px;
  --twg-gutter: 24px;
  --twg-container-max: calc(var(--twg-content-max) + 2 * var(--twg-gutter));
  --twg-bar-height: 40px;
}
@media (max-width: 759px) {
  :root {
    --twg-bar-height: 36px;
  }
}
@media (max-width: 640px) {
  :root {
    --twg-gutter: 16px;
  }
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #030103;
  --bg-alt: #080510;
  --bg-elevated: #0d0918;
  --bg-card: rgba(17, 12, 28, 0.74);
  --bg-card-hover: rgba(24, 17, 40, 0.88);
  --bg-card-solid: #100b1c;
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.045);
  --bg-nav: rgba(8, 5, 16, 0.80);
  --fg-primary: #F8FAFC;
  --fg-secondary: #CBD5E1;
  --fg-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(168, 85, 247, 0.42);
  --accent-violet: #A855F7;
  --accent-violet-bright: #C084FC;
  --accent-violet-soft: rgba(168, 85, 247, 0.14);
  --accent-cyan: #22D3EE;
  --accent-cyan-soft: rgba(34, 211, 238, 0.12);
  --accent-emerald: #34D399;
  --accent-emerald-soft: rgba(52, 211, 153, 0.12);
  --accent-amber: #F59E0B;
  --accent-amber-soft: rgba(245, 158, 11, 0.14);
  --accent-danger: #F87171;
  --accent-danger-soft: rgba(248, 113, 113, 0.12);
  --cta-bg: #F8FAFC;
  --cta-fg: #09060F;
  --cta-hover-bg: #A855F7;
  --cta-hover-fg: #FFFFFF;
  --shadow-card: 0 24px 64px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-elevated: 0 32px 90px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(168, 85, 247, 0.18);
  --hero-scrim: linear-gradient(96deg, rgba(3, 1, 3, 0.95) 0%, rgba(3, 1, 3, 0.84) 48%, rgba(3, 1, 3, 0.42) 100%);
  --hero-bottom-fade: linear-gradient(180deg, rgba(3, 1, 3, 0) 0%, #030103 100%);
  --banner-scrim: linear-gradient(90deg, rgba(3, 1, 3, 0.92) 0%, rgba(3, 1, 3, 0.68) 55%, rgba(3, 1, 3, 0.35) 100%);
  --grid-dot: rgba(255, 255, 255, 0.055);
  --ambient-glow-1: rgba(168, 85, 247, 0.14);
  --ambient-glow-2: rgba(34, 211, 238, 0.10);
  --code-bg: #07040d;
  --code-fg: #E2E8F0;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-page: #F8FAFC;
  --bg-alt: #F2F0EB;
  --bg-elevated: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #FFFFFF;
  --bg-card-solid: #FFFFFF;
  --bg-subtle: rgba(15, 23, 42, 0.04);
  --bg-input: #FFFFFF;
  --bg-nav: rgba(248, 250, 252, 0.88);
  --fg-primary: #0F172A;
  --fg-secondary: #334155;
  --fg-muted: #475569;
  --border-subtle: rgba(15, 23, 42, 0.10);
  --border-medium: rgba(15, 23, 42, 0.18);
  --border-strong: rgba(109, 40, 217, 0.36);
  --accent-violet: #6D28D9;
  --accent-violet-bright: #7C3AED;
  --accent-violet-soft: rgba(109, 40, 217, 0.09);
  --accent-cyan: #0E7490;
  --accent-cyan-soft: rgba(14, 116, 144, 0.09);
  --accent-emerald: #047857;
  --accent-emerald-soft: rgba(4, 120, 87, 0.09);
  --accent-amber: #B45309;
  --accent-amber-soft: rgba(180, 83, 9, 0.10);
  --accent-danger: #B91C1C;
  --accent-danger-soft: rgba(185, 28, 28, 0.08);
  --cta-bg: #0F172A;
  --cta-fg: #FFFFFF;
  --cta-hover-bg: #6D28D9;
  --cta-hover-fg: #FFFFFF;
  --shadow-card: 0 18px 44px -18px rgba(15, 23, 42, 0.09), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-elevated: 0 28px 70px -20px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(109, 40, 217, 0.16);
  --hero-scrim: linear-gradient(96deg, rgba(248, 250, 252, 0.97) 0%, rgba(248, 250, 252, 0.90) 50%, rgba(248, 250, 252, 0.34) 100%);
  --hero-bottom-fade: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #F8FAFC 100%);
  --banner-scrim: linear-gradient(90deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.78) 55%, rgba(248, 250, 252, 0.30) 100%);
  --grid-dot: rgba(15, 23, 42, 0.06);
  --ambient-glow-1: rgba(109, 40, 217, 0.07);
  --ambient-glow-2: rgba(14, 116, 144, 0.06);
  --code-bg: #F1F5F9;
  --code-fg: #0F172A;
}

/* ── Reset & Typography Foundation ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  background-color: var(--bg-page);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--fg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-violet-soft);
  color: var(--fg-primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
}

.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ── Layout Containers ─────────────────────────────────────────── */
.twg-container {
  width: 100%;
  max-width: var(--twg-container-max);
  margin-inline: auto;
  padding-inline: var(--twg-gutter);
}

/* ── Scroll Progress Hairline ──────────────────────────────────── */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress, 0));
  will-change: transform;
}

/* ── Fixed Navigation Header (Full-Width Bar, Prominent Brand Emblem) ── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-card);
  border-bottom-color: var(--border-medium);
}

/* Mobile drawer open state must stack above fixed cookie banner (#twgcc z-index: 2147483000) */
.site-header:has(.mobile-drawer.is-open),
html.twg-drawer-open .site-header {
  z-index: 2147483050;
}

.nav-bar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-emblem {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid var(--border-strong);
  background: #09060f;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.brand-link:hover .brand-emblem {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg-primary);
}

@media (max-width: 640px) {
  .nav-bar {
    height: 66px;
  }
  .brand-emblem {
    width: 46px;
    height: 46px;
  }
  .brand-name {
    font-size: 17px;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-secondary);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--fg-primary);
  background: var(--bg-subtle);
}

.nav-link.is-active {
  color: var(--accent-violet-bright);
}
:root[data-theme="light"] .nav-link.is-active {
  color: var(--accent-violet);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  color: var(--fg-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-violet);
  background: var(--accent-violet-soft);
}

.theme-toggle:active {
  transform: scale(0.97);
}

/* ── Unified Button System (Shape Lock: 10px interactive, 16px cards) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.btn-primary:hover {
  background: var(--cta-hover-bg);
  color: var(--cta-hover-fg);
  box-shadow: 0 12px 32px -10px rgba(168, 85, 247, 0.55);
}

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

.btn-secondary:hover {
  border-color: var(--accent-violet);
  background: var(--accent-violet-soft);
}

.btn-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-violet-bright);
  transition: gap 0.2s ease, color 0.2s ease;
}
:root[data-theme="light"] .btn-ghost-link {
  color: var(--accent-violet);
}
.btn-ghost-link:hover {
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  color: var(--fg-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-elevated);
}

.mobile-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 1439px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hide-mobile-cta {
    display: none;
  }
}

.site-header > .twg-container {
  max-width: var(--twg-container-max);
  padding-inline: var(--twg-gutter);
}

@media (min-width: 1440px) {
  .nav-bar {
    gap: 10px;
  }
  .brand-link {
    gap: 10px;
  }
  .brand-emblem {
    width: 50px;
    height: 50px;
  }
  .brand-name {
    font-size: 17.5px;
  }
  .desktop-nav {
    gap: 2px;
  }
  .desktop-nav .nav-link {
    padding: 6px 6px;
    font-size: 12.4px;
  }
  .nav-actions {
    gap: 6px;
  }
  .theme-toggle {
    padding: 0 9px;
  }
  .hide-mobile-cta.btn-sm {
    padding: 0 11px;
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    padding: 0;
    gap: 6px;
  }
  .brand-emblem {
    width: 44px;
    height: 44px;
  }
  .brand-name {
    font-size: 16.5px;
  }
  .brand-sub {
    display: none;
  }
  .theme-toggle {
    padding: 0 9px;
    height: 34px;
    font-size: 11.5px;
  }
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
  }
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}

/* Prevent CSS Grid 1fr auto-min-width blowout on narrow viewports */
.hero-grid > *,
.fact-strip-grid > *,
.zl-showcase-grid > *,
.zl-secondary-row > *,
.orchestration-banner > *,
.products-trio-grid > *,
.capabilities-grid > *,
.suite-bento > *,
.academy-layout > *,
.onprem-split > *,
.comparison-cards > *,
.sector-panel > *,
.portfolio-trio > *,
.contrast-grid > *,
.whitepaper-box > *,
.faq-grid > *,
.contact-grid > *,
.form-row-2 > *,
.footer-grid > * {
  min-width: 0;
}

/* ── Typography Scale ──────────────────────────────────────────── */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-violet-bright);
}
:root[data-theme="light"] .eyebrow-tag {
  color: var(--accent-violet);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.display-hero {
  margin: 16px 0 0;
  font-size: clamp(2.35rem, 4.4vw, 3.9rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
  color: var(--fg-primary);
}

.display-section {
  margin: 0;
  font-size: clamp(1.95rem, 3.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--fg-primary);
}

.lead-copy {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.62;
  color: var(--fg-secondary);
  max-width: 62ch;
  text-wrap: pretty;
}

.accent-gradient-text {
  background: linear-gradient(95deg, var(--accent-violet-bright) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .accent-gradient-text {
  background: linear-gradient(95deg, #6D28D9 0%, #0E7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Full-Page Scroll Animations & Parallax Engine ─────────────── */
.reveal-up {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.cinema-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  clip-path: inset(6% 4% 6% 4% round 24px);
  transform: translate3d(0, 24px, 0) scale(0.98);
  opacity: 0.25;
  transition: clip-path 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease;
  will-change: clip-path, transform, opacity;
}

.cinema-frame.is-visible {
  clip-path: inset(0% 0% 0% 0% round 20px);
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.09) translate3d(0, var(--parallax-y, 0px), 0);
  transition: transform 0.12s linear;
  will-change: transform;
}

/* ── HERO (Full-Viewport 100dvh Stage) ─────────────────────────── */
.hero-stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 44px;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(calc(1.04 + var(--hero-scroll, 0) * 0.08)) translate3d(0, calc(var(--hero-scroll, 0) * 56px), 0);
  will-change: transform;
}

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

.hero-bottom-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 130px;
  background: var(--hero-bottom-fade);
  z-index: 2;
  pointer-events: none;
}

.hero-neural-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.65;
}
:root[data-theme="light"] .hero-neural-svg {
  opacity: 0.35;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -120; }
}
.neural-flow {
  stroke-dasharray: 6 10;
  animation: dashFlow 8s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Hero Right: Interactive 3-Doors Switcher Panel */
.doors-panel {
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  padding: 22px;
  box-shadow: var(--shadow-elevated);
}

.doors-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.door-tab {
  padding: 9px 8px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.door-tab.is-active {
  background: var(--bg-card-solid);
  color: var(--fg-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.door-preview {
  margin-top: 16px;
}

.door-preview-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.door-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.doors-panel:hover .door-preview-media img {
  transform: scale(1.03);
}

.door-kpi-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Architectural Fact Strip (Under Hero) ─────────────────────── */
.fact-strip {
  position: relative;
  z-index: 4;
  border-block: 1px solid var(--border-subtle);
  background: var(--bg-alt);
  padding: 22px 0;
}

.fact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .fact-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .fact-strip-grid {
    grid-template-columns: 1fr;
  }
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-violet-soft);
  color: var(--accent-violet-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
:root[data-theme="light"] .fact-icon {
  color: var(--accent-violet);
}

/* ── Section Spacing & Background Rhythm ───────────────────────── */
.chapter-section {
  position: relative;
  padding: 108px 0;
  overflow: hidden;
}

.chapter-alt {
  background-color: var(--bg-alt);
  border-block: 1px solid var(--border-subtle);
}

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

.bg-dot-matrix {
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
}

.ambient-orb {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

/* ── CHAPTER 1: ZERO LEGACY (24h Live Ricalco) ─────────────────── */
.zl-showcase-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  margin-top: 44px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .zl-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.zl-photo-stack {
  display: grid;
  gap: 18px;
}

.zl-main-photo {
  aspect-ratio: 16 / 10;
}

.zl-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .zl-secondary-row {
    grid-template-columns: 1fr;
  }
}

.zl-timeline-card {
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zl-step-btn {
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.zl-step-btn:hover {
  background: var(--bg-subtle);
}

.zl-step-btn.is-active {
  background: var(--accent-violet-soft);
  border-color: var(--border-strong);
}

.zl-hour-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--accent-cyan);
  text-align: center;
}

.zl-step-btn.is-active .zl-hour-badge {
  background: var(--accent-violet);
  color: #FFFFFF;
}

/* ── CHAPTER 2: I 3 PRODOTTI REALI + CAPACITÀ SENZA NOME ───────── */
.products-trio-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 0;
}

.product-card {
  position: relative;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

@media (min-width: 981px) {
  .product-card {
    grid-row: span 4;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

@media (max-width: 980px) {
  .products-trio-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }
  .product-card {
    display: flex;
    flex-direction: column;
  }
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.product-card.is-selected {
  border-color: var(--accent-violet);
  box-shadow: var(--shadow-elevated), 0 0 0 1px var(--accent-violet);
}

.product-card--cyan.is-selected {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-elevated), 0 0 0 1px var(--accent-cyan);
}

.product-card--amber.is-selected {
  border-color: var(--accent-amber);
  box-shadow: var(--shadow-elevated), 0 0 0 1px var(--accent-amber);
}

.product-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09060f;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 4, 12, 0.14) 0%, rgba(6, 4, 12, 0.25) 48%, rgba(6, 4, 12, 0.84) 100%);
  pointer-events: none;
}

.product-status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 6, 15, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34D399;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.product-status-pill--cyan {
  border-color: rgba(34, 211, 238, 0.48);
  color: #22D3EE;
}

.product-status-pill--amber {
  border-color: rgba(245, 158, 11, 0.50);
  color: #FBBF24;
}

/* ── Official Product Brand Marks (reference/brand/marchi-prodotti) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.twg-pmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  font-size: clamp(19px, 1.55vw, 22.5px);
  padding: 9px 0 4px;
  user-select: none;
}

.twg-pmark--section {
  font-size: clamp(20px, 1.8vw, 25px);
  margin-bottom: 14px;
}

.twg-pmark-s4 {
  color: #94a3b8;
  opacity: 0.78;
}

.twg-pmark-on {
  color: #ffffff;
}

:root[data-theme="light"] .twg-pmark-s4 {
  color: #64748b;
  opacity: 0.92;
}

:root[data-theme="light"] .twg-pmark-on {
  color: #0f172a;
}

.twg-pmark-gap {
  display: inline-block;
  width: 0.17em;
}

.twg-pmark-gap--tight {
  width: 0.14em;
}

.twg-pmark-ico-l,
.twg-pmark-ico-r {
  height: 0.96em;
  width: auto;
  overflow: visible;
  flex-shrink: 0;
}

.twg-pmark-ico-l {
  margin-right: 4px;
}

.twg-pmark-ico-r {
  margin-left: 4px;
}

.twg-pmark-av {
  position: relative;
  display: inline-block;
  width: 1.08em;
  height: 1.08em;
  margin: 0 0.17em;
  flex-shrink: 0;
}

.twg-pmark-av--lf {
  margin: 0 0.2em;
}

.twg-pmark-av-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.twg-pmark-av-img--wb {
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.twg-pmark-av-img--wa {
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.40);
}

.twg-pmark-av-img--lf {
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.twg-pmark-av-img--zl {
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.42);
}

.twg-pmark-av-ring {
  position: absolute;
  inset: -0.32em;
  width: 1.64em;
  height: 1.64em;
  overflow: visible;
  pointer-events: none;
}

.product-card-header {
  padding: 20px 22px 0;
}

.product-domain-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-violet-bright);
}

:root[data-theme="light"] .product-domain-tag {
  color: var(--accent-violet);
}

.product-domain-tag--cyan,
:root[data-theme="light"] .product-domain-tag--cyan {
  color: var(--accent-cyan);
}

.product-domain-tag--amber,
:root[data-theme="light"] .product-domain-tag--amber {
  color: var(--accent-amber);
}

.product-card-title {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-card-sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-primary);
  opacity: 0.9;
  line-height: 1.45;
}

.product-card-content {
  padding: 12px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.product-card-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-secondary);
  line-height: 1.58;
}

.product-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 12.8px;
  color: var(--fg-secondary);
  line-height: 1.45;
}

.product-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-check {
  color: var(--accent-emerald);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.product-card-footer {
  padding: 13px 22px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-trace-btn {
  appearance: none;
  border: 1px solid var(--border-medium);
  background: var(--bg-card-solid);
  color: var(--fg-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.product-trace-btn:hover {
  border-color: var(--border-strong);
  color: var(--fg-primary);
}

.product-card.is-selected .product-trace-btn {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

/* ── PART B: UNNAMED OPERATIONAL CAPABILITIES ──────────────────── */
.capabilities-block {
  margin-top: 28px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.capabilities-head {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 920px) {
  .capabilities-head {
    grid-template-columns: 1fr;
  }
  .capabilities-block {
    padding: 22px 18px;
  }
}

.capabilities-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.capabilities-title {
  margin: 8px 0 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.capabilities-intro {
  margin: 0;
  font-size: 13.8px;
  color: var(--fg-secondary);
  line-height: 1.58;
}

.capabilities-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.cap-span-4 { grid-column: span 4; }
.cap-span-6 { grid-column: span 6; }

@media (max-width: 980px) {
  .cap-span-4, .cap-span-6 {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .cap-span-4, .cap-span-6 {
    grid-column: span 12;
  }
}

.capability-card {
  position: relative;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.capability-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.capability-card.is-selected {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--accent-cyan);
}

.capability-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.capability-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-violet-soft);
  border: 1px solid var(--border-subtle);
  color: var(--accent-violet-bright);
  flex-shrink: 0;
}

:root[data-theme="light"] .capability-icon {
  color: var(--accent-violet);
}

.capability-icon--cyan,
:root[data-theme="light"] .capability-icon--cyan {
  background: var(--accent-cyan-soft);
  color: var(--accent-cyan);
}

.capability-icon--emerald,
:root[data-theme="light"] .capability-icon--emerald {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.capability-pill {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  color: var(--fg-muted);
}

.capability-name {
  margin: 4px 0 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.capability-desc {
  margin: 0;
  font-size: 13.3px;
  color: var(--fg-secondary);
  line-height: 1.56;
}

.capability-trace-hint {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.2s ease;
}

.capability-card:hover .capability-trace-hint,
.capability-card.is-selected .capability-trace-hint {
  color: var(--accent-cyan);
}

.orchestration-banner {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1024px) {
  .orchestration-banner {
    grid-template-columns: 1fr;
  }
}

.trace-inspector {
  margin-top: 22px;
  border-radius: 16px;
  background: var(--code-bg);
  border: 1px solid var(--border-medium);
  padding: 20px 24px;
  color: var(--code-fg);
}

/* ── CHAPTER 3: THE WISE GUY ACADEMY (48h Pilot & Interactive Pause) ── */
.academy-layout {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .academy-layout {
    grid-template-columns: 1fr;
  }
}

.academy-simulator {
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.sim-video-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09060f;
}

.sim-video-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.5s ease;
}

.sim-video-stage.is-paused-gate img {
  filter: brightness(0.45) contrast(1.05);
  transform: scale(1.03);
}

.sim-gate-overlay {
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  background: rgba(9, 6, 15, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.48);
  backdrop-filter: blur(14px);
  padding: 20px;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sim-choice-btn {
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sim-choice-btn:hover {
  border-color: #22D3EE;
  background: rgba(34, 211, 238, 0.14);
}

.sim-choice-btn.is-correct {
  border-color: #34D399;
  background: rgba(52, 211, 153, 0.20);
}

@media (max-width: 640px) {
  .sim-video-stage {
    aspect-ratio: auto;
    min-height: 430px;
  }
  .sim-video-stage img {
    position: absolute;
    inset: 0;
  }
  .sim-gate-overlay {
    position: relative;
    inset: auto;
    margin: 12px;
    padding: 16px;
  }
}

/* ── CHAPTER 4: ON-PREMISE, COMPLIANCE & SECTORS ───────────────── */
.onprem-split {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .onprem-split {
    grid-template-columns: 1fr;
  }
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .comparison-cards {
    grid-template-columns: 1fr;
  }
}

.spec-tile {
  border-radius: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.sector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.sector-pill {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--fg-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sector-pill.is-active {
  border-color: var(--accent-violet);
  background: var(--accent-violet-soft);
  color: var(--fg-primary);
}

.sector-panel {
  margin-top: 18px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 860px) {
  .sector-panel {
    grid-template-columns: 1fr;
  }
}

/* ── CHAPTER 5: SITI WEB & PORTALI CLIENTI (Before/After) ──────── */
.ba-browser {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-elevated);
}

.ba-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ba-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.ba-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  user-select: none;
}

.ba-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.ba-after {
  clip-path: inset(0 calc(100% - var(--ba-pos, 54%)) 0 0);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 54%);
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 3;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.portfolio-trio {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .portfolio-trio {
    grid-template-columns: 1fr;
  }
}

/* ── CHAPTER 6: FIRENZE BANNER & METODO ────────────────────────── */
.florence-banner {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  padding: 48px;
  box-shadow: var(--shadow-elevated);
}

@media (max-width: 680px) {
  .florence-banner {
    padding: 28px 22px;
    min-height: 380px;
  }
}

.florence-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.florence-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.florence-banner-scrim {
  position: absolute;
  inset: 0;
  background: var(--banner-scrim);
  z-index: 1;
}

.florence-banner-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.contrast-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .contrast-grid {
    grid-template-columns: 1fr;
  }
}

.contrast-row-card {
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── CHAPTER 7: WHITEPAPER, FAQ & CONTATTI ─────────────────────── */
.whitepaper-box {
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 36px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

@media (max-width: 860px) {
  .whitepaper-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.playbook-cover {
  aspect-ratio: 3 / 4;
  max-width: 240px;
  border-radius: 14px;
  padding: 24px;
  background: linear-gradient(155deg, #130b24 0%, #07040e 100%);
  color: #F8FAFC;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 24px 50px -18px rgba(109, 40, 217, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.faq-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-card {
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 32px;
  box-shadow: var(--shadow-elevated);
}

@media (max-width: 640px) {
  .form-card {
    padding: 22px;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-primary);
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-input);
  color: var(--fg-primary);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
  color: var(--fg-muted);
  opacity: 0.78;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px var(--accent-violet-soft);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-alt);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── ALFRED CHATBOT WIDGET (Dark & Light Parity) ───────────────── */
.alfred-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-strong);
  color: var(--fg-primary);
  box-shadow: var(--shadow-elevated);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.alfred-launcher:hover {
  transform: translateY(-2px);
}

.alfred-launcher.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.alfred-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  flex-shrink: 0;
}

.alfred-avatar-wrap img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid var(--border-strong);
  background: #0d0918;
}

.alfred-header-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex-shrink: 0;
}

.alfred-header-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid var(--border-strong);
  background: #0d0918;
}

.alfred-header-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #10B981;
  border: 2px solid var(--bg-card-solid);
}

.alfred-status-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #10B981;
  border: 2px solid var(--bg-card-solid);
}

.alfred-window {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(430px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 44px));
  z-index: 115;
  border-radius: 20px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-elevated);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.alfred-window.is-open {
  display: flex;
  animation: alfredPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 520px) {
  .alfred-launcher {
    right: 12px;
    bottom: 12px;
    padding: 4px 12px 4px 4px;
    gap: 8px;
  }
  .alfred-avatar-wrap,
  .alfred-avatar-wrap img {
    width: 38px;
    height: 38px;
  }
  .alfred-window {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}

@keyframes alfredPop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.alfred-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alfred-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 94%;
  align-self: flex-start;
}

.alfred-msg-avatar {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-medium);
  background: #0d0918;
}

.alfred-bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}

.alfred-msg-row .alfred-bubble {
  max-width: 100%;
}

.alfred-bubble.is-assistant {
  align-self: flex-start;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--fg-primary);
  border-bottom-left-radius: 4px;
}

.alfred-bubble.is-user {
  align-self: flex-end;
  background: var(--accent-violet);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

/* ── Report Overlay (?report=ID) ───────────────────────────────── */
#twgrOv {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(3, 1, 3, 0.72);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 5vh 16px;
}
#twgrOv.on {
  display: flex;
}
.twgr-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 28px;
  color: var(--fg-primary);
  box-shadow: var(--shadow-elevated);
}

/* ── Reduced Motion Compliance ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-up,
  .cinema-frame {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .parallax-img,
  .hero-bg-media img,
  .neural-flow {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ── Language switcher IT/EN (header + mobile drawer) ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  flex-shrink: 0;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
  border-radius: 7px;
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-switch a:hover { color: var(--fg-primary); }
.lang-switch a[aria-current] {
  color: var(--fg-primary);
  background: var(--accent-violet-soft);
}
.lang-switch--drawer {
  align-self: flex-start;
  margin-top: 10px;
  height: 40px;
}
.lang-switch--drawer a { padding: 0 14px; font-size: 12.5px; }
@media (max-width: 640px) {
  .nav-actions > .lang-switch { height: 34px; padding: 2px; }
  .nav-actions > .lang-switch a { padding: 0 6px; font-size: 11px; }
}
@media (max-width: 360px) {
  .nav-actions > .lang-switch { display: none; }
}

/* ── Compliance section (#conformita) ── */
.compliance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.compliance-group { border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 22px; box-shadow: var(--shadow-card); min-width: 0; }
.compliance-group:last-child { grid-column: 1 / -1; }
.compliance-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-cyan); }
.compliance-group ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.compliance-group li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.compliance-group li b { font-size: 14.5px; font-weight: 700; color: var(--fg-primary); }
.compliance-group li span { font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); }
.compliance-note { margin: 18px 0 0; font-size: 12px; color: var(--fg-muted); max-width: 80ch; }
@media (max-width: 860px) { .compliance-grid { grid-template-columns: 1fr; } }

/* ── Osservatorio board: LinkedIn article cards (KB tools/bacheca-articoli) ── */
.oss-page { padding-top: 120px; }
.oss-group { margin-top: 44px; scroll-margin-top: 98px; }
.oss-group-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; letter-spacing: -0.015em; }
.oss-group-head p { margin: 6px 0 0; font-size: 14.5px; color: var(--fg-muted); max-width: 70ch; }
.oss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.oss-grid--strip { margin-top: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oss-card { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.oss-card:hover, .oss-card:focus-visible { transform: translateY(-4px); border-color: #0A66C2; box-shadow: var(--shadow-elevated); }
.oss-card:focus-visible { outline: 2px solid #0A66C2; outline-offset: 2px; }
.oss-media { aspect-ratio: 800 / 446; background: #0b0910; overflow: hidden; }
.oss-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.oss-card:hover .oss-media img { transform: scale(1.04); }
.oss-media--type { display: flex; align-items: flex-end; padding: 22px; background: radial-gradient(120% 90% at 85% 10%, rgba(34, 211, 238, 0.28), transparent 60%), radial-gradient(90% 80% at 10% 100%, rgba(168, 85, 247, 0.35), transparent 60%), #0b0910; }
.oss-media--type span { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #F8FAFC; }
.oss-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.oss-meta { display: flex; align-items: center; gap: 8px; font: 600 11px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.oss-li { width: 18px; height: 18px; flex: 0 0 18px; }
.oss-body h3 { margin: 0; font-size: 17.5px; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; }
.oss-body p { margin: 0; font-size: 13.8px; line-height: 1.55; color: var(--fg-secondary); }
.oss-cta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 650; color: #0A66C2; }
:root[data-theme="dark"] .oss-cta { color: #5aa2ec; }
.oss-follow { margin: 26px 0 0; }
.oss-follow .btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 980px) { .oss-grid--strip { grid-template-columns: 1fr 1fr; } .oss-grid--strip .oss-card:nth-child(3) { display: none; } }
@media (max-width: 640px) { .oss-grid, .oss-grid--strip { grid-template-columns: 1fr; } .oss-grid--strip .oss-card:nth-child(3) { display: flex; } .oss-page { padding-top: 96px; } }

/* ── Multi-cloud block (inside #enterprise) ── */
.cloud-block { margin-top: 44px; border-radius: 22px; padding: 26px; background: var(--bg-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px 32px; }
.cloud-head h3 { margin: 8px 0 0; font-size: clamp(20px, 2.3vw, 26px); font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.cloud-head p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-secondary); }
.cloud-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cloud-chips span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--bg-subtle); border: 1px solid var(--border-medium); color: var(--fg-primary); }
.cloud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cloud-list li { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border-subtle); border-left: 3px solid var(--accent-cyan); }
.cloud-list b { font-size: 14.5px; font-weight: 700; }
.cloud-list span { font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.cloud-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--fg-muted); }
@media (max-width: 900px) { .cloud-block { grid-template-columns: 1fr; padding: 20px; } }
/* compliance logos */
.compliance-group li { flex-direction: row; align-items: flex-start; gap: 12px; }
.compliance-group li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmp-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border-subtle); font-style: normal; }
.cmp-ico svg { width: 22px; height: 22px; }
.cmp-ico--img img { width: 28px; height: 28px; object-fit: contain; display: block; }
.cmp-ico--txt { font: 800 10px/1 var(--font-mono); letter-spacing: 0.02em; }

/* ── Osservatorio Navbar Dropdown ("Controcorrente" / "Unfiltered") ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  appearance: none;
  border: 1px solid rgba(168, 85, 247, 0.26);
  background: rgba(168, 85, 247, 0.07);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  anchor-name: --oss-nav-anchor;
}

:root[data-theme="light"] .nav-dropdown-trigger {
  border-color: rgba(124, 58, 237, 0.24);
  background: rgba(124, 58, 237, 0.06);
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"],
.nav-dropdown-trigger.is-active {
  color: var(--fg-primary);
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.11);
}

:root[data-theme="light"] .nav-dropdown-trigger:hover,
:root[data-theme="light"] .nav-dropdown-trigger[aria-expanded="true"],
:root[data-theme="light"] .nav-dropdown-trigger.is-active {
  border-color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.11);
}

.nav-oss-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
  flex-shrink: 0;
  animation: navOssPulse 2.6s ease-in-out infinite;
}

:root[data-theme="light"] .nav-oss-dot {
  background: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

@keyframes navOssPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-oss-dot { animation: none; }
}

.nav-dropdown-caret {
  flex-shrink: 0;
  opacity: 0.78;
  transition: transform 0.2s ease;
}

.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret,
.mobile-oss-trigger[aria-expanded="true"] .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-oss-popover {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(13, 10, 22, 0.97);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(168, 85, 247, 0.16);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  z-index: 140;
  --oss-knock: #0d0a16;
}

:root[data-theme="light"] .nav-oss-popover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(124, 58, 237, 0.08);
  --oss-knock: #fff;
}

.nav-oss-popover::before {
  content: "";
  position: absolute;
  top: -12px;
  inset-inline: 0;
  height: 12px;
}

@supports (position-area: block-end) {
  .nav-oss-popover[popover] {
    position: fixed;
    inset: auto;
    margin: 10px 0 0;
    position-anchor: --oss-nav-anchor;
    position-area: block-end span-inline-start;
    position-try-fallbacks: flip-inline, flip-block;
  }
}

@supports not (position-area: block-end) {
  .nav-oss-popover[popover] {
    position: fixed;
    margin: 0;
  }
}

.nav-oss-popover[popover] {
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), display 0.18s ease, overlay 0.18s ease;
  transition-behavior: allow-discrete;
}

.nav-oss-popover[popover]:is(:popover-open, .\:popover-open) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .nav-oss-popover[popover]:is(:popover-open, .\:popover-open) {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-oss-popover[popover] {
    transition: none;
  }
}

/* testata della tendina */
.nav-oss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-oss-kicker,
.nav-oss-badge,
.nav-oss-live,
.nav-oss-date,
.nav-oss-min,
.nav-oss-chip-n,
.mobile-oss-row time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.nav-oss-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-violet-bright);
}

.nav-oss-badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-violet-soft);
  color: var(--accent-violet-bright);
  white-space: nowrap;
}

/* ultimo articolo, in evidenza */
.nav-oss-featured {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(34, 211, 238, 0.09));
  border: 1px solid rgba(34, 211, 238, 0.28);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

:root[data-theme="light"] .nav-oss-featured {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(14, 165, 233, 0.08));
  border-color: rgba(124, 58, 237, 0.26);
}

.nav-oss-featured:hover,
.nav-oss-featured:focus-visible {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.nav-oss-live {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

:root[data-theme="light"] .nav-oss-live {
  color: #0e7490;
}

.nav-oss-featured-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg-primary);
  text-wrap: balance;
}

.nav-oss-featured-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* riga dati: rubrica · minuti · LinkedIn */
.nav-oss-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--fg-muted);
}

.nav-oss-rub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: var(--fg-secondary);
}

.nav-oss-rdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #C084FC;
}
.nav-oss-rdot--danger { background: #F87171; }
.nav-oss-rdot--emerald { background: #34D399; }
.nav-oss-rdot--cyan { background: #22D3EE; }
.nav-oss-rdot--violet { background: #C084FC; }
:root[data-theme="light"] .nav-oss-rdot--danger { background: #B91C1C; }
:root[data-theme="light"] .nav-oss-rdot--emerald { background: #047857; }
:root[data-theme="light"] .nav-oss-rdot--cyan { background: #0E7490; }
:root[data-theme="light"] .nav-oss-rdot--violet { background: #6D28D9; }

.nav-oss-lion {
  display: inline-flex;
  align-items: center;
  color: var(--fg-muted);
}

.nav-oss-li-ico {
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}
.nav-oss-li-ico rect { fill: currentColor; }
.nav-oss-li-ico path { fill: var(--oss-knock, #0d0a16); }
.nav-oss-li-ico--blu rect { fill: #0A66C2; }
.nav-oss-li-ico--blu path { fill: #fff; }

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

/* scorciatoie per rubrica: aprono la bacheca gia' filtrata */
.nav-oss-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.nav-oss-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.nav-oss-chip:hover,
.nav-oss-chip:focus-visible {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
}

.nav-oss-chip-n {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* elenco per data */
.nav-oss-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.nav-oss-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 10px 10px;
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.nav-oss-item:hover,
.nav-oss-item:focus-visible,
.nav-oss-item[aria-current="page"] {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}

.nav-oss-date {
  font-size: 13px;
  color: var(--fg-muted);
  white-space: nowrap;
}

.nav-oss-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.nav-oss-item-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg-primary);
}

/* piede: bacheca e LinkedIn */
.nav-oss-foot {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-oss-all-grp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav-oss-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-violet-bright);
  text-decoration: none;
}

.nav-oss-all:hover,
.nav-oss-all:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-oss-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 102, 194, 0.45);
  background: rgba(10, 102, 194, 0.14);
  color: var(--fg-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

:root[data-theme="light"] .nav-oss-follow {
  background: rgba(10, 102, 194, 0.07);
}

.nav-oss-follow:hover,
.nav-oss-follow:focus-visible {
  border-color: #0A66C2;
  background: rgba(10, 102, 194, 0.22);
}

.nav-oss-follow .nav-oss-li-ico {
  width: 18px;
  height: 18px;
}

.nav-oss-popover a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Mobile Drawer Osservatorio Disclosure */
.mobile-drawer.is-open {
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-oss-group {
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  overflow: hidden;
  flex-shrink: 0;
}

.mobile-oss-trigger {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.mobile-oss-trigger-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fg-primary);
}

.mobile-oss-sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  --oss-knock: var(--bg-card-solid);
}

.mobile-oss-sub[hidden] {
  display: none;
}

.mobile-oss-feat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(34, 211, 238, 0.09));
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: inherit;
  text-decoration: none;
}

:root[data-theme="light"] .mobile-oss-feat {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(14, 165, 233, 0.08));
  border-color: rgba(124, 58, 237, 0.26);
}

.mobile-oss-feat .nav-oss-meta {
  --oss-knock: #0d0a16;
}

:root[data-theme="light"] .mobile-oss-feat .nav-oss-meta {
  --oss-knock: #fff;
}

.mobile-oss-sub .nav-oss-chips {
  margin-top: 0;
}

.mobile-oss-t {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-primary);
}

.mobile-oss-t--big {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.mobile-oss-list {
  display: flex;
  flex-direction: column;
}

.mobile-oss-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 4px;
  border-top: 1px solid var(--border-subtle);
  color: inherit;
  text-decoration: none;
}

.mobile-oss-link:first-child {
  border-top: 0;
}

.mobile-oss-link:hover .mobile-oss-t,
.mobile-oss-link[aria-current="page"] .mobile-oss-t {
  color: var(--accent-violet-bright);
}

.mobile-oss-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--fg-muted);
}

.mobile-oss-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Copy Section Share Link Pill ── */
.section-share-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  color: var(--fg-muted);
  font: 600 10.5px/1.2 var(--font-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  vertical-align: middle;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.section-share-btn:hover,
.section-share-btn:focus-visible {
  color: var(--fg-primary);
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
}

.section-share-btn.is-copied {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
}

/* 14/11/2026 video su misura al posto delle foto ferme (cantiere video-home-1411) */
.product-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.product-card:hover .product-card-media video { transform: scale(1.04); }
video.parallax-img { display: block; }
@media (prefers-reduced-motion: reduce) { .product-card-media video, video.parallax-img { transform: none !important; } }

/* 14/11/2026 sarto digitale (#su-misura) */
.sarto-section{padding:72px 0;background:radial-gradient(ellipse at 20% 50%,rgba(16,185,129,.08),transparent 60%)}
.sarto-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:48px;align-items:center}
.sarto-media{border-radius:18px;overflow:hidden;border:1px solid var(--border,rgba(255,255,255,.12));box-shadow:0 30px 80px rgba(0,0,0,.35);aspect-ratio:16/9}
.sarto-media video{width:100%;height:100%;object-fit:cover;display:block}
.sarto-eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#34d399;margin-bottom:14px}
.sarto-titolo{font-size:clamp(30px,3.6vw,48px);line-height:1.08;font-weight:800;margin:0 0 18px}
.sarto-p{font-size:17px;line-height:1.6;color:var(--fg-muted);margin:0 0 26px}
.sarto-storia{margin:0 0 26px;padding:16px 0 16px 20px;border-left:3px solid var(--accent-violet-bright)}
.sarto-storia p{margin:0 0 10px;font-size:16px;line-height:1.6;color:var(--fg-primary)}
.sarto-storia .sarto-garanzia{color:var(--fg-secondary)}
.sarto-storia .sarto-garanzia .font-mono{display:inline-block;margin-right:8px;padding:3px 8px;border-radius:6px;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:#4ade80;background:color-mix(in srgb,#4ade80 12%,transparent)}
.sarto-storia footer{font:500 12px/1.4 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--fg-muted)}
[data-theme="light"] .sarto-storia .sarto-garanzia .font-mono{color:#15803d;background:#dcfce7}
.sarto-cta{display:inline-block;padding:13px 22px;border-radius:12px;font-weight:700;background:#fff;color:#0b0b12;text-decoration:none}
.sarto-cta:hover{transform:translateY(-1px)}
@media (max-width:900px){.sarto-section{padding:44px 0}.sarto-grid{grid-template-columns:1fr;gap:24px}}
[data-theme="light"] .sarto-cta{background:#0b0b12;color:#fff}
[data-theme="light"] .sarto-eyebrow{color:#047857}

/* ══ UX TELEFONO 14/11 (U1 Alfred tondo · U2 Prenota corto · U4 testi ≥12px e tocco ≥44px) ══ */
@media (max-width: 900px) {
  /* U2: bottone corto «Prenota» sempre in barra (il testo corto lo imposta restyling.js) */
  .hide-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
  }
  .nav-actions { gap: 6px; }

  /* U1: Alfred = tondo 48px con la faccia, in basso a destra */
  .alfred-launcher {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .alfred-launcher > span:not(.alfred-avatar-wrap) { display: none !important; }
  .alfred-avatar-wrap,
  .alfred-avatar-wrap img { width: 46px; height: 46px; }
  /* margine in fondo alla pagina: il tondo non copre l'ultima riga / la nota privacy */
  .site-footer { padding-bottom: 108px; }

  /* U4: tocco ≥44px (area invisibile, disegno invariato) */
  .lang-switch a,
  .nav-actions > .lang-switch a { position: relative; }
  .lang-switch a::before,
  .theme-toggle::before,
  .mobile-menu-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: 44px;
    transform: translate(-50%, -50%);
  }
  .theme-toggle, .mobile-menu-btn { position: relative; }
  .nav-actions > .lang-switch a { font-size: 12px; }
  .theme-toggle { font-size: 12px; }
  .theme-toggle #themeToggleLabel { font-size: 12px; }
}
@media (max-width: 520px) {
  /* barra stretta: il tema resta come icona, così entrano «Prenota» e il menu */
  .theme-toggle #themeToggleLabel { display: none; }
  .theme-toggle { padding: 0 10px; }
  .brand-name { font-size: 15px; }
  .hide-mobile-cta { padding: 0 12px; }
}
@media (max-width: 430px) {
  /* IT/EN dell'intestazione non entra accanto a «Prenota» + menu: resta nel menu (versione grande, 44px) */
  .nav-actions > .lang-switch { display: none; }
  .lang-switch--drawer { height: 44px; }

  /* U4: testi ≥12px sulle classi note (il resto lo copre restyling.js) */
  .compliance-label,
  .gyro-kicker, .gyro-led, .gyro-btn, .gyro-core-tag, .gyro-engine-name, .gyro-engine-tok,
  .gyro-stage-hint, .gyro-badge, .gyro-flow-sub, .gyro-dest, .gyro-arrow, .gyro-detail-meta,
  .twv-kpi-pill, .product-status-pill, .product-domain-tag, .product-trace-btn,
  .capability-pill, .capability-trace-hint, .twm-step-sla, .twm-step-num, .twm-step-foot,
  .twm-cv-chip, .section-share-btn, .eyebrow-tag, .cmp-ico, .hl-hud-corner, .hl-sec-pill,
  .hl-dev-btn, .capabilities-kicker { font-size: 12px; }
  .section-share-btn { position: relative; }
  .section-share-btn::before,
  .product-trace-btn::before,
  .hl-sec-pill::before,
  .gyro-btn::before,
  .btn-ghost-link::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: 44px;
    transform: translate(-50%, -50%);
  }
  .product-trace-btn, .hl-sec-pill, .gyro-btn, .btn-ghost-link { position: relative; }
}
@media (max-width: 360px) {
  .theme-toggle #themeToggleLabel { display: none; }
}

/* 14/11/2026 home più corta (home-tendine.js, scheda home-ordine-1411) */
.twg-fold-btn{display:none}
.twg-fold-btn--sempre{display:inline-flex}
.twg-fold-btn{align-items:center;min-height:44px;margin:14px 0 6px;padding:10px 16px;border-radius:12px;border:1px solid var(--border,rgba(255,255,255,.18));background:transparent;color:inherit;font-size:13px;letter-spacing:.04em;cursor:pointer}
.twg-fold--sempre.is-chiuso{display:none}
@media (max-width:900px){
  .twg-fold-btn{display:inline-flex}
  .twg-fold.is-chiuso{display:none}
  .twg-passo{cursor:pointer}
  .twg-passo.is-chiuso p,.twg-passo.is-chiuso .twm-step-foot,.twg-passo.is-chiuso .twm-step-ico{display:none}
  .twg-passo.is-chiuso h3::after{content:" ▾";opacity:.6;font-size:.8em}
  .twg-passo.is-chiuso .twm-step-num{margin-top:4px!important}
}

/* ══ UX TELEFONO 15/11 (audit a tre): tocco ≥44px anche sui comandi rimasti piccoli ══
   Dove il disegno conta si allarga solo l'area invisibile (::before), altrimenti min-height. */
@media (max-width: 640px) {
  .btn, .sector-pill, .g3d-far-jump, #twg-profilo .p-chips button, .site-footer .footer-grid a { min-height: 44px; }
  .site-footer .footer-grid a { display: inline-flex; align-items: center; }
  .gyro-engine-pill, .twc-pillar-cta, #siti-web .vt-apri, .g3d-btn, .twg-legal-links a, main a[href^="mailto:"] { position: relative; }
  .twc-bar button::before,
  .gyro-engine-pill::before,
  .wj-wordmark-link::before,
  .twc-pillar-cta::before,
  #siti-web .vt-apri::before,
  .g3d-pin::before,
  .g3d-btn::before,
  .twg-legal-links a::before,
  main a[href^="mailto:"]::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
  /* segmenti del filmato: larghi quanto il segmento + lo spazio fra uno e l'altro, così non si accavallano */
  .twc-bar button::before { width: calc(100% + 6px); height: 44px; }
  .twg-legal-links a::before, main a[href^="mailto:"]::before { width: 100%; }
}

/* ── Tendina «Prodotti» nella testata (15/11/2026, scheda audit-sito-1511 A) ──
   Contenuto generato da tools/pagine-prodotto.py fra <!-- PRODOTTI:MENU --> e <!-- PRODOTTI:MENU-M -->. */
.nav-dropdown[data-evento="prodotti_menu_open"] { anchor-name: --prod-nav-anchor; }
.nav-dropdown.aa-nav-dd { anchor-name: --impara-nav-anchor; }
.nav-dropdown-trigger--plain {
  border-color: transparent;
  background: transparent;
}
:root[data-theme="light"] .nav-dropdown-trigger--plain {
  border-color: transparent;
  background: transparent;
}
.nav-dropdown-trigger--plain:hover,
.nav-dropdown-trigger--plain[aria-expanded="true"],
.nav-dropdown-trigger--plain.is-active {
  border-color: var(--border-medium);
  background: var(--bg-subtle);
}
.nav-dropdown-trigger--plain.is-active { color: var(--accent-violet-bright); }
:root[data-theme="light"] .nav-dropdown-trigger--plain.is-active { color: var(--accent-violet); }

.nav-oss-popover.pp-menu {
  width: min(880px, calc(100vw - 24px));
  padding: 22px;
}
@supports (position-area: block-end) {
  .nav-oss-popover.pp-menu[popover] {
    position-anchor: --prod-nav-anchor;
    position-area: block-end span-inline-end;
  }
}
.pp-menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.pp-menu-kicker {
  font: 600 12px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-violet-bright);
}
.pp-menu-note { font-size: 13px; color: var(--fg-muted); }
.pp-menu-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.pp-menu-group-t {
  display: block;
  font: 600 12px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0 10px 6px;
}
.pp-menu-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.pp-menu-item:hover,
.pp-menu-item:focus-visible,
.pp-menu-item[aria-current="page"] {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}
.pp-menu-item .twg-pmark { font-size: 16px; padding: 4px 0 2px; }
.pp-menu-riga { font-size: 13px; line-height: 1.45; color: var(--fg-secondary); }
.pp-menu-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.pp-menu-foot a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-violet-bright);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.pp-menu-foot a:hover,
.pp-menu-foot a[aria-current="page"] { text-decoration: underline; }
:root[data-theme="light"] .pp-menu-foot a { color: var(--accent-violet); }

/* menu a panino: gruppo Prodotti */
.mobile-pp-sub { gap: 6px; }
.mobile-pp-sub .pp-menu-group-t { padding: 8px 4px 2px; }
.mobile-pp-sub .pp-menu-item { padding: 8px 6px; min-height: 44px; }
.mobile-pp-sub .pp-menu-item .twg-pmark { font-size: 15px; }
.mobile-pp-sub .pp-menu-foot { margin-top: 6px; padding-top: 10px; }
.mobile-pp-sub .pp-menu-foot a { min-height: 44px; }

/* percorso «Home / …»: seconda riga fissa della testata, uguale su tutte le pagine (tools/testata.py la riempie;
   in home la aggiorna restyling.js secondo la sezione in vista). Il contenuto scende della sua altezza. */
.twg-crumbbar {
  width: 100%;
  min-height: var(--twg-bar-height, 40px);
  display: flex;
  align-items: center;
  background: var(--bg-nav);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg-primary);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .twg-crumbbar { background: var(--bg-elevated); }
}
.twg-crumbbar > .twg-container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: calc(var(--twg-bar-height, 40px) - 2px);
  padding-block: 4px;
}
.twg-crumbbar .twg-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 28px;
  overflow: hidden;
  white-space: nowrap;
  font: 600 11.5px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.twg-crumbbar .twg-crumb a,
.twg-crumbbar .twg-bar-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: var(--fg-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.twg-crumbbar .twg-bar-home svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.twg-crumbbar .twg-crumb a:hover { color: var(--accent-violet-bright); }
:root[data-theme="light"] .twg-crumbbar .twg-crumb a:hover { color: var(--accent-violet); }
.twg-crumbbar .twg-crumb a:focus-visible { outline: 2px solid var(--accent-violet-bright); outline-offset: 2px; border-radius: 6px; }
.twg-crumbbar .twg-bar-sep { opacity: 0.65; user-select: none; flex: none; margin: 0 -2px; }
.twg-crumbbar .twg-crumb [aria-current] {
  color: var(--accent-cyan);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
:root[data-theme="light"] .twg-crumbbar .twg-crumb [aria-current] { color: #0e7490; }
#mainContent:not(.is-home) { margin-top: var(--twg-bar-height, 40px); }
@media (max-width: 759px) {
  html { scroll-padding-top: 108px; }
  .twg-crumbbar .twg-crumb { font-size: 10.5px; letter-spacing: 0.05em; gap: 6px; }
}
@media (max-width: 640px) {
  .twg-crumbbar .twg-bar-home span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Voce The Wise Jam nel menu mobile */
.nav-link--jam{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.nav-link--jam svg{color:var(--accent-violet-bright);flex-shrink:0}
:root[data-theme="light"] .nav-link--jam svg{color:var(--accent-violet)}

/* ── Tendina «Impara l’IA» (23/11/2026, ai-academy-sito-2311): lezioni, strumenti e Controcorrente in una voce sola.
   Il blocco Controcorrente resta generato da osservatorio/genera-statico.py e controcorrente-menu.js (#ossNavMenu / #mobileOssSub). */
.aa-nav-trigger { border-color: transparent; background: transparent; }
:root[data-theme="light"] .aa-nav-trigger { border-color: transparent; background: transparent; }
.nav-oss-popover.aa-menu { width: min(920px, calc(100vw - 24px)); padding: 22px; }
@supports (position-area: block-end) {
  .nav-oss-popover.aa-menu[popover] { position-anchor: --impara-nav-anchor; position-area: block-end span-inline-end; position-try-fallbacks: flip-inline; }
}
.aa-menu-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; margin-top: 14px; }
.aa-menu-left .pp-menu-group-t + .aa-menu-item { margin-top: 0; }
.aa-menu-left .aa-menu-item + .pp-menu-group-t { margin-top: 12px; }
.aa-menu-t { font-size: 15px; font-weight: 700; color: var(--fg-primary); }
.aa-menu-oss { border-left: 1px solid var(--border-subtle); padding-left: 22px; }
.aa-oss-box .nav-oss-head { display: none; }
.aa-oss-box--m { padding: 0; margin: 0; }
.aa-mob-group .mobile-oss-sub .pp-menu-group-t { margin-top: 10px; }
@media (max-width: 820px) { .aa-menu-cols { grid-template-columns: 1fr; } .aa-menu-oss { border-left: 0; padding-left: 0; } }

.aa-menu-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.aa-menu-item > :not(.aa-ico) { grid-column: 2; }
.aa-ico{ grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(34,211,238,.14)); border: 1px solid var(--border-medium); color: var(--accent-violet-bright); }
.aa-ico svg, .aa-gico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aa-gico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.aa-menu-item:hover .aa-ico { color: var(--accent-cyan, #22d3ee); }
.aa-ext{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-1px;margin-left:4px;opacity:.75}

/* Percorso in sovrimpressione (23/11, richiesta Lorenzo): lo sfondo sfocato della testata copre solo la riga del menu,
   la riga del percorso è testo trasparente sopra la pagina, senza banda né riga di stacco. */
.site-header{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:0}
.site-header.is-scrolled{box-shadow:none}
.site-header > .twg-container{position:relative}
.site-header > .twg-container::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);z-index:-1;pointer-events:none;
  background:var(--bg-nav);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);border-bottom:0;transition:box-shadow .3s ease}
body:has(#mainContent.is-home) .site-header > .twg-container::before{border-bottom:1px solid var(--border-subtle)}
.site-header.is-scrolled > .twg-container::before{box-shadow:var(--shadow-card)}
/* Chi siamo: l occhiello partiva sotto la riga del percorso (prima coperto dalla banda della testata) */
#twg-profilo{padding-top:92px!important}
@media (max-width:760px){#twg-profilo{padding-top:80px!important}}

/* Notice consenso handoff Garage IA -> Contatti */
.twg-garage-notice {
  margin: 6px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--accent-cyan-soft);
  color: var(--fg-primary);
  font-size: .86rem;
}
.twg-garage-notice p { margin: 0 0 8px; }
.twg-garage-notice-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.twg-garage-notice-btn {
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: var(--bg-card-solid);
  color: var(--fg-primary);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.twg-garage-notice-btn.is-pri {
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-color: var(--cta-bg);
}
