/* Scroll narrative, revised from the four visual references.
   Defaults remain fully readable; motion is enabled only after layout is ready. */
main { position: relative; isolation: isolate; }
main > section { position: relative; }
main > section > .wrap { position: relative; z-index: 3; }
.journey-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
  contain: layout style;
}
.journey-path { stroke: var(--cyan); stroke-linecap: round; stroke-linejoin: round; }
.journey-tip { fill: var(--cyan); }
.hero { overflow: clip; }
.hero-grid { padding-bottom: 112px; }
.hero .btn .arrow { color: var(--ice); }
.hero .row { gap: 15px; width: fit-content; max-width: 100%; flex-direction: column; align-items: center; }
.hero-secondary {
  font-size: 12px;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: rgba(28,36,56,.3);
  text-underline-offset: 5px;
  padding: 5px 0;
}
.hero-secondary:hover { text-decoration-color: currentColor; }
.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
}
.scroll-cue svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.scroll-cue:hover svg { transform: translateY(3px); }

/* Two edge-to-edge belts, with the same soft rectangular proportions. */
#proof { padding: 132px 0 132px; overflow: clip; }
#proof .proof-top { display: flex; justify-content: flex-end; margin-bottom: 28px; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  min-height: 44px;
  padding: 8px 0 8px 15px;
}
.motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.marquee { position: relative; z-index: 3; overflow: hidden; padding-block: 5px; }
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; gap: 24px; padding-right: 24px; min-width: 100vw; }
.marquee-group > * { flex: 1 0 clamp(220px,20vw,310px); }
#proof .logo-slot, #proof .stat {
  height: clamp(150px,13vw,200px);
  width: clamp(220px,20vw,310px);
  border-radius: 24px;
  border: 0;
  background: #fafaf8;
  color: var(--ink);
  margin: 0;
  padding: 32px;
}
#proof .logo-slot img { width: 100%; max-width: 180px; height: 64px; object-fit: contain; }
#proof .blastness-slot img { width: 50px; height: 60px; }
#proof .blastness-slot span { font-size: 21px; }
#proof .logo-placeholder { border: 1px dashed rgba(28,36,56,.24); }
#proof .logo-placeholder span { font-size: 25px; }
#proof .logo-placeholder small { font-size: 11px; }
#proof .stat { display: flex; flex-direction: column; justify-content: center; padding-left: 38px; }
#proof .stat b { font-size: clamp(50px,5vw,76px); line-height: 1; letter-spacing: -.06em; }
#proof .stat span { font-size: 14px; line-height: 1.5; max-width: 22ch; margin-top: 13px; }
.motion-ready .marquee-track { animation: belt 42s linear infinite; }
.motion-ready .marquee-kpis .marquee-track { animation-name: belt-reverse; animation-duration: 46s; }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes belt-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }
#proof.is-paused .marquee-track, #proof.is-offscreen .marquee-track, .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
html:not(.motion-ready) .marquee { overflow-x: auto; }
html:not(.motion-ready) .marquee-group[aria-hidden] { display: none; }
html:not(.motion-ready) .motion-toggle { display: none; }

/* Large dark passage: four stations, physically reached by the same line. */
#flusso { padding-block: 144px 112px; }
#flusso h2 { font-size: clamp(48px,6.8vw,100px); line-height: 1.08; max-width: 1080px; }
.flow-word { display: inline-block; }
.motion-ready .flow-word { opacity: var(--word-opacity,.14); }
#flusso .lead { max-width: 46ch; margin: 52px 3% 0 auto; font-size: 18px; }
#flusso .stations { display: block; margin: 104px 0 60px 15%; padding: 0; }
#flusso .flow-station {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 44px;
  align-items: start;
  min-height: 270px;
  border: 0;
  padding: 32px 0 72px;
}
#flusso .station-node {
  position: relative;
  display: block;
  left: auto;
  top: 23px;
  width: 28px;
  height: 28px;
  border: 5px solid var(--cyan);
  border-radius: 50%;
  background: var(--ink);
  margin: 0 auto;
}
#flusso .station-copy h3 { font-size: clamp(39px,5vw,72px); letter-spacing: -.05em; margin: 0 0 20px; line-height: 1.1; }
#flusso .station-copy p { font-size: 19px; max-width: 38ch; line-height: 1.65; }
.motion-ready #flusso .station-copy { opacity: 0; transform: translateY(34px); transition: opacity .45s ease,transform .6s var(--ease); }
.motion-ready #flusso .flow-station.is-reached .station-copy { opacity: 1; transform: none; }
.motion-ready #flusso .flow-station.is-reached .station-node { background: var(--cyan); }
#flusso > .wrap > .btn { margin-left: calc(15% + 100px); max-width: 70%; }
#flusso .btn .arrow { color: #007e9b; }

