/* ==========================================================================
   eugeniodamaso.it — Design system
   Editoriale, ink & paper, un solo accento. Nessuna dipendenza esterna.
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #0b0e13;
  --ink-2: #131821;
  --ink-3: #1c2330;
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --paper-3: #e1dbcc;
  --text: #0b0e13;
  --muted: #555b66;
  --line: rgba(11, 14, 19, .13);
  --line-strong: rgba(11, 14, 19, .28);
  --on-ink: #f2eee5;
  --on-ink-muted: #a3a9b3;
  --line-ink: rgba(242, 238, 229, .13);
  --accent: #c94a1a;
  --accent-text: #a8401a;
  --accent-on-ink: #ff8a57;
  --ok: #2f7d5b;
  --ok-on-ink: #6fd3a4;
  --watch: #8a6a17;
  --watch-on-ink: #e6c36b;

  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 11vw, 160px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--accent-on-ink); }
.serif { font-family: var(--f-display); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.dark .lead { color: var(--on-ink-muted); }

/* ---------- Headings ---------- */
.h-display {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em;
}
.h-display em { font-style: italic; color: var(--accent-text); }
.dark .h-display em { color: var(--accent-on-ink); }
.h-2 { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; letter-spacing: -.015em; }
.h-3 { font-family: var(--f-sans); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 880px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.dark { background: var(--ink); color: var(--on-ink); }
.dark a:not(.btn) { color: var(--on-ink); }
.tint { background: var(--paper-2); }
.rule { border-top: 1px solid var(--line); }
.dark .rule { border-color: var(--line-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #a93c14; }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-3); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.dark .btn--ghost { border-color: rgba(242, 238, 229, .35); color: var(--on-ink); }
.dark .btn--ghost:hover { border-color: var(--on-ink); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--on-ink);
  transition: background-color .3s, color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.is-light-top .site-header { color: var(--text); }
.site-header.is-scrolled { background: rgba(244, 241, 234, .9); color: var(--text); border-color: var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -.02em;
}
.brand-name { font-weight: 600; letter-spacing: -.01em; font-size: 1rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { text-decoration: none; font-size: .94rem; padding: 8px 12px; border-radius: 999px; opacity: .86; transition: opacity .2s, background-color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; background: rgba(127, 127, 127, .12); }
.nav .btn { min-height: 42px; padding: 10px 18px; margin-left: 8px; font-size: .92rem; }
.nav .lang { font-family: var(--f-mono); font-size: .72rem !important; letter-spacing: .1em; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border-radius: 50%; border: 1px solid currentColor; background: transparent; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease);
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); color: var(--on-ink); padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid var(--line-ink);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 1.35rem; font-family: var(--f-display); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line-ink); }
  .nav a:not(.btn):hover { background: transparent; }
  .nav .btn { margin: 20px 0 0; min-height: 52px; }
  .nav-open .site-header { background: var(--ink); color: var(--on-ink); border-color: var(--line-ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(to right, var(--line-ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-ink) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -18vw; top: -22vw;
  background: radial-gradient(circle, rgba(217, 83, 31, .22), transparent 62%);
  filter: blur(10px);
}
.hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1020px) { .hero-grid { grid-template-columns: 1.25fr .75fr; } }
.hero h1 { display: grid; gap: 18px; margin-top: 26px; }
.h1-name {
  font-family: var(--f-display); font-size: clamp(3.4rem, 9.6vw, 8.6rem); line-height: .9; letter-spacing: -.035em;
}
.h1-name em { font-style: italic; color: var(--accent-on-ink); }
.h1-roles { font-family: var(--f-sans); font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; color: var(--on-ink-muted); letter-spacing: 0; line-height: 1.45; max-width: 46ch; }
.hero-claim {
  font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em;
  margin: 34px 0 18px; max-width: 24ch;
}
.hero-claim em { font-style: italic; color: var(--accent-on-ink); }
.hero .lead { max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-ink);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted);
}
.status-dot { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); }
.status-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-on-ink);
  box-shadow: 0 0 0 0 rgba(111, 211, 164, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 164, .55); } 70% { box-shadow: 0 0 0 10px rgba(111, 211, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 211, 164, 0); } }

