/* =========================================================================
   "Sistema parla, brand tace" — manuale tecnico-operativo
   Palette: bianco dominante + rosso operativo + nero accent
   Font: Inter Tight (display+body) + JetBrains Mono (numeric inline only)
   ========================================================================= */

:root {
  /* Color tokens */
  --bg: oklch(99% 0.005 80);
  --bg-elev: oklch(97% 0.005 80);
  --fg: oklch(15% 0.01 280);
  --fg-muted: oklch(45% 0.01 280);
  --fg-faint: oklch(62% 0.01 280);
  --accent: oklch(56% 0.21 27);
  --accent-strong: oklch(48% 0.22 27);
  --accent-soft: oklch(96% 0.04 27);
  --hairline: oklch(88% 0.005 80);
  --hairline-strong: oklch(78% 0.005 80);

  /* Typography */
  --font-display: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Scale (clamp for fluid responsive) */
  --step--1: clamp(0.81rem, 0.78rem + 0.16vw, 0.89rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.56rem, 1.41rem + 0.74vw, 2rem);
  --step-3: clamp(1.95rem, 1.71rem + 1.21vw, 2.66rem);
  --step-4: clamp(2.44rem, 2.06rem + 1.92vw, 3.55rem);
  --step-5: clamp(3.05rem, 2.45rem + 3.02vw, 4.73rem);
  --step-6: clamp(3.81rem, 2.87rem + 4.72vw, 6.31rem);

  /* Spacing */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;
  --space-3xl: 108px;
  --space-4xl: 144px;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset / Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss03', 'ss04';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--fg);
}

h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1em; max-width: 60ch; }
strong { font-weight: 600; }

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--bg) 90%, transparent);
  border-radius: 2px;
}

/* =========================================================================
   Layout helpers
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--hairline);
  position: relative;
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-3xl); }
}
.section--hero {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  border-top: none;
}
@media (min-width: 768px) {
  .section--hero {
    padding-top: calc(var(--header-h) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  text-transform: none;
  margin-bottom: var(--space-s);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--fg-muted);
}

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.muted { color: var(--fg-muted); }
.accent { color: var(--accent); }

/* =========================================================================
   Header — signifier "● 24/7/365" invece di wordmark
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--hairline);
  z-index: 100;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .site-header {
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
  }
}
/* CRITICO: backdrop-filter sull'header creerebbe nuovo containing block che intrappola
   il drawer fixed. Solo desktop (≥768) dove il drawer non esiste più. */

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.signifier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.signifier__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.signifier__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: pulse 2s var(--ease-out) infinite;
}
.signifier__label-long { display: none; }
@media (min-width: 480px) {
  .signifier__label-long { display: inline; }
}
@keyframes pulse {
  0%   { transform: scale(0.9); opacity: 0.5; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Nav desktop */
.nav {
  display: none;
}
@media (min-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-l);
  }
  .nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    padding: var(--space-2xs) 0;
    position: relative;
    transition: color 0.2s var(--ease);
  }
  .nav a:hover,
  .nav a:focus-visible { color: var(--fg); }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .nav a:hover::after,
  .nav a:focus-visible::after { transform: scaleX(1); }
}

/* Hamburger button */
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  cursor: pointer;
  border-radius: 6px;
  color: var(--fg);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hamburger:hover { background: var(--bg-elev); }
.hamburger svg { width: 18px; height: 18px; }
.hamburger__close { display: none; }
.hamburger[aria-expanded="true"] .hamburger__open { display: none; }
.hamburger[aria-expanded="true"] .hamburger__close { display: block; }
@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* Drawer mobile */
.drawer {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  z-index: 99;
  padding: var(--space-xl) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  transform: translateY(-100vh);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  overflow-y: auto;
}
.drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.35s var(--ease-out), visibility 0s linear 0s;
}
@media (min-width: 768px) {
  .drawer { display: none; }
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.drawer__nav a {
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  padding: var(--space-s) 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  min-height: 44px;
}
.drawer__nav a::after {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-faint);
}
.drawer__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  padding-top: var(--space-l);
}
body.has-drawer-open { overflow: hidden; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero__telemetry {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--fg-muted);
  margin-bottom: var(--space-l);
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-s);
  align-items: center;
}
.hero__telemetry .sep { color: var(--hairline-strong); }
.hero__telemetry .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.hero__telemetry .live-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 80%, 100% { opacity: 1; }
  40% { opacity: 0.5; }
}