/* Four sticky panels, each sliding over the previous one through native scroll. */
#riconosci { padding: 120px 0 112px; }
#riconosci > .wrap { display: block; width: min(calc(100% - 48px),1600px); }
#riconosci h2 { font-size: clamp(44px,5.4vw,78px); max-width: 1050px; padding-inline: clamp(8px,3vw,56px); margin-bottom: 80px; }
#riconosci .situation-stack { list-style: none; padding: 0; margin: 0; }
#riconosci .situation-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  margin: 0 0 32px;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  min-height: 580px;
  height: max(580px,calc(100svh - 160px));
  max-height: 850px;
  background: var(--navy);
  color: var(--paper);
}
.motion-ready #riconosci .situation-card { position: sticky; top: calc(112px + var(--card-index)*16px); }
.situation-copy { padding: clamp(32px,4vw,72px); min-width: 0; }
.situation-counter { display: block; font-size: 13px; letter-spacing: .08em; margin-bottom: clamp(32px,4vw,60px); }
#riconosci .situation-card h3 { font-size: clamp(36px,4.6vw,68px); line-height: 1.08; letter-spacing: -.045em; max-width: 15ch; margin-bottom: 32px; }
#riconosci .situation-card p { font-size: clamp(16px,1.6vw,23px); line-height: 1.6; max-width: 40ch; opacity: 1; }
.situation-visual { position: relative; overflow: hidden; background: var(--cyan); color: var(--paper); }
.situation-visual > span {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%,-50%);
  font-size: clamp(760px,86vw,1400px);
  font-weight: 600;
  letter-spacing: -.1em;
  line-height: 1;
  user-select: none;
}
#riconosci .situation-2 { background: var(--ink); }
.situation-2 .situation-visual { background: var(--paper); color: var(--cyan); }
#riconosci .situation-3 { background: var(--cyan); color: var(--ink); }
.situation-3 .situation-visual { background: var(--navy); color: var(--paper); }
.situation-4 .situation-visual { background: var(--cyan); color: var(--ink); }
#riconosci .lead { max-width: 40ch; margin: 100px auto 0; padding: 0 20px; font-size: clamp(25px,3vw,42px); line-height: 1.4; }

