/* EPMG — layout: il sito come "fascicolo di progetto" in versione premium.
   Fasce scure fotografiche (sfondo sfocato, luci in movimento, pannelli in vetro)
   alternate a fasce chiare editoriali. Le staffe angolari del logo incorniciano
   foto e pannelli; il programma d'investimento è disegnato come un Gantt. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* Un solo aspetto, scelto: fasce scure + fasce chiare. Tutti i colori sono espliciti. */
:root {
  color-scheme: light;
  /* Colore */
  --navy-950: #050E17;
  --navy-900: #081522;
  --navy-800: #0C1D2D;
  --navy-700: #12293D;
  --paper: #F3F6F9;
  --paper-2: #E6EDF2;
  --white: #FFFFFF;
  --text: #0D1C29;
  --muted: #4A5D6D;
  --rule: #D2DDE5;
  --blue: #2C89BE;
  --blue-ink: #1B6692;
  --aqua: #5CE1E5;
  --aqua-soft: #9BEFF1;
  --on-dark: #EAF2F7;
  --on-dark-soft: #A8BCCB;
  --glass-line: rgba(255, 255, 255, .14);

  /* Ombre e profondità */
  --sh-1: 0 1px 2px rgba(5,14,23,.06), 0 10px 30px -12px rgba(5,14,23,.18);
  --sh-2: 0 2px 6px rgba(5,14,23,.08), 0 30px 70px -24px rgba(5,14,23,.40);
  --sh-3: 0 40px 100px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06) inset;
  --glow: 0 0 0 1px rgba(92,225,229,.35), 0 18px 50px -12px rgba(92,225,229,.35);

  /* Tipografia */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --s-xs: .8125rem; --s-sm: .9375rem; --s-md: 1.0625rem; --s-lg: 1.3125rem;
  --s-xl: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem);
  --s-2xl: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem);
  --s-3xl: clamp(2.6rem, 1.4rem + 4.5vw, 5.1rem);

  --wrap: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: var(--s-md); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--navy-900); }
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: -.018em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: calc(var(--wrap) + 64px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--text); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.tbd { background: rgba(92,225,229,.28); color: inherit; padding: 0 .25em; border-radius: 3px; }

/* Etichette */
.label { font-family: var(--font-mono); font-size: var(--s-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); display: inline-flex; align-items: center; gap: .7em; }
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.dark .label { color: var(--aqua); }

/* Staffe del logo */
.brackets { position: relative; }
.brackets::before, .brackets::after { content: ""; position: absolute; width: 34px; height: 34px; pointer-events: none; z-index: 2; }
.brackets::before { top: -12px; right: -12px; border-top: 4px solid var(--aqua); border-right: 4px solid var(--aqua); }
.brackets::after { bottom: -12px; left: -12px; border-bottom: 4px solid var(--blue); border-left: 4px solid var(--blue); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: var(--s-sm); padding: 15px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s; cursor: pointer; font-family: inherit; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--aqua); color: #052129; box-shadow: 0 10px 30px -10px rgba(92,225,229,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(92,225,229,.85); }
.btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.scrolled, .site-header.solid { background: rgba(8, 21, 34, .74); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 30px -18px rgba(0,0,0,.6); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 78px; height: auto; display: block; }
.brand-name { font-family: var(--font-mono); font-size: 11px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: var(--s-sm); font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: background .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
.nav .cta { background: var(--aqua); color: #052129; margin-left: 10px; padding: 10px 18px; font-weight: 600; }
.nav .cta:hover { background: var(--aqua-soft); }
.menu-btn { display: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); color: var(--on-dark); border-radius: 999px; padding: 9px 14px; font: 500 var(--s-sm) var(--font-body); cursor: pointer; }
@media (max-width: 1140px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: rgba(8,21,34,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: var(--s-md); }
  .nav .cta { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 0; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

/* ---------- Fasce scure con foto sfocata ---------- */
.dark { position: relative; background: var(--navy-900); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.photo-bg { position: absolute; inset: -6%; z-index: -3; background-size: cover; background-position: center; filter: blur(var(--blur, 6px)) saturate(.85) brightness(.8); transform: scale(1.06) translate3d(0, var(--py, 0px), 0); will-change: transform; }
.shade { position: absolute; inset: 0; z-index: -2; background: var(--shade, linear-gradient(105deg, rgba(5,14,23,.94) 0%, rgba(8,21,34,.86) 45%, rgba(8,21,34,.6) 100%)); }
.grain { position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; animation: drift 22s ease-in-out infinite alternate; }
.orb.a { width: 520px; height: 520px; background: radial-gradient(circle, rgba(92,225,229,.55), transparent 65%); top: -160px; right: -120px; }
.orb.b { width: 620px; height: 620px; background: radial-gradient(circle, rgba(44,137,190,.65), transparent 65%); bottom: -260px; left: -180px; animation-duration: 28s; animation-delay: -8s; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-60px, 40px, 0) scale(1.08); } 100% { transform: translate3d(40px, -30px, 0) scale(.95); } }

/* ---------- Hero ---------- */
.hero .photo-bg { --blur: 3px; background-image: url("img/hero.webp"); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 5vw, 80px); align-items: center; padding-block: clamp(140px, 15vw, 190px) clamp(56px, 7vw, 88px); }
.hero h1 { font-size: var(--s-3xl); font-weight: 340; margin-top: 24px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { font-style: italic; color: var(--aqua); font-weight: 340; }
.hero .lead { margin-top: 26px; font-size: var(--s-lg); line-height: 1.55; color: var(--on-dark-soft); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Pannelli in vetro */
.glass { background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.03)); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--sh-3); border-radius: 14px; }