/* Triad visual */
.triad { position: relative; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 1; }
.triad svg { width: 100%; height: 100%; overflow: visible; }
.triad .orbit { transform-origin: 240px 240px; animation: spin 60s linear infinite; }
.triad .orbit--rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.triad .ring { fill: none; stroke: rgba(242, 238, 229, .5); stroke-width: 1; }
.triad .ring-fill { fill: rgba(242, 238, 229, .025); }
.triad .dash { fill: none; stroke: rgba(242, 238, 229, .18); stroke-width: 1; stroke-dasharray: 2 6; }
.triad .core { fill: var(--accent); }
.triad .core-halo { fill: rgba(217, 83, 31, .18); }
.triad text { fill: var(--on-ink); font-family: var(--f-sans); }
.triad .t-code { font-family: var(--f-display); font-size: 34px; }
.triad .t-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; fill: var(--on-ink-muted); }
.triad .t-core { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; fill: #fff; font-weight: 600; }
.triad .node { fill: var(--on-ink); }

/* ---------- Marquee ---------- */
.marquee { background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; gap: 0; }
.marquee li {
  white-space: nowrap; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 0 28px; display: inline-flex; align-items: center; gap: 28px;
}
.marquee li::after { content: "✦"; color: var(--accent); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px 24px 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); padding: 36px 28px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat-value { font-family: var(--f-display); font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.03em; }
.stat-value sup { font-size: .45em; color: var(--accent-text); vertical-align: top; margin-left: 2px; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: .95rem; max-width: 26ch; line-height: 1.45; }

/* ---------- Manifesto ---------- */
.manifesto { margin: 20px 0 clamp(40px, 6vw, 72px); font-family: var(--f-display); font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; }
.manifesto .dim { color: #857f70; }
.manifesto em { font-style: italic; color: var(--accent-text); }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--paper); padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; }
.pillar-code {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong);
  font-family: var(--f-display); font-size: 1.7rem; margin-bottom: 10px;
}
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Service index ---------- */
.index-list { list-style: none; border-top: 1px solid var(--line); }
.dark .index-list { border-color: var(--line-ink); }
.index-item a {
  display: grid; grid-template-columns: 48px 1fr; gap: 8px 20px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
  transition: padding-left .45s var(--ease);
}
.dark .index-item a { border-color: var(--line-ink); }
@media (min-width: 900px) { .index-item a { grid-template-columns: 72px 1.05fr 1fr 40px; padding: 34px 0; } }
.index-item a:hover { padding-left: 14px; }
.index-num { font-family: var(--f-mono); font-size: .78rem; color: var(--accent-text); letter-spacing: .08em; }
.dark .index-num { color: var(--accent-on-ink); }
.index-title { font-family: var(--f-display); font-size: clamp(1.65rem, 2.8vw, 2.4rem); line-height: 1.08; letter-spacing: -.015em; }
.index-desc { grid-column: 2; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.dark .index-desc { color: var(--on-ink-muted); }
@media (min-width: 900px) { .index-desc { grid-column: auto; } }
.index-arrow { display: none; }
@media (min-width: 900px) {
  .index-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, color .3s, transform .45s var(--ease); align-self: center; }
  .index-arrow svg { width: 16px; height: 16px; }
  .index-item a:hover .index-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
}