@media(max-width: 1100px) {
  #riconosci .situation-card { min-height: 540px; }
  #riconosci .situation-card h3 { font-size: clamp(36px,4.9vw,54px); }
  #riconosci .situation-card p { font-size: 17px; }
  .situation-copy { padding: 36px; }
}
@media(max-width: 800px) {
  #proof { padding-block: 92px; }
  #proof .logo-slot,#proof .stat { width: 220px; height: 150px; padding: 24px; border-radius: 18px; }
  .marquee-group { gap: 16px; padding-right: 16px; }
  .marquee-group > * { flex-basis: 220px; }
  .marquee + .marquee { margin-top: 6px; }
  #proof .stat span { font-size: 12px; }
  #flusso { padding-block: 100px 80px; }
  #flusso h2 { font-size: 60px; }
  #flusso .lead { margin-top: 40px; font-size: 17px; }
  #flusso .stations { margin-left: 2%; margin-top: 72px; }
  #flusso .flow-station { min-height: 240px; gap: 26px; grid-template-columns: 32px minmax(0,1fr); }
  #flusso .station-node { width: 22px; height: 22px; border-width: 4px; top: 17px; }
  #flusso .station-copy h3 { font-size: 49px; }
  #flusso .station-copy p { font-size: 17px; }
  #flusso > .wrap > .btn { margin-left: calc(2% + 58px); max-width: calc(98% - 58px); }
  #riconosci { padding-top: 80px; }
  #riconosci h2 { font-size: 49px; margin-bottom: 56px; }
  #riconosci .situation-card { grid-template-columns: 1.15fr 1fr; height: max(600px,calc(100svh - 145px)); min-height: 600px; }
  .motion-ready #riconosci .situation-card { top: calc(90px + var(--card-index)*10px); }
  .situation-copy { padding: 32px; }
  #riconosci .situation-card h3 { font-size: 39px; }
  .situation-visual > span { font-size: 900px; }
}
@media(max-width: 560px) {
  .hero-grid { padding-bottom: 108px; }
  .hero .row { gap: 12px; }
  .hero-secondary { font-size: 11px; max-width: 31ch; line-height: 1.7; }
  .hero .btn { width: auto; max-width: 100%; }
  .scroll-cue { bottom: 22px; font-size: 10px; gap: 8px; }
  #proof { padding-block: 66px 80px; }
  #proof .proof-top { margin-bottom: 16px; }
  #proof .logo-slot,#proof .stat { height: 134px; width: 200px; }
  .marquee-group > * { flex-basis: 200px; }
  #proof .logo-slot img { max-width: 145px; height: 52px; }
  #proof .blastness-slot img { width: 36px; }
  #proof .blastness-slot span { font-size: 18px; }
  #proof .stat b { font-size: 52px; }
  #proof .stat span { font-size: 12px; margin-top: 10px; }
  #flusso { padding-block: 80px; }
  #flusso h2 { font-size: clamp(37px,10.5vw,56px); padding-right: 14px; }
  #flusso .lead { margin: 32px 0 0; font-size: 16px; padding-right: 12px; }
  #flusso .stations { margin: 60px 0 40px; }
  #flusso .flow-station { grid-template-columns: 18px minmax(0,1fr); gap: 20px; min-height: 230px; padding: 24px 0 62px; }
  #flusso .station-node { width: 18px; height: 18px; border-width: 3px; top: 13px; }
  #flusso .station-copy h3 { font-size: clamp(29px,8.5vw,42px); margin-bottom: 16px; }
  #flusso .station-copy p { font-size: 15px; }
  #flusso > .wrap > .btn { margin: 0 0 0 38px; max-width: calc(100% - 38px); border-radius: 28px; }
  #riconosci > .wrap { width: calc(100% - 24px); }
  #riconosci h2 { font-size: 39px; padding: 0 12px; margin-bottom: 40px; }
  #riconosci .situation-card { grid-template-columns: 1fr; grid-template-rows: minmax(280px,1fr) 240px; height: auto; min-height: 600px; max-height: none; border-radius: 20px; margin-bottom: 22px; }
  .motion-ready #riconosci .situation-card { top: calc(84px + var(--card-index)*8px); }
  .situation-copy { padding: 28px 24px; }
  .situation-counter { font-size: 11px; margin-bottom: 28px; }
  #riconosci .situation-card h3 { font-size: clamp(29px,8.8vw,39px); line-height: 1.1; max-width: 16ch; margin-bottom: 24px; }
  #riconosci .situation-card p { font-size: 15px; line-height: 1.65; }
  .situation-visual { min-height: 240px; padding: 28px 20px; }
  .situation-visual > span { font-size: 148px; top: 50%; }
  #riconosci .lead { font-size: 26px; padding: 0 12px; margin-top: 64px; }
}
/* Short windows must never pin a panel taller than the reading area. */
@media(max-height: 720px) { .motion-ready #riconosci .situation-card { position: relative; top: auto; } }
@media(prefers-reduced-motion: reduce) {
  .journey-tip { display: none; }
  .marquee-track { animation: none !important; transform: none !important; }
  .marquee { overflow-x: auto; }
  .marquee-group[aria-hidden] { display: none; }
  .motion-toggle { display: none; }
  .flow-word { opacity: 1 !important; }
  #flusso .station-copy { opacity: 1 !important; transform: none !important; }
  #riconosci .situation-card { position: relative !important; top: auto !important; }
}
#proof.is-offscreen .marquee-track { animation-play-state: paused; }

/* A framed conclusion connects the stacked situations to the thesis. */
#riconosci h2 { margin-bottom: 150px; }
#riconosci .lead { max-width: none; width: calc(100% - 64px); margin: 110px auto 0; padding: 52px 54px; text-align: center; }
#tesi .wrap { gap: 48px; }
#tesi .thesis-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 0; border: 0; margin: 0; counter-reset: thesis; }
#tesi .thesis-cards li { counter-increment: thesis; display: flex; flex-direction: column; justify-content: space-between; gap: 70px; min-height: 350px; padding: 36px; border-radius: 30px; background: #fff; font-size: clamp(22px,2.3vw,34px); line-height: 1.3; letter-spacing: -.035em; }
#tesi .thesis-cards li::before { content: '0' counter(thesis); display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border: 2px solid currentColor; border-radius: 50%; font-size: 18px; letter-spacing: 0; }
#tesi .system-diagram { grid-column: 1; grid-row: 3; }
#tesi .lead { grid-column: 2; grid-row: 3; margin: 0; padding: 40px; background: #fff; border-radius: 30px; align-self: stretch; display: flex; align-items: center; }
.journey-frame { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-linejoin: round; }
@media(max-width: 760px) {
 #tesi .thesis-cards { gap: 14px; }
 #tesi .thesis-cards li { padding: 22px; font-size: 22px; min-height: 320px; }
 #riconosci .lead { width: calc(100% - 24px); padding: 36px 24px; }
}
@media(max-width: 560px) {
 #riconosci h2 { margin-bottom: 90px; }
 #riconosci .lead { margin-top: 72px; font-size: 24px; }
 #tesi .thesis-cards { grid-template-columns: 1fr; }
 #tesi .thesis-cards li { min-height: 240px; gap: 40px; padding: 28px; font-size: 28px; }
 #tesi .system-diagram { grid-column: 1; grid-row: auto; }
 #tesi .lead { grid-column: 1; grid-row: auto; padding: 28px; }
}

/* Thesis: aligned statements and one shared contrasting conclusion. */
#tesi .thesis-cards li { justify-content: flex-start; gap: 64px; }
#tesi .thesis-cards strong { font-weight: 600; }
#tesi .thesis-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; padding: clamp(28px,4vw,64px); border-radius: 30px; background: var(--ink); color: var(--paper); }
#tesi .thesis-panel .system-diagram { grid-column: auto; grid-row: auto; }
#tesi .thesis-panel .lead { grid-column: auto; grid-row: auto; background: none; border-radius: 0; padding: 0; font-size: clamp(22px,2.4vw,34px); line-height: 1.5; }
.thesis-panel .loose,.thesis-panel .joining { stroke: var(--paper); }
.thesis-panel .loose circle,.thesis-panel .connected circle { fill: var(--ink); }
@media(max-width: 760px) { #tesi .thesis-panel { grid-template-columns: 1fr; gap: 28px; } }
@media(max-width: 560px) { #tesi .thesis-cards li { gap: 40px; } }

/* Method: wide editorial panels with a continuous line behind them. */
#metodo .wrap { display: block; }
#metodo h2 { max-width: 72%; margin-bottom: 88px; font-size: clamp(40px,5.4vw,78px); }
#metodo .steps { padding: 0; display: grid; gap: 22px; }
#metodo .steps li { position: relative; grid-template-columns: 54px 1.65fr 1fr; align-items: center; gap: 28px; padding: 54px 48px; min-height: 210px; border: 1px solid transparent; border-radius: 28px; background: #2c364a; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
#metodo .steps li > span { padding: 0; align-self: start; font-size: 16px; }
#metodo .steps h3 { margin: 0; font-weight: 500; font-size: clamp(30px,3.8vw,55px); letter-spacing: -.045em; line-height: 1.15; }
#metodo .steps p { margin: 0; font-size: clamp(16px,1.5vw,21px); line-height: 1.5; }
@media(hover:hover) and (pointer:fine) {
 #metodo .steps li:hover { background: #35445b; border-color: var(--cyan); transform: translateY(-3px); }
}
@media(max-width: 760px) {
 #metodo h2 { max-width: 85%; margin-bottom: 56px; }
 #metodo .steps li { grid-template-columns: 38px 1fr; gap: 18px; padding: 32px; min-height: 200px; }
 #metodo .steps p { grid-column: 2; }
}
@media(max-width: 560px) {
 #metodo h2 { max-width: 100%; font-size: 39px; padding-right: 12px; }
 #metodo .steps li { padding: 28px 22px; border-radius: 22px; }
 #metodo .steps h3 { font-size: 30px; }
}
@media(prefers-reduced-motion:reduce) { #metodo .steps li { transition: none; transform: none; } }

/* The three pillars form one scroll-built system. */
#pilastri { padding-bottom: 100px; }
#pilastri h2 { max-width: 1050px; font-size: clamp(40px,5.3vw,76px); }
.pillar-story { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin-top: 72px; position: relative; }
.pillar-map { position: sticky; top: 150px; height: min(560px,65vh); background: var(--cyan); }
.pillar-map svg { width: 100%; height: 100%; overflow: visible; }
.pillar-thread { stroke: white; stroke-width: 12; stroke-linecap: round; }
.map-symbol { stroke: var(--ink); stroke-width: 3; fill: var(--cyan); transition: opacity .35s ease, stroke .35s ease; }
.map-symbol path { fill: none; }
#pilastri .pillars { display: block; margin: 0; }
#pilastri .pillar { min-height: 420px; display: flex; flex-direction: column; justify-content: center; padding: 60px 0; border-top: 1px solid rgba(28,36,56,.25); transition: opacity .3s ease; }
#pilastri .pillar:last-child { border-bottom: 1px solid rgba(28,36,56,.25); }
#pilastri .pillar h3 { font-size: clamp(44px,5vw,72px); letter-spacing: -.05em; margin-bottom: 24px; }
#pilastri .pillar p { font-size: clamp(19px,2vw,27px); max-width: 27ch; }
#pilastri .pillar-symbol { display: none; }
.motion-ready .map-symbol { opacity: .3; }
.motion-ready .map-symbol.is-built { opacity: 1; stroke: var(--ink); }
.motion-ready #pilastri .pillar { opacity: .42; }
.motion-ready #pilastri .pillar.is-built { opacity: 1; }
@media(max-width:760px) {
 .pillar-story { display: block; margin-top: 48px; padding-left: 30px; }
 .pillar-map { display: none; }
 #pilastri .pillar { min-height: 360px; padding: 42px 16px; }
 #pilastri .pillar-symbol { display: block; margin-bottom: 24px; }
 #pilastri .pillar h3 { font-size: 44px; }
}
@media(prefers-reduced-motion:reduce) {
 .pillar-map { position: relative; top: auto; }
 .motion-ready #pilastri .pillar,.motion-ready .map-symbol { opacity: 1; transition: none; }
}

/* Keep the outgoing curve clear of the sticky diagram background. */
#pilastri { padding-bottom: 140px; }

/* Give the pillar heading breathing room above the white connector. */
#pilastri h2 { position: relative; top: -28px; }
@media(max-width: 560px) { #pilastri h2 { top: -16px; } }

/* Areas: three equally weighted editorial columns. */
#aree .cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 72px; }
#aree .cards .card { padding: 0 clamp(22px,3vw,48px); border: 0; border-left: 1px solid var(--rule); }
#aree .cards .card:first-child { border-left: 0; padding-left: 0; }
#aree .cards .card:last-child { padding-right: 0; }
#aree .area-number { color: var(--cyan); font-size: 15px; font-weight: 500; letter-spacing: .08em; margin-bottom: 24px; }
#aree .card h3 { font-size: clamp(25px,2.7vw,39px); line-height: 1.15; letter-spacing: -.04em; font-weight: 500; min-height: 2.3em; margin: 0 0 36px; }
#aree .card ul { padding: 0; margin: 0; display: grid; gap: 22px; }
#aree .card li { border: 0; padding: 0; font-size: clamp(16px,1.45vw,20px); line-height: 1.65; font-weight: 400; }
#aree .card .ai { font-size: 14px; line-height: 1.6; font-weight: 400; min-height: 88px; margin: auto 0 0; padding-top: 40px; align-items: baseline; }
@media(max-width:760px) {
 #aree .cards { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
 #aree .cards .card,#aree .cards .card:first-child,#aree .cards .card:last-child { border: 0; padding: 0; }
 #aree .card h3 { min-height: 0; margin-bottom: 28px; font-size: 34px; }
 #aree .area-number { margin-bottom: 16px; }
 #aree .card .ai { min-height: 0; padding-top: 28px; }
}

/* People: equal portraits, contribution, and visible experience. */
#team .team-intro { max-width: 760px; margin-top: 28px; font-size: clamp(18px,2vw,25px); line-height: 1.6; }
#team .team { margin-top: 112px; align-items: stretch; }
#team .person { display: flex; flex-direction: column; min-width: 0; }
#team .person > p { margin-bottom: 28px; }
#team .person-experience { background: var(--paper); border-radius: 24px; padding: 28px; margin-top: auto; }
#team .experience-stat { display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; max-width: none; min-height: 150px; }
#team .experience-stat strong { font-size: clamp(48px,5vw,72px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
#team .experience-stat span { font-size: 15px; line-height: 1.5; }
#team .person-experience ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
#team .person-experience li { font-size: 14px; line-height: 1.5; padding-left: 15px; position: relative; }
#team .person-experience li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
@media(max-width:760px) {
 #team .team { grid-template-columns: 1fr; gap: 56px; margin-top: 72px; padding-right: 16px; }
 #team .experience-stat { min-height: 0; }
 #team .person-experience { margin-top: 0; }
}
#team .person > p { min-height: 4.8em; }
#team .person-experience { margin-top: 0; flex: 1; }
#team .experience-stat { min-height: 130px; }
@media(max-width:760px) { #team .person > p { min-height: 0; } #team .experience-stat { min-height: 0; } }

/* Client voices: open editorial rows, connected by the journey. */
#voci h2 { max-width: 1000px; }
#voci .quotes { display: block; margin-top: 120px; }
#voci .quote { position: relative; display: grid; grid-template-columns: minmax(0,2.5fr) minmax(150px,1fr); gap: 48px; align-items: center; border: 0; padding: 44px 0 68px 80px; margin: 0; min-height: 290px; }
#voci blockquote { font-size: clamp(26px,3.3vw,46px); line-height: 1.35; letter-spacing: -.04em; max-width: 30ch; font-weight: 400; }
#voci blockquote strong { font-weight: 600; }
#voci figcaption { margin: 0; padding: 0; font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 8px; }
#voci .quote-company { font-size: 18px; font-weight: 500; }
.quote-node { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; background: var(--paper); border: 3px solid var(--cyan); border-radius: 50%; transition: background-color .25s ease; }
.quote.is-reached .quote-node { background: var(--cyan); }
@media(max-width:760px) {
 #voci .quotes { margin-top: 88px; }
 #voci .quote { grid-template-columns: 1fr; padding: 24px 0 56px 44px; gap: 24px; min-height: 300px; }
 #voci blockquote { font-size: clamp(25px,5vw,34px); }
 .quote-node { width: 16px; height: 16px; }
}
@media(prefers-reduced-motion:reduce) { .quote-node { transition: none; background: var(--cyan); } }
#voci .quote-node { width: 36px; height: 36px; left: -7px; box-shadow: 0 0 0 4px var(--paper); }
@media(max-width:760px) { #voci .quote-node { width: 24px; height: 24px; left: -4px; } }

/* Consistent rounded portraits and replaceable testimonial photos. */
#team .portrait { border-radius: 24px; }
#voci .quote-photo { width: 88px; height: 88px; border-radius: 20px; background: #e4e3dd; border: 1px dashed #8c9299; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; flex-shrink: 0; }
#voci .quote-photo > span { font-size: 11px; line-height: 1.4; text-align: center; color: var(--ink); }
#voci .quote-photo img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width:760px) {
 #voci figcaption { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; row-gap: 2px; align-items: center; }
 #voci .quote-photo { width: 64px; height: 64px; border-radius: 16px; grid-row: 1 / 3; margin: 0; }
 #voci figcaption > span:nth-child(2) { align-self: end; }
 #voci .quote-company { align-self: start; }
}

/* One final choice, two distinct booking paths. */
#chiusura h2 { max-width: 75%; font-size: clamp(44px,6vw,84px); }
.booking-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; margin-top: 130px; }
.booking-option { min-width: 0; background: var(--paper); color: var(--ink); border-radius: 30px; padding: clamp(28px,4vw,56px); display: flex; flex-direction: column; }
.booking-option .kicker { font-size: 14px; min-height: 3em; margin-bottom: 24px; }
.booking-option h3 { font-size: clamp(30px,3.8vw,52px); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 28px; }
.booking-description { font-size: 18px; line-height: 1.65; margin-bottom: 40px; }
.booking-option .btn { margin-top: auto; background: var(--ink); color: var(--paper); width: 100%; justify-content: space-between; font-size: 14px; }
.booking-option .btn .arrow { color: var(--cyan); flex-shrink: 0; }
.booking-option .pending-note { margin-top: 18px; font-size: 12px; color: var(--ink); opacity: .7; }
.booking-fork { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-linejoin: round; }
@media(max-width:760px) { .booking-options { grid-template-columns: 1fr; gap: 40px; margin-top: 100px; } .booking-option h3 { font-size: 38px; } .booking-description { font-size: 17px; } }

#chiusura h2 { position: relative; top: -28px; }
.booking-options { counter-reset: booking; }
.booking-option { counter-increment: booking; }
.booking-option::before { content: '0' counter(booking); width: 46px; height: 46px; border: 2px solid var(--cyan); border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 500; margin-bottom: 24px; }
.booking-option .kicker { font-size: clamp(17px,1.8vw,22px); font-weight: 500; line-height: 1.4; min-height: 2.8em; max-width: 26ch; margin-bottom: 28px; }
@media(max-width:560px) { #chiusura h2 { top: -16px; } }

/* Paper footer clearly separates navigation from the booking section. */
#footer { background: var(--paper); color: var(--ink); --rule: rgba(28,36,56,.22); }
#footer .fcol h3 { color: #505a6b; }
#footer .email-line input,#footer .email-line button { color: var(--ink); }
#footer .email-line input::placeholder { color: var(--ink); opacity: .65; }
#footer .footer-mark { color: var(--ink); }
#footer .footer-mark .uml::after { background: var(--ink); }
#footer .footer-mark .uml { color: var(--ink); }
#footer .footer-mark .uml::before { background: var(--cyan); }
/* Compact and align the footer identity and navigation. */
#footer .fcol:first-child { display: flex; flex-direction: column; align-items: center; text-align: center; }
#footer .fcol:first-child .logo { justify-content: center; }
#footer .fcol:first-child .payoff { margin-top: 8px; text-align: center; }
#footer .fcol h3 { font-weight: 600; color: var(--ink); }
#footer .footer-mark { margin-top: 32px; }
@media(max-width:560px) { #footer .footer-mark { margin-top: 24px; } }
#footer .fcol:first-child { justify-content: flex-start; }

/* Three useful footer columns: identity, contact details, newsletter. */
#footer .foot { grid-template-columns: 1.1fr 1fr 1.4fr; gap: clamp(28px,5vw,72px); }
#footer .footer-contacts p { margin-bottom: 14px; }
#footer .footer-contacts .pending-note { font-size: 11px; opacity: .65; margin-top: 22px; }
@media(max-width:800px) {
 #footer .foot { grid-template-columns: 1fr 1.3fr; gap: 32px; }
 #footer .fcol:first-child { grid-column: 1 / -1; }
}
@media(max-width:560px) {
 #footer .foot { grid-template-columns: 1fr; gap: 32px; }
 #footer .fcol:first-child { grid-column: auto; }
}

/* Compact navigation expands only on request, on every screen size. */
.site-header { z-index: 50; }
.site-header .nav-wrap { min-height: 100px; }
.site-header .logo,.site-header .menu-toggle { position: relative; z-index: 2; }
.site-header .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 60px; height: 60px; flex: none; border: 2px solid currentColor; border-radius: 50%; color: var(--ink); background: var(--paper); cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s ease; }
.menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
#navigation { position: fixed; inset: 0; height: 100dvh; max-height: none; padding: 130px var(--gutter) 40px; display: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; background: var(--ink); color: var(--paper); overflow-y: auto; border: 0; counter-reset: menu; }
#navigation.open { display: flex; animation: menu-appear .25s ease both; }
#navigation::before { content: ''; position: absolute; inset: 0 0 0 62%; background: rgba(255,255,255,.035); pointer-events: none; }
#navigation > a,#navigation > .nav-cta { counter-increment: menu; font-size: clamp(36px,6.3vw,86px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 28px; padding: 6px 0; margin: 0; border: 0; border-radius: 0; color: var(--paper); background: none; transition: color .2s; }
#navigation > a::before { content: '0' counter(menu); font-size: 13px; letter-spacing: .05em; color: var(--cyan); }
#navigation > a::after { display: none; }
#navigation > a:hover,#navigation > a:focus-visible { color: var(--ice); }
#navigation .arrow { display: none; }
.site-header.menu-open { background: var(--ink); border-color: transparent; }
.menu-open .logo { color: var(--paper); }
.menu-open .logo .mark circle { stroke: var(--paper); }
.menu-open .logo .mark circle:nth-child(2) { fill: var(--paper); }
.menu-open .logo .uml::after { background: var(--paper); }
.site-header.menu-open .menu-toggle { color: var(--paper); background: transparent; }
body.menu-is-open { overflow: hidden; }
@keyframes menu-appear { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media(max-width:560px) {
 .site-header .nav-wrap { min-height: 80px; gap: 12px; }
 .site-header .menu-toggle { width: 48px; height: 48px; }
 #navigation { padding-top: 110px; padding-bottom: 30px; }
 #navigation > a,#navigation > .nav-cta { font-size: clamp(32px,9vw,46px); gap: 18px; }
}
@media(max-height:600px) { #navigation { justify-content: flex-start; } #navigation > a,#navigation > .nav-cta { font-size: 32px; } }
@media(prefers-reduced-motion:reduce) { #navigation.open { animation: none; } .menu-toggle span { transition: none; } }

/* Context for the commercial check-up, aligned with the flow stations. */
#flusso .flow-invitation { margin-left: calc(15% + 100px); max-width: 640px; padding-right: 30px; }
#flusso .flow-invitation h3 { font-size: clamp(27px,3vw,42px); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 22px; }
#flusso .flow-invitation p { font-size: 18px; line-height: 1.7; margin: 0 0 30px; max-width: 48ch; }
#flusso .flow-invitation .btn { max-width: 100%; }
@media (max-width: 900px) { #flusso .flow-invitation { margin-left: calc(2% + 58px); } }
@media (max-width: 560px) { #flusso .flow-invitation { margin-left: 38px; padding-right: 12px; } #flusso .flow-invitation p { font-size: 16px; } }

.booking-option .booking-label { font-size: 14px; font-weight: 600; line-height: 1.5; margin: -8px 0 24px; color: #00748b; }
.booking-coming { background: #e5e3dd; }
.booking-coming .btn:disabled { background: transparent; border: 1px solid #899099; color: #505969; cursor: default; opacity: 1; justify-content: center; transform: none; }

/* Shared footer typography across contact and newsletter columns. */
#footer .foot { align-items: start; }
#footer .fcol h3 { font-size: 14px; line-height: 1.6; font-weight: 600; letter-spacing: .02em; margin: 0 0 20px; }
#footer .fcol p:not(.payoff), #footer .fcol a:not(.logo), #footer .email-line input, #footer .email-line button { font-family: inherit; font-size: 14px; line-height: 1.6; font-weight: 400; }
#footer .fcol:first-child .payoff { font-size: 12px; line-height: 1.6; }
#footer .footer-contacts a { display: inline-block; overflow-wrap: anywhere; }
#footer .newsletter { margin-top: 20px; }

/* Kalaway: evidence of the method, followed by its three areas of work. */
#case .case-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
#case #case-title { font-size: clamp(38px,5.2vw,72px); line-height: 1.1; letter-spacing: -.045em; margin-bottom: 28px; }
#case .case-intro { font-size: clamp(18px,2vw,25px); line-height: 1.55; max-width: 760px; }
.case-overview { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(32px,6vw,88px); margin-top: 64px; align-items: center; }
.case-result { background: var(--ink); color: var(--paper); padding: clamp(28px,4vw,52px); border-radius: 30px; }
.case-result strong { display: block; font-size: clamp(90px,12vw,164px); font-weight: 500; line-height: 1; letter-spacing: -.07em; color: var(--cyan); margin-bottom: 24px; }
#case .case-result h3 { font-size: clamp(22px,2.5vw,32px); line-height: 1.25; margin-bottom: 22px; }
#case .case-result p, #case .case-context p, #case .case-pillars p { font-size: 16px; line-height: 1.75; }
#case .case-context h3 { font-size: 23px; margin-bottom: 16px; }
#case .case-context p + h3 { margin-top: 30px; }
.case-pillars { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 64px; }
.case-number { color: #00748b; font-size: 14px; font-weight: 600; }
#case .case-pillars h3 { font-size: 28px; margin: 12px 0 20px; }
.case-voice { margin: 64px 0 0; padding: clamp(28px,4vw,48px); border-radius: 30px; background: #e5e3dd; }
.case-voice blockquote { margin: 0; font-size: clamp(23px,2.8vw,36px); line-height: 1.4; letter-spacing: -.025em; }
.case-voice figcaption { margin-top: 24px; font-size: 14px; font-weight: 600; }
@media(max-width:760px) { .case-overview, .case-pillars { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; } .case-voice { margin-top: 40px; } }

#voci .quote-photo { border: 0; background: #e5e3dd; }
#voci .quote-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

#flusso .flow-cta-wrap { width: fit-content; max-width: 100%; text-align: center; }
#flusso .flow-invitation .btn:disabled { background: var(--paper); border: 1px dashed #687285; color: var(--ink); opacity: 1; cursor: default; transform: none; box-shadow: none; }
#flusso .flow-invitation .flow-coming-note { font-size: 12px; margin: 12px 0 0; color: var(--paper); opacity: .7; }

#navigation .menu-contact { position: absolute; right: var(--gutter); bottom: 36px; z-index: 1; }
#navigation .menu-contact a { font-size: 16px; line-height: 1.5; color: var(--paper); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(241,239,232,.4); }
#navigation .menu-contact a:hover { color: var(--ice); }
@media(max-width:560px), (max-height:600px) { #navigation .menu-contact { position: static; margin-top: 32px; } #navigation .menu-contact a { font-size: 14px; } }

#footer .footer-mark { margin: 0; }
#footer .footer-payoff { text-align: center; text-transform: uppercase; font-size: clamp(14px,2vw,24px); font-weight: 500; letter-spacing: .18em; margin: 8px 0 56px; }
#footer .legal a { text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:560px) { #footer .footer-payoff { margin: 8px 0 32px; font-size: 12px; letter-spacing: .12em; } }

#footer .footer-payoff { font-family: Mixcase, serif; text-transform: none; font-weight: 400; letter-spacing: .05em; margin-top: -7cqw; margin-bottom: 56px; }
@media(max-width:560px) { #footer .footer-payoff { letter-spacing: .05em; margin-top: -6cqw; margin-bottom: 32px; } }

#footer .footer-payoff { width: 100%; max-width: none; margin-left: 0; margin-right: 0; text-align: center; }

#tesi #tesi-title { position: relative; top: -28px; }
@media(max-width:560px) { #tesi #tesi-title { top: -18px; } }

/* Mobile audit: readable labels, comfortable touch targets and short-screen navigation. */
a, button { touch-action: manipulation; }
#navigation { overscroll-behavior: contain; }
#navigation .menu-contact a { display: inline-flex; align-items: center; min-height: 44px; }
@media(max-width:560px) {
 .hero-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; }
 #chiusura h2 { max-width: 100%; }
 .booking-option h3 { font-size: clamp(28px,8vw,38px); }
 #footer .legal { font-size: 12px; line-height: 1.7; }
 #footer .legal-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 12px; }
 #footer .legal-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
 #footer .legal-separator { display: none; }
}
@media(min-width:561px) and (max-height:600px) {
 #navigation.open { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(44px,auto); align-content: start; align-items: center; gap: 8px 32px; padding-top: 112px; padding-bottom: 24px; }
 #navigation > a,#navigation > .nav-cta { font-size: 28px; }
 #navigation .menu-contact { margin-top: 0; }
}

/* Center company details and keep policy links together where space allows. */
#footer .footer-bottom { flex-direction: column; align-items: center; gap: 16px; }
#footer .legal { width: 100%; max-width: none; text-align: center; }
#footer .legal-company, #footer .legal-address { display: block; }
#footer .legal-links { display: block; margin-top: 16px; }
#footer .legal-links a { display: inline; font-size: inherit; }
#footer .legal-separator { display: inline; }
#footer .back-to-top { align-self: center; }
@media(max-width:560px) {
 #footer .legal-links { font-size: clamp(10px,2.8vw,12px); line-height: 2; }
}

/* Static grayscale on small testimonial portraits; no animation or extra assets. */
#voci .quote-photo img { filter: grayscale(1); }
@media(max-width:560px) {
 #voci blockquote { font-size: clamp(21px,5.6vw,24px); line-height: 1.4; letter-spacing: -.025em; }
}

/* A calmer mobile type scale, retaining the larger desktop composition. */
@media(max-width:560px) {
 #hero h1 { font-size: clamp(36px,10vw,44px); }
 #flusso h2, #riconosci h2, #tesi #tesi-title, #pilastri h2,
 #aree h2, #metodo h2, #case #case-title, #team h2, #voci h2, #chiusura h2 {
  font-size: clamp(30px,8.2vw,34px); line-height: 1.12;
 }
 #flusso .station-copy h3 { font-size: clamp(27px,7.2vw,31px); }
 #flusso .flow-invitation h3 { font-size: 24px; }
 #riconosci .situation-card h3 { font-size: clamp(27px,7.2vw,31px); line-height: 1.15; }
 #riconosci .lead { font-size: clamp(21px,5.6vw,23px); padding: 30px 24px; }
 #tesi .thesis-cards li {
  font-size: clamp(22px,5.8vw,24px); line-height: 1.4;
  padding: 24px; gap: 28px; min-height: 220px;
 }
 #tesi .thesis-cards li::before { width: 44px; height: 44px; font-size: 16px; }
 #tesi .thesis-panel .lead { font-size: 19px; line-height: 1.5; }
 #pilastri .pillar h3 { font-size: clamp(32px,8.5vw,36px); margin-bottom: 20px; }
 #pilastri .pillar p { font-size: 17px; line-height: 1.6; }
 #pilastri .pillar { min-height: 320px; padding-block: 36px; }
 #aree .card h3 { font-size: clamp(26px,7vw,30px); }
 #metodo .steps h3 { font-size: clamp(25px,6.7vw,28px); }
 #metodo .steps li { min-height: 180px; padding: 26px 22px; }
 #case .case-intro, #team .team-intro { font-size: 17px; }
 #case .case-pillars h3 { font-size: 25px; }
 #case .case-voice blockquote { font-size: 21px; }
 #team .person h3 { font-size: clamp(25px,6.7vw,28px); }
 #chiusura .booking-option h3 { font-size: clamp(25px,6.7vw,28px); }
 #chiusura .booking-description { font-size: 16px; }
}

/* Balance mobile section transitions around their headings. */
@media(max-width:560px) {
 #flusso, #riconosci, #tesi, #pilastri, #aree, #metodo,
 #case, #team, #voci, #chiusura { padding-top: 56px; padding-bottom: 64px; }
 #tesi { padding-top: 40px; }
 #pilastri { padding-bottom: 80px; }
}
