/* massimofabrizio.com — Futurismo editoriale neo-svizzero
   Palette: paper #F3F0E8 · ink #111111 · muted #6B6963 · lines #D7D3C9 · secondary #8A8780 · signal #FF4F00
   Il signal orange è usato solo per accenti grafici (mai come colore di testo: contrasto insufficiente). */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-ext-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3F0E8;
  --ink: #111111;
  --muted: #6B6963;
  --lines: #D7D3C9;
  --secondary: #8A8780;
  --signal: #FF4F00;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px;
  --pad: 16px;
  --fs-hero: clamp(3rem, 8vw, 7.5rem);
  --fs-article: clamp(2.4rem, 6vw, 5.5rem);
  --fs-preview: clamp(1.5rem, 3vw, 2.8rem);
  --fs-body: clamp(1.125rem, 1.4vw, 1.25rem);
  --fs-meta: 12.5px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --gutter: 24px; --pad: 40px; }
}
@media (min-width: 1280px) {
  :root { --pad: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--signal); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--signal); }
main:focus { outline: none; }
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.mono { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.02em; line-height: 1.5; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--pad); top: -100px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 15px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- griglia */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.grid > * { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding-block: 18px 14px; }
.wordmark { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.site-header__date { color: var(--muted); order: 3; width: 100%; }
.site-nav ul { list-style: none; display: flex; gap: 18px; }
.site-nav a { font-size: 15px; text-decoration: none; padding-block: 6px; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
@media (min-width: 700px) {
  .site-header__date { order: 0; width: auto; }
}

/* --------------------------------------------------------------- hero */
.hero { padding-block: clamp(40px, 8vw, 112px) clamp(8px, 2vw, 24px); row-gap: 20px; }
.hero__kicker { color: var(--muted); }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 14ch;
}
.hero__support { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; max-width: 30ch; letter-spacing: -0.01em; }
.hero__promise { color: var(--muted); max-width: 40ch; padding-left: 16px; border-left: 2px solid var(--signal); font-size: 1rem; }
@media (min-width: 900px) {
  .hero__title { grid-column: 1 / span 11; }
  .hero__support { grid-column: 7 / span 5; margin-top: 24px; }
  .hero__promise { grid-column: 7 / span 5; }
}

/* --------------------------------------------------------------- sezioni */
.section-label { color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; padding-block: 18px 14px; border-top: 1px solid var(--ink); }
.signals { padding-top: clamp(32px, 5vw, 64px); }
.empty-state { padding-block: 32px; color: var(--muted); max-width: 52ch; }

/* lead */
.lead { row-gap: 20px; padding-bottom: clamp(32px, 5vw, 56px); }
.lead__num { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: 0; color: var(--ink); line-height: 1; display: inline-flex; align-items: center; gap: 12px; }
.lead__num::before { content: ""; width: 28px; height: 3px; background: var(--signal); display: inline-block; }
.lead__kicker { color: var(--muted); margin-top: 18px; text-transform: uppercase; letter-spacing: .06em; }
.lead__title { font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; margin-top: 12px; text-wrap: balance; }
.lead__title a { text-decoration: none; }
.lead__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.lead__excerpt { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; margin-top: 18px; max-width: 46ch; }
.lead .meta-line { margin-top: 22px; }
.lead__image { display: block; border: 1px solid var(--lines); align-self: start; }
.lead__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) {
  .lead__text { grid-column: 1 / span 6; }
  .lead__image { grid-column: 7 / span 6; margin-top: 4px; }
}

/* righe */
.rows { border-top: 1px solid var(--ink); }
.row { position: relative; border-bottom: 1px solid var(--lines); padding-block: 22px 20px; display: grid; grid-template-columns: 1fr; gap: 12px; transition: border-color 160ms var(--ease); }
.row__link { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; text-decoration: none; transition: transform 160ms var(--ease); }
.row__num { color: var(--muted); padding-top: 5px; position: relative; }
.row__num::after { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--signal); transition: width 160ms var(--ease); }
.row__kicker { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.row__title { font-size: var(--fs-preview); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; margin-top: 6px; text-wrap: balance; }
.row__excerpt { color: var(--ink); margin-top: 10px; max-width: 60ch; font-size: 1.0625rem; line-height: 1.5; }
.row .meta-line { margin-left: 64px; }
.row:hover, .row:focus-within { border-bottom-color: var(--ink); }
.row:hover .row__link, .row:focus-within .row__link { transform: translateX(5px); }
.row:hover .row__num::after, .row:focus-within .row__num::after { width: 32px; }
.row:hover .row__title, .row__link:focus-visible .row__title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--signal); text-underline-offset: .14em; }
.row__link:focus-visible { box-shadow: none; outline-offset: 6px; }
@media (min-width: 900px) {
  .row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-block: 28px 26px; }
  .row__link { grid-column: 1 / span 9; grid-template-columns: 1fr 8fr; column-gap: var(--gutter); }
  .row .meta-line { grid-column: 10 / span 3; margin-left: 0; flex-direction: column; gap: 4px; padding-top: 4px; }
  .row .meta-line li + li::before { content: none; }
}

