/* ─────────────────────────────────────────────
   Methood Recap: stili propri del sito, caricati dopo design-system.css.
   Il Recap è un indice di voci con link: titoli da scorrere, link ben visibili a destra.
   ───────────────────────────────────────────── */

/* ───────── menu: sezioni dell'edizione e archivio ───────── */
.nav .nav-sec {
  position: relative;
  display: flex; align-items: center; gap: 11px; width: 100%;
  min-height: 40px; padding: 0 10px;
  border: 0; border-radius: var(--r-inner); background: transparent; cursor: pointer; text-align: left;
  color: var(--ink-2); font-weight: 500; font-size: 14.5px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav .nav-sec .ico { width: 19px; height: 19px; opacity: 0.85; }
.nav .nav-sec:hover { background: var(--surface-2); color: var(--ink); }
.nav .nav-sec[aria-current="true"] { color: var(--ink); font-weight: 600; background: var(--surface-2); }
.nav .nav-sec[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-fill); }
.nav .nav-sec b { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.nav .new { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.nav a[aria-current="page"] .new { color: inherit; opacity: 0.8; }

/* ───────── testa dell'edizione ───────── */
.past-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-size: 14.5px; }
.past-note > .ico { width: 18px; height: 18px; color: var(--accent); }
.past-note .btn { margin-left: auto; }

.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: -24px; }
.hero-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-title {
  font-family: var(--font-display); font-stretch: 106%; font-weight: 780;
  font-size: clamp(2.4rem, 1.2rem + 3vw, 4rem); line-height: 0.98; letter-spacing: -0.022em;
}
.hero-dek { font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.32rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero-note { display: flex; align-items: flex-start; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 60ch; }
.hero-note .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }

.hero-index { display: flex; flex-direction: column; border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); overflow: hidden; }
.hero-index header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 8px; }
.hero-index header h2 { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hero-index header .mark { height: 22px; opacity: 0.9; }
.hero-index button {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 16px 22px 18px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink);
  text-align: left; cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.hero-index header + button { border-top: 0; }
.hero-index .n { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 2.1rem; line-height: 0.85; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.hero-index .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-family: var(--font-display); font-stretch: 104%; font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.hero-index .t small { font-family: var(--font-text); font-weight: 500; font-size: 13px; color: var(--ink-3); }
.hero-index button > .ico { width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.3s var(--ease), color 0.2s var(--ease); }
.hero-index button:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.hero-index button:hover > .ico { transform: translateX(3px); color: var(--ink); }
.hero-index button[aria-current="true"] .n { color: var(--accent-fill); -webkit-text-stroke-color: var(--accent-fill); }

/* ───────── sezioni ───────── */
.rsec { display: flex; flex-direction: column; }
.group-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 6px 20px; padding-bottom: 18px; border-bottom: 3px solid var(--ink); }
.group-n { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(3.4rem, 2.6rem + 2.4vw, 5rem); line-height: 0.78; color: transparent; -webkit-text-stroke: 1.5px var(--ink); letter-spacing: -0.04em; }
.group-head h2 { font-family: var(--font-display); font-stretch: 106%; font-weight: 750; font-size: clamp(1.7rem, 1.25rem + 1.3vw, 2.5rem); line-height: 1; letter-spacing: -0.015em; }
.group-head p { grid-column: 2; color: var(--ink-2); font-size: 15px; }
.group-head .count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; margin-left: 4px; }

.items { margin: 0; padding: 0; list-style: none; }

/* una voce: numero, titolo e link. Il titolo copre tutta la riga (apre il primo link),
   i link in più restano cliccabili sopra. */
