/* =========================================================================
   Ally Consulting — "Le fabbriche dei clienti"
   Bianco, titoli blu notte, foto vere dei clienti. Verde, ciano e blu notte
   del logo solo come segnale del Competence Center (pallino e filetto).
   Sistema documentato in DESIGN.md (radice del repository).
   ========================================================================= */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght.woff2") format("woff2-variations");
  font-weight: 400 900; 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: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-ext-wght.woff2") format("woff2-variations");
  font-weight: 400 900; 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;
}

:root {
  --bianco: #ffffff;
  --notte: #023750;
  --notte-scuro: #01283b;
  --antracite: #3a3a3c;
  --grigio: #56656f;          /* testo secondario: 5,9:1 su bianco */
  --linea: #dce4e9;
  --linea-forte: #b9c7cf;
  --nebbia: #f3f6f8;
  --verde: #00f234;           /* segnale, mai testo su chiaro */
  --ciano: #00d2f2;
  --verde-ink: #00752a;
  --ciano-ink: #006b7d;
  --su-notte: #c3d5df;        /* testo secondario su blu notte */
  --errore: #b3261e;

  --cc: var(--notte);
  --cc-ink: var(--notte);

  --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1312px;
  --raggio: 6px;
  --ombra: 0 18px 40px -18px rgba(2, 55, 80, .35);
  --header: 76px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
[data-cc="erp"]               { --cc: var(--verde); --cc-ink: var(--verde-ink); }
[data-cc="smart-performance"] { --cc: var(--ciano); --cc-ink: var(--ciano-ink); }
[data-cc="technology"]        { --cc: var(--notte); --cc-ink: var(--notte); }
[data-product="nexus"]        { --cc: var(--ciano); --cc-ink: var(--ciano-ink); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); scrollbar-color: var(--linea-forte) var(--nebbia); }
body { margin: 0; background: var(--bianco); color: var(--antracite); font: 400 18px/1.6 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; caret-color: var(--notte); }
::selection { background: var(--notte); color: var(--bianco); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--notte); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--notte); outline-offset: 3px; border-radius: 2px; }
.contact :focus-visible, .site-footer :focus-visible, .product-hero :focus-visible, .nexus-teaser :focus-visible { outline-color: var(--verde); }
h1, h2, h3, h4 { color: var(--notte); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.3vw, 78px); letter-spacing: -.032em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.4vw, 50px); }
h3 { font-size: clamp(21px, 1.6vw, 25px); letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
.lead { font-size: clamp(19px, 1.45vw, 21px); line-height: 1.55; }
.muted { color: var(--grigio); }
.num, .numbers dd, .facts dd, .results dd { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--notte); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s7); }
.section + .section:not(.section--nebbia) { border-top: 1px solid var(--linea); }
.section--nebbia { background: var(--nebbia); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section-foot { margin-top: var(--s5); }
.hero + .section:not(.section--nebbia) { padding-top: clamp(32px, 4vw, 64px); }

/* Intestazione di sezione: titolo a sinistra, testo e link a destra */
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); align-items: end; margin-bottom: clamp(40px, 4.5vw, 64px); }
.section-head h2 { grid-column: 1 / span 7; }
.section-head__side, .section-head > .prose { grid-column: 9 / span 4; display: grid; gap: var(--s2); justify-items: start; }
.section-head__side p { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.55; }
.section-head--top { align-items: start; }
.section-head--top > .prose { grid-column: 8 / span 5; }

/* ---------- Pallino del Competence Center ---------- */
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cc); vertical-align: .05em; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--grigio); }

/* ---------- Pulsanti e link ---------- */
.btn {
  --bg: var(--notte); --fg: var(--bianco); --pt: var(--verde);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px 0 22px; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 600 18px/1.1 var(--font); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pt); flex: none; transition: transform .35s var(--ease); }
.btn:hover { --bg: var(--notte-scuro); box-shadow: var(--ombra); }
.btn:hover::before { transform: scale(1.5); }
.btn--primary, .btn--dark { --bg: var(--notte); }
.btn--line, .btn--ghost { --bg: transparent; --fg: var(--notte); border-color: var(--notte); padding-inline: 24px; }
.btn--line::before, .btn--ghost::before { display: none; }
.btn--line:hover, .btn--ghost:hover { --bg: var(--nebbia); box-shadow: none; }
.btn--bianco { --bg: var(--bianco); --fg: var(--notte); }
.btn--bianco:hover { --bg: #e6eef2; }
.product-hero .btn--line, .nexus-teaser .btn--line, .contact .btn--line { --fg: #fff; border-color: rgba(255, 255, 255, .45); }
.product-hero .btn--line:hover, .nexus-teaser .btn--line:hover { --bg: rgba(255, 255, 255, .08); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow, .link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--notte); }
.link-more::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow svg, .icon-arrow { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.link-arrow:hover svg, .link-more:hover::after { transform: translateX(4px); }
.link-arrow:hover span, .link-more:hover { text-decoration: underline; text-underline-offset: .22em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bianco); border-bottom: 1px solid var(--linea); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s4); height: var(--header); }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; }
.nav-wrap { display: flex; align-items: center; flex: 1; gap: var(--s2); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav--right { margin-left: auto; }
.nav > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; white-space: nowrap;
  font: 500 16px/1 var(--font); color: var(--antracite); text-decoration: none; background: none; border: 0; border-radius: 999px; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--nebbia); color: var(--notte); }
