/*
 * Giulio Nicolai, tema v3.
 * Idea: le sette lettere di P.R.A.T.I.C.O. diventano particelle che si ricompongono nei lavori veri.
 * Un fondo (notte), un inchiostro (ghiaccio), un accento (fiordaliso). Un solo carattere: General Sans.
 */
@font-face { font-family: "General Sans"; src: url(../fonts/general-sans.woff2) format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(../fonts/general-sans-italic.woff2) format("woff2"); font-weight: 200 700; font-style: italic; font-display: swap; }

:root {
  --ground: #0a0d14;
  --surface: #121725;
  --surface-2: #1a2131;
  --ink: #e9edf3;
  --muted: #8a93a3;
  --accent: #5a9bfc;
  --accent-ink: #07101f;
  --paper: #e9edf3;
  --paper-2: #dde2ea;
  --paper-ink: #0a0d14;
  --paper-muted: #4c5566;
  --f: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(20px, 3vw, 40px);
  --col: clamp(16px, 2vw, 32px);
  --gap: clamp(120px, 14vw, 220px);
  --t-hero: clamp(3.25rem, 1rem + 8.4vw, 10.5rem);
  --t-h2: clamp(2.5rem, 1.2rem + 4.6vw, 6rem);
  --t-h3: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);
  --t-st: clamp(1.375rem, 1.05rem + 1.1vw, 2.125rem);
  --t-body: 1.125rem;
  --t-small: 0.9375rem;
  --ease: cubic-bezier(.16, .84, .24, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { background: var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f); font-size: var(--t-body); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.04em; line-height: .95; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.gn-skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.gn-skip:focus { left: 12px; }

.gn-frame { box-sizing: border-box; width: 100%; padding-left: max(var(--m), env(safe-area-inset-left, 0px)); padding-right: max(var(--m), env(safe-area-inset-right, 0px)); }
.gn-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); }
.gn-sec { padding-block: calc(var(--gap) / 2); }
.gn-paper { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.gn-paper ::selection { background: var(--paper-ink); color: var(--paper); }
.gn-statement { font-size: var(--t-st); font-weight: 500; line-height: 1.22; letter-spacing: -0.015em; max-width: 26em; }
.gn-muted { color: var(--muted); }
.gn-paper .gn-muted { color: var(--paper-muted); }

/* ---------- Buttons and links (pill, one fill) ---------- */
.gn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .35s var(--ease), background-color .2s;
}
.gn-btn:hover { background: #7cb0ff; transform: translateY(-2px); }
.gn-btn:active { transform: translateY(0) scale(.98); }
.gn-btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 40%, transparent); }
.gn-btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.gn-paper .gn-btn--solid, .gn-paper .gn-btn:not(.gn-btn--ghost) { background: var(--paper-ink); color: var(--paper); }
.gn-paper .gn-btn:not(.gn-btn--ghost):hover { background: #222a3a; }
.gn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.gn-more { display: inline-block; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .35em; transition: text-underline-offset .3s var(--ease), color .2s; }
.gn-more:hover { text-underline-offset: .5em; color: var(--accent); }
.gn-paper .gn-more { text-decoration-color: var(--paper-ink); }
.gn-paper .gn-more:hover { color: var(--paper-ink); }

/* ---------- Header ---------- */
.gn-header { position: relative; z-index: 20; }
.gn-header--over { position: absolute; inset: 0 0 auto; }
.gn-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.gn-brand { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
/* The brand dot: the same blue dot that closes every letter of P.R.A.T.I.C.O. */
.gn-dot { display: inline-block; width: .19em; height: .19em; margin-left: .07em; border-radius: 50%; background: var(--accent); vertical-align: baseline; }
.gn-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 1rem; font-weight: 500; }
.gn-nav a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.gn-nav a:hover, .gn-nav a[aria-current="page"] { opacity: 1; }
.gn-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.gn-nav .gn-btn { opacity: 1; min-height: 44px; padding: 0 20px; }
.gn-menu-btn { display: none; appearance: none; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; padding: 10px 0; cursor: pointer; }
@media (max-width: 860px) {
  .gn-menu-btn { display: block; }
  .gn-nav { position: fixed; inset: 0; z-index: 50; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 0 var(--m); background: var(--ground); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .gn-nav a { opacity: 1; }
  .gn-nav .gn-btn { font-size: 1.125rem; letter-spacing: 0; margin-top: 16px; }
  .gn-nav.is-open { opacity: 1; visibility: visible; }
  .gn-nav__close { position: absolute; top: 26px; right: var(--m); font-size: 1rem; letter-spacing: 0; }
}
@media (min-width: 861px) { .gn-nav__close { display: none; } }

/* ---------- Home scene ---------- */
.gn-scene { position: relative; height: calc(var(--steps, 4) * 105vh); }
.gn-scene__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gn-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gn-scene__photo { position: absolute; display: block; max-width: none; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .22s linear; }
.gn-scene__photo.is-on { opacity: 1; transition: opacity .9s var(--ease); }
.gn-scene.no-gl .gn-scene__photo { display: none; }
.gn-scene__step {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vh, 72px);
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none;
}
.gn-scene__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.gn-scene__step--intro h1 { font-size: clamp(2.25rem, 1rem + 4vw, 5rem); max-width: 13ch; line-height: .98; }
.gn-scene__step--intro .gn-statement { margin-top: 22px; max-width: 30em; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--ink); opacity: .9; }
.gn-scene__step--intro .gn-actions { margin-top: 30px; }
.gn-scene__work { max-width: 30rem; }
.gn-scene__work p:first-child { font-weight: 600; color: var(--accent); }
.gn-scene__work h2 { margin-top: 10px; font-size: clamp(1.875rem, 1rem + 2.6vw, 3.5rem); line-height: 1; }
.gn-scene__work .gn-more { margin-top: 20px; }
.gn-scene__note { margin-top: 16px; color: var(--muted); max-width: 26em; }
.gn-scene__fallback { display: none; }
.js .gn-scene:not(.is-live):not(.no-gl) .gn-scene__step--intro { opacity: 1; transform: none; }
/* Without WebGL, or without script: a plain opening and the work as pictures. */
html:not(.js) .gn-scene, .gn-scene.no-gl { height: auto; }
html:not(.js) .gn-scene__stage, .gn-scene.no-gl .gn-scene__stage { position: static; height: auto; padding-top: 140px; }
html:not(.js) .gn-scene__step, .gn-scene.no-gl .gn-scene__step { position: static; opacity: 1; transform: none; margin-bottom: 72px; }
html:not(.js) .gn-scene canvas, .gn-scene.no-gl canvas { display: none; }
html:not(.js) .gn-scene__fallback, .gn-scene.no-gl .gn-scene__fallback { display: block; margin-top: 28px; max-width: 640px; }
@media (max-width: 760px) {
  .gn-scene { height: calc(var(--steps, 4) * 95vh); }
  .gn-scene__step { bottom: 28px; }
}