/* Gantt */
.gantt { margin: 0; padding: 24px 24px 18px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-soft); min-width: 0; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--ease); }
.gantt:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.gantt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.gantt-title { color: var(--on-dark); font-weight: 500; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; }
.gantt-rows { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); row-gap: 13px; column-gap: 14px; align-items: center; }
.g-label { color: var(--on-dark); font-family: var(--font-body); font-size: 13px; line-height: 1.25; }
.g-track { position: relative; height: 16px; display: grid; grid-template-columns: repeat(36, 1fr); background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), rgba(255,255,255,.1) calc(100% / 6 - 1px) calc(100% / 6)); }
.g-bar { grid-row: 1; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2C89BE, #3FA3D9); box-shadow: 0 4px 14px -4px rgba(44,137,190,.8); transform-origin: left; animation: grow 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
.g-bar.aqua { background: linear-gradient(90deg, #4FD3D8, #5CE1E5); box-shadow: 0 4px 14px -4px rgba(92,225,229,.8); }
.g-bar.dash { background: repeating-linear-gradient(90deg, var(--aqua) 0 6px, transparent 6px 10px); box-shadow: none; }
@keyframes grow { from { transform: scaleX(.15); opacity: .4; } to { transform: scaleX(1); opacity: 1; } }
.g-axis { grid-column: 2; display: flex; justify-content: space-between; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 6px; }
.g-axis span { font-size: 11px; font-variant-numeric: tabular-nums; }
.g-note { margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.16); display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; }
.g-key { display: inline-flex; align-items: center; gap: 7px; }
.g-key i { width: 14px; height: 6px; border-radius: 2px; display: inline-block; background: var(--blue); }
.g-key i.aqua { background: var(--aqua); }
.g-key i.dash { background: repeating-linear-gradient(90deg, var(--aqua) 0 4px, transparent 4px 7px); }
.g-today { position: absolute; top: -7px; bottom: -7px; width: 2px; background: var(--on-dark); left: calc(100% * 14 / 36); }
.g-today::after { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--on-dark); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(234,242,247,.6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(234,242,247,0); } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: clamp(48px, 6vw, 72px); overflow: hidden; }
.fact { padding: 26px 26px 28px; display: grid; gap: 8px; align-content: start; }
.fact + .fact { border-left: 1px solid var(--glass-line); }
.fact b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.3rem + 1.5vw, 2.7rem); line-height: 1; color: var(--white); font-variant-numeric: lining-nums tabular-nums; }
.fact span { font-size: var(--s-sm); color: var(--on-dark-soft); line-height: 1.4; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 128px; }
  .gantt { transform: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--glass-line); }
}
@media (max-width: 520px) {
  .gantt { padding: 18px 14px 14px; }
  .gantt-rows { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); column-gap: 10px; }
  .g-label { font-size: 12px; }
  .g-axis span:nth-child(even) { visibility: hidden; }
  .fact { padding: 20px 18px 22px; }
}

/* Nastro scorrevole */
.ticker { background: var(--navy-950); border-block: 1px solid rgba(255,255,255,.06); overflow: hidden; padding-block: 18px; }
.ticker-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { list-style: none; display: flex; align-items: center; }
.ticker li { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); white-space: nowrap; display: flex; align-items: center; position: relative; padding: 7px 14px; margin-inline: 14px; }
/* ogni voce tra le due staffe del logo: apertura in basso a sinistra (blu), chiusura in alto a destra (acqua) */
.ticker li::before, .ticker li::after { content: ""; position: absolute; width: 8px; height: 8px; }
.ticker li::before { left: 0; bottom: 0; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.ticker li::after { right: 0; top: 0; border-top: 2px solid var(--aqua); border-right: 2px solid var(--aqua); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sezioni chiare ---------- */
.section { padding-block: clamp(84px, 10vw, 140px); position: relative; }
.alt { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head h2 { font-size: var(--s-2xl); margin-top: 18px; }
.section-head p { color: var(--muted); max-width: 36em; }
.dark .section-head h2 { color: var(--white); }
.dark .section-head p { color: var(--on-dark-soft); }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Chi siamo */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about h2 { font-size: var(--s-2xl); margin-top: 18px; }
.about-text { display: grid; gap: 18px; color: var(--muted); margin-top: 26px; }
.about-text p:first-child { color: var(--text); font-size: var(--s-lg); line-height: 1.5; }
.collage { position: relative; padding: 0 0 70px 40px; }
.collage .main { border-radius: 16px; overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 4 / 3; max-width: 100%; }
.collage .main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage:hover .main img { transform: scale(1.04); }
.collage .small { position: absolute; left: 0; bottom: 0; width: 46%; border-radius: 12px; overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--sh-2); aspect-ratio: 3 / 2; }
.collage .small img { width: 100%; height: 100%; object-fit: cover; }
.collage .badge { position: absolute; right: -8px; bottom: 26px; padding: 16px 18px; border-radius: 12px; background: var(--navy-900); color: var(--on-dark); box-shadow: var(--sh-2); display: grid; gap: 4px; max-width: 210px; }
.collage .badge b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--aqua); }
.collage .badge span { font-size: var(--s-xs); color: var(--on-dark-soft); line-height: 1.4; }
.team-strip { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.team-strip div { background: var(--white); border-radius: 10px; padding: 16px 18px; display: grid; gap: 4px; box-shadow: var(--sh-1); }
.team-strip b { font-size: var(--s-sm); color: var(--text); }
.team-strip span { font-size: var(--s-xs); line-height: 1.45; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } .collage { padding-left: 24px; } }
@media (max-width: 460px) { .team-strip { grid-template-columns: minmax(0, 1fr); } .collage .badge { right: 0; } }

