/* Breaking Bias — stile comune a tutte le pagine (home, sezioni, articoli, Mi presento) */
:root {
  --bg: #f6e9cf;
  --card: #fdf6e8;
  --line: #dfcca8;
  --ink: #1d0b14;
  --ink-dim: #4a4046;
  --ink-faint: #6e6268;
  --plum: #4a1230;
  --plum-dark: #2b0a1c;
  --night: #1d0b14;
  --accent: #e8622a;
  --kicker: #a63d14;
  --fucsia: #e6187a;
  --peach: #f3c9b3;
  --display: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --pad: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--kicker); }
img { max-width: 100%; }
::selection { background: var(--plum); color: #fff; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }

/* ---------- barra superiore ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 40px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-dim); }
.topbar__links { display: flex; gap: 22px; align-items: center; }
.pill { background: var(--plum-dark); color: var(--card) !important; padding: 6px 14px; border-radius: 999px; }
.pill:hover { background: var(--accent); }

/* ---------- testata ---------- */
.masthead { position: relative; overflow: hidden; }
.masthead .wrap { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; }
.masthead__row { display: flex; align-items: center; gap: 24px; }
.masthead__logo { width: 84px; height: 84px; border-radius: 50%; }
.nameplate { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(52px, 8vw, 112px);
  line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.nameplate em { font-weight: 500; color: var(--plum); }
.motto { margin: 0; text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--ink-dim); }
.masthead--small .wrap { padding-top: 22px; padding-bottom: 16px; }
.masthead--small .masthead__logo { width: 48px; height: 48px; }
.masthead--small .nameplate { font-size: clamp(36px, 5vw, 56px); }
.masthead--small .motto { display: none; }

/* stelline decorative (riempite da stelle.js) */
.stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.stars svg { position: absolute; animation: twinkle var(--d, 4s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes twinkle { 0%,100% { opacity: var(--o, .9); transform: scale(1); } 50% { opacity: calc(var(--o, .9) * .35); transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .stars svg { animation: none; } }

/* ---------- navigazione sezioni ---------- */
.sections { border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sections a.is-active { color: var(--kicker); }

/* ---------- flash ultime ---------- */
.flash { height: 44px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line);
  font-size: 15px; white-space: nowrap; overflow: hidden; }
.flash__label { flex-shrink: 0; background: var(--accent); color: var(--plum-dark); font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; padding: 4px 10px; }
.flash b { font-family: var(--mono); font-size: 11px; color: var(--kicker); margin-right: 8px; }
.flash__sep { color: #b8a58a; }

/* ---------- elementi testuali ---------- */
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); }
.byline { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.dek { margin: 0; color: var(--ink-dim); }

/* segnaposto immagine (quando l'articolo non ha copertina) */
.ph { position: relative; overflow: hidden; background: var(--plum-dark); }
.ph svg { position: absolute; }
.ph--1 { background: var(--plum-dark); }
.ph--2 { background: #ead3ac; }
.ph--3 { background: #f0bfa1; }
.ph--4 { background: var(--plum); }
.cover { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- prima pagina ---------- */
.front { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding: 44px 0 48px; }
.lead { grid-column: span 8; display: flex; flex-direction: column; gap: 16px; padding-right: 32px; border-right: 1px solid var(--line); }
.lead__img { aspect-ratio: 16 / 9; }
.lead__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.06; letter-spacing: -.01em; }
.lead .dek { font-size: 20px; line-height: 1.5; }
.rail { grid-column: span 4; display: flex; flex-direction: column; }
.rail__title { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.rank { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rank__n { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); min-width: 24px; }
.rank__txt { display: flex; flex-direction: column; gap: 6px; }
.rank__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.rank .kicker { font-size: 11px; letter-spacing: .14em; }
.quote { margin-top: 28px; background: var(--plum-dark); color: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.quote span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--peach); }
.quote span:last-child { font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.25; }

/* ---------- intestazioni di sezione ---------- */
.sechead { display: flex; align-items: baseline; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 14px; }
.sechead h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 40px; }
.more { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }
.block { padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }

/* card a tre colonne */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card__img { aspect-ratio: 3 / 2; }
.card__txt { display: flex; flex-direction: column; gap: 10px; }
.card__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.15; }
.card .dek { font-size: 16px; line-height: 1.5; }
.card .kicker, .card .byline { font-size: 11px; }

/* blog + mi presento */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding-bottom: 64px; }
.split__main { grid-column: span 8; display: flex; flex-direction: column; }
.split__main .sechead { margin-bottom: 8px; }
.row { display: flex; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row__txt { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.row__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.row .dek { font-size: 16px; line-height: 1.5; }
.row .kicker, .row .byline { font-size: 11px; }
.row__img { flex-shrink: 0; width: 220px; aspect-ratio: 3 / 2; }
.bio { grid-column: span 4; align-self: start; margin-top: 17px; background: var(--card); border: 1px solid var(--line);
  padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.bio__label { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.bio img { width: 120px; height: 120px; border-radius: 50%; }
.bio__name { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.bio p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-dim); }
.link-under { align-self: start; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--plum); border-bottom: 1px solid var(--plum); padding-bottom: 3px; }
.social { display: flex; gap: 10px; }
.social a { flex: 1; text-align: center; color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 12px 8px; border-radius: 999px; }
.social a:first-child { background: var(--fucsia); }
.social a:last-child { background: var(--plum-dark); }
.social a:hover { color: #fff; filter: brightness(1.12); }

/* fascia scura (Musica) */
.band { position: relative; overflow: hidden; background: var(--plum-dark); color: var(--card); }
.band .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.band .sechead { border-top-color: var(--card); }
.band .sechead h2, .band .card__title { color: var(--card); }
.band .more, .band .kicker { color: var(--peach); }
.band .dek { color: #e2d3d9; }
.band .byline { color: #c9b6bf; }
.band .ph--1 { background: var(--accent); }
.band a:hover .card__title { color: var(--peach); }

.empty { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--ink-faint); margin: 0; }
.band .empty { color: var(--peach); }

/* ---------- colophon ---------- */
.colophon { background: var(--night); color: var(--card); }
.colophon .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.colophon__top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px;
  border-bottom: 1px solid #5a3a4a; padding-bottom: 28px; }
.colophon__name { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; }
.colophon__name em { font-weight: 500; color: var(--peach); }
.colophon__nav { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.colophon__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 12px; color: #d8c6cf; }
.colophon a:hover { color: var(--peach); }

/* ---------- pagina articolo ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.article__title { margin: 14px 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -.01em; }
.article .dek { font-size: 21px; line-height: 1.5; margin-bottom: 18px; }
.article__byline { padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article__img { margin: 0 0 36px; aspect-ratio: 16 / 9; }
.article__body { font-size: 19px; line-height: 1.75; color: #2b1c24; }
.article__body > p:first-of-type::first-letter { float: left; font-family: var(--display); font-weight: 900; font-size: 4.2em;
  line-height: .85; margin: 6px 12px 0 0; color: var(--plum); }
.article__body h2 { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 44px 0 14px; color: var(--ink); }
.article__body h3 { font-family: var(--display); font-weight: 700; font-size: 23px; margin: 34px 0 10px; }
.article__body p { margin: 0 0 22px; }
.article__body a { color: var(--plum); border-bottom: 1px solid var(--accent); }
.article__body blockquote { margin: 34px 0; padding: 18px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.3; color: var(--plum); }
.article__body blockquote p { margin: 0; }
.article__body img { border-radius: 4px; margin: 20px 0; }
.article__foot { margin-top: 56px; padding-top: 24px; border-top: 3px double var(--ink); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ---------- pagina sezione / Mi presento ---------- */
.page { padding-top: 44px; padding-bottom: 80px; }
.page__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 84px); line-height: 1; }
.page__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-bottom: 3px solid var(--ink); padding-bottom: 18px; margin-bottom: 8px; }
.page .row { max-width: 1000px; }
.about { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; padding-top: 36px; }
.about__side { display: flex; flex-direction: column; gap: 18px; }
.about__side img { width: 220px; height: 220px; border-radius: 50%; }
.about .article__body { max-width: 720px; }

/* ---------- banner cookie ---------- */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 100; width: min(440px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 18px 40px -20px rgba(29,11,20,.55);
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.cookie__x { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--ink-dim); cursor: pointer; }
.cookie__x:hover { color: var(--kicker); }
.cookie__title { margin: 0; padding-right: 36px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.cookie__txt { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-dim); }
.cookie__txt a { color: var(--plum); border-bottom: 1px solid var(--accent); }
.cookie__btns { display: flex; gap: 10px; margin-top: 6px; }
.cookie__btn { flex: 1; min-height: 44px; border: 1px solid var(--plum-dark); border-radius: 999px; background: var(--plum-dark);
  color: var(--card); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.cookie__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--plum-dark); }
.cookie__btn:focus-visible, .cookie__x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.legal h2 { font-size: 26px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal > p:first-of-type::first-letter { float: none; font: inherit; margin: 0; color: inherit; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  :root { --pad: 16px; }
  .topbar__links a:not(.pill) { display: none; }
  .masthead .wrap { padding-top: 26px; padding-bottom: 18px; gap: 10px; }
  .masthead__row { flex-direction: column; gap: 10px; }
  .masthead__logo { width: 56px; height: 56px; }
  .motto { font-size: 11px; letter-spacing: .2em; }
  .masthead--small .masthead__row { flex-direction: row; }
  .sections { gap: 0; justify-content: space-between; min-height: 46px; font-size: 12px; letter-spacing: .06em; }
  .front { grid-template-columns: 1fr; padding: 20px 0 8px; }
  .lead, .rail { grid-column: auto; }
  .lead { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lead .dek { font-size: 17px; }
  .rail { padding-top: 20px; }
  .rank__title { font-size: 19px; }
  .quote { display: none; }
  .sechead h2 { font-size: 30px; }
  .block { padding-top: 20px; gap: 0; }
  .cards3 { grid-template-columns: 1fr; gap: 0; }
  .card { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .band .card { border-bottom-color: #5a3a4a; }
  .card__img { grid-column: 2; grid-row: 1; aspect-ratio: 1; }
  .card__txt { grid-column: 1; grid-row: 1; gap: 6px; }
  .card__title { font-size: 19px; line-height: 1.2; }
  .card .dek { display: none; }
  .split { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 32px; }
  .split__main, .bio { grid-column: auto; }
  .row { gap: 14px; align-items: flex-start; padding: 16px 0; }
  .row__title { font-size: 19px; line-height: 1.2; }
  .row .dek { display: none; }
  .row__img { width: 96px; aspect-ratio: 1; }
  .bio { margin-top: 28px; padding: 24px; }
  .bio img { width: 72px; height: 72px; }
  .band .wrap { padding-top: 28px; padding-bottom: 32px; gap: 0; }
  .colophon .wrap { padding-top: 32px; padding-bottom: 32px; }
  .colophon__name { font-size: 34px; }
  .article { padding-top: 28px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about__side img { width: 140px; height: 140px; }
}
@media (max-width: 900px) { .cookie { left: 16px; bottom: 16px; } }
@media (max-width: 420px) { .flash { font-size: 14px; } .sections { font-size: 11px; } }
