:root {
  --paper: #f3ead6; --paper-2: #e9dcbf; --ink: #2a1d12; --muted: #6d5a40; --red: #b3261e; --line: #cdb88e;
  --aurora: #c9822b; --faro: #d4a72c; --mare: #2f6f8f; --fonoteca: #5b7f4a; --teatro: #7a3b5a; --vanvera: #c2452d;
  --ballabili: #b06a2a; --notturno: #34406b; --numeri: #555; --parrocchia: #8a6d3b;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); overflow-x: hidden; }
body { font: 18px/1.5 "Cormorant Garamond", Georgia, serif;
  background: repeating-linear-gradient(0deg, rgba(120,90,40,.035) 0 1px, transparent 1px 3px), var(--paper); }
a { color: var(--red); }
.masthead { text-align: center; padding: 18px 16px 12px; border-bottom: 4px double var(--ink); }
.mast-top { display: flex; justify-content: space-between; font: 600 12px "Oswald", sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); max-width: 1100px; margin: 0 auto; }
.masthead h1 { font-family: "Limelight", serif; font-weight: 400; color: var(--red); font-size: clamp(44px, 12vw, 92px); margin: 4px 0 0; line-height: 1; letter-spacing: .02em; }
.sub { margin: 6px 0 0; font-style: italic; color: var(--muted); }
main { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; }
section { margin-top: 28px; }
h2 { font: 600 15px "Oswald", sans-serif; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 8px; }
.hint { color: var(--muted); font-style: italic; margin: 0 0 10px; font-size: 16px; }
.clock { color: var(--red); }

/* in onda adesso */
.now-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 8px; }
.now-list li { background: #fffaf0; border: 1px solid var(--line); border-left: 6px solid var(--c, var(--ink)); padding: 8px 10px; border-radius: 3px; }
.now-list b { font: 600 13px "Oswald", sans-serif; letter-spacing: .06em; text-transform: uppercase; display: block; }
.now-list span { font-style: italic; }
.now-list a { float: right; font: 13px "Oswald", sans-serif; text-decoration: none; }

/* timeline */
.timeline-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fffaf0; -webkit-overflow-scrolling: touch; }
.timeline { position: relative; display: grid; grid-template-columns: 130px repeat(24, 64px); min-width: calc(130px + 24 * 64px); }
.tl-h { position: sticky; top: 0; font: 12px "Oswald", sans-serif; color: var(--muted); padding: 4px 4px; border-left: 1px solid var(--paper-2); background: #fffaf0; z-index: 1; }
.tl-name { position: sticky; left: 0; z-index: 2; background: #fffaf0; font: 600 12px "Oswald", sans-serif; letter-spacing: .04em; padding: 6px 8px; border-top: 1px solid var(--paper-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.tl-name small { font: 11px "Oswald", sans-serif; color: var(--muted); }
.tl-row { position: relative; grid-column: 2 / span 24; border-top: 1px solid var(--paper-2); height: 54px; }
.tl-block { position: absolute; top: 5px; bottom: 5px; border-radius: 3px; padding: 3px 6px; overflow: hidden; color: #fff; font: 12px/1.2 "Oswald", sans-serif; letter-spacing: .02em; background: var(--c); opacity: .9; }
.tl-block.soft { opacity: .45; color: var(--ink); background: color-mix(in srgb, var(--c) 40%, #fff); }
.tl-block.event { opacity: 1; box-shadow: 0 0 0 2px #fffaf0; z-index: 1; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.tl-now::before { content: "adesso"; position: absolute; top: 2px; left: 4px; font: 600 10px "Oswald", sans-serif; color: var(--red); background: #fffaf0; padding: 0 2px; }
.weekly { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; font: 14px "Oswald", sans-serif; }
.weekly span { border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; background: #fffaf0; }
.weekly span.today { background: var(--red); color: #fff; border-color: var(--red); }

/* station cards */
.cards { columns: 2 330px; column-gap: 18px; }
.card { break-inside: avoid; margin: 0 0 18px; background: #fffaf0; border: 1px solid var(--line); border-top: 6px solid var(--c); padding: 12px 14px; }
.card h3 { margin: 0; font-family: "Limelight", serif; font-weight: 400; font-size: 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card h3 small { font: 600 14px "Oswald", sans-serif; color: var(--c); white-space: nowrap; }
.card .voice { margin: 2px 0 8px; font-style: italic; color: var(--muted); }
.card p { margin: 6px 0; }
.card ul { margin: 6px 0; padding-left: 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.stats span { font: 13px "Oswald", sans-serif; background: var(--paper-2); padding: 2px 8px; border-radius: 3px; }
.stats b { color: var(--red); }
.listen { display: inline-block; margin-top: 6px; font: 600 14px "Oswald", sans-serif; letter-spacing: .06em; text-decoration: none; color: #fff; background: var(--c); padding: 6px 12px; border-radius: 3px; }
.mystery { background: var(--ink); color: var(--paper); padding: 16px 18px; }
.mystery h2 { border-color: var(--paper); }
.tips ul { padding-left: 20px; }
footer { text-align: center; color: var(--muted); font-style: italic; padding: 20px 16px 40px; border-top: 4px double var(--ink); }
@media (max-width: 600px) {
  body { font-size: 17px; }
  .timeline { grid-template-columns: 96px repeat(24, 54px); min-width: calc(96px + 24 * 54px); }
}
