/* ============================================================
   SERILOGO — Design System
   Session 0 · 2026-06-05
   ============================================================ */

/* Self-hosted fonts — GDPR compliant, no Google DNS leak */

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-400-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-400-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-500-latin-ext.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-500-latin.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-800-latin-ext.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-800-latin.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   TOKENS
   ============================================================ */

:root {
  /* COLORS — OKLCH / Full palette strategy (dark · green · orange) */
  --bg-dark:      oklch(15% 0.008 240);
  --bg-light:     oklch(96.5% 0.005 128);
  --bg-white:     oklch(100% 0 0);
  --accent:       oklch(75% 0.22 128);
  --accent-dim:   oklch(75% 0.22 128 / 0.5);
  --cta:          #FFD600;
  --text-dark:    oklch(28% 0.008 240);
  --text-light:   oklch(99% 0.003 128);
  --text-muted:   oklch(99% 0.003 128 / 0.55);
  --text-subtle:  oklch(28% 0.008 240 / 0.55);
  --border-dark:  oklch(99% 0 0 / 0.08);

  /* TYPOGRAPHY */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* EASING — custom curves, niente built-in generici */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* DURATIONS */
  --dur-fast: 160ms;
  --dur-med:  300ms;
  --dur-slow: 600ms;

  /* LAYOUT */
  --section-pad:  clamp(5rem, 10vw, 9rem);
  --container-w:  1440px;
  --container-sm: 640px;
  --gutter:       clamp(1.25rem, 5vw, 3rem);
}


/* ============================================================
   RESET
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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 {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

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


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.h-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 6vw, 6.5rem);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.h-sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--sm   { max-width: var(--container-sm); }
.container--wide { max-width: 1400px; }

.section { padding-block: var(--section-pad); }

.section--dark  { background: var(--bg-dark); color: var(--text-light); }
.section--light { background: var(--bg-light); }
.section--white { background: var(--bg-white); }
.section--sep-top { border-top: 1px solid var(--accent); }


/* ============================================================
   GRAIN (dark sections)
   ============================================================ */

.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  border-radius: 0;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              opacity  var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color    var(--dur-fast) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(75deg, var(--bg-dark) 50%, var(--cta) 50%);
  background-size: 240% 100%;
  background-position: right center;
  color: var(--bg-dark);
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border: 2px solid var(--cta);
  transition: background-position 0.42s cubic-bezier(0.3, 1, 0.8, 1),
              color 0.42s cubic-bezier(0.3, 1, 0.8, 1);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover,
  .btn--primary:focus-visible {
    background-position: left center;
    color: var(--cta);
    outline: none;
  }
}

.btn--outline-green {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .btn--outline-green:hover {
    background: var(--accent);
    color: var(--bg-dark);
  }
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.5rem 0;
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { color: var(--text-light); }
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}


/* ============================================================
   PILLS (trust signals)
   ============================================================ */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  white-space: nowrap;
  line-height: 1.4;
}


/* ============================================================
   COLONNE CON SEPARATORI VERDI
   ============================================================ */

.col-grid {
  display: grid;
  gap: 1px;
  background: var(--accent);
}

.col-grid--3 { grid-template-columns: repeat(3, 1fr); }
.col-grid--2 { grid-template-columns: repeat(2, 1fr); }

.col-grid__cell {
  background: var(--bg-light);
  padding: clamp(2rem, 4vw, 3rem);
}

.col-grid--white .col-grid__cell { background: var(--bg-white); }

@media (max-width: 768px) {
  .col-grid--3,
  .col-grid--2 { grid-template-columns: 1fr; }
}


/* ============================================================
   NUMERO DECORATIVO
   ============================================================ */

.deco-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.12;
  user-select: none;
  pointer-events: none;
  display: block;
}


/* ============================================================
   CORNER IDENTIFIER
   ============================================================ */