.hero__title {
  font-size: var(--step-6);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: var(--space-m);
  max-width: 16ch;
  font-weight: 700;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lede {
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--fg-muted);
  max-width: 50ch;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
}

/* CTA primary */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--bg) 25%, transparent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.cta:hover { background: var(--accent-strong); }
.cta:hover::before { transform: translateX(100%); }
.cta__arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.cta:hover .cta__arrow { transform: translateX(3px); }

.cta--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--hairline-strong);
}
.cta--ghost:hover {
  background: var(--bg-elev);
  border-color: var(--fg);
}

/* =========================================================================
   Problem section
   ========================================================================= */
.problem {
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 900px) {
  .problem {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-2xl);
    align-items: start;
  }
}
.problem__quote {
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 var(--space-m);
  color: var(--fg);
}
.problem__quote .stab {
  color: var(--accent);
}
.problem__body p {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fg-muted);
}
.problem__highlight {
  margin-top: var(--space-l);
  padding-block: var(--space-l);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--step-2);
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* =========================================================================
   How it works — operational diagram
   ========================================================================= */
.flow {
  display: grid;
  gap: var(--space-l);
  margin-top: var(--space-xl);
}
@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-m);
    position: relative;
  }
}
.step {
  position: relative;
  padding: var(--space-l);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .step:hover {
    border-color: var(--fg);
    transform: translateY(-2px);
  }
}
.step__tick {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step__tick::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
  display: inline-block;
}
.step__title {
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.step__body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 0;
}
.step__divider {
  display: none;
}
@media (min-width: 900px) {
  .step__divider {
    display: block;
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--hairline-strong);
    pointer-events: none;
  }
  .step__divider svg { width: 28px; height: 28px; display: block; }
  .step:last-child .step__divider { display: none; }
}

/* Sub-list inside step (interfono / videocamere) */
.step__cases {
  margin-top: auto;
  padding-top: var(--space-s);
  border-top: 1px dashed var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step__case {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  gap: 8px;
}
.step__case strong { color: var(--fg); font-weight: 500; }

/* Triple soccorso list (step 3) */
.step__targets {
  margin-top: auto;
  padding-top: var(--space-s);
  border-top: 1px dashed var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.step__target {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.step__target span:last-child {
  color: var(--accent);
  font-weight: 500;
}

/* =========================================================================
   Audience / Chi proteggiamo
   ========================================================================= */
.audience__banner {
  margin: var(--space-xl) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--bg-elev);
}
.audience__banner img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
@media (min-width: 900px) {
  .audience__banner { margin: var(--space-2xl) 0; }
}

.audience {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-xl);
}
@media (min-width: 768px) {
  .audience { grid-template-columns: 1fr 1fr; }
}
.audience__card {
  padding: var(--space-xl);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  background: var(--bg);
  transition: border-color 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .audience__card:hover { border-color: var(--fg); }
}
.audience__card svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}
.audience__card h3 {
  font-size: var(--step-2);
  margin: 0;
}
.audience__card p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.audience__limit {
  margin-top: var(--space-l);
  padding: var(--space-l) var(--space-xl);
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 4px;
}
@media (min-width: 600px) {
  .audience__limit {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-l);
  }
}
.audience__limit-value {
  font-family: var(--font-mono);
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--bg);
}
.audience__limit-label {
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  font-size: 14px;
  font-family: var(--font-mono);
}

/* =========================================================================
   Specs grid
   ========================================================================= */