/* ---------- Home: what I do (two colour fields side by side) ---------- */
.gn-doors { display: grid; grid-template-columns: 7fr 5fr; }
.gn-door { padding: clamp(48px, 7vw, 112px) var(--m); display: flex; flex-direction: column; gap: 28px; min-height: min(86vh, 860px); box-sizing: border-box; }
.gn-door h2 { font-size: var(--t-h2); }
.gn-door--main { background: var(--paper); color: var(--paper-ink); }
.gn-door--side { background: var(--surface); }
.gn-door--side h2 { font-size: clamp(2.25rem, 1.2rem + 3.2vw, 4.25rem); }
.gn-door__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: auto; }
.gn-door__facts b { display: block; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.gn-door__facts span { display: block; margin-top: 8px; font-size: var(--t-small); color: var(--paper-muted); }
.gn-door__list li { padding: 14px 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.gn-door .gn-actions { margin-top: auto; }
@media (max-width: 960px) { .gn-doors { grid-template-columns: 1fr; } .gn-door { min-height: 0; } .gn-door__facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Case index: cards with the work always in view ---------- */
.gn-index__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.gn-index__head h2 { font-size: var(--t-h2); }
.gn-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col); row-gap: clamp(56px, 7vw, 112px); align-items: start; }
.gn-cards > .gn-card:nth-child(even) { margin-top: clamp(0px, 9vw, 160px); }
.gn-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.gn-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--surface); }
.gn-card__frame { position: absolute; inset: 0; display: block; transition: transform 1s var(--ease); }
.gn-card__media--foto img { width: 100%; height: 100%; object-fit: cover; }
.gn-card__media--grafico .gn-chart { box-sizing: border-box; height: 100%; display: flex; flex-direction: column; border-radius: 0; padding: clamp(20px, 3vw, 40px); }
.gn-card__media--grafico .gn-chart__bars { flex: 1; height: auto; min-height: 0; margin-top: 18px; gap: clamp(16px, 3vw, 40px); }
.gn-card__media--grafico .gn-chart__bar { min-height: 0; gap: 8px; }
.gn-card__media--grafico .gn-chart__bar i { height: auto; flex: 0 1 var(--v); min-height: 0; }
.gn-card__media--grafico .gn-chart__bar b { font-size: clamp(1.25rem, .9rem + 1.3vw, 2.25rem); }
.gn-card__media--chat { background: var(--surface-2); }
.gn-card__media--chat .gn-card__frame { box-sizing: border-box; padding: clamp(24px, 4vw, 48px) clamp(24px, 5vw, 64px) 0; }
.gn-card__media--chat .gn-chat { box-sizing: border-box; height: 100%; max-width: none; font-size: clamp(.75rem, .6rem + .4vw, .9375rem); border-radius: 14px 14px 0 0; }
.gn-card__client { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 24px; font-weight: 600; color: var(--accent); }
.gn-card__client span { font-weight: 400; color: var(--muted); }
.gn-card__title { margin-top: 10px; max-width: 18em; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
.gn-card__result { margin-top: 18px; color: var(--muted); }
.gn-card__result b { margin-right: 6px; font-size: clamp(1.25rem, 1rem + .7vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .gn-card:hover .gn-card__frame { transform: scale(1.035); }
  .gn-card__media--chat .gn-card__frame, .gn-card__media--grafico .gn-card__frame { transform-origin: 50% 100%; }
  .gn-card:hover .gn-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; text-decoration-color: var(--accent); }
}
@media (max-width: 860px) {
  .gn-cards { grid-template-columns: 1fr; }
  .gn-cards > .gn-card:nth-child(even) { margin-top: 0; }
}

/* ---------- Clients marquee ---------- */
.gn-clients { padding-bottom: clamp(40px, 4vw, 72px); }
.gn-clients + .gn-sec { padding-top: clamp(24px, 3vw, 48px); }
.gn-clients h2 { font-size: var(--t-st); font-weight: 500; letter-spacing: -0.015em; }
.gn-marquee { margin-top: clamp(28px, 4vw, 48px); overflow: hidden; }
.gn-marquee__track { display: flex; width: max-content; animation: gn-run 42s linear infinite; }
.gn-marquee:hover .gn-marquee__track { animation-play-state: paused; }
.gn-marquee__set { display: flex; align-items: center; gap: clamp(56px, 7vw, 120px); padding-right: clamp(56px, 7vw, 120px); }
.gn-logo { display: flex; align-items: center; gap: 14px; height: clamp(34px, 3.4vw, 50px); flex: none; color: var(--ink); }
.gn-logo img { height: 100%; width: auto; max-width: 220px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.gn-logo--wide { height: clamp(22px, 2.1vw, 30px); }
.gn-logo--wide img { max-width: none; }
.gn-logo--tall { height: clamp(46px, 4.6vw, 68px); }
.gn-logo span { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
@keyframes gn-run { to { transform: translateX(-50%); } }

/* ---------- About teaser ---------- */
.gn-about { align-items: center; row-gap: 40px; }
.gn-about__photo { grid-column: 1 / span 5; max-width: 560px; margin: 0; overflow: hidden; border-radius: 6px; }
.gn-about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.gn-about__text { grid-column: 7 / span 6; }
.gn-about__text h2 { font-size: var(--t-h2); }
.gn-about__text .gn-statement { margin-top: 32px; }
.gn-about__text .gn-more { margin-top: 32px; }
@media (min-width: 1600px) { .gn-about__photo { grid-column: 1 / span 4; } .gn-about__text { grid-column: 6 / span 6; } }
@media (max-width: 960px) { .gn-about__photo, .gn-about__text { grid-column: 1 / -1; } .gn-about__photo { max-width: 520px; } }

/* ---------- Closing call ---------- */
.gn-close { padding-block: clamp(96px, 12vw, 180px); }
.gn-close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 120px); row-gap: 56px; align-items: end; }
.gn-close h2 { font-size: var(--t-h2); max-width: 11ch; }
.gn-close .gn-statement { margin-top: 24px; max-width: 24em; color: var(--muted); }
.gn-close .gn-actions { margin-top: clamp(28px, 3.5vw, 48px); gap: 12px 32px; }
.gn-close__mail { font-size: var(--t-st); font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 960px) { .gn-close__grid { grid-template-columns: 1fr; } }

/* WhatsApp composer: the message is already written */
.gn-wa { max-width: 520px; width: 100%; justify-self: end; border-radius: 22px; overflow: hidden; background: #0b141a; color: #e9edef; }
.gn-wa__top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #202c33; }
.gn-wa__top img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.gn-wa__top p { display: flex; flex-direction: column; line-height: 1.25; }
.gn-wa__top span { font-size: .8125rem; color: #8696a0; }
.gn-wa__body { display: flex; justify-content: flex-end; min-height: 150px; align-items: flex-end; padding: 28px 18px 18px; }
.gn-wa__bubble { position: relative; max-width: 88%; padding: 10px 14px 22px; border-radius: 14px 14px 4px 14px; background: #005c4b; font-size: 1.0625rem; line-height: 1.4; }
.gn-wa__bubble small { position: absolute; right: 12px; bottom: 5px; font-size: .6875rem; color: rgba(233, 237, 239, .65); }
.gn-wa__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: currentColor; animation: gn-blink 1s steps(1) infinite; }
@keyframes gn-blink { 50% { opacity: 0; } }
.gn-wa__topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 18px 18px; }
.gn-wa__topic { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #202c33; color: #e9edef; font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s; }
.gn-wa__topic:hover { background: #2a3942; }
.gn-wa__topic[aria-pressed="true"] { background: #e9edef; color: #0b141a; }
.gn-wa__send { box-sizing: border-box; display: flex; width: calc(100% - 36px); margin: 0 18px 18px; justify-content: center; gap: 10px; background: #25d366; color: #06281a; }
.gn-wa__send:hover { background: #4be083; }
.gn-ico { flex: none; }
@media (max-width: 960px) { .gn-wa { justify-self: start; } }

/* Floating WhatsApp link: appears after the opening, steps aside near the composer */
.gn-wa-float { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: #25d366; color: #06281a; font-weight: 600; text-decoration: none; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--ease), transform .5s var(--ease), background-color .25s; }
.gn-wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.gn-wa-float:hover { background: #4be083; }
html:not(.js) .gn-wa-float { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 520px) { .gn-wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .gn-wa-float { padding: 0; width: 52px; justify-content: center; } }

/* ---------- Footer ---------- */
.gn-footer { background: var(--paper); color: var(--paper-ink); overflow: hidden; }
.gn-footer__name { display: block; padding-top: clamp(40px, 6vw, 88px); font-size: calc((100vw - 2 * var(--m)) / 5.95); font-weight: 600; letter-spacing: -0.055em; line-height: .82; white-space: nowrap; text-decoration: none; }
.gn-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 32px 40px; font-size: var(--t-small); }
.gn-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Inner page heads ---------- */
.gn-head { padding-block: clamp(56px, 9vw, 140px) clamp(48px, 7vw, 104px); align-items: end; row-gap: 32px; }
.gn-head h1 { grid-column: 1 / span 8; font-size: var(--t-hero); }
.gn-head__side { grid-column: 9 / span 4; }
.gn-head__side .gn-statement { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); }
.gn-head__side .gn-actions { margin-top: 24px; }
@media (max-width: 960px) { .gn-head h1, .gn-head__side { grid-column: 1 / -1; } }

/* ---------- Formazione ---------- */
.gn-programme { align-items: start; row-gap: 48px; }
.gn-programme__intro { grid-column: 1 / span 4; position: sticky; top: 40px; }
.gn-programme__intro h2 { font-size: var(--t-h2); }
.gn-programme__intro .gn-statement { margin-top: 24px; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); }
.gn-programme__steps { grid-column: 6 / span 7; display: grid; gap: clamp(40px, 5vw, 72px); }
.gn-programme__steps li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); column-gap: var(--col); }
.gn-programme__when { font-weight: 600; color: var(--paper-muted); }
.gn-programme__steps h3 { font-size: var(--t-h3); }
.gn-programme__steps p { margin-top: 12px; max-width: 32em; }
.gn-programme__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col); margin-top: clamp(32px, 5vw, 72px); }
.gn-programme__facts b { display: block; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.gn-programme__facts span { display: block; margin-top: 8px; font-size: var(--t-small); color: var(--paper-muted); }
@media (max-width: 960px) {
  .gn-programme__intro, .gn-programme__steps { grid-column: 1 / -1; position: static; }
  .gn-programme__steps li { grid-template-columns: 1fr; row-gap: 8px; }
  .gn-programme__facts { grid-template-columns: 1fr 1fr; }
}

.gn-method { align-items: start; row-gap: 48px; }
.gn-method__text { grid-column: 1 / span 5; }
.gn-method__text h2 { font-size: var(--t-h2); }
.gn-method__text .gn-statement { margin-top: 24px; }
.gn-method__text ol { margin-top: 36px; display: grid; gap: 4px; }
.gn-method__text li { display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; font-size: 1.0625rem; }
.gn-method__text li b { font-size: 1.375rem; font-weight: 600; color: var(--accent); }
.gn-method__tool { grid-column: 7 / span 6; position: sticky; top: 40px; }
@media (max-width: 960px) { .gn-method__text, .gn-method__tool { grid-column: 1 / -1; position: static; } }

.pb { background: var(--surface); border-radius: 10px; padding: clamp(22px, 2.6vw, 36px); }
.pb__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 20px; }
.pb__title { font-weight: 600; }
.pb__cases { display: flex; flex-wrap: wrap; gap: 6px; }
.pb__case { appearance: none; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 500; padding: 9px 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.pb__case:hover { background: #253046; }
.pb__case[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.pb__lines { margin-top: 26px; display: grid; gap: 14px; }
.pb__line { display: grid; grid-template-columns: 7em 1fr; gap: 14px; align-items: baseline; transition: opacity .3s; }
.pb__k { font-weight: 600; color: var(--muted); }
.pb__k b { color: var(--accent); font-weight: 600; }
.pb__v { min-height: 1.55em; }
.pb__line.is-on .pb__k { color: var(--ink); }
.pb__caret { display: inline-block; width: .5em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; border-radius: 1px; background: var(--accent); animation: pb-blink 1s steps(1) infinite; }
@keyframes pb-blink { 50% { opacity: 0; } }
@media (max-width: 520px) { .pb__line { grid-template-columns: 1fr; gap: 2px; } }

.gn-paths { row-gap: 40px; align-items: start; }
.gn-paths h2 { grid-column: 1 / span 6; font-size: var(--t-h2); }
.gn-paths__text { grid-column: 8 / span 5; }
.gn-paths__text p + p { margin-top: 18px; }
.gn-law { margin-top: 32px; padding: 24px 26px; border-radius: 10px; background: var(--surface); }
.gn-law b { display: block; margin-bottom: 6px; }
@media (max-width: 960px) { .gn-paths h2, .gn-paths__text { grid-column: 1 / -1; } }

.gn-faq { row-gap: 32px; align-items: start; }
.gn-faq h2 { grid-column: 1 / span 4; font-size: var(--t-h2); }
.gn-faq__list { grid-column: 6 / span 7; }
.gn-faq details { padding: 22px 0; }
.gn-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; }
.gn-faq summary::-webkit-details-marker { display: none; }
.gn-faq summary::after { content: "+"; color: var(--accent); font-weight: 400; transition: transform .3s var(--ease); }
.gn-faq details[open] summary::after { transform: rotate(45deg); }
.gn-faq details p { margin-top: 12px; max-width: 36em; color: var(--muted); }
@media (max-width: 960px) { .gn-faq h2, .gn-faq__list { grid-column: 1 / -1; } }

/* ---------- Consulenza ---------- */
.gn-service { align-items: start; row-gap: 32px; }
.gn-service + .gn-service { padding-top: clamp(56px, 7vw, 104px); }
.gn-service__name { grid-column: 1 / span 5; }
.gn-service__name h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem); }
.gn-service__name .gn-big { margin-top: 28px; }
.gn-service__body { grid-column: 7 / span 6; }
.gn-service__body .gn-statement { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); }
.gn-service__body ul { margin-top: 28px; }
.gn-service__body li { padding: 14px 0; font-weight: 500; }
.gn-service__body .gn-more { margin-top: 28px; }
.gn-big b { display: block; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 5rem); font-weight: 600; letter-spacing: -0.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.gn-big span { display: block; margin-top: 10px; max-width: 22em; font-size: var(--t-small); color: var(--muted); }
.gn-paper .gn-big span { color: var(--paper-muted); }
@media (max-width: 960px) { .gn-service__name, .gn-service__body { grid-column: 1 / -1; } }

/* ---------- Chi sono ---------- */
.gn-bio { align-items: start; row-gap: 48px; }
.gn-bio__photo { grid-column: 1 / span 5; margin: 0; position: sticky; top: 40px; border-radius: 6px; overflow: hidden; }
.gn-bio__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.gn-bio__text { grid-column: 7 / span 6; }
.gn-bio__text .gn-statement { font-size: clamp(1.375rem, 1.1rem + 1vw, 2.125rem); }
.gn-bio__text > p + p { margin-top: 22px; }
.gn-bio__text > .gn-statement + p { margin-top: 36px; }
.gn-steps { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: 0; }
.gn-steps li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); column-gap: var(--col); padding: 22px 0; }
.gn-steps b { font-weight: 600; color: var(--accent); }
@media (max-width: 960px) { .gn-bio__photo, .gn-bio__text { grid-column: 1 / -1; position: static; } .gn-bio__photo { max-width: 520px; } .gn-steps li { grid-template-columns: 1fr; row-gap: 4px; } }