.corner-id {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.nowrap { white-space: nowrap; }

/* Su mobile il burger occupa il top-right: corner-id collide */
@media (max-width: 768px) {
  .corner-id { display: none; }
}


/* ============================================================
   FORM
   ============================================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dark);
}

.form-label .req {
  color: var(--cta);
  margin-left: 0.15rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--text-dark);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-dark);
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-textarea:-webkit-autofill,
.form-textarea:-webkit-autofill:hover,
.form-textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px oklch(100% 0 0) inset;
  -webkit-text-fill-color: var(--text-dark);
  border-color: var(--text-dark);
  transition: background-color 5000s ease-in-out 0s;
}

.form-input.is-error,
.form-textarea.is-error {
  border-color: oklch(58% 0.22 25);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-microcopy {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-top: 0.2rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.form-checkbox-label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(58% 0.22 25);
}

.form-error.is-visible { display: block; }

.form-submit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  text-align: center;
}

/* Honeypot — mai visibile */
.hp-field { display: none !important; }


/* ============================================================
   NAV — sito (tutte le pagine tranne landing)
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: padding var(--dur-med) var(--ease-out);
}

.nav__bg {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background var(--dur-med) var(--ease-out),
              backdrop-filter var(--dur-med) var(--ease-out);
  -webkit-transition: background var(--dur-med) var(--ease-out),
                      -webkit-backdrop-filter var(--dur-med) var(--ease-out);
}

.nav.is-scrolled .nav__bg {
  background: oklch(15% 0.008 240 / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav.is-scrolled { padding: 0.75rem 0; }

.nav__inner {
  position: relative;
  /* Sopra il mobile overlay (99): logo e burger-X restano cliccabili
     a menu aperto. z-index alto dentro .nav, non compete col resto. */
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Header full-width come la landing (stesso gutter di .nav-landing) */
.nav > .container {
  max-width: none;
  padding-inline: clamp(1.5rem, 5vw, 6rem);
}

.nav__logo {
  flex-shrink: 0;
  line-height: 0;
  display: block;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: oklch(99% 0.003 128 / 0.82);
  transition: color var(--dur-fast) var(--ease-out);
}

/* Voci top-level: underline draw verde (effetto firma) +
   micro fuori-registro CMY on hover. ::before perché ::after
   è il chevron del dropdown Servizi. */
.nav__inner .nav__links > li > a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25em;
}

.nav__inner .nav__links > li > a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--text-light); }
  .nav__inner .nav__links > li > a:hover::before { clip-path: inset(0 0 0 0); }
  .nav__inner .nav__links > li > a:hover {
    text-shadow:
      1.5px -0.5px 0 rgba(0, 174, 239, 0.6),
      -1.5px 0.5px 0 rgba(236, 0, 140, 0.55);
  }
}

.nav__item-sub:focus-within > a::before {
  clip-path: inset(0 0 0 0);
}

.nav__links a.is-active,
.nav__links a[aria-current="page"] {
  color: var(--text-light);
}

.nav__inner .nav__links > li > a[aria-current="page"]::before {
  clip-path: inset(0 0 0 0);
}

/* ── Dropdown Servizi (solo desktop: sotto 900px vale il hub) ── */

.nav__item-sub {
  position: relative;
}

.nav__item-sub > a::after {
  content: '▾';
  display: inline-block;
  margin-left: 0.4em;
  font-size: 0.7em;
  color: var(--accent);
  transition: transform 0.22s var(--ease-out);
}

.nav__item-sub:hover > a::after,
.nav__item-sub:focus-within > a::after {
  transform: translateY(1px) rotate(180deg);
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 1.3rem; /* bridge: copre il gap tra link e pannello */
  visibility: hidden;
  transition: visibility 0.32s;
  z-index: 50;
}

.nav__item-sub:hover .nav__sub,
.nav__item-sub:focus-within .nav__sub {
  visibility: visible;
}