.specs {
  display: grid;
  gap: 1px;
  margin-top: var(--space-xl);
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 600px) { .specs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(4, 1fr); } }

.spec {
  padding: var(--space-l);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-height: 200px;
}
.spec__icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.spec__title {
  font-size: var(--step-1);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.spec__body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: auto 0 0;
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing {
  margin-top: var(--space-xl);
  border: 1px solid var(--fg);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.pricing__head {
  padding: var(--space-l) var(--space-xl);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  flex-wrap: wrap;
}
.pricing__head h3 { margin: 0; font-size: var(--step-1); font-weight: 600; }
.pricing__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 100px;
}
.pricing__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
}
@media (min-width: 600px) {
  .pricing__body { grid-template-columns: 1fr 1fr; }
}
.pricing__cell {
  padding: var(--space-xl);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.pricing__value {
  font-family: var(--font-mono);
  font-size: var(--step-6);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing__value sub {
  font-size: 0.32em;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: baseline;
  font-family: var(--font-mono);
}
.pricing__label {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: var(--space-xs);
}
.pricing__foot {
  padding: var(--space-m) var(--space-xl);
  background: var(--bg-elev);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing__foot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--fg-muted);
  border-radius: 50%;
}

/* =========================================================================
   Contatti
   ========================================================================= */
.contact {
  display: grid;
  gap: var(--space-l);
  margin-top: var(--space-xl);
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--bg-elev);
  align-items: center;
  text-align: left;
}
@media (min-width: 768px) {
  .contact {
    grid-template-columns: minmax(0, 1.2fr) auto;
    padding: var(--space-3xl) var(--space-2xl);
  }
}
.contact__text h3 {
  font-size: var(--step-3);
  line-height: 1.05;
  margin: 0 0 var(--space-s);
  letter-spacing: -0.025em;
}
.contact__text p {
  color: var(--fg-muted);
  margin: 0 0 var(--space-s);
  font-size: var(--step-1);
  line-height: 1.4;
}
.contact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: var(--space-m);
}
.contact__meta .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.contact__action {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-start;
}
@media (min-width: 768px) {
  .contact__action { align-items: flex-end; }
}
.contact__action small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}
.contact__email-label {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.contact__email {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  word-break: break-word;
  user-select: all;
  line-height: 1.1;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .contact__action { text-align: right; }
}
.contact__hint {
  margin-top: var(--space-2xs);
  max-width: 30ch;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: var(--space-m);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
@media (min-width: 600px) {
  .site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-l);
    flex-wrap: wrap;
  }
}
.site-footer .signifier { font-size: 12px; }

/* =========================================================================
   Weeby badge — versione canonica 2026-05-08
   ========================================================================= */
.weeby-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, padding 0.25s ease;
  animation: weebyBadgeIn 0.6s ease 1.5s both;
}
.weeby-badge:hover {
  transform: translateY(-2px);
  padding-right: 20px;
}
.weeby-badge img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}
.weeby-badge .label { color: rgba(255, 255, 255, 0.9); }
.weeby-badge .label strong { color: #fff; font-weight: 700; }
.weeby-badge .cta-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ffb547;
  font-weight: 600;
  margin-left: -6px;
  transition: max-width 0.3s ease, opacity 0.2s ease 0.05s, margin-left 0.3s ease;
}
.weeby-badge:hover .cta-text {
  max-width: 200px;
  opacity: 1;
  margin-left: 0;
}
@keyframes weebyBadgeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .weeby-badge {
    bottom: 14px;
    right: 14px;
    padding: 6px 14px 6px 6px;
    font-size: 12px;
  }
  .weeby-badge img { width: 22px; height: 22px; border-radius: 6px; }
}

/* =========================================================================
   Reveal-on-scroll (progressive enhancement)
   Default: tutto visibile. Solo se JS sta girando, applica fade-in.
   Cosi se IntersectionObserver fallisce o l'animation lock e' lento,
   il contenuto resta leggibile.
   ========================================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