.principles { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle { position: relative; background: var(--white); border-radius: 14px; padding: 30px 28px 32px; display: grid; gap: 12px; align-content: start; box-shadow: var(--sh-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden; }
.principle::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--aqua)); transform: scaleX(.18); transform-origin: left; transition: transform .5s var(--ease); }
.principle:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.principle:hover::before { transform: scaleX(1); }
.principle h3 { font-size: var(--s-xl); line-height: 1.12; }
.principle p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 860px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Squadra: anteprima in home */
.people-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.person-mini { text-decoration: none; color: var(--on-dark); display: grid; gap: 12px; align-content: start; }
.person-mini .ph { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.person-mini:hover .ph { transform: translateY(-6px); box-shadow: var(--glow); }
.person-mini b { font-weight: 600; font-size: var(--s-sm); line-height: 1.25; display: block; }
.person-mini small { font-size: 12px; color: var(--on-dark-soft); line-height: 1.35; display: block; margin-top: 2px; }
.people-cta { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--on-dark-soft); }
@media (max-width: 1080px) { .people-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .people-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Ritratto segnaposto (in attesa delle foto) */
.portrait { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background:
  radial-gradient(120% 90% at 80% 0%, rgba(92,225,229,.45), transparent 55%),
  radial-gradient(100% 80% at 0% 100%, rgba(44,137,190,.65), transparent 60%), var(--navy-700); }
.portrait::before { content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-top: 3px solid var(--aqua); border-right: 3px solid var(--aqua); }
.portrait::after { content: ""; position: absolute; bottom: 12px; left: 12px; width: 24px; height: 24px; border-bottom: 3px solid var(--blue); border-left: 3px solid var(--blue); }
.portrait span { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); color: rgba(255,255,255,.92); letter-spacing: .02em; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Competenze */
.skills { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tabs { display: grid; gap: 4px; position: sticky; top: 104px; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 12px; font-weight: 600; font-size: var(--s-md); color: var(--muted); transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.tab small { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .04em; opacity: .85; }
.tab:hover { color: var(--text); background: rgba(255,255,255,.65); }
.tab[aria-selected="true"] { background: var(--navy-900); color: var(--on-dark); box-shadow: var(--sh-2); transform: translateX(6px); }
.tab[aria-selected="true"] small { color: var(--aqua); }
.tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.panel { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-2); min-width: 0; animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel-media { position: relative; aspect-ratio: 21 / 8; overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.4s var(--ease); }
.panel:hover .panel-media img { transform: scale(1.08); }
.panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,21,34,0) 30%, rgba(8,21,34,.85)); }
.panel-media h3 { position: absolute; left: clamp(22px, 3vw, 40px); bottom: 20px; right: 20px; z-index: 1; color: var(--white); font-size: var(--s-xl); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.panel-body { padding: clamp(24px, 3vw, 40px); }
.panel .intro { color: var(--muted); max-width: 42em; }
.panel-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 40px; margin-top: 28px; }
.panel h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: var(--s-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: var(--s-sm); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); }
.refs { display: flex; flex-wrap: wrap; gap: 8px; }
.refs span { font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--text); white-space: nowrap; }
.out { margin-top: 24px; }
.out p { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 960px) {
  .skills { grid-template-columns: minmax(0, 1fr); }
  .tabs { position: static; display: flex; overflow-x: auto; gap: 8px; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; scroll-snap-align: start; background: var(--white); box-shadow: var(--sh-1); padding: 11px 16px; font-size: var(--s-sm); white-space: nowrap; }
  .tab small { display: none; }
  .tab[aria-selected="true"] { transform: none; }
  .panel-cols { grid-template-columns: minmax(0, 1fr); }
  .panel-media { aspect-ratio: 16 / 8; }
}