/* Pannello: reveal a saracinesca (clip-path top→bottom) */
.nav__sub-list {
  list-style: none;
  min-width: 310px;
  background: var(--bg-dark);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(124, 200, 0, 0.35);
  padding: 0.5rem 0 0.4rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.32s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav__item-sub:hover .nav__sub-list,
.nav__item-sub:focus-within .nav__sub-list {
  clip-path: inset(0 0 0 0);
}

/* Voci: numero mono + nome condensed, stagger in entrata */
.nav__sub-list li {
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.nav__item-sub:hover .nav__sub-list li,
.nav__item-sub:focus-within .nav__sub-list li {
  opacity: 1;
  transform: translateY(0);
}

.nav__sub-list li:nth-child(1) { transition-delay: 0.03s; }
.nav__sub-list li:nth-child(2) { transition-delay: 0.06s; }
.nav__sub-list li:nth-child(3) { transition-delay: 0.09s; }
.nav__sub-list li:nth-child(4) { transition-delay: 0.12s; }
.nav__sub-list li:nth-child(5) { transition-delay: 0.15s; }
.nav__sub-list li:nth-child(6) { transition-delay: 0.18s; }
.nav__sub-list li:nth-child(7) { transition-delay: 0.21s; }
.nav__sub-list li:nth-child(8) { transition-delay: 0.24s; }
.nav__sub-list li:nth-child(9) { transition-delay: 0.28s; }

.nav__sub-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.55rem 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: oklch(99% 0.003 128 / 0.85);
}

/* Ink-wipe da sinistra sull'hover voce */
.nav__sub-list a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.26s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
}

.nav__sub-list a > * { position: relative; z-index: 1; }

.nav__sub-num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: color 0.2s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav__sub-list a:hover::before { clip-path: inset(0 0 0 0); }
  .nav__sub-list a:hover { color: var(--bg-dark); }
  .nav__sub-list a:hover .nav__sub-num { color: var(--bg-dark); }
}

.nav__sub-all {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.4rem;
  padding-top: 0.85rem !important;
  font-family: var(--font-mono) !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.1em !important;
  color: var(--accent) !important;
}

@media (hover: hover) and (pointer: fine) {
  .nav__sub-all:hover { color: var(--bg-dark) !important; }
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg-dark);
  background: var(--cta);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--cta);
  border-radius: 0;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover {
    background: var(--bg-dark);
    color: var(--cta);
  }
}

/* NAV LANDING: solo logo + tel */
.nav--landing .nav__links { display: none; }
.nav--landing .nav__cta   { display: none; }
.nav--landing .nav__right { gap: 0; }

.nav__tel {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  transition: opacity var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav__tel:hover { opacity: 0.75; }
}

.nav--landing .nav__tel { display: flex; }

/* HAMBURGER */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
  z-index: 200;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-light);
  transform-origin: center;
  transition: transform var(--dur-med) var(--ease-out),
              opacity  var(--dur-med) var(--ease-out);
}

.nav.is-open .nav__burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav.is-open .nav__burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav.is-open .nav__burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* MOBILE MENU OVERLAY */
.nav__mobile-menu {
  display: flex;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99;
  flex-direction: column;
  justify-content: safe center;
  align-items: flex-start;
  gap: 3rem;
  padding: 6rem clamp(1.5rem, 7vw, 3rem) 3rem;
  overflow-y: auto;
  /* Reveal a saracinesca, come il dropdown desktop */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.48s cubic-bezier(0.77, 0, 0.175, 1),
              visibility 0.48s;
}

/* Grain sull'overlay */
.nav__mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.nav.is-open .nav__mobile-menu {
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
}

.nav__mobile-menu .nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  counter-reset: navmob;
  width: 100%;
}

/* Voci: stagger in entrata (solo top-level) */
.nav__mobile-menu .nav__links > li {
  counter-increment: navmob;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  width: 100%;
}

.nav.is-open .nav__mobile-menu .nav__links > li:nth-child(1) { transition-delay: 0.16s; }
.nav.is-open .nav__mobile-menu .nav__links > li:nth-child(2) { transition-delay: 0.23s; }
.nav.is-open .nav__mobile-menu .nav__links > li:nth-child(3) { transition-delay: 0.30s; }
.nav.is-open .nav__mobile-menu .nav__links > li:nth-child(4) { transition-delay: 0.37s; }

.nav.is-open .nav__mobile-menu .nav__links > li {
  opacity: 1;
  transform: translateY(0);
}

