@font-face { font-family: "Spectral"; src: url("/theme/fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/theme/fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/theme/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/theme/fonts/spectral-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/theme/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/theme/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("/theme/fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("/theme/fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #17163a; --paper: #f5efe0; --paper-2: #ece4d0; --rule: #17163a; --spot: #ffcc07; --red: #b5341f;
  --on-spot: #17163a; --night: #17163a; --night-text: #f5efe0; --field: #fffdf6; --visited: #4c3b77;
  --primary: var(--ink); --accent: var(--red); --highlight: var(--spot); --background: var(--paper); --surface: var(--paper-2); --text: var(--ink); --muted: #5d5a70; --line: #c9bfa8;
  --font: "Spectral", Georgia, serif; --font-display: "Spectral", Georgia, serif; --mono: "Plex Mono", ui-monospace, monospace; --cond: "Plex Cond", "Arial Narrow", sans-serif;
  --radius: 0; --shadow: none; --width: 1240px; --pos-primary: #f99b27; --pos-accent: #8160a0; --pos-on: #17163a;
}
html, body { overflow-x: clip; }
body { font-size: 19px; line-height: 1.55; background: var(--paper); font-feature-settings: "liga", "lnum"; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--red); } }
a:active { color: var(--red); background: var(--paper-2); }
html { -webkit-tap-highlight-color: rgb(181 52 31 / .18); }
.prose a:visited, .page-head a:visited { color: var(--visited); }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.012em; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 23px; }
.kicker, .eyebrow { display: block; margin: 0 0 8px; font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.note { font-family: var(--cond); font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--muted); }
figure { margin: 0; }
figcaption { margin-top: 6px; font-family: var(--cond); font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.print { display: block; width: 100%; filter: grayscale(1) brightness(1.5) contrast(1.05) sepia(.1); mix-blend-mode: multiply; }

.masthead { padding: 0 clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--ink); }
.dateline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; padding: 7px 0; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; }
.dateline a { text-decoration: none; }
.dateline .langs { display: flex; gap: 10px; margin: 0; }
.dateline .langs a[aria-current] { font-weight: 600; text-decoration: underline; }
.title { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 24px); padding: clamp(14px, 3vw, 30px) 0 clamp(10px, 2vw, 22px); font-weight: 800; font-size: clamp(44px, 10.4vw, 138px); letter-spacing: -.03em; line-height: .95; text-decoration: none; text-align: center; }
.title img { width: .92em; height: .92em; }
body:not(.page-home) .title { justify-content: flex-start; padding: 10px 0; font-size: 30px; letter-spacing: -.015em; }
.motto { margin: -8px 0 12px; text-align: center; font-style: italic; font-size: 19px; }
body:not(.page-home) .motto { display: none; }
.rubrics { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px clamp(10px, 2vw, 25px); padding: 8px 0; border-top: 3px double var(--ink); font-family: var(--cond); font-size: 17px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rubrics a { text-decoration: none; }
.rubrics a[aria-current="page"] { color: var(--red); text-decoration: underline 2px; text-underline-offset: 4px; }
.rubrics .shop-link { padding: 2px 10px; background: var(--spot); color: var(--on-spot); }
.rubrics .shop-link:hover, .rubrics .shop-link[aria-current="page"] { color: var(--on-spot); }
body[class*="page-learn-"] .rubrics a[href$="/impara/"], .page-tulipani .rubrics a[href$="/impara/"], .page-mining .rubrics a[href$="/impara/"], .page-shitcoin .rubrics a[href$="/impara/"], .page-passaporto .rubrics a[href$="/pellegrinaggio/"], .page-2018 .rubrics a[href$="/rassegna/"] { color: var(--red); }
.menu-toggle { display: none; }

main { max-width: var(--width); padding: 24px clamp(16px, 3vw, 40px) 56px; }
.wide main { max-width: var(--width); }

.front { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0 36px; }
.lead { padding-right: 36px; border-right: 1px solid var(--ink); }
.lead h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.01; margin: 0 0 16px; }
.lead .deck { margin: 0 0 18px; font-size: clamp(21px, 2.1vw, 26px); font-style: italic; line-height: 1.3; }
.byline { margin: 0 0 16px; padding: 6px 0; border-block: 1px solid var(--line); font-family: var(--cond); font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.cols { columns: 2 280px; column-gap: 32px; column-rule: 1px solid var(--line); text-align: left; hyphens: auto; }
.cols p { margin: 0 0 .7em; }
.drop::first-letter { float: left; padding: 7px 8px 0 0; font-size: 4.3em; font-weight: 800; line-height: .72; }

.ledger { font-family: var(--mono); font-size: 14px; }
.ledger h2, .side h2 { margin: 0 0 6px; font-size: 25px; }
.ledger table { width: 100%; margin: 8px 0; font-size: 14px; }
.ledger td { padding: 4px 6px 4px 0; border-bottom: 1px dotted var(--ink); white-space: nowrap; }
.ledger td:last-child { text-align: right; }
.ledger p { font-family: var(--cond); font-size: 15px; color: var(--muted); }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 0; border-block: 3px double var(--ink); font-weight: 600; font-size: 17px; }
.side { padding-top: 20px; }

.section { margin-top: 44px; padding-top: 10px; border-top: 4px solid var(--ink); }
.section > .kicker { color: var(--ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.grid-3 > * + * { padding-left: 32px; border-left: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.grid-2 > * + * { padding-left: 32px; border-left: 1px solid var(--line); }
.chart svg { display: block; width: 100%; height: auto; font-family: var(--mono); }

.index { margin: 0; padding: 0; list-style: none; }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 10px 0; text-decoration: none; }
.index strong { font-size: 24px; font-weight: 800; line-height: 1.15; }
.index em { color: var(--muted); }
.index a:hover strong { color: var(--red); }
.index li:not(:has(> a)) { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 10px 0; }

.shops { display: block; margin: 8px 0; }
.shops a { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; background: none; box-shadow: none; border-radius: 0; font-size: 19px; }
.shops a::after { content: ""; order: 2; flex: 1; border-bottom: 1px dotted var(--ink); }
.shops a span { order: 1; }
.shops small { display: inline; margin-left: 6px; font-style: italic; }
.shops .discount { order: 3; background: none; padding: 0; font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--red); }

.pull { margin: 0; padding: 12px 0; font-size: clamp(25px, 2.7vw, 33px); font-style: italic; line-height: 1.22; }
.pull cite { display: block; margin-top: 10px; font-family: var(--cond); font-size: 15px; font-style: normal; font-weight: 500; color: var(--muted); }

.page-head h1, .prose h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; margin-bottom: 10px; }
.prose { max-width: 700px; margin-inline: 0; }
.prose h2 { margin-top: 36px; font-size: 30px; }
sup { line-height: 0; }
sup a { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--red); }
.sources { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--ink); font-family: var(--cond); font-size: 15px; font-weight: 500; line-height: 1.35; }
.sources li { margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; font-family: var(--cond); font-size: 17px; font-variant-numeric: lining-nums tabular-nums; }
th { text-align: left; letter-spacing: .03em; border-bottom: 2px solid var(--ink); padding: 6px 12px 6px 0; }
td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
code { background: var(--paper-2); border-radius: 0; font-family: var(--mono); }
.button { background: var(--night); color: var(--night-text); border-radius: 0; font-family: var(--cond); font-size: 18px; letter-spacing: .03em; text-transform: uppercase; }
.button:hover { box-shadow: none; transform: none; }
.button:not(.button-quiet):hover { color: var(--spot); }
.button-quiet { background: var(--paper-2); color: var(--ink); }
.button-quiet:hover { color: var(--ink); text-decoration: underline; }
/* I numeri dei passi del software (.pay-steps della pagina del negozio, .wallet-steps della guida «Non ho ancora un wallet»)
   usano --on-primary: bianco, e in sera --primary è chiaro, quindi 1,2:1. Il giallo del sito con l'inchiostro sopra tiene
   12:1 in chiaro e in scuro. axe non guarda i contenuti generati dai ::before: si misurano a mano. */
.pay-steps li::before, .wallet-steps > li::before { background: var(--spot); color: var(--on-spot); }
input, select, textarea { border-radius: 0 !important; background: var(--field) !important; color: var(--text); }
.card { background: none; box-shadow: none; padding: 0; }
details { border-bottom-color: var(--line); }
summary { font-size: 21px; font-weight: 600; }
.gallery img { background: none; border-radius: 0; box-shadow: inset 0 0 0 1px var(--line); }
.timeline strong { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--red); }