.nav-link[aria-current="page"], .nav-link[data-current="true"] { color: var(--notte); box-shadow: inset 0 -2px 0 var(--notte); border-radius: 0; }
.nav-link .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { margin-left: 8px; padding: 0 20px; border: 1.5px solid var(--notte); color: var(--notte); font-weight: 600; }
.nav-cta:hover { background: var(--notte); color: #fff; }

.mega {
  position: absolute; top: calc(100% + 16px); left: -12px; z-index: 5; display: none;
  width: min(720px, 86vw); grid-template-columns: 1.15fr 1fr 1fr; gap: var(--s4);
  padding: var(--s4); background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(2, 55, 80, .3), 0 0 0 1px var(--linea);
}
.mega--small { width: 240px; grid-template-columns: 1fr; padding: 16px 20px; }
.nav--right .mega { left: auto; right: -12px; }
.nav-link[aria-expanded="true"] + .mega { display: grid; }
.mega h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.mega h3 a { color: inherit; text-decoration: none; }
.mega h3 a:hover { text-decoration: underline; }
.mega p { font-size: 16px; color: var(--grigio); margin-top: 8px; line-height: 1.5; }
.mega h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); font-weight: 600; margin-bottom: 8px; }
.mega li a { display: block; padding: 5px 0; font-size: 16px; text-decoration: none; }
.mega li a:hover { text-decoration: underline; }
.mega .link-arrow { margin-top: 16px; font-size: 16px; }

.menu-toggle { display: none; margin-left: auto; height: 44px; padding: 0 16px; gap: 10px; align-items: center; border-radius: 999px; border: 1.5px solid var(--notte); background: none; color: var(--notte); font: 600 16px var(--font); cursor: pointer; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .15s ease; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: clamp(48px, 5vw, 72px); }
.hero__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
.hero__main { grid-column: 1 / span 7; display: grid; gap: 18px; align-content: start; }
.hero__head--solo .hero__main { grid-column: 1 / span 10; }
.hero__aside { grid-column: 9 / span 4; display: grid; gap: var(--s3); justify-items: start; padding-top: .45em; }
.hero__aside .lead { font-size: 20px; }
.hero--compact h1 { font-size: clamp(36px, 4.2vw, 62px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; color: var(--grigio); }
.hero-meta a { color: var(--grigio); }
.hero-meta .cat { color: var(--notte); font-weight: 600; }
.hero-phone { font-size: 16px; color: var(--grigio); }
.hero-phone a { font-weight: 600; }
.hero-for { font-size: 16px; color: var(--su-notte); }
.breadcrumb { font-size: 15px; color: var(--grigio); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--linea-forte); }
.breadcrumb a { color: var(--grigio); }
.hero:has(.reel) .hero__head, .hero:has(.proof) .hero__head { margin-bottom: clamp(32px, 3.4vw, 48px); }

/* Reel delle storie: la fabbrica del cliente, con la sua didascalia */
.reel { position: relative; border-radius: var(--raggio); overflow: hidden; background: var(--notte); height: clamp(320px, 50vh, 600px); isolation: isolate; }
.reel__frame { position: absolute; inset: 0; }
.reel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.reel__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
.reel__slide.is-active { opacity: 1; z-index: 1; }
.reel__slide.is-active img { transform: scale(1); }
.reel--static .reel__slide { opacity: 1; }
.reel--static .reel__slide img { transform: none; }
.reel__caption { position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 2; width: min(500px, calc(100% - 32px)); padding: 20px 24px 22px; background: #fff; border-radius: 4px; box-shadow: 0 14px 30px -12px rgba(1, 40, 59, .45); }
.reel__caption a { display: block; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; text-decoration: none; color: var(--notte); }
.reel__caption a:hover { text-decoration: underline; }
.reel__caption .tag { display: flex; margin-top: 8px; font-size: 14px; }
.reel__text { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.reel__caption.is-changing .reel__text { opacity: 0; transform: translateY(8px); }
.reel__controls { position: absolute; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 2; display: flex; align-items: center; gap: 6px; }
.reel__dot { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.reel__dot::before { content: ""; width: 36px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .55); transition: background .3s; }
.reel__dot[aria-current="true"]::before, .reel__dot:hover::before { background: #fff; }
.reel__pause { width: 44px; height: 44px; display: grid; place-items: center; margin-left: 6px; border-radius: 50%; border: 0; background: rgba(1, 40, 59, .55); color: #fff; cursor: pointer; }
.reel__pause:hover { background: rgba(1, 40, 59, .8); }
.reel__pause .i-play, .reel.is-paused .reel__pause .i-pause { display: none; }
.reel.is-paused .reel__pause .i-play { display: block; }

.proof { display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s5); align-items: baseline; padding-block: var(--s4) 0; }
.proof__label { font-size: 15px; color: var(--grigio); }
.proof ul { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.proof li a { font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; color: var(--notte); }
.proof li a:hover { text-decoration: underline; }
.facts-line { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--linea); font-size: 16px; color: var(--grigio); }
.facts-line strong { color: var(--notte); font-weight: 600; }

/* ---------- Home: metodo ---------- */
.method { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); }
.method__intro { grid-column: 1 / span 5; display: grid; gap: var(--s3); align-content: start; position: sticky; top: calc(var(--header) + 40px); }
.quote-text { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.35; letter-spacing: -.015em; color: var(--notte); font-weight: 500; }
.method__intro em { font-style: normal; color: var(--notte); font-weight: 600; }
.method__steps { grid-column: 7 / span 6; counter-reset: step; }
.method__steps li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s2); padding-block: var(--s4); border-top: 1px solid var(--linea); }
.method__steps li:last-child { border-bottom: 1px solid var(--linea); }
.method__steps li::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--notte); font-size: 15px; font-weight: 600; color: var(--notte); font-variant-numeric: tabular-nums; }
.method__steps h3 { margin-bottom: 8px; }