/* Voci giganti, numerate (link top-level + toggle Servizi) */
.nav__mobile-menu .nav__links > li > a,
.nav__mobile-menu .nav__links > li > .nav__mobile-sub-toggle {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav__mobile-menu .nav__links > li > a::before,
.nav__mobile-menu .nav__links > li > .nav__mobile-sub-toggle::before {
  content: counter(navmob, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.nav__mobile-menu .nav__links > li > a[aria-current="page"],
.nav__mobile-menu .nav__links > li > .nav__mobile-sub-toggle[aria-current="page"] {
  color: var(--accent);
}

/* ── Sottomenu Servizi: accordion mobile ──────────────────── */
.nav__mobile-menu .nav__links > li > .nav__mobile-sub-toggle {
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.nav__mobile-sub-chevron {
  display: none;
  flex: none;
  width: clamp(28px, 8vw, 38px);
  height: clamp(28px, 8vw, 38px);
  color: var(--accent);
  transition: transform 0.32s var(--ease-out);
}

.js .nav__mobile-sub-chevron { display: block; }

.nav__mobile-sub.is-open .nav__mobile-sub-chevron {
  transform: rotate(180deg);
}

/* Senza JS: sottomenu visibile (degradazione). Con JS: accordion collassabile. */
.nav__mobile-sublist {
  list-style: none;
  padding-left: 2.6rem;
  margin-top: 0.9rem;
}

.js .nav__mobile-sublist {
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  transition: max-height 0.42s var(--ease-out), margin-top 0.42s var(--ease-out);
}

.js .nav__mobile-sub.is-open .nav__mobile-sublist {
  max-height: 80vh;
  margin-top: 0.9rem;
}

.nav__mobile-sublist a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 4.6vw, 1.4rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--text-light);
  padding: 0.42rem 0;
}

.nav__mobile-sublist a::before { content: none; }

.nav__mobile-sublist .nav__mobile-sub-all {
  color: var(--accent);
  margin-top: 0.3rem;
}

/* CTA in fondo, stagger per ultimo */
.nav__mobile-menu > .nav__cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out) 0.44s,
              transform 0.4s var(--ease-out) 0.44s,
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.nav.is-open .nav__mobile-menu > .nav__cta {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-menu .nav__cta {
  display: inline-flex;
  font-size: 1rem;
  padding: 0.75rem 2.5rem;
}

@media (max-width: 900px) {
  .nav__links  { display: none; }
  .nav__cta    { display: none; }
  .nav__burger { display: flex; }
  .nav--landing .nav__burger { display: none; }
}


/* ============================================================
   CTA STICKY MOBILE (landing /preventivo/ only)
   ============================================================ */

.cta-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: oklch(15% 0.008 240 / 0.97);
  border-top: 1px solid var(--border-dark);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}

.cta-sticky.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cta-sticky a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--cta);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}

@media (max-width: 900px) {
  .cta-sticky { display: block; }
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  height: 100dvh;
  height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow-x: clip;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
}

.hero__headline {
  color: var(--text-light);
}

.hero__cta {
  align-self: flex-start;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* ============================================================
   DIFFERENZIANTE
   ============================================================ */

.diff-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--accent);
  margin-block: clamp(3rem, 5vw, 5rem);
}

.diff-col {
  background: var(--bg-light);
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.diff-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 1rem;
}

.diff-col-title {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.diff-col-body {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.55;
  opacity: 0.75;
}

@media (max-width: 48rem) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TESTIMONIANZE (no-card, testo puro)
   ============================================================ */

.testi-header {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  position: relative;
  z-index: 1;
}

.testi-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.testi-list {
  list-style: none;
  border-top: 1px solid var(--accent);
  position: relative;
  z-index: 1;
}

.testi-item {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-block: clamp(2rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid oklch(99% 0.003 128 / 0.10);
}

.testi-quote {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-light);
  font-style: normal;
}

.testi-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.testi-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(70% 0.006 240);
}