/* Metodo (fascia scura) */
.method { padding-block: clamp(84px, 10vw, 140px); }
.phases { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.phase { position: relative; padding: 28px 26px 26px; display: grid; gap: 10px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.phase:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(92,225,229,.45); }
.phase .num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--aqua); letter-spacing: .1em; display: flex; align-items: center; gap: 10px; }
.phase .num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(92,225,229,.6), transparent); }
.phase h3 { font-size: 1.65rem; color: var(--white); }
.phase p { font-size: var(--s-sm); color: var(--on-dark-soft); }
.phase .deliv { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark); background: rgba(255,255,255,.06); border-radius: 8px; padding: 10px 12px; line-height: 1.45; }
.phase .deliv b { display: block; font-weight: 500; color: var(--aqua); letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; margin-bottom: 2px; }
@media (max-width: 980px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .phases { grid-template-columns: minmax(0, 1fr); } }
.method-note { margin-top: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 26px 30px; max-width: 920px; }
.method-note b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--aqua); font-weight: 400; }
.method-note p { color: var(--on-dark-soft); font-size: var(--s-sm); }
.method-note p strong { color: var(--white); }

/* Misure e settori */
.measures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.measures-title { font-size: var(--s-2xl); margin: 18px 0 30px; }
.measure-groups { display: grid; gap: 26px; }
.measure-group { display: grid; gap: 10px; }
.mg-title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.measure-list li.wide { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.measure-list li.wide span { text-align: left; }
.measure-list li.wide p { color: var(--muted); font-size: var(--s-sm); }
.measure-list { list-style: none; display: grid; gap: 10px; }
.measure-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 20px; align-items: baseline; background: var(--white); border-radius: 10px; box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.measure-list li:hover { transform: translateX(6px); box-shadow: var(--sh-2); }
.measure-list b { font-weight: 600; }
.measure-list span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }
.sectors-card { position: relative; border-radius: 18px; overflow: hidden; padding: clamp(28px, 4vw, 44px); box-shadow: var(--sh-2); isolation: isolate; color: var(--on-dark); background: var(--navy-900); }
.sectors-card .photo-bg { --blur: 2px; background-image: url("img/sectors.webp"); inset: -4%; }
.sectors-card .shade { --shade: linear-gradient(160deg, rgba(8,21,34,.62), rgba(8,21,34,.9)); }
.sectors-card .label { color: var(--aqua); }
.sector-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sector-tags li { padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--s-sm); font-weight: 500; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.sector-tags li:hover { background: rgba(92,225,229,.16); border-color: rgba(92,225,229,.5); transform: translateY(-2px); }
.sectors-card h3 { font-size: var(--s-xl); margin-top: 16px; color: var(--white); }
.sectors-note { margin-top: 22px; color: var(--on-dark-soft); font-size: var(--s-sm); }
@media (max-width: 860px) { .measures { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: var(--s-2xl); margin-top: 18px; }
.faq-intro { margin-top: 18px; color: var(--muted); }
.qa { display: grid; gap: 10px; }
.qa details { background: var(--white); border-radius: 12px; box-shadow: var(--sh-1); transition: box-shadow .3s; }
.qa details[open] { box-shadow: var(--sh-2); }
.qa summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 600; font-size: var(--s-md); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 3v10M3 8h10' stroke='%231B6692' stroke-width='1.8'/></svg>") center / 12px no-repeat; transition: transform .35s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 22px 22px; color: var(--muted); max-width: 44em; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Contatti */
.contact .photo-bg { --blur: 10px; background-image: url("img/office.webp"); }
.contact .shade { --shade: linear-gradient(120deg, rgba(5,14,23,.93), rgba(8,21,34,.76)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; padding-block: clamp(96px, 11vw, 150px); }
.contact h2 { font-size: var(--s-2xl); margin-top: 18px; color: var(--white); }
.contact h2 em { color: var(--aqua); font-style: italic; }
.contact .lead { margin-top: 22px; color: var(--on-dark-soft); font-size: var(--s-lg); max-width: 30em; }
.contact-card { padding: clamp(26px, 3.5vw, 40px); display: grid; gap: 24px; }
.contact-row { display: grid; gap: 6px; }
.contact-row + .contact-row { padding-top: 22px; border-top: 1px solid var(--glass-line); }
.contact-row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); }
.contact-row .line { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.contact-row a.v, .contact-row address { font-family: var(--font-display); font-style: normal; font-size: clamp(1.35rem, 1rem + 1.1vw, 1.9rem); line-height: 1.25; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.contact-row a.v:hover { color: var(--aqua); }
.contact-row .map { font-size: var(--s-sm); color: var(--aqua); }
.copy { all: unset; cursor: pointer; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 9px 12px; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.copy:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.copy:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.copy .ic { position: relative; width: 16px; height: 16px; flex: none; }
.copy svg { position: absolute; inset: 0; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.copy .i-check { opacity: 0; transform: scale(.6) rotate(-20deg); stroke-dasharray: 18; stroke-dashoffset: 18; transition: opacity .2s var(--ease), transform .35s var(--ease), stroke-dashoffset .45s var(--ease) .1s; }
.copy .done-txt { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; margin-left: 0; transition: max-width .4s var(--ease), opacity .3s var(--ease), margin-left .4s var(--ease); }
.copy.done { color: var(--aqua); border-color: rgba(92,225,229,.6); background: rgba(92,225,229,.08); }
.copy.done .i-copy { opacity: 0; transform: scale(.6) rotate(20deg); }
.copy.done .i-check { opacity: 1; transform: none; stroke-dashoffset: 0; }
.copy.done .done-txt { max-width: 12em; opacity: 1; margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .copy svg, .copy .i-check, .copy .done-txt { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-soft); padding-block: 56px 40px; font-size: var(--s-xs); }
.foot { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto; gap: 32px 56px; align-items: start; }
.foot svg { width: 230px; height: auto; display: block; }
.foot .legal { display: grid; gap: 6px; line-height: 1.6; }
.foot .legal strong { color: var(--on-dark); font-weight: 600; font-size: var(--s-sm); }
.foot nav { display: grid; gap: 9px; }
.foot nav a { color: var(--on-dark); text-decoration: none; }
.foot nav a:hover { color: var(--aqua); }
.foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.foot-note a { color: var(--on-dark-soft); }
@media (max-width: 860px) { .foot { grid-template-columns: minmax(0, 1fr); } .foot svg { width: 200px; } }

/* ---------- Pagina squadra ---------- */
.page-hero .photo-bg { --blur: 5px; background-image: url("img/team.webp"); }
.page-hero-inner { padding-block: clamp(140px, 15vw, 190px) clamp(64px, 8vw, 100px); max-width: 880px; }
.page-hero h1 { font-size: var(--s-3xl); font-weight: 340; margin-top: 22px; color: var(--white); }
.page-hero h1 em { color: var(--aqua); font-style: italic; }
.page-hero .lead { margin-top: 24px; font-size: var(--s-lg); color: var(--on-dark-soft); max-width: 36em; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.member { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-1); display: grid; transition: transform .4s var(--ease), box-shadow .4s var(--ease); scroll-margin-top: 100px; }
.member:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.member .ph { aspect-ratio: 5 / 4; overflow: hidden; }
.member-body { padding: 24px 24px 26px; display: grid; gap: 12px; align-content: start; }
.member h2 { font-size: 1.75rem; line-height: 1.1; }
.member .role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); }
.member .bio { color: var(--muted); font-size: var(--s-sm); }
.member .refs span { font-size: 11.5px; }
.member details { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 4px; }
.member summary { cursor: pointer; font-weight: 600; font-size: var(--s-sm); color: var(--blue-ink); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: "+"; font-family: var(--font-mono); font-weight: 500; font-size: 1.1rem; }
.member details[open] summary::after { content: "–"; }
.member details ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.member details li { position: relative; padding-left: 18px; font-size: var(--s-sm); color: var(--muted); line-height: 1.5; }
.member details li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); }
@media (max-width: 1180px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }
.network { margin-top: clamp(56px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 18px; background: var(--navy-900); color: var(--on-dark); box-shadow: var(--sh-2); position: relative; overflow: hidden; isolation: isolate; }
.network .label { color: var(--aqua); }
.network h2 { font-size: var(--s-xl); color: var(--white); margin-top: 14px; }
.network p { color: var(--on-dark-soft); }
@media (max-width: 860px) { .network { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pagina legale ---------- */
.doc { max-width: 780px; padding-block: clamp(130px, 14vw, 170px) clamp(64px, 8vw, 110px); }
.doc h1 { font-size: var(--s-2xl); margin-top: 18px; }
.doc .updated { margin-top: 14px; font-family: var(--font-mono); font-size: var(--s-xs); color: var(--muted); }
.doc h2 { font-size: var(--s-xl); margin: 56px 0 16px; padding-top: 24px; border-top: 2px solid var(--text); }
.doc h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--s-md); letter-spacing: 0; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 10px; }
.doc strong { color: var(--text); }
.doc .toc { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc .toc a { font-family: var(--font-mono); font-size: 12px; text-decoration: none; background: var(--white); box-shadow: var(--sh-1); padding: 8px 14px; border-radius: 999px; }
.doc .box { background: var(--white); border-left: 3px solid var(--blue); padding: 16px 20px; margin-top: 16px; border-radius: 0 10px 10px 0; box-shadow: var(--sh-1); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: var(--s-sm); }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--muted); }
.doc th { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Comparsa allo scorrimento: il contenuto resta visibile anche senza script */
[data-reveal="pending"] { opacity: 0; transform: translate3d(0, 28px, 0); }
[data-reveal="done"] { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
@media (min-width: 861px) { .sectors-card { position: sticky; top: 110px; } }
.method-other { margin-top: 34px; max-width: 760px; color: var(--on-dark-soft); font-size: var(--s-sm); padding-left: 18px; border-left: 2px solid var(--aqua); }

/* Elenco misure in home: voci cliccabili */
.measure-list li:has(> a) { padding: 0; }
.measure-list li > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 20px; color: inherit; text-decoration: none; border-radius: inherit; }
.measure-list li.wide > a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.measure-list li > a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.measures-more { margin: -14px 0 26px; font-size: var(--s-sm); }
.measures-more a, .panel .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.measures-more svg, .panel .more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.measures-more a:hover svg, .panel .more:hover svg { transform: translateX(4px); }
.panel .more { margin-top: 22px; font-size: var(--s-sm); }

/* Barra di navigazione interna delle pagine Servizi e Misure */
.chips { position: sticky; top: 76px; z-index: 20; background: rgba(243,246,249,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(8,21,34,.08); }
.chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.chips .wrap::-webkit-scrollbar { display: none; }
.chips a { flex: none; font-size: var(--s-xs); font-weight: 600; text-decoration: none; color: var(--text); background: var(--white); border-radius: 999px; padding: 8px 14px; box-shadow: var(--sh-1); white-space: nowrap; transition: background .2s, color .2s; }
.chips a:hover { background: var(--navy-900); color: var(--white); }
.svc, .mgroup, .mcard { scroll-margin-top: 150px; }

/* Servizi */
.svc-list .wrap { display: grid; gap: clamp(28px, 4vw, 48px); }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--sh-2); }
.svc-media { position: relative; min-height: 260px; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,21,34,.05), rgba(8,21,34,.55)); }
.svc-num { position: absolute; left: 24px; bottom: 18px; z-index: 1; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--white); opacity: .92; }
.svc-body { padding: clamp(26px, 3.4vw, 46px); display: grid; gap: 14px; align-content: start; }
.svc-body h2 { font-size: var(--s-xl); line-height: 1.1; }
.svc-body .intro { color: var(--muted); }
.svc-body .who { font-size: var(--s-sm); background: var(--paper); border-left: 3px solid var(--aqua); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.svc-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 8px; }
.svc-cols h3 { font-family: var(--font-mono); font-size: var(--s-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 12px; }
.svc-cols h3 + p + h3 { margin-top: 22px; }
.svc-out { font-size: var(--s-sm); color: var(--muted); }
.src-links { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.src-links a { font-size: var(--s-sm); line-height: 1.4; display: inline; }
.src-links .ext { width: 10px; height: 10px; margin-left: 5px; vertical-align: 1px; }
.src-note { font-size: var(--s-xs); color: var(--muted); max-width: 60em; }
@media (max-width: 900px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc-media { min-height: 180px; } .svc-cols { grid-template-columns: minmax(0, 1fr); } }

/* Misure */
.m-disclaimer { display: grid; gap: 6px; background: var(--white); border-radius: 14px; padding: 20px 24px; box-shadow: var(--sh-1); border-left: 3px solid var(--blue); max-width: 860px; margin-bottom: clamp(44px, 6vw, 72px); font-size: var(--s-sm); }
.m-disclaimer p { color: var(--muted); }
.mgroup + .mgroup { margin-top: clamp(56px, 7vw, 96px); }
.mgroup-head { margin-bottom: 26px; }
.mgroup-head h2 { font-size: var(--s-2xl); margin-top: 14px; }
.mcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mcard { background: var(--white); border-radius: 16px; box-shadow: var(--sh-1); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden; }
.mcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
.mcard header { display: grid; gap: 6px; }
.mcard h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.15; }
.mcard .by { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mcard .m-what { color: var(--text); }
.mcard dl { display: grid; gap: 12px; margin: 0; }
.mcard dt { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 3px; }
.mcard dd { margin: 0; font-size: var(--s-sm); color: var(--muted); }
.mcard .us { background: var(--paper); border-radius: 10px; padding: 12px 14px; }
.mcard .us dd { color: var(--text); }
.mcard footer { border-top: 1px solid var(--paper-2); padding-top: 14px; display: grid; gap: 8px; margin-top: auto; }
.src-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .mcards { grid-template-columns: minmax(0, 1fr); } }
/* Competenze: testi Tranche 1 */
.panel .intro { display: grid; gap: 10px; }
.panel .intro p, .svc-body .intro p { color: var(--muted); }
.panel .intro .lead-in, .svc-body .intro .lead-in { color: var(--text); font-weight: 600; font-size: var(--s-md); }
.svc-body .intro { display: grid; gap: 10px; }
.ticks li b { color: var(--text); font-weight: 600; }
.refs span { white-space: normal; }
.approach { margin-top: 14px; font-size: var(--s-xs); color: var(--muted); line-height: 1.55; }
.approach b { color: var(--text); font-weight: 600; }
.out p + p, .svc-out p + p { margin-top: 8px; }
.svc-out p { font-size: var(--s-sm); color: var(--muted); }
.panel-cta { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--paper-2); font-family: var(--font-display); font-style: italic; font-size: var(--s-lg); line-height: 1.35; color: var(--text); }
.panel-cta a { font-family: var(--font-body); font-style: normal; font-size: var(--s-sm); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.svc-cols h3 ~ h3 { margin-top: 22px; }
/* titoli delle schede più lunghi: sottotitolo sotto al titolo */
@media (min-width: 961px) {
  .tab { grid-template-columns: minmax(0, 1fr); gap: 3px; line-height: 1.3; padding: 13px 18px; }
  .tab small { justify-self: start; text-align: left; }
}
/* Squadra: schema Tranche 3 */
.person-mini small.specs { font-size: 11px; opacity: .7; margin-top: 2px; line-height: 1.35; }
.member .role .sep { opacity: .45; margin: 0 .2em; }
.member .bio + .bio { margin-top: 10px; }
.specs-block { display: grid; gap: 8px; margin-top: 4px; }
.specs-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact .lead + .lead { margin-top: 14px; }
.contact .lead strong { color: var(--white); font-weight: 600; }
.page-hero .lead + .lead { margin-top: 12px; }
.foot-note a { color: inherit; }
/* Versione leggera: competenze a schede, misure compatte */
.skill-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.skill-card { position: relative; display: block; background: var(--white); border-radius: 16px; box-shadow: var(--sh-1); color: inherit; text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.skill-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--aqua)); transform: scaleX(.2); transform-origin: left; transition: transform .5s var(--ease); }
.skill-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sc-body { padding: 24px 24px 22px; display: grid; gap: 10px; align-content: start; height: 100%; }
.sc-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--blue-ink); }
.sc-body h3 { font-size: clamp(1.2rem, 1.05rem + .45vw, 1.4rem); line-height: 1.15; }
.sc-body p { font-size: var(--s-sm); color: var(--muted); }
.sc-body .refs { margin-top: 2px; }
.sc-more { display: inline-flex; align-items: center; gap: 8px; font-size: var(--s-sm); font-weight: 600; color: var(--blue-ink); margin-top: 6px; }
.sc-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.skill-card:hover .sc-more svg { transform: translateX(4px); }
@media (max-width: 1180px) { .skill-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .skill-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .skill-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; } .sc-body { padding: 18px 18px 16px; gap: 8px; } .sc-body .refs { display: none; } }
.measures-lead { color: var(--muted); max-width: 34em; margin: -8px 0 22px; }
.measure-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.measure-chips a { font-size: var(--s-sm); font-weight: 600; text-decoration: none; color: var(--text); background: var(--white); border-radius: 999px; padding: 9px 15px; box-shadow: var(--sh-1); transition: background .2s, color .2s; }
.measure-chips a:hover { background: var(--navy-900); color: var(--white); }
/* Versione leggera: fasi del metodo compatte */
.phases.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.phases.compact .phase { padding: 20px 18px; gap: 8px; }
.phases.compact .phase h3 { font-size: 1.25rem; }
.phases.compact .phase p { font-size: var(--s-xs); line-height: 1.5; }
.phases.compact .deliv { display: none; }
@media (max-width: 1180px) { .phases.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .phases.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phases.compact .phase p { display: none; } }