/* ---------- Indice a righe (Competence Center, soluzioni) ---------- */
.cc-index { border-top: 1.5px solid var(--notte); }
.cc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); align-items: start; padding-block: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--linea); }
.cc-row__name { grid-column: 1 / span 4; display: grid; gap: 10px; }
.cc-row[data-cc] .cc-row__name::before { content: ""; width: 56px; height: 2px; background: var(--cc); margin-bottom: 6px; }
.cc-row__name h3 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.025em; line-height: 1.12; display: flex; align-items: center; gap: 14px; }
.cc-row__name h3 .dot { width: 14px; height: 14px; }
.cc-row__name h3 a { color: inherit; text-decoration: none; }
.cc-row__name h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.cc-row__name p { color: var(--grigio); font-size: 17px; }
.cc-row__text { grid-column: 5 / span 4; }
.cc-row__links { grid-column: 10 / span 3; }
.cc-row__links li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linea); font-size: 17px; text-decoration: none; }
.cc-row__links li a:hover { text-decoration: underline; }
.cc-row__links li a:hover .icon-arrow { transform: translateX(4px); }

/* ---------- Sfide ---------- */
.sfide-groups { columns: 3 280px; column-gap: var(--s5); }
.sfide-groups .sfide-group { break-inside: avoid; margin-bottom: var(--s5); }
.sfide-group > h3 { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--notte); font-size: 22px; }
.sfide-group + .sfide-group { margin-top: var(--s5); }
.sfide-groups .sfide-group + .sfide-group { margin-top: 0; }
.sfide-list li a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--linea); text-decoration: none; color: var(--antracite); }
.sfida-title { color: var(--notte); font-size: 20px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.sfida-desc { grid-column: 1; font-size: 16px; line-height: 1.5; color: var(--grigio); }
.sfide-list .icon-arrow { grid-column: 2; grid-row: 1; margin-top: 4px; color: var(--cc-ink); }
.sfide-list a:hover .sfida-title { text-decoration: underline; text-underline-offset: .2em; }
.sfide-list a:hover .icon-arrow { transform: translateX(4px); }
.sfide-group--single .sfide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s5); border-top: 1.5px solid var(--notte); }
.sfide-group--single .sfide-list li a { height: 100%; }

/* ---------- Success stories ---------- */
.story-featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); align-items: stretch; }
.story-featured > figure { grid-column: 1 / span 7; border-radius: var(--raggio); overflow: hidden; min-height: 420px; }
.story-featured > figure img { width: 100%; height: 100%; object-fit: cover; }
.story-featured > div { grid-column: 8 / span 5; display: grid; gap: var(--s3); align-content: start; padding: var(--s2) 0 0 var(--s3); }
.story-featured h3 { font-size: clamp(26px, 2.3vw, 34px); letter-spacing: -.022em; line-height: 1.15; }
.story-featured h3 a { color: inherit; text-decoration: none; }
.story-featured h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.story-meta { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--grigio); }
.story-featured .story-meta { margin-top: -10px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--linea); }
.facts > div { padding: 14px 16px 14px 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--linea); }
.facts dt { font-size: 14px; color: var(--grigio); }
.facts dd { font-size: 20px; font-weight: 600; color: var(--notte); letter-spacing: -.01em; }
.story-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); margin-top: clamp(40px, 4vw, 56px); }
.section-head + .story-row { margin-top: 0; }
.story-row a { display: grid; gap: 12px; text-decoration: none; color: var(--antracite); }
.story-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--nebbia); transition: transform .8s var(--ease); }
.story-row li a > img { clip-path: inset(0 round 4px); }
.story-row a:hover img { transform: scale(1.03); }
.story-row h3 { font-size: 19px; letter-spacing: -.01em; }
.story-row a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.story-row .story-meta { font-size: 15px; font-weight: 400; align-items: baseline; }