.testi-stars {
  color: var(--cta);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.testi-ghost-quot {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(10rem, 18vw, 20rem);
  line-height: 0.82;
  color: var(--accent);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  max-width: 55%;
  overflow: hidden;
}

.testi-cta {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

@media (max-width: 42rem) {
  .testi-item {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  .testi-foot { align-items: flex-start; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-dark);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer__logo {
  display: block;
  line-height: 0;
  margin-bottom: 1.5rem;
}

.footer__logo img {
  height: 28px;
  width: auto;
  opacity: 0.82;
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  line-height: 2.4;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  padding-top: 0.2rem;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { color: var(--text-light); }
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: oklch(99% 0.003 128 / 0.28);
}

@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__links { align-items: flex-start; }
}


/* ============================================================
   ELEMENTI GRAFICI GLOBALI
   ============================================================ */

/* Spotlight verde ghost nel hero — radial gradient posizionato
   in basso-sx dove sta il testo. Dà profondità senza foto. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 55% at 12% 68%,
    oklch(75% 0.22 128 / 0.065) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Dot grid — sfondo per sezioni light che altrimenti sono piatte */
.section--dot {
  background-color: var(--bg-light);
  background-image: radial-gradient(
    circle,
    oklch(28% 0.008 240 / 0.05) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
}

/* Accent line corta — marcatore decorativo verde 2px,
   alternativo ai separatori full-width per sezioni specifiche */
.accent-line {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
}


/* ============================================================
   REVEAL — CSS fallback (GSAP override in animations.js)
   ============================================================ */

.js-reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

/* Stagger per figli diretti (30-80ms range) */
.js-stagger > .js-reveal:nth-child(1) { transition-delay:   0ms; }
.js-stagger > .js-reveal:nth-child(2) { transition-delay:  70ms; }
.js-stagger > .js-reveal:nth-child(3) { transition-delay: 140ms; }
.js-stagger > .js-reveal:nth-child(4) { transition-delay: 210ms; }
.js-stagger > .js-reveal:nth-child(5) { transition-delay: 280ms; }
.js-stagger > .js-reveal:nth-child(6) { transition-delay: 350ms; }

/* Image reveal clip-path — dal basso verso l'alto */
.js-img-reveal {
  clip-path: inset(0 0 100% 0);
}

.js-img-reveal.is-visible {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 700ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
  .js-img-reveal {
    clip-path: inset(0 0 0% 0);
    transition: none !important;
  }
}


/* ============================================================
   UTILITIES
   ============================================================ */

.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;
}

.text-accent { color: var(--accent); }
.text-cta    { color: var(--cta);    }
.text-light  { color: var(--text-light); }
.text-muted  { color: var(--text-muted); }


/* ── COOKIE BANNER GDPR ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-dark);
  border-top: 1px solid rgba(245,245,245,0.1);
  padding: 1.25rem clamp(1.5rem, 5vw, 6rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner__text {
  flex: 1;
  min-width: 220px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(245,245,245,0.2);
  background: transparent;
  color: rgba(255,255,255,0.55);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-btn:hover,
.cookie-btn:focus-visible {
  border-color: rgba(245,245,245,0.5);
  color: var(--text-light);
  outline: none;
}
.cookie-btn--accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #1A1A1A;
}
.cookie-btn--accept:hover,
.cookie-btn--accept:focus-visible {
  background: #8ed600;
  border-color: #8ed600;
  color: #1A1A1A;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
/* ============================================================
   UPGRADE 2026-06-11 — view transitions · duotone · cursor
============================================================ */
/* Page transitions native (MPA crossfade, progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.22s; }
::view-transition-new(root) { animation-duration: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}/* Cursor dot — quadrato verde, registro stampa. Solo pointer fine (JS-created) */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
}

/* Racla reveal — wrapper .js-racla, barra creata via JS */
.js-racla { position: relative; }
.racla-bar {
  position: absolute;
  top: 0;
  left: -6px;
  width: 6px;
  height: 100%;
  background: var(--accent);
  z-index: 2;
  pointer-events: none;
}
/* CTA press — il bottone si comporta da pressa al click */
.btn:active {
  transform: scale(0.96);
  filter: brightness(0.9);
  transition: transform 0.08s ease, filter 0.08s ease;
}

/* ── Anti parole orfane (Chrome/Edge; Safari ignora con grazia) ── */
p, li, .hero__sub, .proc__step-text {
  text-wrap: pretty;
}
h1, h2, h3, .hero__headline, .proc__title {
  text-wrap: balance;
}