.item {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 8px 24px;
  padding: 20px 0; border-top: 1px solid var(--line-2);
}
.items > .item:first-child { border-top: 0; }
.item-n { align-self: start; padding-top: 3px; font-family: var(--font-display); font-stretch: 108%; font-weight: 720; font-size: 1.05rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.item-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.item-meta .date { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.item-meta .date .ico { width: 14px; height: 14px; }
.item-title { font-family: var(--font-display); font-stretch: 104%; font-weight: 700; font-size: clamp(1.18rem, 1.05rem + 0.35vw, 1.4rem); line-height: 1.15; letter-spacing: -0.008em; max-width: 44ch; text-wrap: pretty; }
.item-title a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
.item-title a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.item-title a:focus-visible { outline: none; }
.item:has(.stretch:focus-visible) { outline: 2px solid var(--accent-fill); outline-offset: 4px; border-radius: 14px; }
.item:hover .item-title a { color: var(--accent); }
.item.featured .item-title { font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.95rem); line-height: 1.06; letter-spacing: -0.014em; }
.item.featured .item-n { color: var(--accent); }

/* link: un'etichetta per destinazione, con parti numerate quando i messaggi sono più d'uno */
.item-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; pointer-events: none; }
.item-links a { pointer-events: auto; }
.go, .go-group {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.go { padding: 0 12px 0 13px; }
.go .ico { width: 16px; height: 16px; }
.go .ext, .go-group .ext { width: 13px; height: 13px; opacity: 0.6; }
a.go:hover { border-color: var(--ink-3); }
.item:hover span.go { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.go-group { padding: 0 10px 0 13px; gap: 6px; }
.go-group > .ico:first-child { width: 16px; height: 16px; }
.go-group .lbl { margin-right: 4px; }
.go-n {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease-press);
}
.go-n:hover { background: var(--cta); color: var(--on-cta); }
.go-n:active { transform: scale(0.94); }
.item:hover .go-group { border-color: var(--ink-3); }

/* format: due colonne di voci con icona */
.rsec.formats .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.rsec.formats .item { grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 12px 18px; }
.rsec.formats .items > .item:nth-child(2) { border-top: 0; }
.rsec.formats .item-links { grid-column: 2; justify-content: flex-start; }
.rsec.formats .item-meta { order: 2; }
.rsec.formats .item-ico { grid-row: span 2; }
.item-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-inner); background: var(--accent-soft); color: var(--accent); }
.item-ico .ico { width: 23px; height: 23px; }

/* ───────── archivio ───────── */
.archive { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.arch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.arch .stretch { font-family: var(--font-display); font-stretch: 106%; font-weight: 740; font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.9rem); line-height: 1.05; letter-spacing: -0.012em; color: var(--ink); text-decoration: none; transition: color 0.2s var(--ease); }
.arch .stretch::after { content: ""; position: absolute; inset: 0; }
.arch .stretch:focus-visible { outline: none; }
.arch:has(.stretch:focus-visible) { outline: 2px solid var(--accent-fill); outline-offset: 4px; border-radius: 14px; }
.arch:hover .stretch { color: var(--accent); }
.arch-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--ink-3); }
.arch-preview { grid-column: 1; margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--ink-2); }
.arch-preview li { position: relative; padding-left: 16px; }
.arch-preview li::before { content: ""; position: absolute; left: 1px; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-fill); }
.arch-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.arch-go .ico { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.arch:hover .arch-go { background: var(--ink); color: var(--paper); }
.arch:hover .arch-go .ico { transform: translateX(2px); }

/* ───────── responsive (contenitore) ───────── */
@container view (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); margin-top: -16px; }
}
@container view (max-width: 860px) {
  .rsec.formats .items { grid-template-columns: minmax(0, 1fr); }
  .rsec.formats .items > .item:nth-child(2) { border-top: 1px solid var(--line-2); }
}
@container view (max-width: 760px) {
  .view { gap: 44px; }
  .group-head { grid-template-columns: minmax(0, 1fr); }
  .group-head p { grid-column: 1; }
  .group-n { font-size: 3rem; }
  .item { grid-template-columns: 44px minmax(0, 1fr) minmax(0, auto); gap: 8px 18px; }
}
@container view (max-width: 600px) {
  .item { grid-template-columns: 36px minmax(0, 1fr); gap: 12px 12px; padding: 18px 0; }
  .item-links { grid-column: 2; justify-content: flex-start; }
  .item-n { grid-row: span 2; }
  .rsec.formats .item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; }
  .item-ico { width: 44px; height: 44px; }
}
@container view (max-width: 560px) {
  .view { gap: 36px; }
  .hero-title { font-size: 2.3rem; line-height: 1.02; }
  .hero-dek { font-size: 1.08rem; }
  .edition-line .rest { margin-left: 0; flex-basis: 100%; }
  .hero-index button { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 14px 18px 16px; }
  .hero-index header { padding: 16px 18px 6px; }
  .hero-index .n { font-size: 1.8rem; }
  .past-note .btn { margin-left: 0; }
  .item-links { gap: 6px; }
  .go, .go-group { height: 34px; font-size: 13px; }
  .go { padding: 0 10px 0 11px; gap: 6px; }
  .go-group { padding: 0 8px 0 11px; }
}

@media print {
  .item-links, .hero-index, .past-note { display: none !important; }
}
