/* Template 55 Traccia — Studio di registrazione.
   Ispirato allo stile di Music Artist (tema gratuito di WordPress.org): foto in bianco e nero a tutta pagina,
   titolo condensato enorme, lettore audio fisso in basso. Niente di copiato, solo l'idea. */
:root {
  --tr-nero: #0a0a0a;
  --tr-carta: #f4f3f1;
  --tr-grigio: #8c8c8c;
  --tr-filo: rgba(255,255,255,.16);
  --tr-rosso: #e5322d;
  --tr-titoli: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --tr-player: 64px;
  --tr-nastro: 46px;
}
body.tr { margin: 0; background: #fff; color: #161616; font: 400 16.5px/1.65 'Inter', system-ui, sans-serif; padding-bottom: calc(var(--tr-player) + var(--tr-nastro)); }
.tr h1, .tr h2, .tr h3 { font-family: var(--tr-titoli); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; line-height: 1.02; color: inherit; }
.tr-dentro { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* testata sopra la foto */
.tr-testata { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 36px; padding: 18px clamp(20px, 3vw, 48px); background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); color: #fff; }
.tr-logo { font: 700 22px/1 var(--tr-titoli); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; margin-right: auto; }
.tr-logo small { display: block; font: 400 11px/1.4 'Inter', sans-serif; letter-spacing: .08em; text-transform: none; opacity: .7; margin-top: 5px; }
.tr-voci { display: flex; gap: 30px; }
.tr-voci a, .tr-social a { text-decoration: none; font: 600 15px/1 var(--tr-titoli); letter-spacing: .06em; text-transform: uppercase; padding-block: 6px; border-bottom: 2px solid transparent; }
.tr-voci a:hover, .tr-social a:hover { border-color: var(--tr-rosso); }
.tr-social { display: flex; gap: 18px; }
.tr-menu { display: none; position: relative; }
.tr-menu summary { list-style: none; cursor: pointer; width: 42px; height: 34px; display: grid; place-items: center; }
.tr-menu summary::-webkit-details-marker { display: none; }
.tr-menu summary span, .tr-menu summary span::before { content: ''; display: block; width: 24px; height: 2px; background: #fff; }
.tr-menu summary span { position: relative; }
.tr-menu summary span::before { position: absolute; top: -8px; left: 0; box-shadow: 0 16px 0 #fff; }
.tr-menu nav { position: absolute; right: 0; top: 44px; background: #000; min-width: 220px; border: 1px solid var(--tr-filo); display: grid; }
.tr-menu nav a { padding: 15px 18px; text-decoration: none; font: 600 18px/1 var(--tr-titoli); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--tr-filo); }

body.tr.scorso .tr-testata { background: #000; box-shadow: 0 1px 0 var(--tr-filo); }
.tr-testata { transition: background .3s ease; }

/* apertura */
.tr-apertura { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; isolation: isolate; overflow: hidden; background: #000; }
.tr-apertura > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); z-index: -2; }
.tr-velo { position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.5); }
.tr-apertura-testo { width: min(900px, 100% - 40px); padding: 120px 0 calc(var(--tr-player) + var(--tr-nastro) + 40px); }
.tr-apertura h1 { font-size: clamp(54px, 9vw, 128px); letter-spacing: .015em; margin-bottom: 26px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.tr-apertura p { max-width: 56ch; margin: 0 auto 34px; font-size: 18px; color: rgba(255,255,255,.88); }
.tr-link { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 34px; }
.tr-link a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; }
.tr-link a:hover { color: var(--tr-rosso); }
.tr-link svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* sezioni */
.tr-sezione { padding-block: clamp(70px, 9vw, 130px); }
.tr-nero { background: var(--tr-nero); color: #fff; }
.tr-titolo { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 40px; border-bottom: 2px solid currentColor; padding-bottom: 14px; }
.tr-titolo h2 { font-size: clamp(34px, 4.6vw, 62px); }
.tr-titolo a { font: 600 15px/1 var(--tr-titoli); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--tr-rosso); }
.tr-occhiello { display: block; font: 600 14px/1 var(--tr-titoli); letter-spacing: .16em; text-transform: uppercase; color: var(--tr-rosso); margin-bottom: 16px; }

/* uscite */
.tr-uscite { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tr-uscita { text-decoration: none; display: block; }
.tr-cover { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #111; }
.tr-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .35s ease, transform .6s ease; }
.tr-uscita:hover .tr-cover img { filter: none; transform: scale(1.05); }
.tr-play { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; background: #fff; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.tr-play::after { content: ''; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #000; }
.tr-uscita:hover .tr-play { opacity: 1; transform: none; }
.tr-uscita strong { display: block; margin-top: 14px; font: 700 21px/1.1 var(--tr-titoli); letter-spacing: .03em; text-transform: uppercase; }
.tr-uscita em { font-style: normal; font-size: 14px; color: #6d6d6d; }

/* studio */
.tr-due { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.tr-foto { margin: 0; }
.tr-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.tr-studio h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 20px; }
.tr-studio p { max-width: 54ch; color: #444; }
.tr-punti { list-style: none; margin: 30px 0 34px; padding: 0; display: flex; gap: 38px; flex-wrap: wrap; }
.tr-punti strong { display: block; font: 700 56px/1 var(--tr-titoli); }
.tr-punti span { font-size: 14px; color: #666; }
.tr-tasto { display: inline-flex; align-items: center; padding: 16px 30px; background: #000; color: #fff; text-decoration: none; font: 600 17px/1 var(--tr-titoli); letter-spacing: .1em; text-transform: uppercase; border: 2px solid #000; transition: background .2s, color .2s, border-color .2s; }
.tr-tasto:hover { background: var(--tr-rosso); border-color: var(--tr-rosso); }
.tr-vuoto { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.tr-vuoto:hover { background: #fff; color: #000; border-color: #fff; }

/* servizi */
.tr-elenco { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.tr-elenco li { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid #d9d9d9; transition: padding .25s ease, background .25s; }
.tr-elenco li:hover { padding-left: 16px; background: #f4f4f4; }
.tr-elenco b { font: 500 20px var(--tr-titoli); color: var(--tr-rosso); letter-spacing: .08em; }
.tr-elenco h3 { font-size: clamp(30px, 3.6vw, 52px); }
.tr-elenco p { margin: 0; color: #555; }

/* artisti */
.tr-artisti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tr-artisti figure { margin: 0; position: relative; overflow: hidden; }
.tr-artisti img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s ease; }
.tr-artisti figure:hover img { filter: none; }
.tr-artisti figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.tr-artisti strong { display: block; font: 700 26px/1.1 var(--tr-titoli); letter-spacing: .04em; text-transform: uppercase; }
.tr-artisti span { font-size: 14px; color: rgba(255,255,255,.75); }
.tr-citazione { margin: clamp(50px, 7vw, 90px) 0 0; font: 500 clamp(26px, 3.4vw, 46px)/1.2 var(--tr-titoli); letter-spacing: .01em; text-transform: uppercase; max-width: 26ch; }
.tr-citazione cite { display: block; margin-top: 20px; font: 400 14px 'Inter', sans-serif; letter-spacing: .08em; text-transform: none; color: var(--tr-grigio); font-style: normal; }

/* invito + piede */
.tr-invito { background: var(--tr-rosso); color: #fff; padding-block: clamp(70px, 9vw, 120px); }
.tr-invito h2 { font-size: clamp(44px, 7.4vw, 108px); max-width: 14ch; margin-bottom: 36px; }
.tr-invito .tr-tasto { background: #000; border-color: #000; }
.tr-invito .tr-tasto:hover { background: #fff; color: #000; border-color: #fff; }
.tr-invito .tr-vuoto { background: transparent; border-color: #fff; }
.tr-azioni { display: flex; gap: 14px; flex-wrap: wrap; }
.tr-recapiti { margin: 60px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 2px solid #fff; padding-top: 26px; }
.tr-recapiti dt { font: 600 14px var(--tr-titoli); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; opacity: .85; }
.tr-recapiti dd { margin: 0; font-size: 18px; }
.tr-piede { background: #000; color: rgba(255,255,255,.6); font-size: 13.5px; padding-block: 26px 40px; }
.tr-piede .tr-dentro { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* lettore fisso in basso */
.tr-player { position: fixed; z-index: 45; left: 0; right: 0; bottom: var(--tr-nastro); height: var(--tr-player); background: #000; color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 3vw, 48px); border-top: 1px solid var(--tr-filo); }
.tr-comandi { display: flex; align-items: center; gap: 12px; }
.tr-player button { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; padding: 0; }
.tr-player button svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.tr-player .tr-pp { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #000; }
.tr-pp .i-pausa { display: none; }
.tr-pp[aria-pressed=true] .i-play { display: none; }
.tr-pp[aria-pressed=true] .i-pausa { display: block; }
.tr-tempo { font: 500 14px 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); }
.tr-barra { flex: 1; height: 3px; background: rgba(255,255,255,.28); position: relative; }
.tr-barra i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.tr-brano { font: 600 15px/1.2 'Inter', sans-serif; max-width: 190px; text-align: right; }
.tr-brano small { display: block; font-weight: 400; color: rgba(255,255,255,.6); font-size: 12.5px; }
.nastro { bottom: 0; }
.in-cornice .tr-player { bottom: 0; }
.in-cornice body.tr { padding-bottom: var(--tr-player); }

@media (max-width: 1000px) {
  .tr-voci, .tr-social { display: none; }
  .tr-menu { display: block; }
  .tr-uscite { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .tr-due, .tr-recapiti { grid-template-columns: 1fr; }
  .tr-artisti { grid-template-columns: 1fr; }
  .tr-elenco li { grid-template-columns: 56px 1fr; }
  .tr-elenco li p { grid-column: 2; }
  .tr-brano { display: none; }
  .tr-tempo:last-of-type { display: none; }
  .tr-foto img { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) { .tr-uscita .tr-cover img { transition: none; } }