.meta-line { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); }
.meta-line li + li::before { content: "·"; margin-inline: 8px; color: var(--secondary); }
.tag-type { color: var(--ink); font-weight: 500; }
.demo-badge { display: inline-block; border: 1px solid var(--ink); color: var(--ink); padding: 0 6px; border-radius: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.to-archive { padding-block: 28px 8px; }
.link-arrow { font-size: 1.125rem; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow:hover { border-bottom-color: var(--signal); border-bottom-width: 2px; }

/* bio */
.bio-block { padding-block: clamp(48px, 8vw, 104px); row-gap: 18px; }
.bio-block__text { font-size: clamp(1.75rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.bio-block__desc { color: var(--muted); max-width: 56ch; font-size: 1rem; }
.bio-block__desc a { color: var(--ink); }
@media (min-width: 900px) {
  .bio-block .section-label { grid-column: 1 / -1; }
  .bio-block__text { grid-column: 1 / span 9; }
  .bio-block__desc { grid-column: 7 / span 5; }
}

/* --------------------------------------------------------------- pagine */
.page-head { padding-block: clamp(36px, 7vw, 96px) clamp(28px, 4vw, 48px); row-gap: 18px; }
.page-head__kicker { color: var(--muted); }
.page-head__kicker a { color: var(--muted); }
.page-head__title { font-size: var(--fs-article); font-weight: 600; line-height: .96; letter-spacing: -0.04em; }
.page-head__lead { color: var(--muted); max-width: 56ch; }
.page-head__lead a { color: var(--ink); }
.bio-statement { font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; max-width: 22ch; padding-top: 12px; border-top: 1px solid var(--ink); }
.archive { padding-bottom: 64px; }
.archive__month + .archive__month { margin-top: 40px; }
.archive__month .rows { border-top: 0; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 32px; }
.pagination ol { list-style: none; display: flex; gap: 4px; }
.pagination a, .pagination span[aria-current] { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; }
.pagination span[aria-current] { border-bottom: 2px solid var(--signal); font-weight: 500; }
.pagination > a:last-child { justify-self: end; }
.prose-grid { padding-bottom: 72px; }
.plain-list { list-style: none; }
.plain-list li { border-top: 1px solid var(--lines); padding-block: 8px; }

/* --------------------------------------------------------------- articolo */
.article-head { padding-block: clamp(28px, 5vw, 64px) clamp(24px, 4vw, 40px); row-gap: 18px; }
.breadcrumb { color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.article-head__kicker { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.article-head__num { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.article-head__num::before { content: ""; width: 24px; height: 3px; background: var(--signal); }
.article-head__title { font-size: var(--fs-article); font-weight: 600; line-height: .98; letter-spacing: -0.04em; text-wrap: balance; }
.article-head__subtitle { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.35; max-width: 42ch; letter-spacing: -0.01em; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin: 12px 0 0; }
.facts > div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--lines); }
.facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.facts dd { margin: 2px 0 0; color: var(--ink); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .article-head__title { grid-column: 1 / span 11; }
  .article-head__subtitle { grid-column: 1 / span 8; }
  .facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .facts > div { border-bottom: 0; }
}

.signal-map { margin: 0 auto; }
.signal-map img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-block: 1px solid var(--lines); background: var(--paper); }
.signal-map figcaption { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); padding-top: 10px; }
.signal-map figcaption span:first-child { color: var(--ink); font-weight: 500; }

.article-body { padding-block: clamp(32px, 5vw, 64px); }
.prose { max-width: 700px; font-size: var(--fs-body); line-height: 1.65; }
@media (min-width: 900px) {
  .article-body .prose, .prose-grid .prose { grid-column: 3 / span 8; }
}
@media (min-width: 1200px) {
  .article-body .prose, .prose-grid .prose { grid-column: 4 / span 7; }
}
.prose p + p { margin-top: 1em; }
.prose section { margin-top: 2.6em; }
.prose section:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .7em; font-weight: 500; display: flex; align-items: baseline; gap: 14px; }
.prose h2.section-label { display: block; font-size: 12px; letter-spacing: .08em; margin-bottom: 12px; }
.prose-grid .prose h2 { margin-top: 2em; }
.h-num { color: var(--muted); font-size: 13px; flex: none; }
.abstract__text { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.45; letter-spacing: -0.01em; }
.refs { font-size: 11px; vertical-align: super; line-height: 0; margin-left: 2px; color: var(--muted); }
.refs a { color: var(--muted); text-decoration: none; padding: 2px; }
.refs a:hover, .refs a:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); }
.divergence { border-left: 2px solid var(--ink); padding-left: 16px; margin-top: 1em; }
.divergence__label { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.future p { }
.watch { list-style: none; counter-reset: watch; border-top: 1px solid var(--ink); }
.watch li { counter-increment: watch; border-bottom: 1px solid var(--lines); padding: 18px 0 18px 48px; position: relative; }
.watch li::before { content: counter(watch, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.watch__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.watch p { font-size: 1.0625rem; }
.sources__list { list-style: none; border-top: 1px solid var(--ink); counter-reset: src; }
.sources__list li { counter-increment: src; border-bottom: 1px solid var(--lines); padding: 14px 0 14px 48px; position: relative; display: flex; flex-direction: column; gap: 3px; font-size: 1rem; line-height: 1.45; scroll-margin-top: 24px; }
.sources__list li::before { content: "[" counter(src) "]"; position: absolute; left: 0; top: 15px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.sources__list li:target { box-shadow: inset 3px 0 0 var(--signal); }
.sources__pub, .sources__date { color: var(--muted); }
.sources__note { font-size: .9375rem; color: var(--muted); }
.disclosure { margin-top: 3em; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.disclosure p + p { margin-top: .6em; }
.disclosure h3 { font-size: 1rem; font-weight: 600; margin-top: 1.2em; }
.disclosure ul { padding-left: 1.2em; }
.related { padding-bottom: 72px; }

/* --------------------------------------------------------------- grafici */
.chart { margin: 2.2em 0; padding-top: 16px; border-top: 1px solid var(--ink); }
.chart-label { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chart-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-top: 6px; }
.chart-summary { font-size: 1rem; line-height: 1.5; margin-top: 6px; color: var(--ink); }
.chart-body { margin-top: 16px; }
.chart-svg-el { width: 100%; height: auto; overflow: visible; }
.chart-svg--compact { display: none; }
@media (max-width: 599px) {
  .chart-svg--wide { display: none; }
  .chart-svg--compact { display: block; }
}
.chart .ct { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.chart .ct-label { font-size: 12.5px; }
.chart .ct-title, .chart .ct-cat { fill: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 500; }
.chart .ct-event { fill: var(--ink); font-family: var(--sans); font-size: 14px; }
.chart .ct-val { fill: var(--ink); }
.chart .ct-num { font-size: 10px; fill: var(--ink); }
.chart .ct-axis { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.chart .pt { cursor: pointer; }
.chart .pt:focus { outline: none; }
.chart .pt:focus-visible, .chart .pt.is-active { stroke: var(--ink); stroke-width: 3px; paint-order: stroke; }
.chart-readout { font-family: var(--mono); font-size: 13px; padding: 8px 0 0; color: var(--ink); min-height: 1.5em; }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; line-height: 1.3; }
.chart-legend li { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.chart-annotations { list-style: none; margin-top: 14px; font-size: .9375rem; line-height: 1.45; }
.chart-annotations li { display: flex; gap: 10px; padding-block: 3px; }
.chart-key-num { flex: none; width: 20px; height: 20px; border: 1px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; margin-top: 1px; }
.chart-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.5; }
.chart-meta a { color: var(--muted); }
.chart details { margin-top: 10px; border-top: 1px solid var(--lines); font-size: .9375rem; }
.chart summary { cursor: pointer; padding: 10px 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.chart details p { margin: 0 0 .6em; line-height: 1.5; color: var(--ink); }
.table-wrap { overflow-x: auto; margin-bottom: 12px; }
.data-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.data-table caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.data-table th, .data-table td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--lines); vertical-align: top; }
.data-table thead th { font-weight: 600; border-bottom: 1px solid var(--ink); }
.data-table td.num { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.data-table .unit { color: var(--muted); font-weight: 400; }
.data-table abbr { text-decoration: none; color: var(--muted); }

/* --------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--ink); padding-block: 36px 48px; margin-top: 24px; font-size: 15px; }
.site-footer .grid { row-gap: 18px; }
.site-footer__name { font-weight: 600; }
.site-footer__tag { color: var(--muted); }
.site-footer__note { color: var(--muted); max-width: 60ch; line-height: 1.5; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__links a { display: inline-block; padding-block: 6px; }
.site-footer__copy { color: var(--muted); }
@media (min-width: 900px) {
  .site-footer__id { grid-column: 1 / span 3; }
  .site-footer__note { grid-column: 4 / span 5; }
  .site-footer__links { grid-column: 10 / span 3; flex-direction: column; gap: 0; }
  .site-footer__copy { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------- movimento ridotto e stampa */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .row:hover .row__link, .row:focus-within .row__link { transform: none; }
}
@media print {
  .site-header, .site-nav, .site-footer__links, .related, .chart-svg--compact { display: none; }
  body { background: #fff; }
  .chart details { display: block; }
}

/* --------------------------------------------------------------- rifiniture */
.section-label + .rows { border-top: 0; }
.refs { white-space: nowrap; }
.chart summary { list-style: none; gap: 10px; }
.chart summary::-webkit-details-marker { display: none; }
.chart summary::before { content: "+"; display: inline-block; width: 14px; font-family: var(--mono); color: var(--ink); }
.chart details[open] > summary::before { content: "−"; }

/* --------------------------------------------------------------- progetti */
.projects { padding-bottom: 72px; }
.projects__list { list-style: none; border-top: 1px solid var(--ink); }
.project { display: grid; grid-template-columns: 1fr; gap: 14px; padding-block: 28px; border-bottom: 1px solid var(--lines); }
.project__num { color: var(--muted); }
.project__logo { display: flex; align-items: center; min-height: 48px; }
.project__logo img { height: 40px; width: auto; max-width: 200px; }
.project__logo.is-empty { display: none; }
@media (min-width: 900px) { .project__logo.is-empty { display: flex; } }
.project__kind { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.project__name { font-size: var(--fs-preview); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; margin-top: 6px; }
.project__desc { margin-top: 10px; max-width: 60ch; font-size: 1.0625rem; line-height: 1.55; }
.project__link { margin-top: 14px; }
.project__link a { display: inline-block; padding-block: 6px; text-decoration-color: var(--ink); }
.project__link a:hover { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
@media (min-width: 900px) {
  .project { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-block: 36px; }
  .project__num { grid-column: 1 / span 1; padding-top: 14px; }
  .project__logo { grid-column: 2 / span 3; }
  .project__logo img { height: 48px; max-width: 240px; }
  .project__body { grid-column: 6 / span 7; }
}

.project__signal { margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--signal); max-width: 60ch; }
.project__signal-label { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin-bottom: 4px; }
.project__signal p { font-size: 1.0625rem; line-height: 1.55; }

/* --------------------------------------------------------------- redazione (pagina privata) */
.editor { padding-bottom: 72px; }
.editor > * { max-width: 880px; }
.editor__form { border-top: 1px solid var(--ink); padding-top: 24px; display: grid; gap: 24px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: 1.125rem; }
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { color: var(--muted); max-width: 70ch; }
.field textarea { width: 100%; font: inherit; font-family: var(--mono); font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff; border: 1px solid var(--secondary); border-radius: 0; padding: 12px 14px; resize: vertical; }
.field textarea:focus-visible { border-color: var(--ink); }
.editor__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: inset 0 -3px 0 var(--signal); }
.btn--primary:hover { background: #000; }
.btn[disabled] { opacity: .6; cursor: progress; }
.editor__alert { border: 1px solid var(--ink); border-left: 4px solid var(--signal); background: #fff; padding: 14px 16px; margin-bottom: 24px; display: grid; gap: 8px; }
.editor__alert ul { padding-left: 1.2em; }
.editor__unread { list-style: none; padding: 0 !important; }
.editor__url { word-break: break-all; }
.editor__notice { color: var(--muted); margin-bottom: 16px; }
.editor__drafts { margin-top: 56px; }
.editor__h2 { font-size: var(--fs-preview); font-weight: 500; letter-spacing: -0.025em; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.editor__empty { padding-top: 16px; color: var(--muted); }
.editor__list { list-style: none; }
.editor__item { padding-block: 18px; border-bottom: 1px solid var(--lines); display: grid; gap: 6px; }
.editor__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.editor__title { font-size: 1.375rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.editor__hint { color: var(--muted); }
.tag { text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.tag--signal { display: inline-flex; align-items: center; gap: 8px; }
.tag--signal::before { content: ""; width: 14px; height: 3px; background: var(--signal); }
.editor-bar { background: #fff; border-bottom: 1px solid var(--ink); }
.editor-bar__inner { display: grid; gap: 18px; padding-block: 20px; }
.editor-bar__kicker { color: var(--muted); }
.editor-bar__kicker a { color: var(--ink); }
.editor-bar__title { font-size: var(--fs-preview); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; margin-top: 6px; }
.editor-bar__ok { margin-top: 8px; }
.editor-bar__note { margin-top: 8px; max-width: 70ch; color: var(--muted); }
.editor-bar__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.editor-bar .editor__alert { margin: 12px 0 0; }
@media (min-width: 900px) {
  .editor-bar__inner { grid-template-columns: 1fr auto; align-items: end; }
}