/* ---------- Contatti ---------- */
.gn-contact { row-gap: 56px; align-items: start; }
.gn-contact__side { grid-column: 1 / span 4; display: grid; gap: 28px; }
.gn-contact__side b { display: block; font-weight: 600; color: var(--muted); font-size: var(--t-small); margin-bottom: 4px; }
.gn-contact__side a { font-size: var(--t-st); font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.gn-contact__side a:hover { color: var(--accent); }
.gn-contact__form { grid-column: 6 / span 7; }
@media (max-width: 960px) { .gn-contact__side, .gn-contact__form { grid-column: 1 / -1; } }

.gnf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
.gnf__f { display: flex; flex-direction: column; gap: 8px; }
.gnf__f--wide { grid-column: 1 / -1; }
.gnf label, .gnf legend { font-size: var(--t-small); font-weight: 600; }
.gnf label em { font-style: normal; font-weight: 400; color: var(--muted); }
.gnf input[type=text], .gnf input[type=email], .gnf input[type=tel], .gnf textarea {
  box-sizing: border-box; width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid transparent; border-radius: 10px; padding: 14px 16px;
  transition: border-color .2s, background-color .2s;
}
.gnf textarea { min-height: 160px; resize: vertical; }
.gnf input:hover, .gnf textarea:hover { background: var(--surface-2); }
.gnf input:focus-visible, .gnf textarea:focus-visible { outline: none; border-color: var(--accent); background: var(--surface-2); }
.gnf fieldset { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; }
.gnf legend { padding: 0; margin-bottom: 10px; }
.gnf__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.gnf__choice { position: relative; }
.gnf__choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.gnf__choice span { display: inline-block; padding: 11px 16px; border-radius: 999px; background: var(--surface); font-weight: 500; font-size: var(--t-small); cursor: pointer; transition: background-color .2s, color .2s; }
.gnf__choice input:hover + span { background: var(--surface-2); }
.gnf__choice input:checked + span { background: var(--ink); color: var(--ground); }
.gnf__choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.gnf__consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small) !important; font-weight: 400 !important; color: var(--muted); }
.gnf__consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.gnf__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.gnf__send { grid-column: 1 / -1; }
.gnf__msg { grid-column: 1 / -1; padding: 16px 18px; border-radius: 10px; background: var(--surface); }
.gnf__msg--ok { box-shadow: inset 4px 0 0 var(--accent); }
.gnf__msg--err { box-shadow: inset 4px 0 0 #ff7a7a; }
.gnf__msg ul { margin: 8px 0 0; padding-left: 1.2em; list-style: disc; }
@media (max-width: 640px) { .gnf { grid-template-columns: 1fr; } }

/* ---------- Casi studio: single ---------- */
.gn-case-head { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); row-gap: 40px; align-items: end; }
.gn-case-head h1 { grid-column: 1 / span 9; font-size: var(--t-h2); }
.gn-case-head .gn-statement { grid-column: 1 / span 7; }
.gn-case-head .gn-big { grid-column: 9 / span 4; }
.gn-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col); padding: 24px 0 0; }
.gn-facts dt { font-size: var(--t-small); color: var(--muted); }
.gn-facts dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 960px) { .gn-case-head h1, .gn-case-head .gn-statement, .gn-case-head .gn-big { grid-column: 1 / -1; } .gn-facts { grid-template-columns: 1fr 1fr; } }