/* ============ Struttura v10: una pagina per sezione ============ */
.btn-dark { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.about .hero-actions { margin-top: 28px; }

/* Hero: il metodo in sei passaggi */
.cycle { margin: 0; padding: 26px 26px 20px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-soft); min-width: 0; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--ease); }
.cycle:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.cycle-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cycle-steps { list-style: none; display: grid; gap: 4px; position: relative; padding: 0; margin: 0; }
.cycle-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--blue), var(--aqua)); opacity: .45; }
.cycle-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 12px 9px 0; border-radius: 10px; }
.c-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); border: 1.5px solid rgba(92,225,229,.55); color: var(--aqua); font-size: 11px; position: relative; z-index: 1; animation: cyclePulse 9s var(--ease) infinite; animation-delay: calc(var(--i) * 1.5s); }
.cycle-steps b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--white); letter-spacing: 0; }
.c-d { font-size: 11.5px; color: var(--on-dark-soft); text-align: right; }
.cycle-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.14); color: var(--on-dark-soft); }
.cycle-note svg { width: 18px; height: 18px; color: var(--aqua); flex: none; }
@keyframes cyclePulse { 0%, 14%, 100% { background: var(--navy-900); color: var(--aqua); box-shadow: none; } 5% { background: var(--aqua); color: #052129; box-shadow: 0 0 0 6px rgba(92,225,229,.18); } }
@media (prefers-reduced-motion: reduce) { .c-n { animation: none; } }
@media (max-width: 960px) { .cycle { transform: none; } }
@media (max-width: 560px) { .c-d { display: none; } .cycle-steps li { grid-template-columns: 36px minmax(0, 1fr); } }

/* Fascia contatti in fondo alle pagine */
.cta-band { padding-block: clamp(64px, 8vw, 104px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--s-2xl); margin-top: 16px; color: var(--white); }
.cta-band h2 em { color: var(--aqua); font-style: italic; }

/* Home: anteprima squadra su fondo chiaro */
.people-row.light-row { margin-top: clamp(48px, 6vw, 80px); }
.light-row .person-mini { color: var(--text); }
.light-row .person-mini small { color: var(--muted); }

/* Chi siamo: CV orizzontali */
.section-head-text { display: grid; gap: 12px; }
.section-head-text p { color: var(--muted); max-width: 36em; }
.people-list { display: grid; gap: 20px; }
.pcard { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-1); scroll-margin-top: 110px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.pcard:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.pcard .ph { min-height: 260px; }
.pcard-body { padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px); display: grid; gap: 16px; align-content: start; }
.pcard .role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); }
.pcard .role .sep { opacity: .45; margin: 0 .2em; }
.pcard h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; margin-top: 6px; }
.pcard-cols { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pcard .bio { display: grid; gap: 10px; }
.pcard .bio p { color: var(--muted); font-size: var(--s-sm); }
.pcard .specs-block { border-left: 1px solid var(--paper-2); padding-left: 22px; }
.pcard .specs-block ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.pcard .specs-block li { position: relative; padding-left: 18px; font-size: var(--s-sm); font-weight: 600; }
.pcard .specs-block li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-top: 2px solid var(--aqua); border-right: 2px solid var(--aqua); }
@media (max-width: 900px) { .pcard-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; } .pcard .specs-block { border-left: 0; padding-left: 0; border-top: 1px solid var(--paper-2); padding-top: 14px; } }
@media (max-width: 640px) { .pcard { grid-template-columns: minmax(0, 1fr); } .pcard .ph { min-height: 0; aspect-ratio: 16 / 9; } }
.section.alt .network { margin-top: clamp(40px, 5vw, 64px); }