#map, #route-map { border-radius: 0; border: 1px solid var(--ink); filter: saturate(.55) sepia(.12); }
.shop-list li { border-bottom-color: var(--line); }
.shop-list span, .shop-list small { display: block; }
.shop-list small { overflow: hidden; color: var(--muted); font-size: 15px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 860px) { #shop-quick { flex-basis: 100%; } }
.ledger td a { display: inline-block; padding-block: 3px; }
.in-breve { max-width: 760px; margin: 14px 0; }
.in-breve div { padding: 9px 0; border-top: 1px solid var(--line); }
.in-breve dt { font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.in-breve dd { margin: 0; font-size: 19px; line-height: 1.35; }
.in-breve b { font-family: var(--font-display); font-size: 1.15em; font-weight: 800; }
.foto-stampa { display: block; margin: 6px 0; }
.foto-stampa img { display: block; width: 100%; height: auto; }
.page-head .two-ways { margin: 14px 0 0; }
.pin { background: var(--night); border-color: var(--paper); box-shadow: none; }
.discount { color: var(--on-spot); }
.pin-discount { background: var(--spot); color: var(--on-spot); border: 2px solid var(--on-spot); font-family: var(--mono); }
.marker-cluster div { background: var(--night); color: var(--spot); border-color: var(--paper); box-shadow: none; font-family: var(--mono); }
.route-stop { border-bottom-color: var(--line); }
.route-stop b { border-radius: 0; background: var(--night); color: var(--spot); font-family: var(--mono); display: inline-block; min-width: 1.8em; text-align: center; padding: 2px 0; }
.route .pin-discount { font-family: var(--mono); }

.bottom { position: relative; margin-top: 110px; padding: 20px clamp(16px, 3vw, 40px) 28px; border-top: 4px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--cond); font-size: 17px; font-weight: 500; }
.bottom @media (hover: hover) { a:hover { color: var(--red); } }
a:active { color: var(--red); background: var(--paper-2); }
html { -webkit-tap-highlight-color: rgb(181 52 31 / .18); }
.prose a:visited, .page-head a:visited { color: var(--visited); }
.bottom-grid { max-width: none; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
.piede { margin: 0 0 4px; padding: 0; border: 0; font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; color: var(--red); }
.bottom-name { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.colophon { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.avvertenza { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; }

@media (max-width: 980px) {
  .front { grid-template-columns: 1fr; }
  .lead { padding-right: 0; border-right: 0; }
  .grid-3 { gap: 0 20px; }
  .grid-3 > * + * { padding-left: 20px; }
  .bottom-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .bottom-id { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  body:not(.page-home) .title { padding: 6px 0; font-size: 24px; }
  .rubrics { justify-content: space-between; gap: 0 2px; padding: 2px 0; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
  .rubrics a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .rubrics .shop-link { padding: 0 8px; background: linear-gradient(var(--spot), var(--spot)) center / 100% 26px no-repeat; }
  .dateline { font-size: 12px; }
}

.side-col { padding-top: 2px; }
.side-quote { margin: 20px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--ink); font-size: 21px; font-style: italic; line-height: 1.25; }
.side-quote cite { display: block; margin-top: 8px; font-family: var(--cond); font-size: 14px; font-style: normal; color: var(--muted); }
.h-mid { margin: 0 0 8px; font-size: 27px; }
.h-mid a { text-decoration: none; }
.h-mid @media (hover: hover) { a:hover { color: var(--red); } }
a:active { color: var(--red); background: var(--paper-2); }
html { -webkit-tap-highlight-color: rgb(181 52 31 / .18); }
.prose a:visited, .page-head a:visited { color: var(--visited); }
.deck { font-style: italic; font-size: clamp(21px, 2.1vw, 25px); line-height: 1.3; margin: 0; }
.page-head .deck { color: var(--ink); max-width: 760px; }
.article { font-size: 20px; line-height: 1.6; }
.article h2 { margin: 40px 0 10px; font-size: 32px; }
.doc { margin: 24px 0; }
.doc img { display: block; width: 100%; border: 1px solid var(--line); }
.wide-fig { max-width: 980px; margin: 32px auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pair .doc { margin: 0; }
.hash { overflow-wrap: anywhere; margin: 16px 0; padding: 12px; background: var(--night); color: var(--spot); font-family: var(--mono); font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.big { display: block; font-family: var(--mono); font-size: clamp(38px, 5vw, 60px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stats-row p { margin: 6px 0 0; }
.footnote { margin-top: 40px; padding-top: 10px; border-top: 1px solid var(--ink); font-family: var(--cond); font-size: 16px; font-weight: 500; line-height: 1.35; }
.footnote hr { display: none; }
.footnote ol { padding-left: 22px; }
.footnote li { margin-bottom: 4px; }
.footnote p { margin: 0; display: inline; }
.footnote-ref { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--red); }
.footnote-backref { text-decoration: none; }
.line { margin: 24px auto; width: 80%; border-bottom: 1px solid var(--ink); }
.news a { box-shadow: none; border-radius: 0; background: none; border-bottom: 1px solid var(--line); }
.news a:hover { box-shadow: none; transform: none; color: var(--red); }
.news img { filter: grayscale(1) contrast(1.05) sepia(.1); mix-blend-mode: multiply; }
.news small { color: var(--red); font-family: var(--mono); }
.news div { padding: 10px 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .article { font-size: 18px; } }
.time { font-family: var(--mono); font-size: 14px; color: var(--red); margin-right: 6px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); }
blockquote { font-style: italic; font-family: var(--font-display); border-left-color: var(--spot); }
blockquote cite { display: block; margin-top: 6px; font-family: var(--cond); font-size: 15px; font-style: normal; color: var(--muted); }
body { font-variant-numeric: lining-nums; }
code { overflow-wrap: anywhere; }
pre { overflow-x: auto; background: var(--night); color: var(--night-text); border-radius: 0; padding: 12px 14px; font-family: var(--mono); font-size: 14px; }
pre:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.ledger table td:nth-child(n+2) { text-align: right; }
@media (max-width: 760px) {
  .index a, .index li:not(:has(> a)) { display: block; }
  .index strong, .index em { display: block; }
}
button.time { all: unset; cursor: pointer; font-family: var(--mono); font-size: 14px; color: var(--red); margin-right: 6px; border-bottom: 1px solid var(--red); }
.time:focus-visible { outline: 2px solid var(--ink); }
.news { display: block; }
.news a { display: block; padding: 2px 0; text-decoration: none; }
.news a div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding: 8px 0; }
.news .senza { padding: 2px 0; border-bottom: 1px solid var(--line); }
.news .senza div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding: 8px 0; }
.news h3 { margin: 0; font-size: 21px; }
/* sotto i 360 px la colonna del titolo restava di 166 px: «Cryptocurrencies:» ne usciva. Data sopra, titolo sotto */
@media (max-width: 359px) { .news a div, .news .senza div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.shelf { grid-template-columns: minmax(0, 240px) 1fr; align-items: start; }
ul.plain { list-style: none; padding: 0; margin: 6px 0 0; }
ul.plain li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.margin { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; margin-top: 40px; padding-top: 6px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.margin b { font-size: 17px; }
.margin i { flex-basis: 100%; display: block; height: 6px; background: var(--ink); margin-top: 4px; max-width: 100%; }
.margin + h2 { margin-top: 12px; }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; } }
.two-ways { display: flex; flex-wrap: wrap; gap: 12px; }
.voices blockquote { margin: 0 0 24px; font-size: 26px; line-height: 1.25; border-left: 4px solid var(--spot); padding-left: 16px; }
.voices blockquote p { margin: 0; }
.lesson { counter-reset: tappa; }
.lesson h2 { counter-increment: tappa; position: relative; }
.lesson h2::before { content: counter(tappa); display: block; font-family: var(--mono); font-size: 40px; font-weight: 600; line-height: 1; color: var(--red); -webkit-text-stroke: 0; }
.next { margin-top: 36px; padding-top: 10px; border-top: 2px solid var(--ink); font-family: var(--cond); font-size: 19px; }
.masthead, .bottom { padding-inline: max(clamp(16px, 3vw, 40px), calc((100vw - var(--width)) / 2 + clamp(16px, 3vw, 40px))); }
pre code { background: none; color: inherit; padding: 0; }
.pair img { max-height: 420px; object-fit: contain; }
.limit { margin: 10px 0 14px; padding-left: 10px; border-left: 2px solid var(--red); font-family: var(--cond); font-size: 16px; line-height: 1.35; color: var(--muted); }
.limit b { display: block; color: var(--red); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
@media (max-width: 760px) { .motto { display: none; } }
@media print {
  .page-learn-truffe .page-head { border: 0; }
  .page-learn-truffe .next, .page-learn-truffe .footnote { display: none; }
  .page-learn-truffe { font-size: 15pt; }
}
.document { border-left: 4px solid var(--spot); padding-left: 22px; margin-top: 28px; }
.document h3 { font-size: 30px; line-height: 1.15; margin-top: 0; }
.signature { font-family: var(--cond); font-weight: 700; letter-spacing: .03em; text-align: right; }

/* il crinale: il profilo del registro chiude le testate interne e apre il piede */
.page-head { margin-bottom: 28px; padding-bottom: 60px; border-bottom: 4px solid var(--ink); background: url("/theme/crinale.svg") left bottom / 100% 44px no-repeat; }
.bottom::before { content: ""; position: absolute; inset-inline: 0; bottom: calc(100% + 4px); height: 56px; background: url("/theme/crinale.svg") left bottom / 100% 100% no-repeat; }
@media (max-width: 760px) { .page-head { padding-bottom: 42px; background-size: 100% 30px; } .bottom { margin-top: 84px; } .bottom::before { height: 36px; } }
@media print { .page-head { padding-bottom: 12px; background: none; } .bottom::before { display: none; } }

/* una griglia sola per tutte le pagine di testo: margine di 250 px, colonna di 700, margine destro per ciò che sta a lato */
.prose { position: relative; }
.article h2, .prose h2 { padding-top: 10px; border-top: 1px solid var(--ink); }
.article > .prose:first-of-type > h2:first-child { margin-top: 0; }
.article > .prose:first-of-type:not(.voices, .lesson) > p:first-of-type:not(.formula)::first-letter { float: left; padding: 6px 8px 0 0; font-size: 4.1em; font-weight: 800; line-height: .74; }
.page-tulipani .article > .prose:first-of-type > p:first-of-type::first-letter { float: none; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.page-head .kicker { align-self: start; }
.footnote:lang(en)::before { content: "Notes and sources"; display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.footnote:lang(it)::before { content: "Note e fonti"; display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.footnote:lang(de)::before { content: "Anmerkungen und Quellen"; display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.footnote li { break-inside: avoid; }
.footnote-ref { position: relative; }
.footnote-ref { padding: 6px 9px; margin: -6px -9px; }
.footnote-ref::after { content: ""; position: absolute; inset: -10px -2px; }
.sommario { display: none; }
@media (min-width: 1180px) {
  .page-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 50px; }
  .page-head > * { grid-column: 2; }
  .page-head > .kicker { grid-column: 1; grid-row: 1 / span 4; padding-top: 6px; border-top: 1px solid var(--ink); }
  .article > .prose, .article > figure, .article > .pair, .footnote { margin-left: 250px; }
  .article > .wide-fig { max-width: none; margin-block: 32px; margin-right: 0; }
  .footnote ol { columns: 2; column-gap: 36px; }
  .sommario { position: sticky; top: 16px; float: left; display: grid; gap: 8px; width: 200px; max-height: calc(100vh - 32px); overflow-y: auto; padding-top: 8px; border-top: 1px solid var(--ink); font-family: var(--cond); font-size: 15px; font-weight: 500; line-height: 1.2; }
  .sommario a { padding-left: 8px; border-left: 3px solid transparent; text-decoration: none; }
  .sommario a[aria-current] { border-left-color: var(--red); color: var(--red); }
  .chronicle .margin { position: absolute; left: -250px; display: block; width: 200px; margin-top: 44px; padding-top: 8px; border-top: 4px solid var(--ink); }
  .chronicle .margin b { display: block; font-family: var(--font); font-size: 48px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
  .chronicle .margin span { display: block; }
  .chronicle .margin + h2 { margin-top: 44px; }
}
@media (min-width: 1240px) {
  .limit { float: right; clear: right; width: 190px; margin: 8px -220px 0 0; }
  /* Nelle lezioni il «dove si rompe» viene dopo il paragone (sul telefono si legge prima il paragone), ma sul computer sta in alto, a lato */
  .paragone { position: relative; }
  .paragone > .limit { position: absolute; top: 0; right: -220px; float: none; margin: 8px 0 0; }
  .prose > .largo, .prose > .pair { margin-right: -210px; max-width: none; width: auto; }
  .prose > .a-lato { float: right; clear: right; width: 190px; margin: 8px -220px 8px 0; }
}
@media (max-width: 1239px) { .prose > .a-lato { max-width: 420px; } }

/* segnatempo */
.segnatempo { position: fixed; inset: auto 0 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; padding: 5px 12px; background: var(--night); color: var(--night-text); font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.segnatempo b { color: var(--spot); font-weight: 600; }
.page-storia .bottom { padding-bottom: 64px; }
@media (max-width: 760px) { .segnatempo { flex-wrap: nowrap; font-size: 12.5px; gap: 0 12px; padding: 7px 8px; white-space: nowrap; } .segnatempo .largo-solo { display: none; } }
@media print { .segnatempo { display: none; } }

/* Il tasto lo mette valley.js in fondo alla testata della cronaca, spesso a pagina già disegnata, e il testo saltava giù
   (CLS 0,11 a 390 px). Se il browser ha JavaScript, finché il sommario è l'ultimo della testata il posto si tiene sotto
   di lui: 12 px di margine, 16 di bordo e padding e una riga da 24,8 px (16 px × 1,55); sotto i 500 px il tasto va su
   due righe. Altezze misurate: se il tasto cambia, vanno rifatte. Senza JavaScript non si tiene niente. */
@media screen and (scripting: enabled) {
  .page-storia .page-head > .deck:last-child { margin-bottom: 52.8px; }
}
@media screen and (scripting: enabled) and (max-width: 499px) {
  .page-storia .page-head > .deck:last-child { margin-bottom: 77.6px; }
}

/* note in riga e ritagli */
.nota { display: block; margin: 6px 0 10px; padding-left: 10px; border-left: 2px solid var(--red); font-family: var(--cond); font-size: 16px; font-style: normal; font-weight: 500; line-height: 1.35; color: var(--muted); text-align: left; }
.nota p { display: inline; margin: 0; }
.ingrandisce { cursor: zoom-in; }
.ritaglio { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; background: none; cursor: zoom-out; }
.ritaglio::backdrop { background: rgb(23 22 58 / .92); }
.ritaglio img { display: block; max-width: 96vw; max-height: 96vh; }

/* cronaca: le date come una tabella di marcia */
.chronicle table td:first-child { font-family: var(--mono); font-size: 18px; font-weight: 600; white-space: nowrap; }
.chronicle h3 + p + table td:first-child { font-family: inherit; font-size: inherit; font-weight: inherit; white-space: normal; }
@media (max-width: 760px) { .page-giro table { font-size: 15px; } .page-giro td, .page-giro th { padding-right: 6px; } }

/* detto al banco */
.prose.voices { max-width: none; }
.voices h2 + blockquote { font-size: clamp(27px, 2.8vw, 36px); line-height: 1.12; border-left-width: 8px; }
@media (min-width: 981px) { .voices { columns: 2; column-gap: 48px; } .voices h2 { column-span: all; } .voices blockquote { break-inside: avoid; } }

/* rassegna: il primo ritaglio a doppia misura */
.clips { gap: 28px 20px; }
.clips > * + * { padding-left: 0; border-left: 0; }
.clips figure:first-child { grid-column: span 2; }

/* panorama */
.panorama { margin: 34px calc(50% - 50vw) 26px; }
.panorama-tavola { max-width: 1800px; margin-inline: auto; overflow-x: auto; scrollbar-width: thin; }
.panorama-tavola:focus-visible { outline-offset: -3px; }
.panorama svg { display: block; width: 100%; height: auto; font-family: var(--cond); }
.scorri { display: none; }
.panorama figcaption { max-width: var(--width); margin: 6px auto 0; padding-inline: clamp(16px, 3vw, 40px); }

/* necrologi */
.necro { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 40px 0; }
@media (min-width: 1000px) { .necro { grid-template-columns: repeat(3, 1fr); } }
.necro > h2, .necro > p { grid-column: 1 / -1; margin: 0; }
.necro > p { margin-bottom: 4px; font-style: italic; }
.necro article { padding: 14px 16px; border: 3px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; text-align: center; font-size: 17px; line-height: 1.3; break-inside: avoid; }
.necro article b { display: block; margin: 4px 0; font-size: 24px; font-weight: 800; line-height: 1.1; }
.necro small { display: block; font-family: var(--mono); font-size: 13px; }
.necro i { display: block; margin-top: 8px; font-size: 16px; }
@media (min-width: 1180px) { .chronicle .necro { margin-left: -250px; } }
@media (min-width: 1240px) { .chronicle .necro { margin-right: -210px; } }

/* domande e capitoli: il titolo nel margine, il testo sull'asse */
@media (min-width: 900px) {
  .page-faq .article > .prose, .page-padova .article > .prose { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 20px; max-width: 950px; margin-left: 0; }
  .page-faq .prose > *, .page-padova .prose > * { grid-column: 2; }
  .page-faq .prose > h2, .page-padova .prose > h2 { grid-column: 1; margin: 0; padding: 10px 0 18px; font-size: 24px; line-height: 1.15; }
  .page-faq .prose > h2 + p, .page-padova .prose > h2 + * { margin-top: 0; padding-top: 10px; border-top: 1px solid var(--ink); }
  .page-faq .prose > p:first-of-type::first-letter, .page-padova .prose > p:first-of-type::first-letter { float: none; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
}
.page-padova .video { margin-top: 0; }

/* passi numerati */
.article .prose > ol { padding: 0; list-style: none; counter-reset: passo; }
.article .prose > ol > li { position: relative; padding: 10px 0 10px 54px; border-top: 1px solid var(--line); counter-increment: passo; }
.article .prose > ol > li::before { content: counter(passo); position: absolute; left: 0; top: 2px; font-size: 40px; font-weight: 800; line-height: 1.2; color: var(--red); }

/* le ore del pellegrino */
.ore { margin: 18px 0; border-top: 3px double var(--ink); }
.ore p { position: relative; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ore strong { display: block; font-size: 25px; font-style: italic; font-weight: 600; line-height: 1.2; color: var(--red); }
@media (min-width: 760px) { .ore p { padding-left: 196px; } .ore strong { position: absolute; left: 0; top: 10px; } }
.page-pellegrinaggio .pull { max-width: 950px; margin: 36px auto; padding: 0; border: 0; text-align: center; }

/* itinerario */
.route-stop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; padding: 12px 0; }
.route-stop b { align-self: start; }
.route-stop h3 { margin: 0; }
.route-stop p { margin: 6px 0 0; }
@media (min-width: 861px) { .route { align-items: stretch; } #route-map.map-small { height: auto !important; min-height: 460px !important; } }

/* richiami nel margine destro: ripetono una frase del testo, solo a schermo largo */
.richiamo { display: none; }
@media (min-width: 1240px) {
  .richiamo { display: block; float: right; clear: right; width: 190px; margin: 6px -220px 14px 0; padding-top: 8px; border-top: 4px solid var(--ink); font-size: 23px; font-style: italic; line-height: 1.18; }
  .richiamo span { display: block; margin-top: 6px; font-family: var(--cond); font-size: 14px; font-style: normal; font-weight: 500; line-height: 1.25; color: var(--muted); }
}

/* grafico mensile: sul telefono si scorre di lato */
.scorre { overflow-x: auto; scrollbar-width: thin; }
.scorre:focus-visible { outline-offset: -3px; }
.due-righe { display: none; }

/* formule da copiare */
.formula { margin: 22px 0; padding: 16px 18px; border: 3px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; font-size: 22px; line-height: 1.3; }
.formula span { display: block; margin-bottom: 4px; font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.percorso-intro { max-width: 46rem; margin: 26px 0 0; font-size: 19px; line-height: 1.45; }
.percorso-titolo { display: flex; align-items: center; gap: 14px; margin: 40px 0 14px; font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.percorso-titolo::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.verifica { margin: 44px 0 8px; padding-top: 10px; border-top: 3px solid var(--ink); }
.verifica > h2 { margin: 0 0 6px; }
.verifica > p { margin: 0 0 10px; color: var(--muted); }
.verifica details { border-bottom: 1px solid var(--line); }
.verifica summary { cursor: pointer; padding: 12px 28px 12px 0; position: relative; font-weight: 700; list-style: none; }
.verifica summary::-webkit-details-marker { display: none; }
.verifica summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-family: var(--mono); font-size: 20px; color: var(--red); }
.verifica details[open] summary::after { content: "−"; }
.verifica summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.verifica details p { margin: 0 0 14px; }
/* Le figure a riquadri: una tavola con il filetto forte in testa, come i box di un giornale. Gli schemi delle lezioni
   stanno in schemi.css; qui la tavola e lo schema dei soldi, che serve anche fuori dalle lezioni. */
.schema { margin: 30px 0; padding: 18px 18px 14px; border: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.schema figcaption { grid-column: 1 / -1; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Lo schema dei soldi. In alto la strada dei soldi, in rosso: da sinistra a destra, anche sul telefono. Il terzo nodo sta
   sotto quello con cui parla, fuori dalla strada, legato da un filo tratteggiato con le domande accanto.
   --sw è la colonna della freccia: larghezza fissa, perché il filo cade a metà della terza colonna e si calcola da lì. */
.schema-banco { --sw: 5.6rem; --g: 12px; display: grid; grid-template-columns: minmax(0, 1fr) var(--sw) minmax(0, 1fr); grid-template-areas: "cliente soldi negozio" "domande domande domande" ". . cassa"; column-gap: var(--g); row-gap: 0; text-align: center; }
.schema-nodo { display: flex; flex-direction: column; justify-content: center; padding: 12px 10px; border: 2px solid var(--ink); background: var(--paper); font-size: 18px; font-weight: 700; line-height: 1.2; hyphens: auto; hyphenate-limit-chars: 9 4 4; overflow-wrap: anywhere; }
/* .schema davanti: nelle lezioni schemi.css rende maiuscole e rosse le etichette small, e lo stesso schema cambiava faccia da una pagina all'altra */
.schema .schema-nodo small { display: block; margin-top: 5px; font-family: var(--cond); font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--muted); }
.schema-banco > :nth-child(1) { grid-area: cliente; }
/* La freccia è disegnata, lunga quanto la colonna. Quella scritta nel testo («→», dopo l'a capo) resta per chi ascolta
   la pagina ma non si vede: il corpo è zero, e solo la prima riga, l'etichetta, ha il suo. Per questo l'etichetta non va a capo. */
.schema-soldi { grid-area: soldi; align-self: center; font-family: var(--cond); font-size: 0; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--red); }
.schema-soldi::first-line { font-size: 15px; line-height: 1.3; }
.schema-soldi::after { content: ""; display: block; height: 12px; margin-top: 3px; background: var(--red); clip-path: polygon(0 5px, calc(100% - 10px) 5px, calc(100% - 10px) 0, 100% 6px, calc(100% - 10px) 12px, calc(100% - 10px) 7px, 0 7px); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.schema-forte { grid-area: negozio; border: 3px solid var(--red); }
.schema-ritorno { grid-area: domande; margin-right: calc((100% - var(--sw) - 2 * var(--g)) / 4 - 1px); padding: 14px 12px 14px 0; border-right: 2px dashed var(--ink); text-align: right; text-wrap: balance; font-family: var(--cond); font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.schema-lieve { grid-area: cassa; border-style: dashed; }
@media (max-width: 640px) {
  .schema { padding: 14px 14px 12px; }
  .schema-banco { --sw: 4.4rem; --g: 8px; }
  .schema-nodo { padding: 10px 6px; font-size: 16px; }
  .schema .schema-nodo small { font-size: 13px; }
  .schema-soldi::first-line { font-size: 14px; }
  .schema-ritorno { padding: 12px 8px 12px 0; font-size: 14px; }
}
}

/* per chi scrive: cosa regge e cosa no */
.page-stampa .prose td:first-child { width: 42%; font-weight: 700; }

/* i comunicati come un registro */
.page-2018 .prose ul { padding: 0; list-style: none; }
.page-2018 .prose li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.3; }
.page-2018 .prose small { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* biblioteca */
.scaffale li { display: flow-root; }
.split .scaffale img { float: left; display: block; width: 56px; margin: 2px 12px 2px 0; object-fit: contain; border: 1px solid var(--line); border-radius: 0; }

/* libretto del pellegrino */
.libretto { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin: 0 auto; background: var(--field); }
.libretto section { display: flex; flex-direction: column; min-height: 390px; padding: 18px; border: 1px dashed var(--line); font-size: 15px; line-height: 1.3; }
.libretto .copertina { align-items: center; text-align: center; }
.libretto .titolo { margin: 6px 0; font-size: 30px; }
.libretto section p { margin: 0 0 8px; }
.libretto h2 { margin: 0; padding: 0; border: 0; font-size: 20px; }
.libretto .kicker { margin-bottom: 4px; font-size: 13px; }
.libretto .timbro { flex: 1; margin-top: 10px; padding: 6px; border: 1px dashed var(--ink); font-family: var(--cond); font-size: 12px; color: var(--muted); }
.libretto code { font-size: 10px; overflow-wrap: anywhere; background: none; }
.come-si-piega { max-width: 700px; margin: 28px auto 0; }
.come-si-piega h2 { margin-top: 0; font-size: 26px; }
.come-si-piega ol { padding-left: 22px; }
@media (max-width: 760px) { .libretto { grid-template-columns: 1fr 1fr; } .libretto section { min-height: 300px; padding: 12px; } }
@media print {
  body.page-passaporto, .page-passaporto main { max-width: none; margin: 0; padding: 0; background: none; }
  .libretto { grid-template: 105mm 105mm / repeat(4, 74.25mm); width: 297mm; height: 210mm; max-width: none; margin: 0; background: none; }
  .libretto section { order: var(--s); min-height: 0; padding: 6mm; overflow: hidden; }
  .libretto .su { transform: rotate(180deg); }
}


img.btc { display: inline-block; vertical-align: -2px; filter: none; }
.btc-mark { float: right; width: clamp(56px, 8vw, 96px); height: auto; margin: 0 0 8px 16px; }
.btc-badge { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; padding: 10px 12px; border: 2px solid #f7931a; font-family: var(--cond); font-weight: 700; line-height: 1.2; }
.btc-badge img { width: 44px; height: 44px; flex: none; }
.btc-badge small { display: block; font-weight: 500; color: var(--muted); }

/* inviti a fine pagina: il primo link è la strada, gli altri sono deviazioni */
.next { clear: both; margin: 44px 0 0; padding: 10px 0 0; border-top: 4px solid var(--ink); font-family: var(--cond); font-size: 18px; line-height: 1.25; }
.next:lang(it)::before { content: "Dove andare adesso"; }
.next:lang(en)::before { content: "Where next"; }
.next:lang(de)::before { content: "Wohin als Nächstes"; }
.next::before { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.next a { display: block; padding: 8px 0; text-underline-offset: 3px; }
.next a:first-of-type { font-family: var(--font-display); font-size: clamp(25px, 3vw, 32px); font-weight: 800; letter-spacing: -.012em; line-height: 1.12; text-decoration: none; }
.next a:first-of-type::after { content: " \2192"; color: var(--red); }
.page > .note-chiuse ~ .next, .page > .article ~ .next, .article > .next { max-width: 700px; }
.voices .next { column-span: all; }

/* da dove entrare: subito sotto il sommario della home */
.porte { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0 0 18px; padding: 6px 0 8px; border-block: 1px solid var(--line); font-family: var(--cond); font-size: 18px; font-weight: 500; }
.porte .kicker { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--ink); }
.porte a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* briciole nel kicker */
/* ogni link è alto quanto la riga, 24 px: col padding i link di due righe si sovrapponevano e il titolo sotto ne copriva il fondo */
.kicker:has(a) { line-height: 24px; }
.kicker a { display: inline-block; color: inherit; }

/* indice a tendina */
.indice { margin: 0 0 22px; padding: 0; border-block: 1px solid var(--ink); }
.indice summary { min-height: 48px; padding: 11px 0; font-family: var(--cond); font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--text); }
.indice nav { display: grid; padding-bottom: 8px; font-family: var(--cond); font-size: 18px; font-weight: 500; line-height: 1.2; }
.indice nav a { padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
@media (min-width: 761px) { .indice nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 1180px) {
  .indice { display: none; }
  .chronicle > .indice, .page-registro .indice, .page-faq .indice, .page-padova .indice { display: block; }
  .chronicle > .indice { margin-left: 250px; max-width: 700px; }
}
/* Il posto dell'indice, tenuto finché valley.js non lo mette in cima all'articolo (punto 6): sul telefono il testo saltava
   giù di 72 px (CLS). Stessa condizione dello script, più di due h2 nella prosa, e la stessa scatola: 48 px di summary,
   2 di bordi, 22 di margine sotto. Quando l'indice entra il posto se ne va nello stesso momento; senza JavaScript non si
   tiene niente. Se l'indice cambia altezza, va cambiata anche qui. Un articolo con gli h2 divisi fra più blocchi di prosa
   non tiene il posto e salta come prima. */
@media screen and (scripting: enabled) and (max-width: 1179px) {
  body:not(.page-registro) .article:has(> .prose > h2 ~ h2 ~ h2):not(:has(> .indice))::before { content: ""; display: block; height: 50px; margin-bottom: 22px; }
}
@media screen and (scripting: enabled) and (min-width: 1180px) {
  :is(.article.chronicle, .page-faq .article, .page-padova .article):has(> .prose > h2 ~ h2 ~ h2):not(:has(> .indice))::before { content: ""; display: block; height: 50px; margin-bottom: 22px; }
}

/* note in fondo */
.note-chiuse { margin-top: 40px; border-block: 1px solid var(--ink); }
.note-chiuse summary { min-height: 48px; padding: 11px 0; font-family: var(--cond); font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--text); }
.note-chiuse .footnote { margin: 0 0 12px; padding-top: 0; border: 0; }
.note-chiuse .footnote::before { display: none; }
.footnote li > p { overflow-wrap: anywhere; }
.footnote-backref { display: inline-block; min-width: 28px; min-height: 24px; text-align: center; }
@media (min-width: 1180px) {
  .note-chiuse, .page > .note-chiuse ~ .next { margin-left: 250px; }
  .page > .article ~ .next, .article > .next { margin-left: 250px; }
  .chronicle ~ .note-chiuse { margin-right: 0; }
  .page-faq > .article ~ .next, .page-padova > .article ~ .next { margin-left: 0; }
  .page-passaporto .next { margin-inline: auto; }
}

/* torna in cima, per il pollice */
.su { position: fixed; right: 12px; bottom: 12px; z-index: 21; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--night); color: var(--night-text); font-family: var(--mono); font-size: 22px; text-decoration: none; visibility: hidden; opacity: 0; transition: opacity .15s; }
.su.vista { visibility: visible; opacity: 1; }
.su:active, .su:hover { background: var(--night); color: var(--spot); }
.page-storia .su { bottom: 46px; }
@media (min-width: 981px) { .su { display: none; } }

/* ritagli: si chiude anche con un pulsante */
.chiudi { position: fixed; top: 8px; right: 8px; min-width: 64px; min-height: 44px; padding: 0 12px; border: 0; background: var(--paper); color: var(--ink); font-family: var(--cond); font-size: 17px; font-weight: 700; cursor: pointer; }
.ritaglio img { margin: auto; }
.chart svg { overflow: visible; }

/* tablet */
@media (min-width: 761px) and (max-width: 860px) { .rubrics { gap: 2px 12px; font-size: 15.5px; letter-spacing: .03em; } }
@media (min-width: 761px) and (max-width: 980px) {
  .side-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-top: 18px; }
  .side-col .btc-badge, .side-col .side-quote { grid-column: 1 / -1; }
  .side { padding-top: 0; }
  .clips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* telefono */
@media (max-width: 760px) {
  .giorno { display: none; }
  .dateline { flex-wrap: nowrap; align-items: center; gap: 8px; padding: 2px 0; white-space: nowrap; }
  .dateline .langs { margin-left: auto; gap: 2px; }
  .langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; }
  body:not(.page-home) .masthead { position: relative; }
  body:not(.page-home) .dateline { padding: 0; border: 0; }
  body:not(.page-home) .dateline > span:not(.langs) { display: none; }
  body:not(.page-home) .dateline .langs { position: absolute; top: 5px; right: max(16px, calc((100vw - var(--width)) / 2 + 16px)); }
  body:not(.page-home) .title { padding: 8px 0 6px; }
  .title { padding: 8px 0 8px; font-size: clamp(40px, 11.6vw, 72px); }
  .rubrics { display: grid; grid-template-columns: 63fr 111fr 69fr 88fr; gap: 0 clamp(5px, 2.3vw, 9px); padding: 0; font-size: clamp(12.5px, 3.43vw, 15px); letter-spacing: 0; }
  .rubrics a { min-width: 0; padding: 0; overflow: visible; }
  .rubrics .shop-link { justify-content: center; padding: 0; }
  main { padding-top: 14px; }
  .lead h1 { margin-bottom: 12px; }
  .deck { font-size: 20px; }
  .page-head { margin-bottom: 18px; }
  .btc-mark { width: 48px; margin: 0 0 4px 12px; }
  .prose h2, .article h2 { margin-top: 32px; font-size: 28px; }
  .section { margin-top: 32px; }

  .porte { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 2px; font-size: 18px; }
  .porte .kicker { grid-column: 1 / -1; }
  .porte a { min-height: 46px; border-top: 1px solid var(--line); }

  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 > * + *, .grid-2 > * + * { margin-top: 16px; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .clips > * + * { margin-top: 0; padding: 0; border-top: 0; }
  .pair { gap: 10px; }
  .pair img { max-height: none; }
  .doc { margin: 18px 0; }
  figcaption { font-size: 14.5px; }
  .stats-row > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .stats-row p { margin: 0; font-size: 17px; line-height: 1.3; }
  .big { font-size: 34px; }

  .index strong { font-size: 21px; }
  .voices blockquote { font-size: 22px; }
  .voices h2 + blockquote { font-size: 25px; }
  .formula { font-size: 19px; }
  .side-quote { font-size: 20px; }

  /* tabelle: ogni riga diventa una scheda */
  .prose table { display: block; font-size: 17px; }
  .prose tbody { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .prose td { display: block; padding: 0; border: 0; white-space: normal; }
  .prose td:first-child { font-weight: 700; line-height: 1.25; }
  /* con la riga a 1.25 un link da solo nella cella era alto 22 px (RaspiBlitz su nodo): il minimo è 24 */
  .prose td > a { display: inline-block; min-height: 24px; }
  /* il richiamo di nota della cella sotto («MIT¹¹») sale di qualche pixel e copriva il link */
  .prose td:has(> a) + td { margin-top: 8px; }
  .prose td + td { margin-top: 3px; line-height: 1.3; }
  .prose td:last-child:not(:first-child)[data-label]::before, .page-registro .prose td:not(:first-child)[data-label]::before, .page-merchants .prose td:not(:first-child)[data-label]::before, .page-learn-wallet .prose td:not(:first-child)[data-label]::before, .page-wallet-scelta .prose td:not(:first-child)[data-label]::before, .page-wallet-negozio .prose td:not(:first-child)[data-label]::before, .prose.flows td:not(:first-child)[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  /* la didascalia: con la tabella a display:block il <caption> restava stretto quanto la sua parola più lunga e a 390 px
     andava a capo a ogni parola. Blocco a tutta larghezza, e la tabella resta una tabella per i lettori di schermo
     (valley.js, punto 7: ruoli ARIA e nome dalla didascalia) */
  .prose caption { display: block; width: 100%; margin: 0 0 6px; padding: 0; text-align: left; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--muted); }
  .page-stampa .prose td:first-child { width: auto; }
  .chronicle table td:first-child { font-size: 16px; }
  .page-giro .prose tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; }
  .page-giro .prose td:nth-child(n+3) { grid-column: 1 / -1; }
  .page-giro .prose td:nth-child(2) { margin-top: 0; font-weight: 700; }
  /* le quattordici porte sono due elenchi, non righe: restano una tabella */
  .chronicle h3 + p + table { display: table; }
  .chronicle h3 + p + table thead { position: static; width: auto; height: auto; clip-path: none; display: table-header-group; }
  .chronicle h3 + p + table tbody { display: table-row-group; }
  .chronicle h3 + p + table tr { display: table-row; padding: 0; }
  .chronicle h3 + p + table td { display: table-cell; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
  .chronicle h3 + p + table td[data-label]::before { content: none; }

  /* grafici */
  .chart svg text { font-size: 19px; }
  .scorre { display: none; }
  .due-righe { display: block; }
  .due-righe svg { display: block; height: auto; overflow: hidden; }
  .due-righe svg:first-child { width: 93%; margin-bottom: 10px; }
  .due-righe svg:last-child { width: 100%; }
  #mesi-barre text { font-size: 19px; }
  .panorama { margin-top: 26px; }
  .panorama-tavola { scrollbar-width: auto; }
  .panorama svg { width: 1150px; max-width: none; }
  .scorri { display: block; margin: 0 16px 6px; font-family: var(--cond); font-size: 16px; font-weight: 700; color: var(--red); }

  /* mappa: l'invito resta raggiungibile */
  #route-map { height: 280px !important; min-height: 0 !important; }
  .page-map .next, .page-map #shop-more { margin-top: 24px; }

  .bottom { margin-top: 72px; }
  .bottom-grid { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .bottom a { padding: 6px 0; line-height: 1.25; }
  .bottom-name { font-size: 25px; margin-bottom: 2px; }
  .bottom-id p { margin-block: 0; }
}
@media (max-width: 380px) { .citta { display: none; } .rubrics { font-size: 12px; } }
@media (max-width: 339px) { .rubrics { grid-template-columns: repeat(3, auto); justify-content: space-between; font-size: 13px; } }

/* telefono in orizzontale: la testata lascia spazio al testo */
@media (orientation: landscape) and (max-height: 500px) {
  .motto, .dateline > span:not(.langs) { display: none; }
  .masthead { position: relative; }
  .dateline { padding: 0; border: 0; }
  .dateline .langs { position: absolute; top: 4px; right: 16px; }
  .title, body:not(.page-home) .title { justify-content: flex-start; padding: 4px 0; font-size: 26px; }
  .title img { width: 26px; height: 26px; }
  /* su una riga non ci stanno, in nessuna lingua (in tedesco ne restavano fuori tre): due righe */
  .rubrics { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; padding: 0; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
  .rubrics a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px; }
  .rubrics .shop-link { padding: 0 8px; background: linear-gradient(var(--spot), var(--spot)) center / 100% 26px no-repeat; }
  main { padding-top: 12px; }
  .page-head { padding-bottom: 30px; background-size: 100% 22px; }
  .lead h1, .page-head h1, .prose h1 { font-size: 34px; }
}

/* transizioni tra le pagine, dove il browser le sa fare */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .masthead { view-transition-name: testata; }
}
@media (prefers-reduced-motion: reduce) { .su { transition: none; } }

/* sera */
@media screen and (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --ink: #f1ead9; --paper: #131230; --paper-2: #1f1e45; --rule: #f1ead9; --red: #ff9d82; --muted: #bcb7cc; --line: #413f6c; --night: #2b2a63; --night-text: #f5efe0; --field: #1f1e45; --visited: #cdbfff; }
  html { -webkit-tap-highlight-color: rgb(255 157 130 / .22); }
  .print, .news img { mix-blend-mode: normal; filter: grayscale(1) brightness(.82) contrast(1.05); }
  .doc img, .scaffale img { filter: brightness(.9); }
  .page-head { background-image: url("/theme/crinale-notte.svg"); }
  .bottom::before { background-image: url("/theme/crinale-notte.svg"); }
  .chart svg [fill="#17163a"], .panorama svg [fill="#17163a"] { fill: var(--ink); }
  .chart svg [stroke="#17163a"], .panorama svg [stroke="#17163a"] { stroke: var(--ink); }
  .chart svg [fill="#b5341f"], .panorama svg [fill="#b5341f"] { fill: var(--red); }
  .panorama svg [fill="#c9bfa8"] { fill: #4c4a7c; }
  #map, #route-map { filter: saturate(.5) brightness(.78); }
  .ritaglio img { filter: none; }
  .notice { background: var(--paper-2); }
  :root { --error: #ff9d82; }
  .sign-qr { padding: 8px; background: #fff; }
  .map-tools .button[aria-pressed="true"] { background: var(--night); color: var(--night-text); }
  .pin.pin-discount { background: var(--spot); color: var(--on-spot); }
  /* il bianco di Leaflet sul buio diventa grigio, e il suo blu ci stava a 3,2:1 */
  .leaflet-container .leaflet-control-attribution { background: rgb(19 18 48 / .85); color: var(--muted); }
  .leaflet-container .leaflet-control-attribution a { color: var(--ink); }
  /* il fuoco sulle puntine: sulle tessere chiare, appena smorzate, il contorno chiaro spariva (1,1:1). Le tessere
     rovesciate della mappa dei negozi tengono il chiaro (mappa-anni.css) */
  .leaflet-container .leaflet-marker-icon:focus-visible { outline-color: #17163a; }
}

/* carta */
@media print {
  html, body { background: #fff; color: #000; }
  :root { --ink: #000; --text: #000; --muted: #333; --red: #000; }
  .dateline, .motto, .rubrics, .bottom, .next, .porte, .oggi-cartolina, .indice, .sommario, .su, .segnatempo, .richiamo, .ritaglio, .scorri, .note-chiuse > summary, .map-tools, #map, #route-map { display: none !important; }
  .masthead { padding: 0 0 6pt; }
  .title, body:not(.page-home) .title { justify-content: flex-start; padding: 0; font-size: 14pt; }
  .title img { width: 14pt; height: 14pt; }
  main { max-width: none; padding: 0; }
  .page-head { margin-bottom: 12pt; padding-bottom: 6pt; background: none; border-bottom-width: 1pt; }
  .note-chiuse { border: 0; }
  h1, h2, h3, .kicker, summary { break-after: avoid; }
  figure, tr, blockquote, .chart, .formula, .necro article { break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
  .panorama { margin-inline: 0; }
  .panorama svg { width: 100%; max-width: 100%; }
  .scorre { display: block !important; overflow: visible; }
  .scorre svg { width: 100%; }
  .due-righe { display: none !important; }
  .article > .prose, .article > figure, .article > .pair, .footnote, .note-chiuse { margin-left: 0 !important; }
  .prose, .article { max-width: none; font-size: 11pt; line-height: 1.4; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  .footnote a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  .footnote-backref, sup a { text-decoration: none; }
  .footnote-backref { display: none; }
  .print, .news img { mix-blend-mode: normal; filter: grayscale(1); }
  .page-passaporto .masthead { display: none; }
  .page-learn-truffe .prose, .page-learn-truffe .article { font-size: 15pt; }
}

/* la macchina del tempo */
.tempo-testa { margin: 0 0 8px; }
.tempo-testa h1 { margin: 0; font-size: clamp(26px, 7.4vw, 46px); }
.tempo-testa .deck { margin: 2px 0 0; font-size: clamp(16px, 1.6vw, 20px); font-style: italic; line-height: 1.25; }
.page-tempo main { padding-top: 12px; }
.tempo { --cielo: #f2d3bd; display: flex; flex-direction: column; }
@media (max-width: 899px) { .tempo { min-height: 100vh; min-height: 100lvh; } .t-foglio { flex: 1 0 auto; } }
.tempo.era-1 { --cielo: #f6e2b4; } .tempo.era-2 { --cielo: #f9ebb0; } .tempo.era-3 { --cielo: #ffe387; } .tempo.era-4 { --cielo: #fad27c; }
.tempo.era-5 { --cielo: #f0bd96; } .tempo.era-6 { --cielo: #bdbad8; } .tempo.era-7 { --cielo: #c9e0e4; } .tempo.era-8 { --cielo: #ecc7a8; }
.t-foglio { min-height: 440px; padding-top: 4px; border-top: 3px double var(--ink); }
.t-data { margin: 0; line-height: 1; }
.t-era { display: block; margin: 6px 0 0; font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.t-mese { font-size: clamp(30px, 8.4vw, 58px); font-style: italic; }
.t-anno { font-size: clamp(58px, 17vw, 120px); font-weight: 800; letter-spacing: -.03em; font-feature-settings: "lnum", "tnum"; }
.t-eroe { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(164px, 25svh, 230px); margin-top: 6px; overflow: hidden; background: color-mix(in srgb, var(--cielo) 34%, var(--paper)); transition: background-color .5s; }
.t-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.t-img[hidden], .t-grande[hidden], .t-titolo[hidden], .t-frase[hidden] { display: none; }
.t-grande { margin: 0; padding: 10px 16px; font-size: clamp(30px, 8.6vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.012em; text-align: center; }
.t-grande.lunga { font-size: clamp(19px, 5.1vw, 27px); font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.t-grande small { display: block; margin-top: 8px; font-family: var(--cond); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.t-eroe.in-attesa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--paper) 55%, transparent), transparent) 0 0 / 40% 100% no-repeat; }
.passato .t-img { opacity: .62; }
.passato .t-grande { color: var(--muted); }
.t-testo { min-height: 150px; }
.t-quando { margin: 8px 0 2px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.t-titolo { margin: 0 0 4px; font-size: clamp(24px, 2.6vw, 34px); }
.t-corpo { margin: 0; font-size: 17px; line-height: 1.34; }
.t-frase { margin: 8px 0 0; padding: 0 0 0 10px; border-left: 3px solid var(--spot); font-size: 17px; font-style: italic; line-height: 1.3; }
.t-frase cite { display: block; font-family: var(--cond); font-size: 14px; font-style: normal; font-weight: 500; color: var(--muted); }
.t-piede { margin: 6px 0 10px; font-family: var(--cond); font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.t-link { display: inline-block; min-height: 24px; margin-right: 8px; font-size: 17px; font-weight: 700; color: var(--red); }
.t-strumento { position: sticky; bottom: 0; z-index: 4; margin-inline: calc(50% - 50vw); background: var(--paper); border-top: 1px solid var(--ink); }
.t-numeri { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; max-width: var(--width); margin: 0 auto; padding: 5px clamp(16px, 3vw, 40px) 5px; }
.t-numeri div { display: flex; flex-direction: column-reverse; min-width: 0; }
.t-numeri dd { margin: 0; font-family: var(--cond); font-size: clamp(21px, 2.4vw, 30px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-numeri dt { font-family: var(--cond); font-size: 13px; font-weight: 500; line-height: 1.1; color: var(--muted); white-space: nowrap; overflow: hidden; }
.t-nota { margin: 0 0 10px; padding-top: 6px; border-top: 1px solid var(--line); font-family: var(--cond); font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--muted); }
.t-valle { position: relative; height: 112px; overflow: hidden; background: linear-gradient(rgb(255 255 255 / .38), transparent 70%) var(--cielo); transition: background-color .5s; }
.t-sole { position: absolute; left: 50%; top: 4px; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: #f99b27; }
.t-lontano { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.t-lontano svg { display: block; overflow: visible; }
.v-lontano { fill: color-mix(in srgb, var(--ink) 22%, var(--cielo)); }
.t-scorre { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.t-scorre::-webkit-scrollbar { display: none; }
.t-scorre.presa { cursor: grabbing; }
.t-scorre svg { display: block; font-family: var(--cond); }
.v-dietro { fill: color-mix(in srgb, var(--line) 80%, var(--cielo)); }
.v-fronte { fill: var(--ink); }
.v-luce { fill: var(--spot); }
.v-piano { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 5; }
.v-segno { fill: var(--red); }
.v-nota { fill: var(--ink); font-size: 13px; }
.v-cima { fill: var(--ink); font-size: 13px; font-weight: 700; }
.t-mirino, .p-mirino { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--red); pointer-events: none; }
.t-perno { position: absolute; left: 50%; bottom: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--spot); box-shadow: 0 0 0 2px var(--ink); color: var(--on-spot); font-family: var(--mono); font-size: 16px; font-style: normal; font-weight: 600; line-height: 1; }
.t-perno::before { content: "‹›"; letter-spacing: -.02em; }
.t-invito { position: absolute; top: 4px; left: 50%; margin: 0; padding: 0 8px; transform: translateX(-50%); background: var(--paper); font-family: var(--cond); font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.toccata .t-invito { opacity: 0; }
.t-slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.t-valle:has(.t-slider:focus-visible) { outline: 3px solid var(--red); outline-offset: -3px; }
.t-anni { display: flex; max-width: 1800px; margin: 0 auto; }
.t-anni button { flex: 1 1 0; min-width: 0; min-height: 30px; padding: 0; border: 0; border-top: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.t-anni button[data-qui] { background: var(--ink); color: var(--paper); }
.t-anni .t-via::before { content: "▸ "; content: "▸ " / ""; }
.t-anni .t-via.in-viaggio::before { content: "▪ "; content: "▪ " / ""; }
.t-anni .t-via { flex: 0 0 auto; padding-inline: 8px; background: var(--spot); color: var(--on-spot); font-family: var(--cond); font-size: 15px; font-weight: 700; }
.tempo-sotto { margin-top: 26px; }
.tempo-come, .tempo-elenco { margin: 0 0 14px; padding: 0; border-bottom: 1px solid var(--line); }
.tempo-come summary, .tempo-elenco summary { min-height: 44px; padding: 10px 0; font-family: var(--cond); font-size: 18px; font-weight: 700; cursor: pointer; }
.tempo-come p { max-width: 720px; margin: 0 0 12px; }
.tempo-tavola { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 17px; line-height: 1.34; }
.tempo-tavola th { padding: 6px 10px 6px 0; border-bottom: 2px solid var(--ink); font-family: var(--cond); font-size: 15px; text-align: left; white-space: nowrap; }
.tempo-tavola td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tempo-tavola a { display: inline-block; min-height: 24px; }
.tempo-tavola td:first-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.tempo-tavola td:nth-child(n+3) { font-family: var(--cond); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .tempo-tavola thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tempo-tavola tr { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 0 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .tempo-tavola td { padding: 0; border: 0; }
  .tempo-tavola td:first-child, .tempo-tavola td:nth-child(2) { grid-column: 1 / -1; }
  .tempo-tavola td[data-l]::before { content: attr(data-l) " "; }
}
@media (min-width: 900px), (orientation: landscape) and (max-height: 500px) {
  .t-foglio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; gap: 0 36px; min-height: 0; padding-bottom: 12px; }
  .t-fatto { display: contents; }
  .t-data { grid-column: 1; grid-row: 1; }
  .t-testo { grid-column: 1; grid-row: 2; min-height: 262px; }
  .t-eroe { grid-column: 2; grid-row: 1 / 3; height: auto; min-height: clamp(300px, 42vh, 460px); margin-top: 10px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .t-foglio { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: 0 16px; }
  .t-anno { font-size: 46px; } .t-mese { font-size: 24px; }
  .t-eroe { min-height: 170px; } .t-testo { min-height: 0; }
  .t-grande { font-size: 28px; padding: 8px 12px; } .t-grande.lunga { font-size: 18px; }
  .t-numeri { padding-block: 2px; } .t-numeri dd { font-size: 18px; } .t-numeri dt { font-size: 12px; }
  .t-valle { height: 82px; }
  .t-anni button { min-height: 26px; }
  .tempo-testa .deck { display: none; }
}
@media (min-width: 900px) {
  .t-grande { font-size: clamp(38px, 3.6vw, 56px); padding: 18px 28px; }
  .t-grande.lunga { font-size: clamp(24px, 2.2vw, 32px); }
  .t-corpo { font-size: 19px; }
  .t-valle { height: 172px; }
  .t-sole { width: 40px; height: 40px; margin-left: -20px; }
  .v-cima, .v-nota { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tempo:not(.toccata).viva .t-perno::before { animation: t-polso 1.2s ease-in-out 3; }
  @keyframes t-polso { 50% { letter-spacing: .28em; } }
}
@media (prefers-reduced-motion: reduce) { .t-valle, .t-eroe { transition: none; } .t-anni .t-via { display: none; } }
.panorama .scorri { display: block; max-width: var(--width); min-height: 3.9em; margin: 0 auto 8px; padding-inline: clamp(16px, 3vw, 40px); font-family: var(--cond); font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--ink); text-decoration: none; }
.panorama .scorri b { display: block; font-size: 20px; font-weight: 700; color: var(--red); }
.panorama .scorri span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.panorama.viva .scorri span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.panorama.viva .scorri span:last-child { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.panorama-lente { position: relative; max-width: 1800px; margin-inline: auto; }
.panorama.viva .panorama-tavola { display: flex; overscroll-behavior-x: contain; cursor: pointer; }
.panorama.viva .panorama-tavola svg { flex: none; }
@media (min-width: 761px) { .panorama.viva .panorama-tavola { touch-action: pan-y; } }
@media (max-width: 760px) {
  .panorama.viva .panorama-tavola { scrollbar-width: none; }
  .panorama.viva .panorama-tavola::-webkit-scrollbar { display: none; }
  .panorama.viva .panorama-tavola::before, .panorama.viva .panorama-tavola::after { content: ""; flex: 0 0 50%; }
}
.chronicle .prose p:has(> a[id]:target) { background: color-mix(in srgb, var(--spot) 26%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--spot) 26%, transparent); }
@media screen and (prefers-color-scheme: dark) {
  .t-valle { background: color-mix(in srgb, var(--cielo) 22%, var(--paper)); }
  .t-eroe { background: color-mix(in srgb, var(--cielo) 12%, var(--paper)); }
  .v-dietro { fill: #4c4a7c; }
  .v-lontano { fill: color-mix(in srgb, var(--ink) 14%, var(--paper)); }
  .t-grande small { color: var(--muted); }
}
@media print { .tempo { display: none; } .tempo-elenco[open] > * { display: revert; } }

/* archivio parlante */
.arc-lente { flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
body:not(.page-home) .masthead { position: relative; }

.arc { max-width: 880px; }
.arc [hidden] { display: none !important; }
.arc-forma label { display: block; margin-bottom: 6px; font-family: var(--cond); font-size: 17px; font-weight: 700; }
.arc-campo { display: flex; align-items: center; gap: 10px; padding-left: 14px; border: 2px solid var(--ink); background: var(--field); color: var(--ink); }
.arc-campo:focus-within { outline: 3px solid var(--red); outline-offset: 1px; }   /* il giallo sulla carta non si vedeva: 1,3:1 */
@media screen and (prefers-color-scheme: dark) { .arc-campo:focus-within { outline-color: var(--spot); } }
.arc-campo input { flex: 1; min-width: 0; height: 62px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-family: var(--font); font-size: clamp(22px, 5.6vw, 30px); outline: 0; box-shadow: none; }
.arc-campo input::placeholder { color: var(--muted); opacity: 1; font-style: italic; }
.arc-campo button { align-self: stretch; margin: 0; padding: 0 clamp(14px, 3vw, 26px); border: 0; border-radius: 0; background: var(--spot); color: var(--on-spot); font-family: var(--cond); font-size: 18px; font-weight: 700; cursor: pointer; }
.arc-domande { margin-top: 18px; }
.arc-attivo .arc-domande:not(.arc-richiama) { display: none; }
.arc-domande .kicker { margin-bottom: 6px; }
.arc-chiedi { display: flex; flex-wrap: wrap; gap: 8px; }
.arc-chiedi button { min-height: 44px; margin: 0; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 0; background: none; color: var(--ink); font-family: var(--font); font-size: 18px; font-style: italic; line-height: 1.2; text-align: left; cursor: pointer; }
.arc-parole { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 10px 0 0; font-family: var(--cond); font-size: 16px; font-weight: 500; color: var(--muted); }
.arc-parole button, .arc-forse { min-height: 44px; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) { .arc-chiedi button:hover { background: var(--spot); color: var(--on-spot); } .arc-parole button:hover, .arc-forse:hover { color: var(--red); } .arc-barra:hover .arc-pieno { background: var(--red); } }
.arc-stato { min-height: 1.4em; margin: 14px 0 0; font-family: var(--cond); font-size: 18px; font-weight: 500; }
.arc-tempo { margin: 14px 0 6px; padding: 12px 0 10px; border-block: 3px double var(--ink); }
.arc-tempo-tit { margin: 0 0 12px; font-size: 22px; }
.arc-barre { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.arc-barra { display: block; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.arc-colonna { display: flex; flex-direction: column; justify-content: flex-end; height: 112px; border-bottom: 2px solid var(--ink); }
.arc-conta { font-family: var(--mono); font-size: 12px; line-height: 1.5; text-align: center; color: var(--muted); }
.arc-pieno { display: block; flex: none; margin-inline: 16%; border-radius: 3px 3px 0 0; background: var(--ink); }
.arc-barra.debole .arc-pieno { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.arc-barra[aria-pressed="true"] .arc-pieno { background: var(--red); box-shadow: none; }
.arc-barra[aria-pressed="true"] .arc-a { color: var(--red); font-weight: 600; }
.arc-a { display: block; padding-top: 4px; font-family: var(--mono); font-size: 12px; text-align: center; }
.arc-racconto { margin: 12px 0 2px; font-size: 21px; font-style: italic; line-height: 1.3; }
.arc-tempo-nota { margin: 4px 0 0; font-family: var(--cond); font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.arc-tutti-anni { min-height: 44px; margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--ink); font-family: var(--cond); font-size: 16px; font-weight: 500; text-decoration: underline; cursor: pointer; }
.arc-esiti { margin: 0; padding: 0; list-style: none; }
.arc-voce { margin: 0; border-bottom: 1px solid var(--line); }
.arc-voce a { display: block; padding: 14px 0 2px; color: inherit; text-decoration: none; }
.arc-frase { margin: 0 0 6px; font-size: 21px; line-height: 1.34; overflow-wrap: anywhere; }
.arc-frase mark { padding: 0 .1em; background: var(--spot); color: var(--on-spot); font-weight: 600; }
@media (hover: hover) { .arc-voce a:hover .arc-chi { text-decoration: underline; } }
.arc-fonte { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; font-family: var(--cond); font-size: 16px; font-weight: 500; line-height: 1.3; }
.arc-punto { font-family: var(--mono); font-weight: 600; color: var(--red); }
.arc-yt .arc-punto::before, .arc-padova .arc-punto::before { content: "\25B6\FE0E\00A0"; font-size: .8em; }
.arc-data { color: var(--muted); }
.arc-etichette { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; padding: 2px 0 12px; font-family: var(--cond); font-size: 14px; font-weight: 500; color: var(--muted); }
.arc-altri { display: block; width: 100%; min-height: 48px; margin: 12px 0 0; border: 1px solid var(--ink); border-radius: 0; background: none; color: var(--ink); font-family: var(--cond); font-size: 18px; font-weight: 700; cursor: pointer; }
.arc-avviso { margin: 22px 0 0; font-family: var(--cond); font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.arc-tutti { max-width: 880px; margin-top: 28px; border-top: 1px solid var(--ink); }
.arc-tutti summary { min-height: 44px; padding: 10px 0; font-family: var(--cond); font-size: 18px; font-weight: 700; cursor: pointer; }
.arc-anno h2 { margin: 16px 0 4px; font-size: 26px; }
.arc-anno ul { margin: 0; padding: 0; list-style: none; }
.arc-anno li { margin: 0; padding: 7px 0; border-top: 1px dotted var(--line); line-height: 1.3; }
.arc-anno span { display: block; font-family: var(--cond); font-size: 15px; font-weight: 500; color: var(--muted); }
.arc button:focus-visible, .arc a:focus-visible, .arc-tutti summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .arc-pieno { transition: height .22s ease-out; } }
@media (max-width: 760px) {
  .arc-frase { font-size: 20px; }
  .arc-colonna { height: 96px; }
  .arc-a, .arc-conta { font-size: 11px; }
  .arc-campo { gap: 6px; padding-left: 10px; }
  .arc-campo button { padding: 0 10px; font-size: 16px; }
}
@media print { .arc-forma, .arc-domande { display: none; } }
.page-archivio .page-head { margin-bottom: 14px; padding-bottom: 0; background-image: none; }
.arc-forma { scroll-margin-top: 8px; }
.arc-stato:empty { min-height: 0; margin: 0; }
@media (max-width: 760px) {
  .page-archivio .page-head h1 { font-size: 31px; }
  .page-archivio .page-head .deck { margin-bottom: 0; font-size: 18px; line-height: 1.28; }
  .arc-forma label { font-size: 16px; }
  .arc-tempo-tit { font-size: 20px; margin-bottom: 8px; }
  .arc-colonna { height: 72px; }
  .arc-racconto { font-size: 19px; }
}
.arc.reveal-ready { opacity: 1; transform: none; transition: none; }

/* La porta: la testata con il sommario, la prima pagina del giorno, la tavola da toccare, il filo */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead { position: relative; }
.comandi { display: flex; align-items: center; gap: 4px; }
.lente { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; color: var(--ink); text-decoration: none; }
.lente svg, .sg summary svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lente kbd { display: none; padding: 0 6px; border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.sg { margin: 0; padding: 0; border: 0; background: none; }
.sg summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; list-style: none; }
.sg summary::-webkit-details-marker, .sg summary::marker { display: none; content: ""; }
.sg-chiudi, .sg[open] .sg-apri { display: none; }
.sg[open] .sg-chiudi { display: inline; }
.sg[open] summary { position: fixed; top: 8px; right: max(16px, calc((100vw - var(--width)) / 2 + 16px)); z-index: 91; background: var(--spot); color: var(--on-spot); border-color: var(--on-spot); }
.sg-foglio { position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; padding: 60px max(16px, calc((100vw - var(--width)) / 2 + 16px)) 32px; background: var(--paper); color: var(--ink); }
html.sg-aperto { overflow: hidden; }
.masthead:has(.sg[open]) { z-index: 200; }
.sg-cerca label { display: block; margin-bottom: 6px; font-family: var(--cond); font-size: 16px; font-weight: 700; }
.sg-cerca > div { display: flex; border: 2px solid var(--ink); background: var(--field); }
.sg-cerca input { flex: 1; min-width: 0; min-height: 48px; padding: 6px 10px; border: 0; background: transparent; color: var(--ink); font: 400 19px/1.3 var(--font); }
.sg-cerca input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.sg-cerca button { min-width: 72px; padding: 0 12px; border: 0; background: var(--spot); color: var(--on-spot); font-family: var(--cond); font-size: 17px; font-weight: 700; cursor: pointer; }
.sg-indice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 36px; margin-top: 18px; }
.sg-indice[hidden] { display: none; }  /* mentre si cerca nel sommario restano solo i risultati */
.sg-indice section:first-child { grid-column: span 2; }
.sg-indice section:nth-child(2), .sg-indice section:nth-child(3) { grid-row: 1 / span 2; }
.sg-indice section:last-child { grid-column: 1 / span 2; grid-row: 2; }
.sg-indice section:last-child ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.sg-indice h2 { margin: 12px 0 4px; padding-top: 6px; border-top: 3px double var(--ink); font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.sg-indice ol, .sg-indice ul { margin: 0; padding: 0; list-style: none; }
.sg-indice ol { columns: 2; column-gap: 24px; counter-reset: tappa; }
.sg-indice ol li { break-inside: avoid; counter-increment: tappa; }
.sg-indice a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 4px 0; font-family: var(--cond); font-size: 18px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.sg-indice ol a { min-height: 56px; }
.sg-indice ol strong { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.sg-indice ol strong::before { content: counter(tappa) " "; color: var(--red); font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.sg-indice ol span { font-size: 15px; color: var(--muted); }
.sg-indice a.fatta strong::after, .colonna.fatta h3 a::after { content: " \2713"; color: var(--red); font-family: var(--cond); font-weight: 700; }
.sg-esiti ul { margin: 12px 0 0; padding: 0; list-style: none; }
.sg-esiti a { display: block; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--cond); font-size: 16px; line-height: 1.25; color: var(--muted); text-decoration: none; }
.sg-esiti a strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--ink); }
.sg-esiti a:focus, .sg-esiti a:hover { background: var(--paper-2); }
.sg-esiti p { margin: 10px 0 0; font-family: var(--cond); font-size: 16px; color: var(--muted); }
/* «Lo dice il sito»: i paragrafi che rispondono, sotto i risultati, con le parole cercate in evidenza */
.sg-esiti h2 { margin: 22px 0 0; padding-top: 6px; border-top: 3px double var(--ink); font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.sg-esiti .sg-dice { margin-top: 4px; }
.sg-dice a { padding: 10px 0 12px; }
.sg-esiti .sg-dice a strong { display: inline; font-size: 19px; }
.sg-sez { font-weight: 500; }
.sg-sez::before { content: " \00B7  "; }
.sg-frase { display: block; margin-top: 4px; font-family: var(--font); font-size: 18px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.sg-frase mark { padding: 0 .1em; background: var(--spot); color: var(--on-spot); font-weight: 600; }
/* dove arriva il link di un paragrafo: il frammento di testo che il browser evidenzia, nei colori del sito */
::target-text { background: var(--spot); color: var(--on-spot); }
.trovato, .trovato:focus { outline: 3px solid var(--red); outline-offset: 6px; }  /* lo stesso, nella pagina in cui sei: lo segna cerca.js */

.prima { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "testa gesto" "testa oggi" "pano pano" "porte porte" "altre altre"; gap: 0 36px; align-items: start; }
.prima-testa { grid-area: testa; }
.prima h1 { margin: 0 0 12px; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.01; }
.prima .deck { margin: 0 0 12px; font-size: clamp(20px, 2vw, 25px); font-style: italic; line-height: 1.28; }
.prima-gesto { grid-area: gesto; }
.gesto { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 14px; border: 2px solid var(--ink); background: var(--spot); color: var(--on-spot); font-family: var(--cond); font-size: 23px; font-weight: 700; line-height: 1.1; text-decoration: none; }
.gesto:hover { color: var(--on-spot); }
.gesto img { flex: none; width: 34px; height: 34px; }
.gesto::after { content: "\2192"; margin-left: auto; font-size: 26px; }
.gesto:active { transform: translateY(1px); }
.gesto-sotto { min-height: 1.35em; margin: 5px 0 10px; font-family: var(--cond); font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--muted); }
/* il posto del fatto di oggi: il link, e in italiano «Cartolina del giorno» sulla riga della rubrica (porta.js) */
.oggi-posto { grid-area: oggi; position: relative; }
.oggi-cartolina { position: absolute; top: 3px; right: 0; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--cond); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; }
.oggi-cartolina:hover { color: var(--red); border-color: var(--red); }
.oggi { grid-area: oggi; display: block; padding: 8px 0 10px; border-block: 1px solid var(--ink); font-size: 18px; line-height: 1.32; text-decoration: none; }
.oggi .kicker { margin: 0 0 2px; }
.oggi b { font-family: var(--cond); font-weight: 700; }
.oggi i { color: var(--red); font-style: normal; font-weight: 700; }
.prima .panorama { grid-area: pano; margin-block: 14px 8px; min-width: 0; }
.prima .panorama svg { font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; }
.prima .panorama figcaption { max-width: var(--width); margin-top: 4px; font-size: 14px; }
.prima .porte { grid-area: porte; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; margin: 2px 0 0; padding: 0; border: 0; font-weight: 700; }
.prima .porte-altre { grid-area: altre; font-weight: 500; }
.prima .porte a { border-top: 1px solid var(--line); }
/* «Ho un minuto»: la porta delle storie (/in-un-minuto/), con l'anello delle dieci schede. Prende la casella vuota della
   griglia delle porte: la prima pagina non si allunga */
.porte .porta-minuto { gap: 8px; color: var(--red); }
.porte .porta-minuto::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 4.5px, transparent 5px), repeating-conic-gradient(var(--red) 0 30deg, transparent 0 36deg); -webkit-mask: radial-gradient(circle, #000 0 4.5px, transparent 5px 8.5px, #000 9px); mask: radial-gradient(circle, #000 0 4.5px, transparent 5px 8.5px, #000 9px); }
.panorama:not(.viva) .p-mirino { left: 20.6%; }
.panorama:not(.viva) .t-perno { bottom: calc(68% - 12px); }
.p-cima { display: none; }
.page-home .tavola, .page-home .front, .page-home .grid-3, .page-home .section, .page-home .next { content-visibility: auto; contain-intrinsic-size: auto 800px; }

.tavola { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; border-block: 3px double var(--ink); }
.tavola-testa { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 18px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.tavola-testa .kicker { flex-basis: 100%; }
.tavola-testa h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 40px); }
.tavola-testa p { margin: 0; font-family: var(--cond); font-size: 17px; font-weight: 500; line-height: 1.3; }
.colonna { min-width: 0; padding: 16px 18px; border-left: 1px solid var(--line); }
.colonna:nth-of-type(n+5) { border-top: 1px solid var(--line); }
.colonna:nth-of-type(4n+1) { border-left: 0; padding-left: 0; }
.colonna .kicker { font-size: 14px; letter-spacing: .06em; }
.colonna h3 { margin: 0 0 6px; font-size: 26px; }
.colonna h3 a { text-decoration: none; }
.colonna p { margin: 0 0 10px; font-size: 18px; line-height: 1.35; }
.colonna .note { font-size: 15px; }
.mini-cassa { display: flex; align-items: stretch; min-height: 60px; border: 2px solid var(--ink); background: var(--night); color: var(--spot); text-decoration: none; }
.mini-cassa .num { display: flex; align-items: center; flex: 1; padding: 0 12px; font-size: 26px; font-weight: 600; }
.mini-cassa b { display: flex; align-items: center; padding: 0 16px; background: var(--spot); color: var(--on-spot); font-family: var(--cond); font-size: 20px; }
.mini-cassa:hover, .mini-cassa:active { color: var(--spot); background: var(--night); }
.mini-tasto { min-height: 46px; margin-bottom: 6px; padding: 6px 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--cond); font-size: 18px; font-weight: 700; cursor: pointer; }
.mini-esito { font-family: var(--cond); font-size: 17px !important; font-weight: 500; }
.mini-esito:empty { margin: 0; }   /* vuota ma presente: una regione live tolta dall'albero perde il primo annuncio */
.mini-salti { margin: 0; }
.mini-salti a { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line); font-family: var(--cond); font-size: 18px; font-weight: 500; text-underline-offset: 3px; }
.mini-tipi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.mini-arc { display: flex; border: 2px solid var(--ink); background: var(--field); }
.mini-arc input { flex: 1; min-width: 0; min-height: 46px; padding: 6px 10px; border: 0; background: transparent; color: var(--ink); font: italic 400 19px/1.3 var(--font); }
.mini-arc button { padding: 0 12px; border: 0; background: var(--spot); color: var(--on-spot); font-family: var(--cond); font-size: 17px; font-weight: 700; cursor: pointer; }
.mini-sha label { display: block; margin-bottom: 4px; font-family: var(--cond); font-size: 16px; font-weight: 500; line-height: 1.25; }
.mini-sha input { width: 100%; min-height: 46px; padding: 6px 10px; border: 2px solid var(--ink); background: var(--field); color: var(--ink); font: 400 18px/1.3 var(--font); }
.mini-sha output { display: block; min-height: 3.1em; margin-top: 6px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; color: var(--red); }

.filo { margin-top: 64px; background: var(--night); color: var(--night-text); }
.filo + .bottom { margin-top: 56px; }
.filo-dentro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: end; max-width: var(--width); margin-inline: auto; padding: 14px clamp(16px, 3vw, 40px) 16px; }
.filo-dove { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--spot); }
.segnavia { flex: none; width: 34px; height: 15px; background: linear-gradient(#c8102e 0 33.3%, #fff 33.3% 66.6%, #c8102e 66.6%); }
.filo-poi { display: block; color: inherit; text-decoration: none; }
.filo-poi span { display: block; font-size: 18px; font-style: italic; line-height: 1.3; }
.filo-poi strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.1; color: var(--night-text); }
.filo-poi b { color: var(--spot); }
.filo-poi:hover strong, .filo-poi:active strong { color: var(--spot); }
.filo-poi:active { background: transparent; }
/* sul fondo notte il contorno color inchiostro non si vede: giallo */
.filo :focus-visible, .filo-barra :focus-visible, .segnatempo :focus-visible, .caffe-palco :focus-visible { outline-color: var(--spot); }
.filo-tutte { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--cond); font-size: 16px; font-weight: 500; color: var(--night-text); }
.filo-tutte:hover { color: var(--spot); }
/* la barra fissa in fondo non deve coprire il fuoco di chi va avanti col Tab */
html:has(.filo-barra.vista) { scroll-padding-bottom: 96px; }
.filo-barra { position: fixed; inset: auto 0 0; z-index: 70; display: flex; align-items: center; gap: 8px; padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); background: var(--night); color: var(--night-text); border-top: 3px solid var(--spot); transform: translateY(110%); transition: transform .3s ease-out; }
.filo-barra.vista { transform: none; }
.filo-barra a { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.filo-barra a span { display: block; font-size: 15px; font-style: italic; line-height: 1.25; }
.filo-barra a strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.15; }
.filo-barra a strong b { color: var(--spot); }
.filo-barra button { flex: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.caffe-qui { grid-column: 1 / -1; margin-top: 14px; }

@media (min-width: 761px) {
  .masthead { display: block; }
  .comandi { position: absolute; bottom: 50px; right: max(clamp(16px, 3vw, 40px), calc((100vw - var(--width)) / 2 + clamp(16px, 3vw, 40px))); }
  body:not(.page-home) .comandi { top: 40px; bottom: auto; }
  .lente { order: -1; }
  .lente kbd { display: inline-block; }
}
@media (min-width: 1101px) { /* in fila sotto il titolo: se le rubriche vanno a capo non ci finisce sopra */
  .page-home .comandi { position: relative; top: -12px; right: auto; bottom: auto; justify-content: flex-end; align-items: flex-start; height: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .page-home .comandi { position: static; justify-content: flex-end; margin: -8px 0 6px; }
  .page-home .motto { display: none; }
  .prima { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "testa testa" "pano pano" "gesto oggi" "porte oggi" "altre altre"; }
  .prima .porte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prima .porte-altre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tavola { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colonna:nth-of-type(n) { padding-left: 18px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .colonna:nth-of-type(2n+1) { padding-left: 0; border-left: 0; }
  .colonna:nth-of-type(-n+2) { border-top: 0; }
  .sg-indice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-indice section:first-child, .sg-indice section:last-child { grid-column: 1 / -1; grid-row: auto; }
  .sg-indice section:nth-child(2), .sg-indice section:nth-child(3) { grid-row: auto; }
}
@media (max-width: 760px) {
  .masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
  .dateline, .motto { grid-column: 1 / -1; }
  .rubrics { display: none; }
  .title, body:not(.page-home) .title { justify-content: flex-start; gap: 7px; min-height: 50px; padding: 3px 0; font-size: clamp(23px, 6.8vw, 34px); letter-spacing: -.02em; white-space: nowrap; text-align: left; }
  .title img { width: 34px; height: 34px; }
  .sg summary { padding: 0 8px; font-size: 15px; letter-spacing: .02em; }
  body:not(.page-home) .dateline { grid-column: 1 / -1; padding: 2px 0; border-bottom: 1px solid var(--ink); }
  body:not(.page-home) .dateline > span:not(.langs) { display: inline; }
  body:not(.page-home) .dateline .langs { position: static; }
  /* con tre lingue la data cede spazio: i link delle lingue restano tutti nello schermo */
  .dateline > span:not(.langs) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .dateline .langs { flex-shrink: 0; }
  .langs a { min-width: 30px; }
  .lente { display: none; }
  .numero { display: none; }
  .masthead { padding-bottom: 2px; }
  .prima { display: block; margin-top: -8px; }
  .prima h1 { font-size: clamp(33px, 9.6vw, 56px); margin-bottom: 8px; }
  .prima .deck { font-size: 19px; line-height: 1.26; margin-bottom: 0; }
  .prima .panorama { margin-block: 8px 8px; }
  .prima .panorama figcaption { padding-inline: 16px; font-size: 13.5px; line-height: 1.25; }
  .panorama svg { width: 1000px; }
  .panorama .scorri { min-height: 68px; margin-bottom: 4px; padding-inline: 16px; }
  .panorama-tavola { position: relative; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding-left: 22%; }
  .p-cima { display: block; position: absolute; top: 0; left: calc(22% + 206px); width: 1px; height: 1px; scroll-snap-align: start; }
  .panorama-tavola::-webkit-scrollbar { display: none; }
  .panorama-tavola svg { flex: none; }
  .panorama-tavola::before { content: ""; flex: 0 0 22%; }
  .panorama-tavola::after { content: ""; flex: 0 0 78%; }
  .panorama.viva .panorama-tavola::before { flex: 0 0 22%; }
  .panorama.viva .panorama-tavola::after { flex: 0 0 78%; }
  .panorama .p-mirino, .panorama:not(.viva) .p-mirino { left: 22%; }
  .gesto { min-height: 58px; font-size: 22px; }
  .gesto-sotto { margin: 3px 0 4px; font-size: 15px; }
  .prima .porte, .prima .porte-altre { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .prima .porte a { min-height: 45px; line-height: 1.15; }
  .prima .oggi { margin-top: 6px; }
  .tavola { display: block; margin-top: 18px; }
  .tavola-testa { display: block; padding: 12px 0 6px; border-bottom: 0; }
  .colonna, .colonna:nth-of-type(n) { padding: 14px 0 16px; border-left: 0; border-top: 1px solid var(--line); }
  .sg-indice { display: block; }
  .sg-indice ol { columns: auto; }
  .filo { margin-top: 44px; }
  .filo-dentro { grid-template-columns: minmax(0, 1fr); }
  .filo-tutte { justify-self: start; }
}
@media (max-width: 380px) { .sg summary svg { display: none; } }
/* Con JavaScript il panorama si presenta sulla cima, senza calcoli; al primo tocco la presa si scioglie e il dito è libero */
@media (max-width: 760px) and (scripting: enabled) { .panorama:not(.toccata) .panorama-tavola { scroll-snap-type: x mandatory; } }
@media (scripting: none) { .p-mirino { display: none; } }
.prima .panorama:not(.toccata) .p-mirino::after { content: "trascina"; position: absolute; bottom: 8px; left: 8px; padding: 0 7px; background: var(--spot); color: var(--on-spot); font-family: var(--cond); font-size: 15px; font-weight: 700; white-space: nowrap; }
.prima .panorama:not(.toccata) .p-mirino:lang(en)::after { content: "drag"; }
.prima .panorama:not(.toccata) .p-mirino:lang(de)::after { content: "ziehen"; }
@media (hover: hover) { .prima .panorama .p-mirino::after { display: none; } }
.prima .t-perno { position: absolute; }
.prima .t-perno::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 3px var(--spot); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .prima .panorama:not(.toccata) .t-perno::after { animation: p-anello 1.6s ease-out 4 .8s; }
  @keyframes p-anello { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
}
@media (orientation: landscape) and (max-height: 500px) {
  .lente { display: none; }
  .sg summary { min-height: 32px; }
  .prima h1 { font-size: 30px; }
}
/* in orizzontale il Sommario sta sulla riga del titolo, a sinistra delle lingue: non sopra le lingue né sopra le rubriche */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 761px) {
  .comandi, body:not(.page-home) .comandi { position: absolute; top: 2px; right: 100px; }
}
/* sotto i 761 px la home tiene le lingue in alto a destra, sulla riga del titolo: il Sommario si scosta */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 760px) {
  .page-home .comandi { margin-right: 100px; }
}
@media (prefers-reduced-motion: reduce) { .filo-barra { transition: none; } }
@media print { .comandi, .filo, .filo-barra, .tavola, .prima-gesto, .prima .panorama { display: none !important; } .prima { display: block; } }

/* Il glossario vivo: theme/parole.js sottolinea a puntini la prima volta di ogni parola e la spiega dove si legge */
.parola { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; word-spacing: inherit; text-transform: inherit; text-align: inherit; text-indent: 0; line-height: inherit; vertical-align: baseline; -webkit-appearance: none; appearance: none; text-decoration: underline dotted var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none; cursor: pointer; touch-action: manipulation; }
@media (hover: hover) { .parola:hover { color: var(--red); } }
.parola[aria-expanded="true"] { background: var(--paper-2); text-decoration-style: solid; }
span.parola-nota { display: flow-root; box-sizing: border-box; max-width: 100%; margin: 6px 0 12px; padding: 9px 14px 10px; border-left: 3px solid var(--red); background: var(--paper-2); color: var(--ink); font-family: var(--cond); font-size: 17px; font-style: normal; font-weight: 500; line-height: 1.4; letter-spacing: normal; text-align: left; text-indent: 0; text-transform: none; white-space: normal; overflow-wrap: break-word; }
span.parola-nota[hidden] { display: none; }
.parola-nota b { font-weight: 700; }
.parola-nota a, .prose .parola-nota a:visited { color: var(--red); font-weight: 700; white-space: nowrap; }
.limit .parola-nota { padding: 7px 10px; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .parola-nota:not([hidden]) { animation: parola-apre .18s ease-out; }
  @keyframes parola-apre { from { opacity: 0; transform: translateY(-3px); } }
}
/* La pagina del glossario */
.parole { margin: 8px 0 0; }
.parole dt { margin: 30px 0 0; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.008em; scroll-margin-top: 20px; }
.parole dt:first-child { margin-top: 4px; }
.parole dd { margin: 6px 0 0 clamp(0px, 2.5vw, 20px); padding-left: 14px; border-left: 2px solid var(--line); }
.parole dd > a:last-child { display: block; width: fit-content; margin-top: 6px; font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.parole dd > a:last-child::after { content: " \2192"; color: var(--red); }
.parole dt:target, .parole dt:target + dd { background: color-mix(in srgb, var(--spot) 26%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--spot) 26%, transparent); }
/* Qui il primo paragrafo è l'invito in fondo: niente capolettera */
.article > .prose:first-of-type > .parole ~ p.next:first-of-type:not(.formula)::first-letter { float: none; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
@media print { .parola { text-decoration: none; } .parola-nota { border-left-width: 1pt; background: none; } .parole dt { break-after: avoid; } .parole dd { break-inside: avoid; } }

/* Telefoni stretti (sotto i 390 px: iPhone SE, Android piccoli, caratteri ingranditi). Da 390 in su non cambia niente. */
@media (max-width: 389px) {
  /* una parola più larga della riga (tedesco, indirizzi) va a capo invece di uscire dallo schermo */
  body { overflow-wrap: break-word; }
  /* nei titoli una parola lunga si spezza col trattino (Pressemitteilungen, Entwurfsentscheidungen) */
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
  /* il libretto: due colonne che non si allargano per una parola lunga */
  .libretto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* il segnatempo della cronaca: se non sta su una riga va su due, invece di uscire dai due lati */
  .segnatempo { flex-wrap: wrap; gap: 0 10px; padding-inline: 6px; font-size: 12px; }
  .page-storia .su { bottom: 64px; }
  /* la macchina del tempo: «Parti» sale nel cielo della valle, gli anni hanno tutta la riga (24 px l'uno anche a 320) */
  .t-anni { position: relative; }
  .t-anni .t-via { position: absolute; left: 0; bottom: calc(100% + 112px - 30px); min-height: 30px; }
  .t-anni button { font-size: 12px; }
  .t-numeri { gap: 0 6px; }
  .t-numeri dd { font-size: 19px; }
  .t-numeri div { justify-content: flex-end; }
  .t-numeri dt { white-space: normal; }
}
/* da 390 a 479 px le etichette inglesi e tedesche dei numeri della macchina restavano tagliate («sat, ein Espress»): vanno a capo */
@media (min-width: 390px) and (max-width: 479px) {
  .t-numeri div { justify-content: flex-end; }
  .t-numeri dt { white-space: normal; }
}
/* la riga dei numeri del panorama in home sta su una riga sola, coi puntini: sotto i 380 px in tedesco, e sotto i 360 in
   tutte le lingue, l'ultimo numero spariva (a 320 px tagliati 136 mesi su 136 in tedesco, 112 in italiano) */
@media (max-width: 379px) { .panorama.viva .scorri span:first-of-type { font-size: 15px; } }
@media (max-width: 359px) { .panorama.viva .scorri span:first-of-type { font-size: 13.5px; } }
/* sotto i 340 px il titolo della testata arrivava sotto il Sommario */
@media (max-width: 339px) { .title, body:not(.page-home) .title { font-size: 21px; } }
/* sotto i 320 px (360 con i caratteri ingranditi al 125%): testata più piccola, gli anni della macchina su due righe */
@media (max-width: 319px) {
  .title, body:not(.page-home) .title { gap: 4px; font-size: 17px; }
  .title img { width: 26px; height: 26px; }
  .t-anni { flex-wrap: wrap; }
  .t-anni button { flex-basis: 14%; }
  .t-numeri dd { font-size: 17px; }
  .t-numeri dt { font-size: 12px; }
}


/* Easter egg: /dev mode, con la Guru Meditation dell'Amiga in cima */
.guru { background: #000; padding: 6px 8px; cursor: pointer; }
.guru-box { border: 6px solid #f00; padding: 10px 12px; font-family: "Topaz", "Plex Mono", ui-monospace, monospace; font-size: clamp(11px, 2.4vw, 18px); line-height: 1.6; color: #f00; text-align: center; letter-spacing: .02em; animation: guru-lampeggia 1.6s steps(1, end) infinite; }
.guru-box p { margin: 0; }
.guru-ferma .guru-box { animation: none; }
@keyframes guru-lampeggia { 50% { border-color: #000; } }
@media (prefers-reduced-motion: reduce) { .guru-box { animation: none; } }
@media print { .guru, .supercow, .rassegna { display: none; } }
.rassegna { padding: 6px 10px; background: var(--paper, #fff); color: var(--ink, #111); border-bottom: 2px solid var(--ink, #111); font-size: 14px; }
.rassegna-riga { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rassegna-pos { flex: 1 1 12em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rassegna button { font: inherit; padding: 2px 10px; cursor: pointer; background: transparent; color: inherit; border: 1px solid currentColor; }
.rassegna button:disabled { opacity: .4; cursor: default; }
.rassegna button:focus-visible, .rassegna textarea:focus-visible { outline: 2px solid var(--spot, #f7931a); outline-offset: 2px; }
.rassegna textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; font: inherit; background: transparent; color: inherit; border: 1px solid currentColor; }
.supercow { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(92vw, 420px); padding: 14px 44px 14px 18px; background: #000; color: #e8e8e8; border: 2px solid var(--spot, #f7931a); font-family: "Plex Mono", ui-monospace, monospace; font-size: 15px; line-height: 1.45; box-shadow: 0 0 0 4px rgba(0,0,0,.35); }
.supercow p { margin: 0; }
.supercow b { color: var(--spot, #f7931a); }
.supercow-x { all: unset; position: absolute; top: 6px; right: 10px; font-size: 22px; line-height: 1; cursor: pointer; color: #e8e8e8; }
.supercow-x:focus-visible { outline: 2px solid var(--spot, #f7931a); outline-offset: 2px; }

/* Una parola con un suggerimento al passaggio del mouse (title) */
.tip { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.rassegna-ciao { font-weight: 700; margin-right: .6em; }
.rassegna-grazie { margin: 4px 0 0; }
.da-produzione { position: relative; padding: 8px 40px 8px 16px; background: var(--spot, #f7931a); color: #000; font-family: var(--cond); font-size: 15px; text-align: center; }
.da-produzione-x { all: unset; position: absolute; right: 12px; top: 4px; font-size: 22px; cursor: pointer; }
.da-produzione-x:focus-visible { outline: 2px solid #000; }
.saluto { margin: 0; font-family: var(--cond); font-size: 14px; font-weight: 700; color: var(--muted); text-align: right; }

/* giro d'Italia: ogni occasione ha una nota (argomento e riassunto) che si apre al passaggio del mouse o al tocco.
   La nota sta nel testo, nascosta solo alla vista: i lettori di schermo e la ricerca la leggono sempre. */
.tappa { position: relative; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.tappa:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tappa-nota { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: normal; }
.tappa:hover .tappa-nota, .tappa:focus .tappa-nota { z-index: 20; left: 0; top: calc(100% + 6px); width: min(340px, 80vw); height: auto; overflow: visible; clip-path: none; padding: 10px 12px; background: var(--night); color: var(--night-text); font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.4; text-decoration: none; cursor: auto; }
.tappa-nota b { display: block; margin-bottom: 2px; font-family: var(--cond); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; color: var(--spot); }
@media (max-width: 760px) {
  /* sul telefono le righe sono schede: la nota si apre sotto, dentro la scheda */
  .tappa:hover .tappa-nota, .tappa:focus .tappa-nota { position: static; display: block; width: auto; margin-top: 6px; }
}
@media print { .tappa-nota { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; font-size: 12px; } }

/* Gli eventi di community.yml (templates/website/events.html): lo stile che stava in base.css di bitmentor fino al 12/11/2026 */
.events { padding: 0; list-style: none; }
.events li { padding: 10px 0; border-bottom: 1px solid var(--line, currentColor); }

/* Il vecchio sistema (valley/vecchio): il bottone grande della pagina di benvenuto e del passo del wallet */
.old-claim .button, .button-big { display: block; width: 100%; font-size: 1.25rem; padding: 1rem 1.25rem; text-align: center; }
/* Logo di bitmentor nelle pagine per chi vuole rifare la Valley (software, tua-valley); in scuro il negativo, senza motto */
.page-head .bm-logo { display: block; margin: 0 0 1rem; }
.page-head .bm-logo img { display: block; width: min(340px, 100%); height: auto; }
/* Logo storico nella storia: fondo chiaro in modalità scura, perché la scritta è nera */
.logo-storico img { max-width: 420px; }
@media screen and (prefers-color-scheme: dark) {
  .logo-storico img { background: #f7f1e3; padding: .6rem .9rem; border-radius: 8px; box-sizing: border-box; }
}
/* Marchi delle società chiuse in cima alle loro pagine d'arrivo (bmanity, inbitcoin) */
.page-head .marchio { display: block; max-width: 100%; height: auto; margin: 0 0 1rem; }

/* Testata: lo stemma col lettering del logo (templates/partials/testata-2.html), disegno di Fable dal lavoro umano */
.testata-2 .title picture { display: flex; flex: none; min-width: 0; }
.testata-2 .title .stemma { width: auto; height: 1.16em; }
.page-home .testata-2 .title { padding: clamp(12px, 1.8vw, 20px) 0 clamp(8px, 1.2vw, 14px); }
@media (min-width: 761px) {
  body:not(.page-home) .testata-2 .title { justify-content: center; padding: 4px 0; }
  body:not(.page-home) .testata-2 .title .stemma { height: 40px; }
}
@media (max-width: 760px) {
  .testata-2 .title picture { flex: 0 1 auto; }
  .testata-2 .title .stemma, body:not(.page-home) .testata-2 .title .stemma { width: 100%; max-width: 220px; height: auto; }
  .page-home .testata-2 .title { padding: 3px 0; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .testata-2 .title, body:not(.page-home) .testata-2 .title { padding: 4px 0; }
  .testata-2 .title .stemma, body:not(.page-home) .testata-2 .title .stemma { width: auto; height: 34px; }
}
@media print {
  .testata-2 .title, body:not(.page-home) .testata-2 .title { justify-content: flex-start; padding: 0; }
  .testata-2 .title .stemma, body:not(.page-home) .testata-2 .title .stemma { width: auto; height: 22pt; }
}

/* Il logo nel piede: marchio e lettering del logo, al posto del nome in Spectral */
.bottom-name { display: flex; align-items: center; gap: 10px; }
.bottom-name .marchio { width: 34px; height: 34px; flex: none; }
.bottom-name picture { display: flex; }
.bottom-name .scritta { width: auto; height: 28px; position: relative; top: 3px; }
/* Il logo con «Trentino-Alto Adige», per le pagine per le istituzioni */
.page-head .logo-istituzionale { display: block; margin: 0 0 1rem; }
.page-head .logo-istituzionale img { display: block; width: min(260px, 70%); height: auto; }

/* Spectral dove si legge (Marco, 11/11/2026): il motto nel piede in corsivo come nella testata, le note a margine e le
   didascalie. L'etichetta delle note resta in Plex. Menu, occhielli, pulsanti, tabelle e data restano in Plex. */
.bottom-id p:not(.bottom-name) { font-family: var(--font); font-style: italic; font-weight: 400; font-size: 18px; }
.limit { font-family: var(--font); font-size: 16.5px; line-height: 1.4; }
.limit b { font-family: var(--cond); }
figcaption { font-family: var(--font); font-style: italic; font-weight: 400; font-size: 15.5px; }
@media (max-width: 760px) { figcaption { font-size: 15px; } }
/* Un racconto dentro una pagina (tulipani): il testo in corsivo, i titoletti dritti */
.racconto p, .racconto blockquote { font-style: italic; }
.linea-tempo .lt-paper { fill: var(--paper); }
/* Il disegno fermo di una transazione (pages/it/explorer.md): la moneta che entra, la fascia che si divide, la fettina
   della commissione. I colori sono quelli del flusso di inexp (theme/inexp.css): inchiostro per quello che entra, oro
   per quello che esce, rosso per la commissione. Sono qui per classe, così il disegno segue il tema scuro. */
.flusso-fermo { max-width: 600px; margin: 22px 0 26px; }
.flusso-fermo svg { display: block; width: 100%; height: auto; font-family: var(--cond); }
.flusso-fermo .ff-ink { fill: var(--ink); }
.flusso-fermo .ff-bordo, .flusso-fermo .ff-punta { stroke: var(--ink); }
.flusso-fermo .ff-esce { stroke: var(--spot); }
.flusso-fermo .ff-oro, .flusso-fermo .ff-punta { fill: var(--spot); }
.flusso-fermo .ff-spesa { stroke: var(--red); }
.flusso-fermo .ff-punta-spesa { fill: var(--red); }
.flusso-fermo .ff-moneta { fill: var(--field); stroke: var(--ink); }
.flusso-fermo .ff-num { fill: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.flusso-fermo .ff-sat, .flusso-fermo .ff-detto { fill: var(--muted); }

/* La prima pagina, dal 12 novembre 2026: sotto la testata il titolo e la montagna, e subito sotto quattro strilli, uno per
   chi arriva: il software per le comunità, il materiale da esplorare, dove si paga, la cassa per i negozi. L'ultimo è
   giallo come «Come bitcoin» nel menu: il giallo è la strada dei negozi. Senza JavaScript sono titoli e link.
   I tasti stanno alla stessa altezza perché ogni strillo prende le righe dalla griglia (subgrid).
   Le regole della griglia valgono solo dove ci sono gli strilli (:has): le home inglese e tedesca restano com'erano
   finché non si rifanno sull'italiano. */
.prima:has(.strilli) { grid-template-areas: "testa oggi" "pano pano" "strilli strilli"; }
.prima:has(.strilli) h1 { font-size: clamp(38px, 4.6vw, 62px); }
.prima:has(.strilli) .oggi-posto { align-self: end; margin-bottom: 12px; }
.strilli { grid-area: strilli; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; margin-top: 12px; border-top: 4px solid var(--ink); }
.strillo { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; min-width: 0; padding: 12px 18px 14px; border-left: 1px solid var(--line); }
.strillo:first-child { padding-left: 0; border-left: 0; }
.strillo .kicker { margin: 0 0 6px; }
.strillo .kicker b { margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; vertical-align: 1px; }
.strillo h2 { margin: 0 0 8px; font-size: clamp(24px, 2.1vw, 27px); line-height: 1.08; }
.strillo h2 a { text-decoration: none; }
.strillo p { margin: 0 0 12px; font-size: 18px; line-height: 1.35; }
.strillo .strillo-vai { margin: 0 0 6px; }
.strillo-vai a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 6px 12px; border: 2px solid var(--ink); font-family: var(--cond); font-size: 19px; font-weight: 700; line-height: 1.15; text-decoration: none; }
.strillo-vai a::after { content: "\2192"; flex: none; font-size: 22px; color: var(--red); }
.strillo .strillo-poi { display: flex; flex-wrap: wrap; align-content: start; gap: 0 16px; margin: 0; font-family: var(--cond); font-size: 17px; font-weight: 500; line-height: 1.2; }
.strillo-poi a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.strillo-negozi { padding-right: 18px; border-left: 0; background: var(--spot); color: var(--on-spot); }
.strillo-negozi .kicker, .strillo-negozi a, .strillo-negozi a:hover, .strillo-negozi a:visited { color: var(--on-spot); }
.strillo-negozi .strillo-vai a { border-color: var(--on-spot); background: var(--on-spot); color: var(--spot); }
.strillo-negozi .strillo-vai a:hover, .strillo-negozi .strillo-vai a:visited { color: var(--spot); }
.strillo-negozi .strillo-vai a::after { color: var(--spot); }
.strillo-negozi a:focus-visible { outline-color: var(--on-spot); }
@media (hover: hover) { .strillo:not(.strillo-negozi) .strillo-vai a:hover { background: var(--ink); color: var(--paper); } .strillo-negozi h2 a:hover, .strillo-negozi .strillo-poi a:hover { text-decoration-thickness: 2px; } }
/* il caffè apre la tavola delle tappe: a destra del titolo, e chi torna ci trova la tappa dove riprendere (porta.js) */
.tavola-testa .prima-gesto { flex: 0 1 340px; margin-left: auto; }
@media (min-width: 1101px) {
  .tavola-testa:has(.prima-gesto) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: end; gap: 0 36px; }
  .tavola-testa:has(.prima-gesto) > :is(.kicker, h2, p) { grid-column: 1; }
  .tavola-testa:has(.prima-gesto) h2 { margin-bottom: 2px; }
  .tavola-testa .prima-gesto { grid-column: 2; grid-row: 1 / span 3; }
}
.tavola-testa .gesto-sotto { margin-bottom: 0; }
.porte-casa { margin: 22px 0 0; border-bottom: 0; }
@media (min-width: 761px) and (max-width: 1100px) {
  .prima:has(.strilli) { grid-template-areas: "testa testa" "pano pano" "strilli strilli" "oggi oggi"; }
  .prima:has(.strilli) .oggi-posto { margin: 14px 0 0; }
  .strilli { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strillo:nth-child(odd) { padding-left: 0; border-left: 0; }
  .strillo:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strillo-negozi { padding-left: 18px; }
  .tavola-testa .prima-gesto { flex-basis: 100%; max-width: 420px; margin: 6px 0 0; }
}
@media (max-width: 760px) {
  .strilli { display: block; margin-top: 10px; }
  .strillo, .strillo:first-child { display: block; padding: 12px 0 10px; border-left: 0; border-top: 1px solid var(--line); }
  .strillo:first-child { border-top: 0; }
  .strillo h2 { font-size: 26px; }
  .strillo p { margin-bottom: 10px; }
  .strillo-negozi { margin-top: 4px; padding: 14px 14px 10px; border-top: 0; }
  .prima:has(.strilli) .oggi-posto { margin: 14px 0 0; }
  .prima:has(.strilli) h1 { font-size: clamp(33px, 9.6vw, 56px); }
  .tavola-testa .prima-gesto { margin: 10px 0 0; }
  .porte-casa { margin-top: 8px; }
}
@media print { .strillo-vai, .strillo-poi { display: none; } .strilli { display: block; } .strillo { display: block; padding-inline: 0; border-left: 0; background: none; color: inherit; } }
/* per i negozi: chi ha già il negozio entra dalla testa della pagina, senza cercare il tasto dopo le tre domande */
.banco-entra { margin: 6px 0 0; font-family: var(--cond); font-size: 18px; font-weight: 700; }
.banco-entra a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.banco-entra a::after { content: "\2192"; margin-left: 6px; color: var(--red); }
@media print { .banco-entra { display: none; } }
/* piede: «avvertenze» restava da sola su una riga, con il punto sotto */
.bottom .avvertenza a { display: inline; padding: 0; }

/* La licenza dei contenuti: le tre icone CC BY-SA nel colophon di ogni pagina */
.colophon .licenza { display: inline-flex; gap: 3px; vertical-align: -6px; margin-right: 6px; text-decoration: none; }
.colophon .licenza img { display: block; width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .colophon .licenza img { filter: invert(1); } }

/* Il gioco delle freccette in home (porta.js), al posto dell'impronta una volta su tre */
.mini-freccette .mini-tit { margin: 0 0 6px; font-family: var(--cond); font-size: 16px; font-weight: 500; line-height: 1.25; }
.mini-freccette .mini-tira { min-height: 46px; padding: 6px 16px; border: 2px solid var(--ink); background: var(--spot); color: #17163a; font: 700 17px/1.2 var(--cond); cursor: pointer; }
.mini-freccette .mini-tira:disabled { opacity: .6; cursor: progress; }
.mini-freccette a { display: inline-block; margin-top: 2px; font-size: 14px; }
.licenza-grande a { display: inline-flex; gap: 6px; text-decoration: none; }
.licenza-grande img { display: block; width: 40px; height: 40px; }
@media (prefers-color-scheme: dark) { .licenza-grande img { filter: invert(1); } }
.nota-fonte { margin-top: 2em; font-size: 15px; color: var(--muted); font-style: italic; }

/* Il menu a tormentone con il sottotitolo (variante 2 di Fable, scelta da Marco il 12/11): da telefono resta visibile, tre per riga */
.rubrics a { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; }
.rubrics .r-s { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.rubrics .shop-link { padding: 4px 10px; }
.rubrics .shop-link .r-s { color: var(--on-spot); }
@media (max-width: 760px) {
  .rubrics { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 6px; padding: 2px 0; border-top: 1px solid var(--ink); white-space: nowrap; font-size: clamp(11.5px, 3.3vw, 13.5px); letter-spacing: 0; }
  .rubrics a { align-items: flex-start; justify-content: center; min-height: 44px; padding: 0; }
  .rubrics .r-s { margin-top: 1px; font-size: clamp(10.5px, 3vw, 12px); letter-spacing: 0; }
  .rubrics .shop-link { padding: 0 6px; background: var(--spot); }
}
@media (max-width: 359px) { .rubrics .r-b { display: none; } .rubrics { font-size: 12.5px; } }

/* I giochi su una pagina sola (templates/website/_gioco.html): niente testata, si incorporano in altri siti */
body.gioco { margin: 0; background: var(--paper); color: var(--ink); }
.gioco-pagina { max-width: 760px; margin: 0 auto; padding: 16px; }
.gioco-titolo { margin: 0 0 4px; font-size: clamp(26px, 6vw, 38px); line-height: 1.1; }
.gioco-deck { margin: 0 0 14px; font-style: italic; color: var(--muted); }
.gioco-piede { margin-top: 16px; font-family: var(--cond); font-size: 14px; color: var(--muted); }
.giochi { padding-left: 1.1em; }
.giochi li { margin-bottom: 14px; }
.giochi code { display: block; margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
/* colophon: i link della licenza restano nella riga (il piede mette i link uno per riga) */
.bottom .colophon a { display: inline; padding: 0; }
.bottom .colophon a.licenza { display: inline-flex; }

/* Ritratti disegnati accanto ai nomi (contatti) */
.prose p > .ritratto:first-child { float: left; width: 84px; height: 84px; margin: 4px 14px 6px 0; border-radius: 50%; object-fit: cover; }
.prose p:has(> .ritratto) { overflow: hidden; }

/* Le vignette dei riquadri (tools/vignette.py, disegni di ChatGPT del 12/11/2026, inchiostro blu notte e giallo, fondo
   trasparente). In scuro il tratto blu sparirebbe sul blu: stanno su una tessera crema, come una stampa incollata. */
.vignetta { display: block; box-sizing: border-box; width: 100%; max-width: 120px; height: auto; }
@media screen and (prefers-color-scheme: dark) { .vignetta { padding: 4px; background: #f1ead9; } }
.necro .vignetta { max-width: 150px; margin: 0 auto 10px; }