/* ---------- Persone e numeri (home) ---------- */
.people-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); }
.people-block__intro { grid-column: 1 / span 4; display: grid; gap: var(--s3); align-content: start; justify-items: start; }
.roles { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
.roles li { padding: 20px 0 22px; border-top: 1px solid var(--linea); }
.roles h3 { font-size: 20px; }
.role { font-size: 15px; color: var(--grigio); margin: 2px 0 8px; }
.roles li > p:last-child { font-size: 16px; line-height: 1.55; }
.numbers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--notte); margin-top: clamp(48px, 5vw, 72px); }
.numbers > div { display: flex; flex-direction: column; padding: 20px 20px 0 0; }
.numbers > div + div { padding-left: 20px; border-left: 1px solid var(--linea); }
.numbers dd { order: -1; font-size: clamp(36px, 3.4vw, 52px); font-weight: 600; color: var(--notte); letter-spacing: -.03em; line-height: 1; }
.numbers dt { font-size: 16px; color: var(--grigio); margin-top: 8px; }
.section--numbers .numbers { margin-top: var(--s4); }

/* ---------- Articoli ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.posts a { display: grid; gap: 14px; align-content: start; text-decoration: none; color: var(--antracite); }
.posts img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--nebbia); }
.posts h2, .posts h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.012em; }
.posts a:hover h2, .posts a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--grigio); }
.post-meta .cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* ---------- Banda di contatto ---------- */
.contact { background: var(--notte); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); padding-block: var(--s7); }
.contact__intro { grid-column: 1 / span 5; display: grid; gap: var(--s3); align-content: start; justify-items: start; }
.contact h2 { color: #fff; }
.contact__intro > p { color: var(--su-notte); font-size: 20px; }
.contact__direct { display: grid; gap: 4px; width: 100%; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .18); }
.contact__direct span { font-size: 15px; color: var(--su-notte); }
.contact__direct a { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.contact__direct a:hover { text-decoration: underline; }
.contact__direct a + span { margin-top: 12px; }
.contact__form { grid-column: 7 / span 6; }

/* ---------- Form (Contact Form 7) ---------- */
.form-panel { min-width: 0; background: #fff; color: var(--antracite); padding: clamp(24px, 3vw, 40px); border-radius: 14px; border: 1px solid var(--linea); }
.form-panel > h2 { font-size: clamp(24px, 2vw, 30px); margin-bottom: 8px; }
.form-panel > p { margin-bottom: var(--s3); color: var(--grigio); }
.contact .form-panel { border: 0; }
.wpcf7 form { display: grid; gap: 18px; }
.wpcf7 form > p { margin: 0; }
.wpcf7 label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--notte); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="file"], .wpcf7 select, .wpcf7 textarea {
  width: 100%; max-width: 100%; min-height: 52px; padding: 13px 14px; border: 1.5px solid var(--linea-forte); border-radius: 8px;
  font: 400 17px/1.4 var(--font); color: var(--antracite); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { height: 140px; min-height: 120px; resize: vertical; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: #5c6b74; }
.wpcf7 input:hover, .wpcf7 textarea:hover, .wpcf7 select:hover { border-color: var(--grigio); }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--notte); box-shadow: 0 0 0 3px rgba(0, 210, 242, .35); }
.wpcf7 .wpcf7-not-valid { border-color: var(--errore); }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: var(--errore); font-size: 14px; font-weight: 400; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--antracite); }
.wpcf7 input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--notte); flex: none; }
.wpcf7 input[type="submit"] {
  justify-self: start; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--notte); color: #fff; font: 600 18px var(--font); transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.wpcf7 input[type="submit"]:hover { background: var(--notte-scuro); box-shadow: var(--ombra); }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 .wpcf7-response-output { margin: 0 !important; padding: 14px 16px !important; border-radius: 8px; border-width: 1.5px !important; font-size: 16px; }