/* Metodo */
.std-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.std-title { font-size: var(--s-2xl); margin-top: 16px; }
.std-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.std-list li { display: grid; gap: 2px; background: var(--white); border-radius: 12px; padding: 16px 20px; box-shadow: var(--sh-1); border-left: 3px solid var(--aqua); }
.std-list b { font-weight: 600; }
.std-list span { font-size: var(--s-sm); color: var(--muted); }
.fin-path { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.gantt.on-light { background: linear-gradient(160deg, #0d2033, #081522); border-color: rgba(255,255,255,.08); box-shadow: var(--sh-2); transform: none; }
.fin-steps { list-style: none; counter-reset: fs; padding: 0; margin: 0; display: grid; gap: 12px; }
.fin-steps li { counter-increment: fs; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; }
.fin-steps li::before { content: counter(fs, decimal-leading-zero); grid-row: span 2; font-family: var(--font-mono); font-size: 12px; color: var(--blue-ink); padding-top: 3px; }
.fin-steps b { font-weight: 600; }
.fin-steps span { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 900px) { .std-grid, .fin-path { grid-template-columns: minmax(0, 1fr); } }

/* Q&A e Contatti */
.faq-side { font-size: var(--s-xl) !important; }
.faq .hero-actions { margin-top: 22px; }
.page-contact .contact-grid { padding-top: clamp(150px, 15vw, 200px); }
.page-contact h1 { font-size: var(--s-3xl); font-weight: 340; margin-top: 18px; color: var(--white); line-height: 1.04; }
.page-contact h1 em { color: var(--aqua); font-style: italic; }
.nav .cta[aria-current="page"] { background: var(--aqua-soft); color: #052129; }
.portrait img { object-position: 50% 18%; }
.pcard .portrait::before, .pcard .portrait::after, .person-mini .portrait::before, .person-mini .portrait::after { z-index: 1; }

/* Barra collegamenti scorrevole: rotellina, frecce e sfumature ai bordi */
.chips .wrap { display: block; overflow: visible; padding-block: 0; position: relative; }
.chips-track { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.chips-track::-webkit-scrollbar { display: none; }
.chips .wrap::before, .chips .wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 72px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.chips .wrap::before { left: max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(90deg, rgba(243,246,249,1) 30%, rgba(243,246,249,0)); }
.chips .wrap::after { right: max(16px, env(safe-area-inset-right, 0px)); background: linear-gradient(270deg, rgba(243,246,249,1) 30%, rgba(243,246,249,0)); }
.chips.more-left .wrap::before, .chips.more-right .wrap::after { opacity: 1; }
.chips-arrow { position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--navy-900); color: var(--white); box-shadow: var(--sh-1); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, background .2s; }
.chips-arrow:hover { background: #2C89BE; }
.chips-arrow.prev { left: max(16px, env(safe-area-inset-left, 0px)); }
.chips-arrow.next { right: max(16px, env(safe-area-inset-right, 0px)); }
.chips.more-left .chips-arrow.prev, .chips.more-right .chips-arrow.next { opacity: 1; pointer-events: auto; }
@media (hover: none) { .chips-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .chips-track { scroll-behavior: auto; } }