/* ---------- Radar ---------- */
.radar-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .radar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .radar-grid { grid-template-columns: repeat(4, 1fr); } }
.radar-card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-ink); text-decoration: none; min-height: 100%;
  transition: border-color .3s, transform .45s var(--ease), background-color .3s;
}
.radar-card:hover { border-color: rgba(242, 238, 229, .35); transform: translateY(-4px); background: var(--ink-3); }
.radar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.radar-label { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--urgent { color: var(--accent-on-ink); }
.pill--active { color: var(--ok-on-ink); }
.pill--watch { color: var(--watch-on-ink); }
.radar-date { font-family: var(--f-mono); font-size: .8rem; color: var(--on-ink); letter-spacing: .04em; }
.radar-norm { font-size: .8rem; color: var(--on-ink-muted); }
.radar-text { color: var(--on-ink-muted); font-size: .95rem; line-height: 1.55; margin: 0; flex: 1; }
.radar-more { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }
.radar-more svg { width: 14px; height: 14px; }
.asof { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }

/* ---------- Method ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px 0; border-top: 1px solid var(--line-strong); position: relative; }
@media (min-width: 900px) { .step { padding: 32px 28px 0 0; } }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.step-num { font-family: var(--f-mono); font-size: .75rem; color: var(--accent-text); letter-spacing: .08em; }
.step h3 { font-family: var(--f-display); font-size: 1.85rem; line-height: 1.1; margin: 12px 0 6px; }
.step-time { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 800px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
}
.tint .card { background: var(--paper); }
.card-tag { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.card h3 { font-family: var(--f-display); font-size: 2rem; line-height: 1.05; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 0; }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .96rem; line-height: 1.45; }
.checks svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.dark .checks svg { color: var(--accent-on-ink); }

/* Article cards */
.post-card {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; padding: 28px 0; border-top: 1px solid var(--line-strong);
}
.post-card:hover .post-title { color: var(--accent-text); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-meta .cat { color: var(--accent-text); }
.post-title { font-family: var(--f-display); font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.12; letter-spacing: -.01em; transition: color .25s; }
.post-excerpt { color: var(--muted); font-size: .98rem; margin: 0; }

/* News (timeline datata) */
.news-list { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.news-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; padding: 32px 0; border-top: 1px solid var(--line-strong); }
.news-item:last-child { border-bottom: 1px solid var(--line-strong); }
.news-date { display: flex; flex-direction: column; gap: 6px; }
.news-date .d { font-family: var(--f-display); font-size: 3.4rem; line-height: .9; letter-spacing: -.03em; color: var(--accent-text); }
.news-date .m { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.01em; margin: 12px 0 10px; }
.news-title a { text-decoration: none; color: inherit; transition: color .25s; }
.news-title a:hover { color: var(--accent-text); }
.news-strip { display: grid; gap: 0; }
@media (max-width: 640px) {
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0; }
  .news-date { flex-direction: row; align-items: baseline; gap: 10px; }
  .news-date .d { font-size: 2rem; }
}

/* ---------- Credentials ---------- */
.cred-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cred-grid { grid-template-columns: repeat(4, 1fr); } }
.cred { background: var(--paper); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.cred-name { font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.cred-issuer { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.cred-detail { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; color: var(--muted); }
.cred a { color: var(--accent-text); }

.cred-group { display: grid; gap: 28px; padding-block: 48px; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .cred-group { grid-template-columns: .8fr 2.2fr; gap: 48px; } }
.cred-group h2 { font-family: var(--f-display); font-size: 2rem; line-height: 1.1; }
.cred-group .count { font-family: var(--f-mono); font-size: .72rem; color: var(--accent-text); letter-spacing: .1em; display: block; margin-top: 10px; }
.cred-list { list-style: none; display: grid; gap: 0; }
.cred-list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .cred-list li { grid-template-columns: 1.3fr 1fr; gap: 24px; } }
.cred-list .cred-name { font-size: 1.02rem; }
.cred-list .cred-side { font-size: .9rem; color: var(--muted); }
.cred-list .cred-side span { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; margin-top: 4px; }

/* ---------- Framework band ---------- */
.pipeline { list-style: none; display: grid; gap: 12px; counter-reset: p; }
.pipeline li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border: 1px solid var(--line-ink); border-radius: 12px; background: var(--ink-2);
}
.pipeline li.is-key { border-color: rgba(255, 138, 87, .55); background: linear-gradient(90deg, rgba(217, 83, 31, .14), var(--ink-2) 70%); }
.pipeline .p-num { font-family: var(--f-mono); font-size: .72rem; color: var(--accent-on-ink); letter-spacing: .08em; padding-top: 3px; }
.pipeline strong { display: block; font-weight: 600; margin-bottom: 2px; }
.pipeline span { color: var(--on-ink-muted); font-size: .94rem; line-height: 1.5; }

.split { display: grid; gap: clamp(40px, 6vw, 88px); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } .split--top { align-items: start; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 26px 0; font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--f-sans); font-size: 1.2rem; transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.faq .answer { padding: 0 0 26px; color: var(--muted); max-width: 72ch; }

/* ---------- CTA ---------- */
.cta { text-align: left; }
.cta-inner { display: grid; gap: 32px; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.4fr .6fr; align-items: end; } }
.cta h2 { font-family: var(--f-display); font-size: clamp(2.6rem, 6.4vw, 5.8rem); line-height: .98; letter-spacing: -.03em; }
.cta h2 em { font-style: italic; color: var(--accent-on-ink); }
.cta-side { display: grid; gap: 16px; }
.cta-side p { color: var(--on-ink-muted); margin: 0; }
.cta-mail { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .02em; color: var(--on-ink-muted); word-break: break-all; }

/* ---------- Page hero (interne) ---------- */
.page-hero {
  background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(to right, var(--line-ink) 1px, transparent 1px);
  background-size: 96px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.page-hero h1 { font-family: var(--f-display); font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.03em; margin: 22px 0 22px; max-width: 18ch; }
.page-hero h1 em { font-style: italic; color: var(--accent-on-ink); }
.page-hero .lead { max-width: 64ch; }
.page-hero .hero-ctas { margin-top: 28px; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 10px; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--on-ink-muted) !important; }
.crumbs a:hover { color: var(--on-ink) !important; }
.crumbs [aria-current] { color: var(--on-ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Prose ---------- */
.prose { font-size: 1.1rem; line-height: 1.75; max-width: 70ch; }
.prose h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.01em; margin: 2.2em 0 .6em; }
.prose h3 { font-weight: 600; font-size: 1.2rem; margin: 1.8em 0 .5em; letter-spacing: -.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-text); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 650; }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--accent);
  font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.25; font-style: italic;
}
.prose > :first-child { margin-top: 0; }

.article-layout { display: grid; gap: 48px; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; } }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; align-self: start; }
.takeaways { background: var(--paper-2); border-radius: var(--radius); padding: 26px; }
.takeaways h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; font-weight: 500; }
.takeaways ul { list-style: none; display: grid; gap: 12px; }
.takeaways li { font-size: .96rem; line-height: 1.5; padding-left: 18px; position: relative; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.author-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.author-box .brand-mark { width: 48px; height: 48px; font-size: 1.4rem; }
.author-box p { font-size: .92rem; color: var(--muted); margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); }