.wpcf7 form.sent .wpcf7-response-output { background: #e7f8ec; border-color: #2e8b4a !important; color: #0d4d22; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: #fdecea; border-color: var(--errore) !important; color: #6e1610; }

/* ---------- Footer ---------- */
.site-footer { background: var(--notte-scuro); color: var(--su-notte); font-size: 16px; }
.site-footer .wrap { padding-block: var(--s6) var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-claim { color: #fff; font-size: 24px; line-height: 1.35; letter-spacing: -.015em; font-weight: 500; max-width: 15em; }
.footer-claim a { color: #fff; }
.site-footer h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.site-footer h2 a { color: inherit; text-decoration: none; }
.site-footer h2 a:hover { text-decoration: underline; }
.site-footer [data-cc="technology"] .dot { background: #fff; }
.site-footer li a { display: inline-block; padding: 4px 0; color: var(--su-notte); text-decoration: none; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.newsletter { margin-top: var(--s4); max-width: 360px; }
.newsletter h2 { margin-bottom: 10px; }
.newsletter .wpcf7 form { gap: 12px; }
.newsletter .wpcf7 label { color: var(--su-notte); font-weight: 500; }
.newsletter .wpcf7 input[type="email"] { min-height: 48px; border-color: transparent; }
.newsletter .wpcf7 .wpcf7-acceptance label { color: var(--su-notte); font-size: 14px; }
.newsletter .wpcf7 .wpcf7-acceptance a { color: #fff; }
.newsletter .wpcf7 input[type="submit"] { min-height: 48px; background: #fff; color: var(--notte); }
.newsletter .wpcf7 input[type="submit"]:hover { background: #e6eef2; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: var(--s4); font-size: 14px; }
.footer-legal .company { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-legal a { color: var(--su-notte); }
.footer-legal a:hover { color: #fff; }
.footer-legal__end { display: flex; align-items: center; gap: var(--s3); }
.social { display: flex; gap: 4px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.social a:hover { background: rgba(255, 255, 255, .1); }
.social svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Pagine interne ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); }
.intro-grid > div { grid-column: 1 / span 7; display: grid; gap: var(--s3); }
.intro-grid > aside { grid-column: 9 / span 4; padding-left: 20px; border-left: 1px solid var(--notte); align-self: start; }
.intro-grid > aside p { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.35; color: var(--notte); font-weight: 500; letter-spacing: -.015em; }

.solutions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s5) var(--s4); }
.solutions a { display: grid; gap: 12px; text-decoration: none; color: var(--antracite); }
.solutions img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.solutions h3 { font-size: 21px; }

.processes { columns: 3 220px; column-gap: var(--s5); border-top: 1.5px solid var(--notte); }
.processes li { break-inside: avoid; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 19px; font-weight: 500; color: var(--notte); }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s4); border-top: 1.5px solid var(--notte); }
.team li { padding: 20px 0 22px; border-bottom: 1px solid var(--linea); display: grid; gap: 4px; align-content: start; }
.team h3 { font-size: 21px; }
.team li > p:not(.role) { font-size: 16px; line-height: 1.55; }
.team details { margin-top: 8px; }
.team summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 600; color: var(--notte); font-size: 16px; }
.team summary::-webkit-details-marker { display: none; }
.team summary .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.team details[open] summary .chev { transform: rotate(180deg); }
.team details p { margin-top: 10px; font-size: 16px; line-height: 1.6; }

/* Articolo con colonna laterale */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.article-layout--form { grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); }
.article-cover { margin-bottom: var(--s5); }
.article-cover img { width: 100%; border-radius: var(--raggio); }
.article-aside { display: grid; gap: var(--s4); position: sticky; top: calc(var(--header) + 32px); }
.aside-box, .aside-toc, .client-card { border-top: 1.5px solid var(--notte); padding-top: 18px; display: grid; gap: 10px; justify-items: start; }
.aside-box[data-cc] { border-top-color: var(--cc); border-top-width: 2px; }
.aside-box h2, .aside-toc h2, .client-card h2 { font-size: 20px; letter-spacing: -.012em; }
.aside-box p { font-size: 16px; line-height: 1.55; }
.aside-box .sfide-list { width: 100%; }
.aside-box .sfide-list li a { padding: 10px 0; }
.aside-box .sfida-title { font-size: 17px; }
.toc { display: grid; gap: 0; width: 100%; counter-reset: none; }
.toc a { display: block; padding: 8px 0 8px 14px; border-left: 1px solid var(--linea); text-decoration: none; color: var(--grigio); font-size: 16px; line-height: 1.4; }
.toc a:hover { color: var(--notte); border-left-color: var(--notte); }
.client-card dl { width: 100%; }
.client-card dl > div { padding: 12px 0; border-bottom: 1px solid var(--linea); }
.client-card dt { font-size: 14px; color: var(--grigio); }
.client-card dd { font-size: 18px; font-weight: 600; color: var(--notte); }
.client-card dd ul { display: grid; gap: 2px; }
.client-card dd a { text-decoration: none; }
.client-card dd a:hover { text-decoration: underline; }

/* Testo editoriale */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.2vw, 34px); margin-top: 2.2em; }
.prose h3 { font-size: 22px; margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--notte); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ol > li::marker { color: var(--notte); font-weight: 600; }
.prose a { color: var(--notte); }
.prose blockquote { padding-left: 20px; border-left: 1px solid var(--notte); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.4; color: var(--notte); font-weight: 500; }
.prose img, .prose figure { border-radius: var(--raggio); }
.prose figure { margin-block: 2em; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--grigio); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.prose th { color: var(--notte); font-weight: 600; border-bottom: 1.5px solid var(--notte); }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--raggio); }
.prose strong { color: var(--notte); font-weight: 600; }
.wp-caption, .wp-block-image { max-width: 100%; }
.update-note { margin-bottom: var(--s4); padding: 14px 18px; border: 1px solid var(--linea); border-left: 1px solid var(--notte); border-radius: 0 8px 8px 0; background: var(--nebbia); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); border-top: 1.5px solid var(--notte); }
.results > div { display: flex; flex-direction: column; padding-top: 16px; }
.results dd { order: -1; font-size: clamp(36px, 3vw, 48px); font-weight: 600; color: var(--notte); letter-spacing: -.03em; line-height: 1; }
.results dt { margin-top: 8px; font-size: 16px; }
.quote { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--linea); }
.quote p { font-size: clamp(22px, 2vw, 30px); line-height: 1.35; color: var(--notte); font-weight: 500; letter-spacing: -.015em; max-width: 34ch; }
.quote footer { margin-top: 14px; color: var(--grigio); }