.gn-visual { margin: 0; }
.gn-visual--image img { width: 100%; max-height: 92vh; object-fit: cover; }
.gn-visual--image.is-tall img { aspect-ratio: 16 / 9; }

.gn-chart { background: var(--surface); border-radius: 10px; padding: clamp(24px, 4vw, 56px); }
.gn-chart__title { font-weight: 600; color: var(--muted); }
.gn-chart__bars { display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 64px); height: clamp(280px, 42vw, 560px); margin-top: 28px; }
.gn-chart__bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; height: 100%; font-variant-numeric: tabular-nums; }
.gn-chart__bar i { display: block; height: var(--v); border-radius: 6px 6px 0 0; background: #2b3448; transform-origin: bottom; transition: transform 1.4s var(--ease); }
.gn-chart__bar:last-child i { background: var(--accent); }
.gn-chart__bar b { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.gn-chart__bar span { color: var(--muted); font-weight: 500; }
.js .gn-chart__bar i { transform: scaleY(.03); }
.js .is-in .gn-chart__bar i, .js .gn-chart.is-in .gn-chart__bar i { transform: scaleY(1); }
.js .is-in .gn-chart__bar:last-child i { transition-delay: .25s; }

.gn-chat { max-width: 560px; margin-inline: auto; border-radius: 18px; overflow: hidden; background: #fff; color: #050505; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .9375rem; line-height: 1.35; }
.gn-chat__top { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; background: #f0f2f5; }
.gn-chat__top span { color: #65676b; font-size: .8125rem; }
.gn-chat__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 24px; }
.gn-chat__bot, .gn-chat__me { max-width: 78%; padding: 9px 13px; border-radius: 18px; }
.gn-chat__bot { align-self: flex-start; background: #f0f0f0; }
.gn-chat__me { align-self: flex-end; background: #0084ff; color: #fff; }
.gn-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gn-chat__chips span { padding: 6px 12px; border-radius: 18px; box-shadow: inset 0 0 0 1px #0084ff; color: #0084ff; font-size: .875rem; }
.js .gn-chat__body > * { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); }
.js .is-in .gn-chat__body > * { opacity: 1; transform: none; }
.gn-visual-stage { padding-block: clamp(40px, 6vw, 96px); }
.gn-visual-stage.gn-paper { padding-block: clamp(56px, 8vw, 120px); }

.gn-body { padding-block: clamp(72px, 9vw, 140px); }
.gn-body__content { grid-column: 4 / span 7; }
.gn-body__content > * + * { margin-top: 1.1em; }
.gn-body__content h2 { margin-top: 2.2em; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.05; }
.gn-body__content h2:first-child { margin-top: 0; }
.gn-body__content p, .gn-body__content li { font-size: 1.1875rem; line-height: 1.6; }
.gn-body__content ul { display: grid; gap: 14px; margin-top: 1.4em; }
.gn-body__content li { padding-left: 1.4em; position: relative; }
.gn-body__content li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55em; height: .55em; border-radius: 50%; background: var(--accent); }
.gn-body__content strong { font-weight: 600; }
@media (max-width: 960px) { .gn-body__content { grid-column: 1 / -1; } }

.gn-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 64px); }
.gn-metrics .gn-big b { font-size: clamp(2.5rem, 1.4rem + 2.6vw, 4.25rem); white-space: nowrap; }
.gn-metrics h2 { grid-column: 1 / -1; font-size: var(--t-st); font-weight: 500; letter-spacing: -0.015em; }

.gn-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gn-gallery figure { margin: 0; flex: var(--r) 1 0; min-width: 0; }
.gn-gallery img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; border-radius: 4px; }
.gn-gallery__row { display: flex; gap: 8px; width: 100%; }
@media (max-width: 760px) { .gn-gallery__row { flex-wrap: wrap; } .gn-gallery figure { flex: 1 1 100%; } }

.gn-next { display: block; text-decoration: none; padding-block: clamp(72px, 10vw, 160px); background: var(--surface); transition: background-color .4s; }
.gn-next:hover { background: var(--surface-2); }
.gn-next p { font-weight: 600; color: var(--muted); }
.gn-next h2 { margin-top: 14px; font-size: var(--t-h2); max-width: 14ch; transition: transform .6s var(--ease); }
.gn-next:hover h2 { transform: translateX(16px); }

/* ---------- Generic pages ---------- */
.gn-prose { padding-bottom: var(--gap); }
.gn-prose__in { grid-column: 3 / span 8; }
.gn-prose__in > * + * { margin-top: 1.1em; }
.gn-prose__in h2 { font-size: var(--t-h3); margin-top: 1.8em; }
.gn-prose__in ul { list-style: disc; padding-left: 1.2em; }
@media (max-width: 960px) { .gn-prose__in { grid-column: 1 / -1; } }

/* ---------- Motion: entrances that never hide content without script ---------- */
.js [data-rise] > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-rise].is-in > * { opacity: 1; transform: none; }
.js [data-rise].is-in > :nth-child(2) { transition-delay: .07s; }
.js [data-rise].is-in > :nth-child(3) { transition-delay: .14s; }
.js [data-rise].is-in > :nth-child(4) { transition-delay: .21s; }
.js [data-rise].is-in > :nth-child(5) { transition-delay: .28s; }
.js [data-rise].is-in > :nth-child(n+6) { transition-delay: .32s; }
.js [data-reveal] { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js [data-reveal].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal] img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js [data-reveal].is-in img { transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: gn-out .28s ease both; }
::view-transition-new(root) { animation: gn-in .5s var(--ease) both; }
@keyframes gn-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes gn-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-rise] > *, .js [data-reveal], .js [data-reveal] img { opacity: 1; transform: none; clip-path: none; }
  .gn-marquee__track { width: auto; flex-wrap: wrap; }
  .gn-marquee__set[aria-hidden="true"] { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- AI Act: home band ---------- */
.gn-act { background: var(--accent); color: var(--accent-ink); padding-block: clamp(72px, 9vw, 140px); }
.gn-act__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 120px); row-gap: 48px; align-items: center; }
.gn-act h2 { font-size: var(--t-h2); max-width: 10ch; }
.gn-act .gn-statement { margin-top: 24px; max-width: 26em; }
.gn-act .gn-actions { margin-top: 32px; }
.gn-act .gn-btn { background: var(--accent-ink); color: var(--paper); }
.gn-act .gn-btn:hover { background: #16233d; }
.gn-act__dates { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gn-act__dates li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; align-items: baseline; gap: 6px 20px; padding: 18px 20px; border-radius: 10px; background: rgba(7, 16, 31, .07); }
.gn-act__dates b { font-weight: 600; letter-spacing: -0.01em; }
.gn-act__dates em { justify-self: start; font-style: normal; font-size: var(--t-small); font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(7, 16, 31, .1); white-space: nowrap; }
.gn-act__dates li.is-past { background: var(--accent-ink); color: var(--paper); }
.gn-act__dates li.is-past em { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 960px) { .gn-act__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .gn-act__dates li { grid-template-columns: 1fr auto; } .gn-act__dates span { grid-column: 1 / -1; } }

/* ---------- AI Act page: timeline ---------- */
.gn-act-tl__now { color: var(--muted); font-weight: 500; }
.gn-tl { overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.gn-tl__rail, .gn-tl__list { min-width: calc(7 * 150px + 6 * var(--col)); }
.gn-tl__rail { position: relative; height: 8px; margin-top: 44px; border-radius: 999px; background: var(--surface-2); }
.gn-tl__rail i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill); border-radius: 999px; background: var(--accent); }
.gn-tl__rail span { position: absolute; left: var(--fill); bottom: 16px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: var(--t-small); font-weight: 600; white-space: nowrap; }
.gn-tl__list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--col); margin: 28px 0 0; padding: 0; list-style: none; }
.gn-tl__item { opacity: .62; }
.gn-tl__item.is-past { opacity: 1; }
.gn-tl__status { font-size: var(--t-small); font-weight: 600; color: var(--muted); }
.gn-tl__item.is-past .gn-tl__status { color: var(--accent); }
.gn-tl__date { margin-top: 6px; font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); font-weight: 600; letter-spacing: -0.02em; }
.gn-tl__item h3 { margin-top: 14px; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.gn-tl__item p:last-child { margin-top: 8px; font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.gn-act-tl__source { margin-top: clamp(32px, 4vw, 56px); max-width: 62em; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 760px) {
  .gn-tl { overflow: visible; }
  .gn-tl__rail { display: none; }
  .gn-tl__rail, .gn-tl__list { min-width: 0; }
  .gn-tl__list { grid-template-columns: 1fr; row-gap: 28px; margin-top: 0; }
}

/* ---------- Why an external consultant ---------- */
.gn-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col); }
.gn-why__item { padding: clamp(24px, 3vw, 40px); border-radius: 10px; background: var(--surface); }
.gn-why__item h3 { font-size: var(--t-h3); line-height: 1.08; letter-spacing: -0.025em; max-width: 14ch; }
.gn-why__item p { margin-top: 16px; color: var(--muted); }
.gn-why__item--note { background: var(--accent); color: var(--accent-ink); }
.gn-why__item--note p { color: var(--accent-ink); }
@media (max-width: 960px) { .gn-why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .gn-why { grid-template-columns: 1fr; } }
.gn-steps-list b { font-weight: 600; }
.gn-law .gn-more { margin-top: 14px; display: inline-block; }