/* ---------- Service page ---------- */
.problem { font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.2; letter-spacing: -.01em; max-width: 30ch; }
.outcomes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .outcomes { grid-template-columns: repeat(4, 1fr); } }
.outcome { background: var(--paper); padding: 28px; display: grid; gap: 10px; align-content: start; }
.outcome .n { font-family: var(--f-mono); font-size: .72rem; color: var(--accent-text); }
.outcome h3 { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; }
.outcome p { color: var(--muted); margin: 0; font-size: .96rem; }
.two-lists { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-lists { grid-template-columns: 1.2fr .8fr; gap: 64px; } }
.list-title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; font-weight: 500; }
.line-list { list-style: none; border-top: 1px solid var(--line-strong); }
.line-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 8px; }
.line-list li span { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); padding-top: 4px; }
.others { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  text-decoration: none; font-size: .92rem; transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 6px; background: var(--paper-2); color: var(--muted); }

/* ---------- About ---------- */
.timeline { list-style: none; border-top: 1px solid var(--line-strong); }
.tl-item { display: grid; gap: 14px; padding: 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .tl-item { grid-template-columns: 200px 1fr; gap: 48px; } }
.tl-period { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; color: var(--accent-text); padding-top: 8px; }
.tl-role { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; }
.tl-place { color: var(--muted); font-size: .92rem; margin: 6px 0 16px; }
.tl-points { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.tl-points li { padding-left: 18px; position: relative; color: var(--text); }
.tl-points li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink); position: relative; display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-mono { font-family: var(--f-display); font-size: clamp(6rem, 14vw, 11rem); color: var(--on-ink); letter-spacing: -.04em; line-height: 1; }
.portrait-mono em { color: var(--accent-on-ink); }
.portrait-caption { position: absolute; left: 20px; bottom: 18px; right: 20px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); }
.factsheet { list-style: none; border-top: 1px solid var(--line-strong); }
.factsheet li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .factsheet li { grid-template-columns: 180px 1fr; gap: 24px; } }
.factsheet .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.dark .factsheet { border-color: rgba(242, 238, 229, .3); }
.dark .factsheet li { border-color: var(--line-ink); }
.dark .factsheet .k { color: var(--on-ink-muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .92rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fbfaf6; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230b0e13' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 83, 31, .16); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .88rem; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .94rem; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 18px 20px; border-radius: 10px; border: 1px solid #e3b2a5; background: #fbece6; color: #7a2410; }
.alert a { color: inherit; font-weight: 600; }
.form-note { font-size: .86rem; color: var(--muted); }
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 88px; } }
.contact-aside { display: grid; gap: 28px; align-content: start; }
.contact-direct { display: grid; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--paper-2); }
.contact-direct a { font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: clamp(64px, 8vw, 104px) 0 32px; border-top: 1px solid var(--line-ink); }
.site-footer a { text-decoration: none; color: var(--on-ink-muted); transition: color .2s; }
.site-footer a:hover { color: var(--on-ink); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand .brand { color: var(--on-ink); margin-bottom: 20px; }
.footer-brand p { max-width: 38ch; font-size: .95rem; }
.footer-col h2 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: grid; gap: 10px; font-size: .94rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-ink); font-size: .82rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-word { font-family: var(--f-display); font-size: clamp(3.4rem, 15vw, 13rem); line-height: .95; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(242, 238, 229, .14); margin-top: 56px; white-space: nowrap; overflow: hidden; user-select: none; }

/* ---------- Error ---------- */
.error-code { font-family: var(--f-display); font-size: clamp(6rem, 20vw, 14rem); line-height: .9; color: var(--accent-on-ink); letter-spacing: -.04em; }

