/* ═══════════════════════════════════════════════════════════
   ROMANOVSKIS.CH — v3 · pagine interne come pareti
   Opere, Segnale, Info e articoli usano lo stesso binario orizzontale
   della home (home.css + v3.css + horizontal.js). Qui i pannelli specifici.
═══════════════════════════════════════════════════════════ */

/* Filtri (ex pages.css) */
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filters button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters .count { margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* Pannelli di testo: larghezza fissa, colonna leggibile */
.p-page { width: fit-content; max-width: 46vw; margin-left: 0; margin-right: 10vw; padding-left: 10px; padding-right: 10px; }
.p-page .display { margin: 18px 0 22px; }
.p-page .lead { max-width: 30em; }
.p-page .meta { display: flex; gap: 20px; margin-bottom: 22px; }
.p-page .filters { padding: 28px 0 0; }

.p-group { width: fit-content; max-width: 26vw; margin-left: 8vw; margin-right: 4vw; padding-left: 10px; padding-right: 10px; }
.p-group .mono { margin-top: 6px; }
.p-group .display { margin: 6px 0 12px; }

.p-block { width: fit-content; max-width: 36vw; margin-left: 11vw; margin-right: 8vw; padding-left: 10px; padding-right: 10px; }
.p-block h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.02; margin: 12px 0 18px; }
.p-block p { color: var(--ink-2); max-width: 34em; margin-bottom: 12px; font-size: 15px; }
.p-block p:last-child { margin-bottom: 0; }
.p-block .exhibit { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.p-block .exhibit li { font-family: var(--display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }
.p-block .tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.p-block .tools-row span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.p-block .contact-big { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 2.2rem); letter-spacing: -0.03em; border-bottom: 1px solid var(--ink); padding-bottom: 4px; display: inline-block; }
.p-block .contact-big:hover { color: var(--red); border-color: var(--red); }
.p-block .contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; align-items: flex-start; }

/* Segnale: ogni trasmissione è un pannello */
.p-post { width: fit-content; max-width: 40vw; margin-left: 11vw; margin-right: 8vw; padding-left: 10px; padding-right: 10px; color: inherit; }
.p-post .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); }
.p-post .cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin: 14px 0 18px; display: block; }
.p-post h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -0.035em; line-height: 1; max-width: 14em; transition: color 0.3s; }
.p-post:hover h2 { color: var(--red); }
.p-post p { margin-top: 18px; color: var(--ink-2); max-width: 34em; }
.p-post .go { font-family: var(--display); font-size: 34px; line-height: 1; margin-top: 28px; display: inline-block; transition: transform 0.4s var(--ease); }
.p-post:hover .go { transform: translateX(8px); }

.p-news { width: fit-content; max-width: 38vw; margin-left: 11vw; margin-right: 8vw; padding-left: 10px; padding-right: 10px; }
.p-news form { display: flex; border-bottom: 1px solid var(--ink); max-width: 420px; margin-top: 24px; }
.p-news input { flex: 1; background: none; border: 0; padding: 14px 0; font: inherit; color: var(--ink); outline: none; }
.p-news input::placeholder { color: var(--ink-3); }
.p-news button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 0 0 20px; }
.p-news button:hover { color: var(--red); }
.p-news .ok { font-family: var(--mono); font-size: 12px; color: var(--red); margin-top: 14px; }

/* Articolo: il testo scorre in colonne successive */
.p-text { width: fit-content; max-width: 36vw; margin-left: 11vw; margin-right: 8vw; padding-left: 10px; padding-right: 10px; }
.p-text h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
.p-text .cont { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.p-text p { font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); max-width: 36em; margin-bottom: 1.1em; }
.p-text p:last-child { margin-bottom: 0; }
.p-text p.first { font-size: 1.2rem; color: var(--ink); }
.p-text a { border-bottom: 1px solid var(--red); }
.p-quote { width: fit-content; max-width: 50vw; margin-left: 11vw; margin-right: 8vw; padding-left: 10px; padding-right: 10px; }
.p-quote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 16em; }
.p-quote em { font-style: normal; color: var(--red); }
.p-links { width: fit-content; max-width: 30vw; margin-left: 11vw; margin-right: 8vw; padding-left: 10px; padding-right: 10px; gap: 18px; }

/* Opere in parete: le figure prendono le regole della home */
.h-track .fig[data-cat] img { aspect-ratio: auto; object-fit: contain; }
.h-track .fig[hidden], .h-track .works-group[hidden] { display: none; }

/* Sfondo carta sui pannelli di testo, così il percorso passa dietro */
.p-page, .p-group, .p-block, .p-post, .p-news, .p-text, .p-quote, .p-links { position: relative; z-index: 1; background: var(--paper); }

@media (max-width: 899px) {
  .p-page, .p-group, .p-block, .p-post, .p-news, .p-text, .p-quote, .p-links { width: calc(100vw - 2 * var(--gutter)); margin-left: 10vw; padding-right: 0; }
  .p-page { margin-left: 0; }
  .p-text p { font-size: 15px; }
}

/* Chiusura: un rimando piccolo alla pagina successiva */
.p-close { flex-direction: column; align-items: flex-start; justify-content: flex-start; width: fit-content; margin-left: 12vw; margin-right: 12vw; padding: calc(var(--nav-h) + 9vh) 10px 0; position: relative; z-index: 1; background: var(--paper); }
.p-close .eyebrow { margin-bottom: 18px; }
.p-close .display { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 12px; transition: color 0.3s; }
.p-close .display .arrow { transition: transform 0.35s var(--ease); }
.p-close a:hover .display { color: var(--red); }
.p-close a:hover .arrow { transform: translateX(6px); }
.p-close .desc { margin-top: 12px; color: var(--ink-2); max-width: 28em; font-size: 15px; }
.close-meta { position: absolute; left: 10px; bottom: 40px; display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.close-meta a:hover { color: var(--red); }
@media (max-width: 899px) {
  .p-close { margin-left: 10vw; margin-right: 6vw; }
  .p-close .display { white-space: normal; }
  .close-meta { position: static; flex-wrap: wrap; white-space: normal; margin-top: 40px; }
}