/* Valori e liste a filetti */
.manifesto { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); }
.manifesto > :first-child { grid-column: 1 / span 7; }
.manifesto > .values { grid-column: 9 / span 4; }
.values { display: grid; gap: 0; align-content: start; border-top: 1.5px solid var(--notte); }
.values > div { padding: 18px 0; border-bottom: 1px solid var(--linea); }
.values dt { font-size: 20px; font-weight: 600; color: var(--notte); letter-spacing: -.012em; }
.values dd { margin-top: 4px; font-size: 16px; line-height: 1.55; }
.values--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s4); }
.values--grid > div { border-bottom: 0; }
.values--grid > div + div { padding-left: var(--s3); border-left: 1px solid var(--linea); }

/* Filtri e paginazione */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s5); }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--linea-forte); border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--antracite); }
.filters a:hover { border-color: var(--notte); color: var(--notte); }
.filters a[aria-current="page"] { background: var(--notte); border-color: var(--notte); color: #fff; }
.pagination { margin-top: var(--s6); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--linea-forte); border-radius: 999px; text-decoration: none; color: var(--notte); font-variant-numeric: tabular-nums; }
.pagination a.page-numbers:hover { border-color: var(--notte); }
.pagination .page-numbers.current { background: var(--notte); border-color: var(--notte); color: #fff; }
.pagination .dots { border: 0; }

/* Rassegna stampa */
.press-list { border-top: 1.5px solid var(--notte); }
.press-list li { border-bottom: 1px solid var(--linea); }
.press-list a { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px var(--s5); padding: 22px 0; text-decoration: none; color: var(--antracite); }
.press-outlet { font-size: 15px; color: var(--grigio); }
.press-outlet strong { display: block; color: var(--notte); font-weight: 600; font-size: 17px; }
.press-list h2 { font-size: 22px; margin-bottom: 6px; line-height: 1.25; }
.press-list p { font-size: 16px; }
.press-list a:hover h2 { text-decoration: underline; text-underline-offset: .2em; }

/* Contatti, lavora con noi */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.office { border-top: 1.5px solid var(--notte); padding-top: 18px; display: grid; gap: 4px; align-content: start; }
.office h2 { font-size: 22px; margin-bottom: 6px; }
.jobs { display: grid; border-top: 1.5px solid var(--notte); margin-top: var(--s3); }
.jobs li { padding: 22px 0; border-bottom: 1px solid var(--linea); display: grid; gap: 6px; }
.job-location { font-size: 15px; color: var(--grigio); }
.empty { padding: var(--s4); background: var(--nebbia); border-radius: 8px; }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input[type="search"] { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--linea-forte); border-radius: 999px; font: 400 17px var(--font); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--notte); box-shadow: 0 0 0 3px rgba(0, 210, 242, .35); }
.search-form button, .search-form input[type="submit"] { min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--notte); color: #fff; font: 600 17px var(--font); cursor: pointer; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s2); }
.partners li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 20px; background: #fff; border-radius: 8px; border: 1px solid var(--linea); }
.partners img { max-height: 56px; width: auto; object-fit: contain; }

/* Persone e settori */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: var(--s4); border-top: 1.5px solid var(--notte); }
.people li { border-bottom: 1px solid var(--linea); }
.people a { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 18px 0; text-decoration: none; color: inherit; }
.person-initials { grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--nebbia); color: var(--notte); font-weight: 600; box-shadow: inset 0 0 0 2px var(--cc, var(--linea)); }
.person-name { font-size: 19px; font-weight: 600; color: var(--notte); }
.people a:hover .person-name { text-decoration: underline; }
.person-role { font-size: 15px; color: var(--grigio); }
.person-photo { max-width: 280px; margin-bottom: var(--s4); }
.person-photo img { border-radius: var(--raggio); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { padding: 4px 12px; border: 1px solid var(--linea-forte); border-radius: 999px; font-size: 15px; }
.byline-people { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s5) var(--s4); }
.sectors a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; color: inherit; }
.sectors img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.sectors h2 { font-size: 23px; }
.sectors p { font-size: 16px; }
.sectors .sector-clients { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--linea); color: var(--grigio); font-size: 14px; }
.sectors a:hover h2 { text-decoration: underline; }

/* Sezioni divise: titolo a sinistra, elenco a destra */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); }
.split-intro { grid-column: 1 / span 4; display: grid; gap: 12px; align-content: start; }
.split-intro p { color: var(--grigio); }
.split > :last-child { grid-column: 6 / span 7; }
.reparti { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s5); border-top: 1.5px solid var(--notte); }
.reparti > div { padding: 16px 0 18px; border-bottom: 1px solid var(--linea); }
.reparti dt { font-size: 19px; font-weight: 600; color: var(--notte); }
.reparti dt a { color: inherit; text-decoration: none; }
.reparti dt a:hover { text-decoration: underline; }
.reparti dd { margin-top: 4px; font-size: 16px; line-height: 1.55; }
.steps { counter-reset: step; border-top: 1.5px solid var(--notte); }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.steps li::before { counter-increment: step; content: counter(step); grid-row: 1 / span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--notte); font-size: 15px; font-weight: 600; color: var(--notte); }
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p { font-size: 16px; }