/* ---------- Reveal ---------- */
.reveal-pre { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta, .nav-toggle, .marquee, .hero::before, .hero::after { display: none !important; }
  body, .dark, .hero, .page-hero { background: #fff !important; color: #000 !important; }
  .page-hero, .hero { padding-top: 24px; }
}
.mt-l { margin-top: 40px; }
.mt-m { margin-top: 24px; }
.index-row { display: grid; grid-template-columns: 48px 1fr; gap: 8px 20px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.dark .index-row { border-color: var(--line-ink); }
@media (min-width: 900px) { .index-row { grid-template-columns: 72px 1fr 1.2fr; padding: 34px 0; } }
.index-row .index-desc { margin: 0; }
.h-display + .lead, .h-display + p { margin-top: 24px; }
@media (min-width: 960px) { .split--top > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); } }
@media (max-width: 1019px) { .triad { max-width: 340px; } }
.field label.check { font-weight: 400; }
@media (max-width: 999px) { .contact-aside { order: 2; } }
/* ---------- Articoli: copertina, indice, tabelle, codice ---------- */
.article-cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.article-cover img { width: 100%; height: auto; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.toc h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; font-weight: 500; }
.toc ol { list-style: none; display: grid; gap: 8px; font-size: .92rem; line-height: 1.4; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }
.toc .toc-l3 { padding-left: 14px; font-size: .86rem; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 10px; width: 100%; height: auto; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--ink); color: var(--on-ink); padding: 20px; border-radius: 10px; overflow-x: auto; margin: 0 0 1.4em; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: .86rem; }
.prose hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2.4em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; border-bottom-color: var(--line-strong); }
.outcome .h-benefit { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; font-weight: 400; }
.lp-links { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 800px) { .lp-links { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.lp-links a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lp-links a:hover strong { color: var(--accent-text); }
.lp-links strong { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; transition: color .2s; }
.lp-links span { color: var(--muted); font-size: .94rem; }
.outcomes.outcomes--auto { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* Casi di studio e interventi */
.empty-state { max-width: 720px; display: grid; gap: 12px; }
.case-card {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; padding: clamp(24px, 3vw, 36px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s var(--ease);
}
.case-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.case-card:hover .post-title { color: var(--accent-text); }
.case-metric { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-metric .v, .metric .v { font-family: var(--f-display); font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; color: var(--accent-text); }
.case-metric .l, .metric .l { font-size: .95rem; color: var(--muted); }
.fact-bar { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line-ink); }
.fact-bar dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); }
.fact-bar dd { margin: 4px 0 0; font-size: 1rem; }
.metrics { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .metrics { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.metric { background: var(--paper); padding: clamp(22px, 3vw, 34px); display: grid; gap: 8px; align-content: start; }
.page-hero .hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Autovalutazioni ---------- */
.assure { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; }
.assure li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.quiz-wrap { max-width: 860px; }
.quiz { display: grid; gap: 28px; margin-top: 28px; }
.quiz-area { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); margin: 0; background: var(--paper); display: grid; gap: 26px; }
.quiz-area legend { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; padding: 0 8px; display: grid; gap: 6px; }
.quiz-area legend .mono { color: var(--accent-text); }
.quiz-q { display: grid; gap: 10px; }
.quiz-q + .quiz-q { border-top: 1px solid var(--line); padding-top: 22px; }
.quiz-q-text { font-weight: 600; font-size: 1.06rem; margin: 0; line-height: 1.45; }
.quiz-hint { color: var(--muted); font-size: .92rem; margin: -4px 0 0; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.quiz-opt:hover { border-color: var(--line-strong); }
.quiz-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: rgba(201, 74, 26, .06); }
.quiz-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-area.is-missing .quiz-q:has(input:invalid) .quiz-q-text { color: #b3261e; }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.quiz-progress { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: grid; gap: 6px; background: var(--paper); padding: 10px 0; }
.quiz-progress::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--paper-3); grid-area: 1 / 1; }
.quiz-progress-bar { grid-area: 1 / 1; height: 6px; border-radius: 3px; background: var(--accent); width: 0; transition: width .35s var(--ease); }
.quiz-progress-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.result-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 18px; }
.gauge { width: clamp(120px, 16vw, 180px); height: auto; }
.gauge-track { stroke: rgba(242, 238, 229, .14); }
.gauge-value { stroke: var(--accent-on-ink); transition: stroke-dasharray 1s var(--ease); }
.gauge--medio .gauge-value { stroke: var(--watch-on-ink); }
.gauge--buono .gauge-value { stroke: var(--ok-on-ink); }
.gauge-num { font-family: var(--f-display); font-size: 30px; fill: var(--on-ink); }
.area-bars { list-style: none; padding: 0; display: grid; gap: 18px; }
.area-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.area-name { font-weight: 600; }
.area-val { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.area-track { grid-column: 1 / -1; width: 100%; height: 8px; }
.area-track .t { fill: var(--paper-3); }
.area-track .v { fill: var(--accent); }
.area-bar--medio .area-track .v { fill: var(--watch); }
.area-bar--buono .area-track .v { fill: var(--ok); }
.recs { display: grid; gap: 12px; padding-left: 1.2em; }
.recs li { line-height: 1.55; }
.recs small { display: block; color: var(--muted); font-size: .86rem; margin-top: 4px; }
.report-box { background: var(--paper-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; }
.report-full { display: grid; gap: 18px; max-width: 900px; }
.report-area { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; background: var(--paper); }
.report-area header { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; }
.report-area .pill--urgent { color: var(--accent-text); }
.report-area .pill--watch { color: var(--watch); }
.report-area .pill--active { color: var(--ok); }
@media (max-width: 560px) { .result-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Prenotazioni ---------- */
.booking { display: grid; gap: clamp(36px, 5vw, 56px); max-width: 960px; }
.booking-step { display: grid; gap: 16px; }
.booking-step .step-num { margin-right: 10px; }
.type-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .type-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.type-card { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--paper); transition: border-color .2s, background .2s; }
.type-card:hover { border-color: var(--line-strong); }
.type-card.is-selected { border-color: var(--accent); background: rgba(201, 74, 26, .06); box-shadow: inset 0 0 0 1px var(--accent); }
.day-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.day-chip { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--paper); }
.day-chip .w, .day-chip .m { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.day-chip .n { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; }
.day-chip:hover { border-color: var(--line-strong); }
.day-chip.is-selected { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.day-chip.is-selected .w, .day-chip.is-selected .m { color: var(--on-ink-muted); }
.slot-grid { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: block; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--f-mono); font-size: .9rem; }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-hero--msg { min-height: 60vh; display: flex; align-items: center; }
@media (min-width: 900px) { .steps--4 { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.dev-band { display: grid; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--ink); color: var(--on-ink); text-decoration: none; transition: transform .3s var(--ease); }
.dev-band:hover { transform: translateY(-2px); }
.dev-band .eyebrow { color: var(--accent-on-ink); }
.dev-band-title { font-family: var(--f-display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.01em; max-width: 30ch; }
.dev-band-title em { color: var(--accent-on-ink); }
.dev-band .link-arrow { color: var(--on-ink); }
.btn-row-inline { display: flex; flex-wrap: wrap; gap: 10px; }
[hidden] { display: none !important; }

/* ---------- Allegati ---------- */
.downloads { display: grid; gap: 14px; }
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dl-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--paper); transition: border-color .2s, transform .2s var(--ease); }
.dl-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.dl-ext { display: grid; place-items: center; height: 56px; border-radius: 10px; background: var(--ink); color: var(--accent-on-ink); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; }
.dl-body { display: grid; gap: 4px; }
.dl-title { font-weight: 600; }
.dl-meta { font-size: .85rem; color: var(--muted); }
.dl-icon svg { width: 18px; height: 18px; transform: rotate(90deg); color: var(--accent-text); }

/* ---------- Consenso cookie ---------- */
.cc { position: fixed; inset: auto 16px 16px 16px; z-index: 200; display: flex; justify-content: center; pointer-events: none; }
.cc-box { position: relative; pointer-events: auto; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--ink); color: var(--on-ink); border: 1px solid var(--line-ink); border-radius: 18px; padding: 24px clamp(20px, 3vw, 32px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: grid; gap: 14px; }
.cc-title { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; margin: 0; padding-right: 36px; }
.cc-text { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--on-ink-muted); }
.cc-text a, .cc-row a { color: var(--on-ink); }
.cc-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-ink); background: transparent; color: var(--on-ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cc-x:hover { background: var(--ink-3); }
.cc-prefs { display: grid; gap: 10px; border-top: 1px solid var(--line-ink); padding-top: 14px; }
.cc-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; line-height: 1.5; color: var(--on-ink-muted); }
.cc-row strong { color: var(--on-ink); }
.cc-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.cc-row code { font-size: .8em; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc-btn { min-width: 150px; justify-content: center; }
.cc .btn--ghost { color: var(--on-ink); border-color: rgba(242, 238, 229, .45); }
.cc .btn--ghost:hover { background: var(--ink-3); }
@media (max-width: 560px) { .cc { inset: auto 8px 8px 8px; } .cc-actions { display: grid; grid-template-columns: 1fr 1fr; } .cc-btn { min-width: 0; } .cc-btn[data-cc="custom"], .cc-btn[data-cc="save"] { grid-column: 1 / -1; order: 1; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.linklike:hover { opacity: 1; }
.table-wrap { overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-box:focus { outline: none; }
/* Temi, territori, strumenti, glossario (v3.4) */
.topic-card h3 { font-size: 1.55rem; }
.topic-card h3 a { color: inherit; text-decoration: none; }
.topic-card h3 a:hover { color: var(--accent-text); }
.topic-links { margin-top: auto !important; padding-top: 6px; }
.topic-card { display: flex; flex-direction: column; gap: 10px; }
.terr-list { grid-template-columns: 1fr; }
@media (min-width: 800px) { .terr-list { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
.gl-letters { margin-bottom: 28px; }
.gl-group { margin-top: 36px; scroll-margin-top: 90px; }
.gl-letter { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; margin-bottom: 8px; color: var(--accent-text); }
.gl-aliases { margin-top: 14px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; opacity: .75; }
.gl-side { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.gl-side a { text-decoration: none; }
.gl-side a:hover { color: var(--accent-text); }
.topic-kit { margin-top: 48px; display: grid; gap: 18px; }
.kit-cta { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; justify-items: start; }
.kit-cta .card-tag { color: #f0a27f; }
.kit-cta p { margin: 0; opacity: .85; }
.kit-grid { display: grid; gap: 12px; }
@media (min-width: 800px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }
.kit-box { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--paper); color: inherit; }
a.kit-box:hover { border-color: var(--line-strong); }
a.kit-box:hover strong { color: var(--accent-text); }
.kit-box strong { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.kit-box span:not(.card-tag) { color: var(--muted); font-size: .9rem; }
.kit-days { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-links { display: grid; gap: 18px; padding-top: 6px; }
@media (min-width: 800px) { .kit-links { grid-template-columns: 3fr 2fr; } }
.kit-h { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kit-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kit-links .kit-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; }
.guide-card h3 { font-size: 1.6rem; }
.guide-card h3 a { color: inherit; text-decoration: none; }
.tool-form { display: grid; gap: 14px; align-content: start; }
.tool-form fieldset { border: 0; padding: 0; margin: 0; }
.tool-form legend { font-weight: 600; margin-bottom: 6px; }
.tool-checks { display: grid; gap: 6px; }
.tool-result { align-self: start; }
.tool-big { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
.tool-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.tool-phases { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tool-phases li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tool-phases strong { font-family: var(--f-mono); font-weight: 500; font-size: .85rem; white-space: nowrap; }
@media (min-width: 800px) { .home-tools { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
.rec-results { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.rec-results .metric { display: grid; gap: 8px; align-content: start; }
.rec-val { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #f0a27f; }
.rec-lab { opacity: .85; font-size: .95rem; }
.rec-results.metrics { background: none; border: 0; border-radius: 0; overflow: visible; }
.rec-results .metric { background: transparent; padding: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; }

/* Progetti e crescita: ingressi rapidi */
.pc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: 28px; }
.pc-item {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 30px); text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s var(--ease);
}
.pc-item strong { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.pc-item > span:not(.link-arrow) { color: var(--muted); font-size: .96rem; }
.pc-item .link-arrow { margin-top: auto; }
.pc-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pc-item:hover strong { color: var(--accent-text); }
.tint .pc-item { background: var(--paper); }
.nav a { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1240px) { .nav a:not(.btn) { padding: 8px 8px; font-size: .9rem; } }
/* Portfolio progetti */
.fact-bar--light { border-top-color: var(--line); margin-bottom: 8px; }
.fact-bar--light dt { color: var(--muted); }
.fact-bar--light dd { font-family: var(--f-display); font-size: 1.8rem; line-height: 1.1; }
.pf-group { margin-top: clamp(36px, 5vw, 56px); }
.pf-group > .muted { margin-top: 6px; max-width: 70ch; }
.prose--narrow { max-width: 760px; }
/* Header: il marchio non va mai a capo; con molte voci di menu il sottotitolo si nasconde sotto i 1300 px */
.site-header .brand { flex-shrink: 0; }
.site-header .brand-name { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1300px) { .site-header .brand-name small { display: none; } }
@media (min-width: 1021px) and (max-width: 1120px) { .nav a:not(.btn) { padding: 8px 6px; font-size: .86rem; } }
@media (min-width: 1241px) and (max-width: 1420px) { .nav a:not(.btn) { padding: 8px 9px; } }
/* Pubblicazioni a pagamento */
.buy-box { display: grid; gap: 10px; }
.buy-box .btn { justify-content: center; }
.buy-price { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--accent-text); }
.buy-price-sm { color: var(--accent-text); font-weight: 600; }

/* ---------- Strumenti consigliati e partner ---------- */
.section--compact { padding-block: clamp(48px, 7vw, 88px); }
.alert--ok { border-color: rgba(47, 125, 91, .35); background: #e7f3ec; color: #1f5a40; }
.pt-mark { display: inline-grid; place-items: center; flex: none; border-radius: 12px; background: var(--paper-2); color: var(--ink); font-family: var(--f-display); border: 1px solid var(--line); overflow: hidden; }
.pt-mark--sm { width: 52px; height: 52px; font-size: 1.35rem; }
.pt-mark--md { width: 64px; height: 64px; font-size: 1.6rem; }
.pt-mark--lg { width: 168px; height: 112px; font-size: 2.6rem; border-radius: var(--radius); }
.pt-mark--logo { background: #fff; padding: 8px; }
.pt-mark--logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pt-mark--lg.pt-mark--logo { padding: 18px; }
.partner-card { gap: 16px; }
.pt-head { display: flex; gap: 16px; align-items: flex-start; }
.pt-head h3 { font-size: 1.6rem; margin-top: 4px; }
.pt-head h3 a { color: inherit; text-decoration: none; }
.pt-head h3 a:hover { color: var(--accent-text); }
.pt-vendor { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; }
.pt-ideal { font-size: .92rem; }
.pt-ideal span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-right: 4px; }
.pt-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pt-rel { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted); }
.pt-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.pt-out { font-size: .88rem; color: var(--muted); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.pt-out:hover { color: var(--text); }
.pt-out svg { width: 14px; height: 14px; }
.pt-hero-note { margin-top: 26px; max-width: 760px; font-size: .86rem; color: var(--on-ink-muted); }
.pt-hero-note a { color: var(--on-ink); }
.pt-hero { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .pt-hero { grid-template-columns: minmax(0, 1fr) auto; } }
.pt-hero-logo .pt-mark { border-color: transparent; }
.pt-disclosure { border-left: 3px solid var(--accent); background: var(--paper-2); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .92rem; color: var(--muted); }
.pt-disclosure strong { color: var(--text); }
.pt-proscons { display: grid; gap: 16px; }
@media (min-width: 700px) { .pt-proscons { grid-template-columns: 1fr 1fr; } }
.pt-pros, .pt-cons { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pt-pros h2, .pt-cons h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.pt-pros h2 { color: var(--ok); }
.pt-cons h2 { color: var(--watch); }
.pt-pros ul, .pt-cons ul { list-style: none; display: grid; gap: 10px; }
.pt-pros li, .pt-cons li { position: relative; padding-left: 22px; font-size: .95rem; line-height: 1.5; }
.pt-pros li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 600; }
.pt-cons li::before { content: "–"; position: absolute; left: 0; top: 0; color: var(--watch); font-weight: 600; }
.pt-code { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 10px; justify-items: start; }
.pt-code p { margin: 0; color: var(--muted); }
.pt-code-value { font-family: var(--f-mono); font-size: 1.1rem; letter-spacing: .08em; color: var(--text); }
.pt-aside { justify-items: start; }
.partner-box { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--paper); display: grid; gap: 14px; }
.tint .partner-box { background: var(--paper); }
.pb-label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pb-body { display: flex; gap: 16px; align-items: flex-start; }
.pb-title { font-family: var(--f-display); font-size: 1.45rem; font-weight: 400; line-height: 1.15; }
.pb-title a { color: inherit; text-decoration: none; }
.pb-body p { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 12px; }
.pb-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.pb-note a { color: inherit; }
.pt-logos-title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: center; }
.pt-logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 26px; }
.pt-logos a { display: grid; place-items: center; width: 168px; height: 84px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.pt-logos a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pt-logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s var(--ease), opacity .2s var(--ease); }
.pt-logos a:hover img, .pt-logos a:focus-visible img { filter: none; opacity: 1; }
.pt-logos-note { margin: 22px auto 0; max-width: 720px; text-align: center; font-size: .8rem; color: var(--muted); }
.pt-commit { max-width: 980px; }
.pt-commit .h-display { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; }
.pt-never { list-style: none; border-top: 1px solid var(--line-strong); }
.pt-never li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.pt-never li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 2px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 0 0 transparent; }
.pt-never li::after { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 2px; background: var(--accent); transform: rotate(-45deg); }
.pt-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pt-table th, .pt-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pt-table thead th { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom-color: var(--line-strong); }
.pt-table tbody th { font-weight: 600; }
.pt-table a { color: inherit; }
@media (max-width: 640px) { .pt-mark--lg { width: 132px; height: 88px; } .pt-logos a { width: 140px; height: 72px; } }

/* ---------- Academy ---------- */
.nav-academy { position: relative; }
.academy-when { margin-top: 26px; color: var(--on-ink-muted); font-size: .98rem; }
.academy-when strong { color: var(--on-ink); font-weight: 600; }
.countdown { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cd-unit { min-width: 92px; padding: 16px 14px 12px; border: 1px solid var(--line-ink); border-radius: var(--radius); background: rgba(242, 238, 229, .04); display: grid; justify-items: center; gap: 4px; }
.cd-num { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-ink); }
.cd-label { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); }
.countdown--light .cd-unit { border-color: var(--line); background: var(--paper); }
.countdown--light .cd-num { color: var(--text); }
.countdown--light .cd-label { color: var(--muted); }
.academy-list { list-style: none; border-top: 1px solid var(--line-ink); }
.academy-list a { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-ink); color: var(--on-ink); text-decoration: none; }
.academy-list a:hover span { color: var(--accent-on-ink); }
.academy-list small { color: var(--on-ink-muted); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; white-space: nowrap; padding-top: 4px; }
.course-meta { display: grid; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.course-meta dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.course-meta dd { margin: 4px 0 0; }
@media (max-width: 560px) { .cd-unit { min-width: 0; flex: 1 1 calc(50% - 6px); } }
/* Menu con la voce Academy: spazio per tutte le voci tra 1021 e 1120 px */
@media (min-width: 1021px) and (max-width: 1120px) {
  .nav { gap: 0; }
  .nav a:not(.btn) { padding: 8px 5px; font-size: .82rem; }
  .nav .btn { padding-inline: 14px; font-size: .84rem; }
  .nav .btn svg { display: none; }
  .site-header .brand { gap: 8px; }
}
@media (min-width: 1121px) and (max-width: 1220px) {
  .nav a:not(.btn) { padding: 8px 6px; font-size: .86rem; }
  .nav .btn svg { display: none; }
}
.academy-hero-grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .academy-hero-grid { grid-template-columns: minmax(0, 1fr) auto; } }
.academy-signature { margin: 0; display: grid; justify-items: start; gap: 14px; padding: 22px; border: 1px solid var(--line-ink); border-radius: var(--radius); background: rgba(242, 238, 229, .04); max-width: 260px; }
.academy-signature img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-on-ink); }
.academy-signature figcaption { display: grid; gap: 2px; font-size: .86rem; color: var(--on-ink-muted); }
.academy-signature strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--on-ink); }
.academy-teacher { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .academy-teacher { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; } }
.teacher-photo { margin: 0; }
.teacher-photo img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); display: block; }
.teacher-roles { margin-top: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.teacher-creds { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
@media (min-width: 700px) { .teacher-creds { grid-template-columns: 1fr 1fr; } }
.teacher-creds li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.academy-byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--on-ink-muted); font-size: .92rem; }
.academy-byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-on-ink); }
.academy-byline strong { color: var(--on-ink); font-weight: 600; }
.teacher-thumb { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.academy-mission { font-size: 1.02rem; line-height: 1.6; border-left: 3px solid var(--accent); padding-left: 16px; }
.academy-note { font-size: .9rem; color: var(--muted); background: var(--paper-2); border-radius: 10px; padding: 14px 18px; max-width: 900px; }
.tint .academy-note { background: var(--paper); }
.academy-note strong { color: var(--text); }
.academy-note a { color: inherit; }