/* FAQ */
.faq { max-width: 880px; border-top: 1.5px solid var(--notte); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 20px; font-weight: 600; color: var(--notte); letter-spacing: -.012em; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.faq details > div { padding-bottom: 22px; }

/* ---------- Nexus ---------- */
.product-logo { height: 40px; width: auto; }
.product-hero, .nexus-teaser { background: var(--notte-scuro); color: #fff; overflow: hidden; }
.product-hero { padding: 0; }
.product-hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); padding-top: clamp(48px, 6vw, 88px); }
.product-hero .wrap > div { grid-column: 1 / span 6; display: grid; gap: var(--s3); align-content: start; justify-items: start; padding-bottom: var(--s5); }
.product-hero h1 { color: #fff; font-size: clamp(38px, 4.4vw, 66px); }
.product-hero .lead { color: var(--su-notte); }
.product-hero .screen { grid-column: 7 / span 6; align-self: end; margin-right: calc(-1 * var(--gutter)); }
.product-hero .screen-frame { border-radius: 12px 0 0 0; border-right: 0; border-bottom: 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15px; color: var(--su-notte); }
.hero-proof strong { margin-right: 6px; color: #fff; font-size: 17px; font-weight: 600; }
.screen { display: grid; gap: 10px; }
.screen-frame { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--linea); background: #fff; box-shadow: var(--ombra); }
.screen-frame img { width: 100%; height: auto; }
a.screen-frame { cursor: zoom-in; }
.screen figcaption { font-size: 14px; line-height: 1.5; color: var(--grigio); max-width: 70ch; }
/* Schermate con la barra laterale del portale: la barra resta fuori (voci di menu non pubblicabili) */
.crop-sidebar img { width: 117.5%; max-width: none; margin-left: -17.5%; }
.features { display: grid; }
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--linea); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature-text { grid-column: 1 / span 5; display: grid; gap: 14px; }
.feature-text h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.022em; line-height: 1.2; }
.feature-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: -6px; font-size: 15px; font-weight: 500; color: var(--grigio); }
.feature-text ul { display: grid; gap: 8px; }
.feature-text li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; }
.feature-text li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--notte); }
.feature .screen { grid-column: 7 / span 6; }
.feature:nth-child(even) .feature-text { grid-column: 8 / span 5; grid-row: 1; }
.feature:nth-child(even) .screen { grid-column: 1 / span 6; grid-row: 1; }
.demo-note { margin-top: var(--s4); max-width: 80ch; font-size: 14px; color: var(--grigio); }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); align-items: start; }
.phone { display: grid; gap: 14px; justify-items: center; text-align: center; }
.phone-frame { width: min(240px, 100%); padding: 6px; border-radius: 28px; background: var(--notte-scuro); box-shadow: var(--ombra); }
.phone-frame img { border-radius: 22px; }
.phone figcaption { font-size: 16px; max-width: 26ch; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s4); }
.principles > div { padding: 20px 0 24px; border-top: 1px solid var(--linea); }
.principles dt { font-size: 20px; font-weight: 600; color: var(--notte); letter-spacing: -.012em; margin-bottom: 8px; }
.principles dd { font-size: 16px; line-height: 1.55; }
.section--navy { background: var(--nebbia); }
.nexus-teaser .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); align-items: center; padding-block: clamp(56px, 6vw, 96px); }
.nexus-teaser .wrap > div { grid-column: 1 / span 5; display: grid; gap: var(--s3); justify-items: start; }
.nexus-teaser h2 { color: #fff; }
.nexus-teaser p { color: var(--su-notte); font-size: 19px; }
.nexus-teaser .screen-frame { grid-column: 7 / span 6; border-color: rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }

/* Landing (assessment, demo) */
.landing-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: var(--s3) clamp(40px, 6vw, 96px); align-items: start; }
.landing-copy { display: grid; gap: var(--s3); align-content: start; justify-items: start; }
.landing-hero h1 { font-size: clamp(36px, 4.2vw, 62px); }
.landing-form { box-shadow: var(--ombra); }
.landing-form-intro { font-size: 20px; font-weight: 600; color: var(--notte); margin-bottom: var(--s2); }
.landing-body > .section:nth-child(even) { background: var(--nebbia); }
.landing-body > .section + .section { border-top: 0; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: var(--s4); border-top: 1.5px solid var(--notte); }
.cards-3 li { padding: 20px 0 22px; border-bottom: 1px solid var(--linea); }
.cards-3 h3 { font-size: 21px; margin-bottom: 6px; }
.cards-3 p { font-size: 16px; }
.checklist { display: grid; gap: 12px; max-width: 70ch; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--notte); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23023750' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: var(--s4); border-top: 1.5px solid var(--notte); }
.usecases li { padding: 20px 0; border-bottom: 1px solid var(--linea); }
.usecases h3 { font-size: 20px; margin-bottom: 6px; }
.usecases p { font-size: 16px; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); counter-reset: flow; }
.flow li { counter-increment: flow; border-top: 1.5px solid var(--notte); padding-top: 18px; }
.flow li::before { content: counter(flow); display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--grigio); }
.flow h3 { font-size: 21px; margin-bottom: 8px; }
.flow p { font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding-inline: 9px; font-size: 15px; }
  .site-header .wrap { gap: var(--s3); }
}
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .nav-wrap { display: none; }
  .site-header.is-open .nav-wrap {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: var(--header) 0 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; padding: 8px var(--gutter) 40px;
  }
  .site-header.is-open .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.is-open .nav--right { margin-left: 0; }
  .site-header.is-open .nav-link { width: 100%; height: 56px; justify-content: space-between; padding: 0 4px; font-size: 19px; border-radius: 0; border-bottom: 1px solid var(--linea); box-shadow: none; }
  .site-header.is-open .nav-link[aria-current="page"] { font-weight: 600; }
  .site-header.is-open .nav-cta { justify-content: center; margin: 20px 0 0; border: 1.5px solid var(--notte); border-radius: 999px; }
  .site-header.is-open .mega, .site-header.is-open .nav--right .mega { position: static; width: auto; grid-template-columns: 1fr; gap: 18px; padding: 16px 4px 22px; box-shadow: none; border-radius: 0; }
  .hero__main, .hero__head--solo .hero__main, .hero__aside { grid-column: 1 / -1; }
  .hero__aside { padding-top: 0; }
  .section-head h2, .section-head__side, .section-head > .prose, .section-head--top > .prose { grid-column: 1 / -1; }
  .method__intro { grid-column: 1 / -1; position: static; }
  .method__steps { grid-column: 1 / -1; margin-top: var(--s4); }
  .cc-row__name { grid-column: 1 / -1; }
  .cc-row__text { grid-column: 1 / span 7; }
  .cc-row__links { grid-column: 8 / span 5; }
  .story-featured > figure, .story-featured > div { grid-column: 1 / -1; }
  .story-featured > figure { min-height: 0; aspect-ratio: 16 / 9; }
  .story-featured > div { padding: var(--s2) 0 0; }
  .people-block__intro, .roles { grid-column: 1 / -1; }
  .roles { margin-top: var(--s4); }
  .contact__intro, .contact__form { grid-column: 1 / -1; }
  .contact__form { margin-top: var(--s4); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .intro-grid > div, .intro-grid > aside, .manifesto > :first-child, .manifesto > .values { grid-column: 1 / -1; }
  .team { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .article-layout, .article-layout--form { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .values--grid { grid-template-columns: 1fr 1fr; }
  .values--grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .split-intro, .split > :last-child { grid-column: 1 / -1; }
  .product-hero .wrap > div, .product-hero .screen { grid-column: 1 / -1; }
  .product-hero .screen { margin-right: 0; }
  .product-hero .screen-frame { border-radius: 12px 12px 0 0; border-right: 1px solid var(--linea); }
  .nexus-teaser .wrap > div, .nexus-teaser .screen-frame { grid-column: 1 / -1; }
  .feature-text, .feature .screen, .feature:nth-child(even) .feature-text, .feature:nth-child(even) .screen { grid-column: 1 / -1; grid-row: auto; }
  .principles { grid-template-columns: 1fr 1fr; }
  .landing-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .sfide-group--single .sfide-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --header: 68px; }
  body { font-size: 17px; }
  .brand img { height: 42px; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .reel { height: auto; overflow: visible; background: none; }
  .reel__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--raggio); overflow: hidden; background: var(--notte); }
  .reel__caption { position: static; width: auto; padding: 16px 0 0; box-shadow: none; }
  .reel__caption a { font-size: 20px; }
  .reel__controls { position: static; margin: 4px 0 0 -4px; }
  .reel__dot::before { width: 28px; background: var(--linea-forte); }
  .reel__dot[aria-current="true"]::before, .reel__dot:hover::before { background: var(--notte); }
  .reel__pause { background: var(--nebbia); color: var(--notte); }
  .reel--static .reel__frame { aspect-ratio: 16 / 10; }
  .proof { grid-template-columns: 1fr; gap: 12px; }
  .proof ul { gap: 6px 22px; }
  .proof li a { font-size: 18px; }
  .cc-row__text, .cc-row__links { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--linea); }
  .facts dd { font-size: 18px; text-align: right; }
  .story-row { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .posts { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div { padding-bottom: 20px; }
  .numbers > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .team, .values--grid, .principles, .reparti { grid-template-columns: 1fr; }
  .values--grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--linea); }
  .press-list a { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
  .footer-legal { flex-direction: column; }
  .breadcrumb li[aria-current] { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters li { flex: none; }
  .wpcf7 input[type="submit"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reel__slide img { transform: none !important; }
}
